diff options
author | Duncan Dean <duncangleeddean@gmail.com> | 2021-07-07 10:06:27 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-07-09 17:24:08 +0100 |
commit | 847b6ed48d7bacec9024618922e9b339d2d97676 (patch) | |
tree | 37e799200882df94ebef0139d001bd60e1efacba /test | |
parent | 2837a9f1eaa2c6bf402d1d9891d9aa84c4a56033 (diff) |
[test] Test transactions are not re-added to unbroadcast set
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/mempool_unbroadcast.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/mempool_unbroadcast.py b/test/functional/mempool_unbroadcast.py index b475b65e68..7d9e6c306d 100755 --- a/test/functional/mempool_unbroadcast.py +++ b/test/functional/mempool_unbroadcast.py @@ -92,6 +92,12 @@ class MempoolUnbroadcastTest(BitcoinTestFramework): self.disconnect_nodes(0, 1) node.disconnect_p2ps() + self.log.info("Rebroadcast transaction and ensure it is not added to unbroadcast set when already in mempool") + rpc_tx_hsh = node.sendrawtransaction(txFS["hex"]) + mempool = node.getrawmempool(True) + assert rpc_tx_hsh in mempool + assert not mempool[rpc_tx_hsh]['unbroadcast'] + def test_txn_removal(self): self.log.info("Test that transactions removed from mempool are removed from unbroadcast set") node = self.nodes[0] |