You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think all the covenant-filling logic should be consolidated into either output.js or covenant.js and exported as library functions. Currently the best way just to find out what goes into a covenant is in the wallet make___() functions:
This will make it a lot easier to write tx-building code with the hsd library, and it should also allow us to implement a JSON api like createrawtransaction where a custom combination of covenants are included.
I think all the covenant-filling logic should be consolidated into either
output.js
orcovenant.js
and exported as library functions. Currently the best way just to find out what goes into a covenant is in the walletmake___()
functions:e.g. for OPENs:
hsd/lib/wallet/wallet.js
Lines 1613 to 1619 in 98a6491
This will make it a lot easier to write tx-building code with the hsd library, and it should also allow us to implement a JSON api like
createrawtransaction
where a custom combination of covenants are included.See #465
The text was updated successfully, but these errors were encountered: