Fix a bug if the min fee is 0 for FeeFilterRounder #9288
pull morcos wants to merge 2 commits into bitcoin:master from morcos:fixFFRbug changing 3 files +4 −3-
morcos commented at 2:52 am on December 6, 2016: member
-
gmaxwell commented at 2:57 am on December 6, 2016: contributorACK. This appears sensible and also fixes the bug.
-
dcousens commented at 3:13 am on December 6, 2016: contributor
ACK 0e78469,
does it need to be put in place at https://github.com/bitcoin/bitcoin/blob/master/src/policy/fees.cpp#L304 also?Probably not, since that is bounded by
MIN_FEERATE
…Actually, probably is worth it since if someone changed
MIN_FEERATE
to0
, it would dead lock again. -
laanwj commented at 8:56 am on December 6, 2016: memberutACK 0e78469
-
MarcoFalke commented at 10:57 am on December 6, 2016: member
if someone changed MIN_FEERATE to 0
I think we can’t protect against developers randomly changing internal constants.
utACK 0e78469
-
fanquake added the label TX fees and policy on Dec 8, 2016
-
laanwj commented at 7:34 am on December 8, 2016: memberYes, static assertions would be the way to go then.
-
morcos force-pushed on Dec 8, 2016
-
morcos commented at 2:19 pm on December 8, 2016: member
I added the static_assert, although I’m not sure it matters since the value used is actually max of MIN_FEERATE and minRelayTxFee which can’t be 0. But it doesn’t hurt.
I noticed another “bug” if a minRelayTxFee of 1 satoshi is used in the mempool min fee decay. Wouldn’t mind someone else verifying the fix makes sense though..
-
fix a bug if the min fee is 0 for FeeFilterRounder eab8e1b172
-
Avoid rollingMinimumFeeRate never being able to decay below half f8d43b8081
-
morcos force-pushed on Dec 8, 2016
-
gmaxwell commented at 11:03 pm on December 12, 2016: contributorre-ACK.
-
laanwj commented at 11:28 am on January 4, 2017: memberutACK f8d43b8
-
laanwj merged this on Jan 4, 2017
-
laanwj closed this on Jan 4, 2017
-
laanwj referenced this in commit 1ce7ede2a9 on Jan 4, 2017
-
codablock referenced this in commit bdd151f598 on Jan 18, 2018
-
andvgal referenced this in commit eb7947e9ca on Jan 6, 2019
-
CryptoCentric referenced this in commit 502d1ca720 on Feb 26, 2019
-
Fuzzbawls referenced this in commit 71ed429370 on Feb 14, 2021
-
MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 21:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 21:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me