Skip to content

Fix electrum fee estimate unit mismatch (sat/vbyte vs BTC/kB) - #841

Merged
evoskuil merged 2 commits into
libbitcoin:masterfrom
eynhaender:fix/electrum_fee_estimator
Jul 27, 2026
Merged

Fix electrum fee estimate unit mismatch (sat/vbyte vs BTC/kB)#841
evoskuil merged 2 commits into
libbitcoin:masterfrom
eynhaender:fix/electrum_fee_estimator

Conversation

@eynhaender

Copy link
Copy Markdown
Contributor

Summary

  • protocol_electrum::complete_estimate_fee returned the fee estimator's raw sat/vbyte value directly, but the electrum blockchain.estimatefee spec requires BTC/kB.
  • Convert before responding; the disabled (-1) case is unaffected.

protocol_electrum::complete_estimate_fee returned the estimator's raw
sat/vbyte value directly, but the electrum blockchain.estimatefee spec
requires BTC/kB. Convert before responding.
return;
}

send_result(fee / satoshis_per_vbyte_to_btc_per_kilobyte, 42);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

satoshis_per_vbyte_to_btc_per_vkbyte

no_fee_estimate and satoshis_per_vbyte_to_btc_per_kilobyte name what
the prior inline comments explained, so the comments are redundant.
@eynhaender
eynhaender force-pushed the fix/electrum_fee_estimator branch from fd7fc72 to b29cbd2 Compare July 27, 2026 20:37
@evoskuil
evoskuil merged commit d2b6e4a into libbitcoin:master Jul 27, 2026
14 checks passed
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