Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds
getblockmeta
andgettxmeta
(helper) closes #14 and closes #18.New structure looks like the one we discussed here
New format
Rejects are now script errors
For example, calling OP_OPEN on a name that already exists will just be a script error (this used to be in vmetaout):
Updates have a type:
bid
,rollout
orrevoke
All updates have an
output
object which links to the external output being affected by this transactionType
bid
Updates to bid outputs look like this
Type
rollout
Type
revoke
Updates revoking an output look like this:
This one provides a bit more detailed error for bid psbt due to the nested rust enums and how they appear as json.
Will merge this after some additional testing. Any thoughts @randomlogin ? do you want to give this PR a try in the meantime?