-
Notifications
You must be signed in to change notification settings - Fork 92
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
change(rpc): Update ZIP-317 transaction selection algorithm #5776
Conversation
bf3f8ca
to
c20f0e9
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5776 +/- ##
==========================================
- Coverage 78.82% 78.75% -0.08%
==========================================
Files 307 307
Lines 38737 38773 +36
==========================================
- Hits 30536 30535 -1
- Misses 8201 8238 +37 |
75ada07
to
074b639
Compare
Since Friday I added commit f8d781f, which subtracts the coinbase transaction from the block limits. |
This change panics in debug mode, and returns wrong but irrelevant fake coinbase block subsidies in release mode. |
Fixed in PR #5787. |
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 great!
Nice catch subtracting the coinbase transaction from the block sigop and size limits.
cd9d516
to
b2e8c0e
Compare
Oops, too many commits in that last push 😶🌫️ |
…kips zero outputs
375b336
to
e60f386
Compare
Just a rebase and resolving some trivial conflicts. |
Motivation
The previous transaction selection algorithm was easy to work around. So we want to implement a simpler one instead.
Close #5752.
Specifications
https://github.com/zcash/zips/blob/a9ef04852749027e515b258dc60c1fff4f87e5e2/zip-0317.rst#block-production
Designs
Similar to the previous design, but update the calculations.
Solution
Related changes:
Review
Anyone can review this code, it's a routine change.
Reviewer Checklist