Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Sep 22, 2021

Passing -persistmempool is currently treated as -nopersistmempool

@laanwj
Copy link
Member

laanwj commented Sep 22, 2021

Any idea when this regressed, or has this been the case since the option was introduced?

@maflcko
Copy link
Member Author

maflcko commented Sep 22, 2021

I haven't checked, but I remember seeing this bug (#23062) since I started working on Bitcoin Core, though I might be mistaken.

@laanwj
Copy link
Member

laanwj commented Sep 22, 2021

Ok adding backport label for 0.21.x as well then. That seems far enough back.

Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

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

I think change of behavior for -persistmempool should be noted in release notes, but otherwise code review ACK faff17b

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

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.

@jnewbery
Copy link
Contributor

Tested ACK faff17b

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 -persistmempool since the default is true.

@maflcko
Copy link
Member Author

maflcko commented Sep 23, 2021

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.

Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

Nice find.

@bitcoin bitcoin deleted a comment from blockskillally Sep 23, 2021
@bitcoin bitcoin deleted a comment from blockskillally Sep 23, 2021
@bitcoin bitcoin deleted a comment from blockskillally Sep 23, 2021
@bitcoin bitcoin deleted a comment from blockskillally Sep 23, 2021
@bitcoin bitcoin deleted a comment from blockskillally Sep 23, 2021
@bitcoin bitcoin deleted a comment from blockskillally Sep 23, 2021
@maflcko maflcko force-pushed the 2109-fixArgParse branch 2 times, most recently from fabd873 to fa94851 Compare September 24, 2021 06:56
@jnewbery
Copy link
Contributor

ACK fa94851fcd

Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

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

Code 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)

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK faa9c19, I have reviewed the code and it looks OK, I agree it can be merged.

@jnewbery
Copy link
Contributor

reACK faa9c19

@maflcko
Copy link
Member Author

maflcko commented Sep 27, 2021

Removed 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.

@maflcko maflcko merged commit 632be55 into bitcoin:master Sep 27, 2021
@maflcko maflcko deleted the 2109-fixArgParse branch September 27, 2021 08:18
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 27, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Oct 10, 2021
@fanquake
Copy link
Member

Being backported to 22.x in #23276.

fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 21, 2021
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Oct 21, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 14, 2021
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Feb 15, 2022
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Feb 15, 2022
fanquake added a commit that referenced this pull request Mar 1, 2022
269553f test: Call ceildiv helper with integer (Martin Zumsande)
2f60fc6 ci: Replace soon EOL hirsute with jammy (MarcoFalke)
801b0f0 build: patch qt to explicitly define previously implicit header include (Kittywhiskers Van Gogh)
c768bfa tests: Calculate fees more similarly to CFeeRate::GetFee (Andrew Chow)
f66bc42 tests: Test for assertion when feerate is rounded down (Andrew Chow)
bd7e08e fees: Always round up fee calculated from a feerate (Andrew Chow)
227ae65 wallet: fix segfault by avoiding invalid default-ctored `external_spk_managers` entry (Sebastian Falbesoner)
282863a refactor: include a missing <limits> header in fs.cpp (Joan Karadimov)
7febe4f consensus: don't call GetBlockPos in ReadBlockFromDisk without lock (Jon Atack)
c671c6f the result of CWallet::IsHDEnabled() was initialized with true. (Saibato)
a5a1538 build, qt: Fix typo in QtInputSupport check (Hennadii Stepanov)
c95b188 system: skip trying to set the locale on NetBSD (fanquake)
c1cdedd guix: Fix powerpc64(le) dynamic linker name (Carl Dong)
92d44ff doc: Add 23061 release notes (MarcoFalke)
db76db7 Fix (inverse) meaning of -persistmempool (MarcoFalke)
85c78e0 build: Restrict check for CRC32C intrinsic to aarch64 (W. J. van der Laan)

Pull request description:

  Collecting backports for the 22.1 release. Currently:
  * #23045
  * #23061
  * #23148
  * #22390
  * #22820
  * #22781
  * #22895
  * #23335
  * #23333
  * #22949
  * #23580
  * #23504
  * #24239

ACKs for top commit:
  achow101:
    ACK 269553f

Tree-SHA512: b3a57ea241be7a83488eeb032276f4cf82a0987aada906a82f94a20c4acf9f2397708249dcecbe1c7575e70d09c60b835233d4718af4013c7bc58896c618274c
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 12, 2022
Summary: This is a backport of [[bitcoin/bitcoin#23061 | core#23061]]

Test Plan:
`ninja all check-all`

I checked that applying the test change without the code changes causes `mempool_persist.py` to fail.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11944
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants