debug option to control flushing (lax/normal/agressive) #8021

issue ghost opened this issue on May 8, 2016
  1. ghost commented at 3:18 AM on May 8, 2016: none

    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?

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

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

  4. laanwj added the label UTXO Db and Indexes on May 9, 2016
  5. ghost commented at 12:34 PM on May 9, 2016: none

    Agreed. No reason to single out regtest.

  6. MarcoFalke added the label Brainstorming on Aug 6, 2019
  7. MarcoFalke renamed this:
    Flushing on regtest
    debug option to control flushing (lax/normal/agressive)
    on Aug 6, 2019
  8. 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.

  9. MarcoFalke closed this on Apr 26, 2020

  10. DrahtBot locked this on Feb 15, 2022

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-04-17 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me