-
Notifications
You must be signed in to change notification settings - Fork 228
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
get_fee_rate_statistics
should skip first (cellbase) Transaction
#4647
get_fee_rate_statistics
should skip first (cellbase) Transaction
#4647
Conversation
193c323
to
80b3f80
Compare
80b3f80
to
2540df0
Compare
get_fee_rate_statistics
should skip first (cellbase) Transaction
Good catch 👍 |
) { | ||
) | ||
// skip cellbase (first element in the Vec) | ||
.skip(1) |
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.
may better to change line 86 also:
- if !block_ext.txs_fees.is_empty()
+ if block_ext.txs_fees.len() > 1
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.
Thanks, updated.
2540df0
to
1f213eb
Compare
Signed-off-by: Eval EXEC <execvy@gmail.com>
1f213eb
to
1a15a68
Compare
5bf859f
to
216fd7e
Compare
…s is belong to cellbase Signed-off-by: Eval EXEC <execvy@gmail.com>
216fd7e
to
92680dc
Compare
Fixed the unit test, should put cellbase (cycle, tx_fee, tx_size) as first element in |
What problem does this PR solve?
Want to fix #4646 and #4350
What is changed and how it works?
Related changes
Check List
Tests
Side effects
Release note