Merge #11099: [RPC][mempool]: Add savemempool RPC
commitbc561b4b7d6a3f71649d37d5eb9047c29efa2b13
authorMarcoFalke <falke.marco@gmail.com>
Wed, 6 Sep 2017 20:48:00 +0000 (6 13:48 -0700)
committerMarcoFalke <falke.marco@gmail.com>
Wed, 6 Sep 2017 20:49:25 +0000 (6 13:49 -0700)
treeb95d6bc057fbab7a220844f1fc25d5224efcaf40
parent961901f77e55aa07d5048000d57bcd218ae74b08
parent1aa97ee088ea03dd208be054c5ad9198c1f13329
Merge #11099: [RPC][mempool]: Add savemempool RPC

1aa97ee08 Add savemempool RPC (Lawrence Nahum)
467cbbcbf Add return value to DumpMempool (Lawrence Nahum)

Pull request description:

  Adds a simple parameterless rpc command to dump the mempool.

  Rationale:

  Sometimes there can be a crash for whatever reason (bug, power loss, etc) causing the mempool.dat file to not be saved.

  This change allows to script/cron the rpc call to have more regular saves to the file as well as cli/ad-hoc.

  This should solve issue https://github.com/bitcoin/bitcoin/issues/11086

Tree-SHA512: e856ae9777425a4521279c9b58e69285d8e374790bebefd3284cf91931eac0e456f86224f427a087a01bf70440bf6e439fa02c8a34940eb1046ae473e98b6aaa
src/rpc/blockchain.cpp
src/validation.cpp
src/validation.h