-
Notifications
You must be signed in to change notification settings - Fork 111
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
5. change(rpc): Implement coinbase conversion to RPC TransactionTemplate
type
#5554
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teor2345
added
C-enhancement
Category: This is an improvement
P-Medium ⚡
A-rpc
Area: Remote Procedure Call interfaces
A-script
Area: Script handling
labels
Nov 4, 2022
teor2345
commented
Nov 4, 2022
teor2345
commented
Nov 4, 2022
teor2345
commented
Nov 4, 2022
teor2345
commented
Nov 4, 2022
teor2345
commented
Nov 4, 2022
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5554 +/- ##
==========================================
- Coverage 78.84% 78.78% -0.06%
==========================================
Files 305 305
Lines 38126 38127 +1
==========================================
- Hits 30061 30039 -22
- Misses 8065 8088 +23 |
arya2
reviewed
Nov 4, 2022
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 good! There's a small merge conflict with the select_mempool_transactions
refactor.
@Mergifyio update |
☑️ Nothing to do
|
teor2345
force-pushed
the
add-coinbase
branch
from
November 6, 2022 22:47
d5f764b
to
869e0ac
Compare
@Mergifyio update |
✅ Branch has been successfully updated |
@Mergifyio update |
✅ Branch has been successfully updated |
arya2
approved these changes
Nov 7, 2022
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-rpc
Area: Remote Procedure Call interfaces
A-script
Area: Script handling
C-enhancement
Category: This is an improvement
C-feature
Category: New features
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.
Motivation
We want to calculate miner fees and transaction roots, then generate transaction templates.
This does everything except actually generating a coinbase transaction.
Part of #5453.
Specifications
coinbase_txn
,transactions
, and some root fields in:https://zcash.github.io/rpc/getblocktemplate.html
Solution
Transaction
s intoTransactionTemplate
szebra-script
, because we don't want to call the transaction verifierNetwork
field to the getblocktemplate RPC handlerRefactors:
Review
Anyone can review this PR.
Reviewer Checklist
Follow Up Work
Actually generate the coinbase transaction