-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2. change(rpc): Add some transaction fields to the getblocktemplate
RPC
#5496
Conversation
3e5e15f
to
4f5ce34
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5496 +/- ##
==========================================
- Coverage 79.23% 78.80% -0.43%
==========================================
Files 305 305
Lines 37877 38061 +184
==========================================
- Hits 30010 29995 -15
- Misses 7867 8066 +199 |
getblocktemplate
RPCgetblocktemplate
RPC
@Mergifyio update |
✅ Branch has been successfully updated |
This seems to be a problem with the get-params-path command:
https://github.com/ZcashFoundation/zebra/actions/runs/3366620412/jobs/5595829752#step:8:15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good to me, i left a few minor comments around.
...e/src/service/finalized_state/zebra_db/block/tests/snapshots/address_balances@mainnet_1.snap
Show resolved
Hide resolved
zebra-rpc/src/methods/get_block_template_rpcs/types/default_roots.rs
Outdated
Show resolved
Hide resolved
zebra-rpc/src/methods/get_block_template_rpcs/types/get_block_template.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
@Mergifyio update |
✅ Branch has been successfully updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, I don't have much to add.
Co-authored-by: Arya <aryasolhi@gmail.com>
Motivation
This PR adds all the
TransactionTemplate
fields exceptfee
andsigops
, which need changes to the mempool.Part of #5454
Depends-On: #5493
Specifications
https://zcash.github.io/rpc/getblocktemplate.html
Solution
Mempool:
RPCs & zebra-chain:
getblocktemplate
merkle root and auth data root fieldsVec<UnminedTx>
tomerkle::Root
andAuthDataRoot
Coinbase
type, it's the same asTransactionTemplate
(except for the sign of the fee)NegativeOrZero
amount constraintReview
@arya2 might want to review this PR, it will make more sense along with PR #5493.
Reviewer Checklist
Follow Up Work
fee
andsigops
in the mempool