Passing -persistmempool is currently treated as -nopersistmempool
Fix (inverse) meaning of -persistmempool #23061
pull MarcoFalke wants to merge 2 commits into bitcoin:master from MarcoFalke:2109-fixArgParse changing 4 files +9 −3-
MarcoFalke commented at 9:33 AM on September 22, 2021: member
-
Fix (inverse) meaning of -persistmempool faff17bbde
- laanwj added the label Mempool on Sep 22, 2021
- laanwj added the label Needs backport (22.x) on Sep 22, 2021
-
laanwj commented at 11:17 AM on September 22, 2021: member
Any idea when this regressed, or has this been the case since the option was introduced?
-
MarcoFalke commented at 11:23 AM on September 22, 2021: member
I haven't checked, but I remember seeing this bug (#23062) since I started working on Bitcoin Core, though I might be mistaken.
- laanwj added the label Needs backport (0.21) on Sep 22, 2021
-
laanwj commented at 11:26 AM on September 22, 2021: member
Ok adding backport label for 0.21.x as well then. That seems far enough back.
- ryanofsky approved
-
ryanofsky commented at 1:21 PM on September 22, 2021: member
I think change of behavior for
-persistmempoolshould be noted in release notes, but otherwise code review ACK faff17bbde6dcb1482a6210bc48b3192603a446f -
DrahtBot commented at 5:33 PM on September 22, 2021: member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #22976 (scripted-diff: Rename overloaded int GetArg to GetIntArg by ryanofsky)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
- fanquake added the label Needs release note on Sep 23, 2021
-
jnewbery commented at 1:52 PM on September 23, 2021: member
Tested ACK faff17bbde6dcb1482a6210bc48b3192603a446f
Verified that cherry-picking just the test change fails on master.
Any idea when this regressed, or has this been the case since the option was introduced?
Probably since it was introduced in #9966. Fortunately, I think it's unlikely that anyone would be using
-persistmempoolsince the default is true. -
MarcoFalke commented at 2:21 PM on September 23, 2021: member
it's unlikely that anyone would be using -persistmempool since the default is true.
Indeed. Also, there is no bug report. So maybe we can skip the backport, as the bugfix is also a (silent) behaviour change.
- MarcoFalke force-pushed on Sep 23, 2021
-
in doc/release-notes.md:91 in eeee1ac2ab outdated
85 | @@ -86,6 +86,12 @@ New settings 86 | Updated settings 87 | ---------------- 88 | 89 | +- The meaning of the command line option `-persistmempool` (without a value 90 | + provided) incorrectly disabled mempool persistance. `-persistmempool` is now 91 | + treated like other boolen options to mean `-persistmempool=1`.
jonatack commented at 2:46 PM on September 23, 2021:nit, s/boolen/boolean/
MarcoFalke commented at 6:55 AM on September 24, 2021:Done
in doc/release-notes.md:92 in eeee1ac2ab outdated
85 | @@ -86,6 +86,12 @@ New settings 86 | Updated settings 87 | ---------------- 88 | 89 | +- The meaning of the command line option `-persistmempool` (without a value 90 | + provided) incorrectly disabled mempool persistance. `-persistmempool` is now 91 | + treated like other boolen options to mean `-persistmempool=1`. 92 | + `-persistmempool=0`, `-persistmempool=1` and `-nopersistmempool` are
jonatack commented at 2:47 PM on September 23, 2021:Passing `-persistmempool=0`, `-persistmempool=1` and `-nopersistmempool` is
MarcoFalke commented at 6:55 AM on September 24, 2021:Done
jonatack commented at 2:48 PM on September 23, 2021: memberNice find.
jnewbery deleted a comment on Sep 23, 2021jnewbery deleted a comment on Sep 23, 2021jnewbery deleted a comment on Sep 23, 2021jnewbery deleted a comment on Sep 23, 2021jnewbery deleted a comment on Sep 23, 2021jnewbery deleted a comment on Sep 23, 2021in doc/release-notes.md:90 in eeee1ac2ab outdated
85 | @@ -86,6 +86,12 @@ New settings 86 | Updated settings 87 | ---------------- 88 | 89 | +- The meaning of the command line option `-persistmempool` (without a value 90 | + provided) incorrectly disabled mempool persistance. `-persistmempool` is now
ryanofsky commented at 6:16 PM on September 23, 2021:s/persistance/persistence
MarcoFalke commented at 7:52 AM on September 25, 2021:Thanks, done
in doc/release-notes.md:89 in eeee1ac2ab outdated
85 | @@ -86,6 +86,12 @@ New settings 86 | Updated settings 87 | ---------------- 88 | 89 | +- The meaning of the command line option `-persistmempool` (without a value
ryanofsky commented at 6:19 PM on September 23, 2021:Maybe add "In previous releases,..." to be clear this is describing a bug in past releases.
MarcoFalke commented at 7:52 AM on September 25, 2021:Thanks, done
MarcoFalke force-pushed on Sep 24, 2021MarcoFalke force-pushed on Sep 24, 2021jnewbery commented at 9:06 AM on September 24, 2021: memberACK fa94851fcd
MarcoFalke removed the label Needs release note on Sep 24, 2021ryanofsky approvedryanofsky commented at 4:36 PM on September 24, 2021: memberCode review ACK fa94851fcd1636549c35bc7c3b42348a350d5741. (I thought I acked this previously, but my comments were stuck in draft. Feel free to ignore suggestions below which may be a little late)
doc: Add 23061 release notes faa9c19a4bMarcoFalke force-pushed on Sep 25, 2021hebasto approvedhebasto commented at 8:51 AM on September 25, 2021: memberACK faa9c19a4b27e7fabf7c5deae1b4c4ca612ed01a, I have reviewed the code and it looks OK, I agree it can be merged.
jnewbery commented at 8:02 AM on September 27, 2021: memberreACK faa9c19a4b27e7fabf7c5deae1b4c4ca612ed01a
MarcoFalke removed the label Needs backport (0.21) on Sep 27, 2021MarcoFalke commented at 8:11 AM on September 27, 2021: memberRemoved from 0.21 backport for now, because this is a behaviour change. It is not affecting anyone with high likelyhood.
If it is backported to 22.1, the release notes can be cleared in
master.MarcoFalke merged this on Sep 27, 2021MarcoFalke closed this on Sep 27, 2021MarcoFalke deleted the branch on Sep 27, 2021sidhujag referenced this in commit 8dba4ff338 on Sep 27, 2021luke-jr referenced this in commit 60ef97c3e8 on Oct 10, 2021fanquake referenced this in commit 45020413d6 on Oct 14, 2021fanquake referenced this in commit 976542e80f on Oct 14, 2021fanquake removed the label Needs backport (22.x) on Oct 14, 2021fanquake referenced this in commit 8dc10a8540 on Oct 15, 2021fanquake referenced this in commit ed0cb59841 on Oct 15, 2021fanquake referenced this in commit bb1e8b0e6f on Oct 21, 2021fanquake referenced this in commit 5386e20489 on Oct 21, 2021luke-jr referenced this in commit e8bc4f35a2 on Dec 14, 2021fanquake referenced this in commit 19ef57355f on Feb 14, 2022fanquake referenced this in commit ccd261a479 on Feb 14, 2022fanquake referenced this in commit db76db7329 on Feb 15, 2022fanquake referenced this in commit 92d44ff36c on Feb 15, 2022fanquake referenced this in commit 9b5f674abb on Mar 1, 2022Fabcien referenced this in commit b969c04d06 on Sep 12, 2022DrahtBot locked this on Oct 30, 2022Labels
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: 2026-05-02 12:14 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me