Skip to content
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

fix: ignore coinbase transactions when computing fee percentiles. #152

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

ielashi
Copy link
Collaborator

@ielashi ielashi commented Mar 14, 2023

Problem:
When computing the fee percentiles for the last N transactions, coinbase transactions were counted as part of N. In practice, the difference is negligible, but for the sake of correctness, coinbase transactions shouldn't be counted at all.

Solution:
Do not increment the transaction count when encounterting coinbase transactions.

Problem:
When computing the fee percentiles for the last N transactions, coinbase transactions were counted as part of N. In practice, the difference is negligible, but for the sake of correctness, coinbase transactions shouldn't be counted at all.

Solution:
Do not increment the transaction count when encounterting coinbase transactions.
@ielashi ielashi requested a review from a team as a code owner March 14, 2023 09:00
@ielashi ielashi enabled auto-merge (squash) March 14, 2023 11:24
@ielashi ielashi merged commit 6454823 into master Mar 14, 2023
@ielashi ielashi deleted the ielashi/ignore_coinbase_txs branch March 14, 2023 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants