Arguably, there's a rationale, perhaps optionally so, for flushing to disk more aggressively on regtest. Otherwise, we're losing state between, say, debug sessions, at least after an ungraceful exit. Must this be so?
debug option to control flushing (lax/normal/agressive) #8021
issue ghost opened this issue on May 8, 2016-
ghost commented at 3:18 AM on May 8, 2016: none
-
jonasschnelli commented at 7:54 PM on May 8, 2016: contributor
The regtest FlushStateToDisk() is currently not optimized because no-one has tried to accomplish this (IIRC). I agree that it would sometimes be nice to have the wallet and the blocks/index in the same state after a ungraceful shutdown.
-
laanwj commented at 6:56 AM on May 9, 2016: member
regtest is used for the regression (qa) tests, where performance does matter, and persistence doesn't matter at all (data is discarded anyway). So I don't think this is a good idea, as-is.
However I think a debug option to control flushing (lax/normal/agressive) could be useful, independent of the chain used.
- laanwj added the label UTXO Db and Indexes on May 9, 2016
-
ghost commented at 12:34 PM on May 9, 2016: none
Agreed. No reason to single out regtest.
- MarcoFalke added the label Brainstorming on Aug 6, 2019
- MarcoFalke renamed this:
Flushing on regtest
debug option to control flushing (lax/normal/agressive)
on Aug 6, 2019 -
MarcoFalke commented at 9:01 PM on April 26, 2020: member
The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.
Closing due to lack of interest. Pull requests with improvements are always welcome.
- MarcoFalke closed this on Apr 26, 2020
- DrahtBot locked this on Feb 15, 2022