Skip to content

Conversation

@Rob1Ham
Copy link

@Rob1Ham Rob1Ham commented Jul 13, 2025

Summary

This PR updates test/functional/p2p_ibd_txrelay.py to align with the reduced DEFAULT_MIN_RELAY_TX_FEE of 100 sats/kvB.

Changes

  • Adjusted NORMAL_FEE_FILTER
    Scaled down from Decimal(100) / COIN to Decimal(10) / COIN to reflect the 10× reduction in the default min relay fee.

  • Updated MAX_FEE_FILTER
    Changed from Decimal(9170997) / COIN to Decimal(9936506) / COIN to match the output of FeeFilterRounder under the new lower default. This avoids timeout-related test failures due to mismatched filter expectations.

self.extra_args = [
["-minrelaytxfee={}".format(NORMAL_FEE_FILTER)],
["-minrelaytxfee={}".format(NORMAL_FEE_FILTER)],
["-minrelaytxfee={:.8f}".format(NORMAL_FEE_FILTER)],

Choose a reason for hiding this comment

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

Why the format change?

Copy link
Author

Choose a reason for hiding this comment

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

Its a formatting issue with ParseMoney in src/util/moneystr.cpp. It rejects the small value default encoding of scientific notation, so the formatting change sets it up as a regular decimal. It can parse 1e-6 (what we had previously) but it will not parse 1e-7 (where we are now with the change. Adding 8 decimal places fixes this so it is 0.00000010.

Choose a reason for hiding this comment

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

Languages who cannot consistently roundtrip their own formatting are the root of all evil.

@reardencode
Copy link

Ack 0e34e65

@RobinLinus RobinLinus merged this pull request into RobinLinus:reduce-minrelaytxfee Jul 13, 2025
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.

3 participants