[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 committed 2020-04-23 14:42:25 -07:00
1 parent 297a178536
commit 50fc4df6c4
3 files changed
+55 -6

No files matched your search

+3
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)