[mempool] Persist unbroadcast set to mempool.dat

Ensure that the unbroadcast set will still be meaningful if the node is
restarted.
This commit is contained in:
Amiti Uttarwar
2020-03-17 10:39:25 -07:00
parent 297a178536
commit 50fc4df6c4
3 changed files with 55 additions and 6 deletions

View File

@@ -58,6 +58,9 @@ class MempoolUnbroadcastTest(BitcoinTestFramework):
assert rpc_tx_hsh not in mempool
assert wallet_tx_hsh not in mempool
# ensure that unbroadcast txs are persisted to mempool.dat
self.restart_node(0)
self.log.info("Reconnect nodes & check if they are sent to node 1")
connect_nodes(node, 1)