HomePhabricator

Control mempool persistence using a command line parameter.

Description

Control mempool persistence using a command line parameter.

Summary:
Mempool persistence was added in
3f78562df5e86a2a0a21812047fc3a7db8cee988, and is always on. This commit
introduces a command-line parameter -persistmempool, which defaults to
true. When set to false:

  • mempool.dat is not loaded when the node starts.
  • mempool.dat is not written when the node stops.

Backport core's PR9966 and PR10342

Test Plan:

make check
./test/functional/test_runner.py mempool_persist.py

Reviewers: #bitcoin_abc, dagurval

Reviewed By: #bitcoin_abc, dagurval

Differential Revision: https://reviews.bitcoinabc.org/D964

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Mar 9 2017, 22:12
deadalnixCommitted on Jan 16 2018, 12:55
deadalnixPushed on Jan 16 2018, 12:55
Reviewer
Restricted Project
Differential Revision
D964: Control mempool persistence using a command line parameter.
Parents
rABC9ee56393a6fd: Move src/test/bitcoin-util-test.py to test/util/bitcoin-util-test.py
Branches
Unknown
Tags
Unknown