Page MenuHomePhabricator

Fix 'mempool min fee not met' debug output
ClosedPublic

Authored by Fabien on Jul 1 2019, 17:48.

Details

Summary
Output the value that is tested, rather than the unmodified fee value.

Backport of core PR12356 (main), PR12512 and PR12455 (fixes)
https://github.com/bitcoin/bitcoin/pull/12356/files
https://github.com/bitcoin/bitcoin/pull/12512/files
https://github.com/bitcoin/bitcoin/pull/12455/files

Test Plan
make check
./test/functional/test_runner.py --extended

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
test/functional/abc-mempool-accept-txn.py
46 ↗(On Diff #9867)

Since the python test suite checks asserts using an x in err_msg check, this is fine. Just pointing out that this message is missing the code(...) part like the other messages.

This revision is now accepted and ready to land.Jul 1 2019, 20:45
test/functional/abc-mempool-accept-txn.py
46 ↗(On Diff #9867)

This is done on purpose. The whole message gives you the number of sigops in the failure reason (bad-txns-too-many-sigops, #sigops (code 42)), doing so avoid computing the whole exact reason string and is less likely to break at each script update.