[test] Test transactions are not re-added to unbroadcast set
This commit is contained in:
1 parent
2837a9f1ea
commit
847b6ed48d
1 file changed
+6
@@ -92,6 +92,12 @@ class MempoolUnbroadcastTest(BitcoinTestFramework):
|
|||||||
self.disconnect_nodes(0, 1)
|
self.disconnect_nodes(0, 1)
|
||||||
node.disconnect_p2ps()
|
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):
|
def test_txn_removal(self):
|
||||||
self.log.info("Test that transactions removed from mempool are removed from unbroadcast set")
|
self.log.info("Test that transactions removed from mempool are removed from unbroadcast set")
|
||||||
node = self.nodes[0]
|
node = self.nodes[0]
|
||||||
|
|||||||
Reference in new issue
Block a user