test: Add missing syncwithvalidationinterfacequeue
This is required to actually erase the orphan transaction when the BlockConnected event is handled in the background validation interface queue thread.
This commit is contained in:
1 file changed
+2
@@ -179,6 +179,7 @@ class InvalidTxRequestTest(BitcoinTestFramework):
|
|||||||
self.log.info('Send the block that includes the previous orphan ... ')
|
self.log.info('Send the block that includes the previous orphan ... ')
|
||||||
with node.assert_debug_log(["Erased 1 orphan transaction(s) included or conflicted by block"]):
|
with node.assert_debug_log(["Erased 1 orphan transaction(s) included or conflicted by block"]):
|
||||||
node.p2ps[0].send_blocks_and_test([block_A], node, success=True)
|
node.p2ps[0].send_blocks_and_test([block_A], node, success=True)
|
||||||
|
node.syncwithvalidationinterfacequeue()
|
||||||
|
|
||||||
self.log.info('Test that a transaction in the orphan pool conflicts with a new tip block causes erase this transaction from the orphan pool')
|
self.log.info('Test that a transaction in the orphan pool conflicts with a new tip block causes erase this transaction from the orphan pool')
|
||||||
tx_withhold_until_block_B = CTransaction()
|
tx_withhold_until_block_B = CTransaction()
|
||||||
@@ -205,6 +206,7 @@ class InvalidTxRequestTest(BitcoinTestFramework):
|
|||||||
self.log.info('Send the block that includes a transaction which conflicts with the previous orphan ... ')
|
self.log.info('Send the block that includes a transaction which conflicts with the previous orphan ... ')
|
||||||
with node.assert_debug_log(["Erased 1 orphan transaction(s) included or conflicted by block"]):
|
with node.assert_debug_log(["Erased 1 orphan transaction(s) included or conflicted by block"]):
|
||||||
node.p2ps[0].send_blocks_and_test([block_B], node, success=True)
|
node.p2ps[0].send_blocks_and_test([block_B], node, success=True)
|
||||||
|
node.syncwithvalidationinterfacequeue()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in new issue
Block a user