Skip to content

Commit faf6f15

Browse files
author
MarcoFalke
committed
test: Add missing syncwithvalidationinterfacequeue
1 parent 9aa8145 commit faf6f15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/wallet_resendwallettransactions.py

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from test_framework.test_framework import BitcoinTestFramework
1313
from test_framework.util import assert_equal, wait_until
1414

15+
1516
class P2PStoreTxInvs(P2PInterface):
1617
def __init__(self):
1718
super().__init__()
@@ -24,6 +25,7 @@ def on_inv(self, message):
2425
# save txid
2526
self.tx_invs_received[i.hash] += 1
2627

28+
2729
class ResendWalletTransactionsTest(BitcoinTestFramework):
2830
def set_test_params(self):
2931
self.num_nodes = 1
@@ -63,6 +65,7 @@ def run_test(self):
6365
node.submitblock(ToHex(block))
6466

6567
# Transaction should not be rebroadcast
68+
node.syncwithvalidationinterfacequeue()
6669
node.p2ps[1].sync_with_ping()
6770
assert_equal(node.p2ps[1].tx_invs_received[txid], 0)
6871

@@ -72,5 +75,6 @@ def run_test(self):
7275
node.setmocktime(rebroadcast_time)
7376
wait_until(lambda: node.p2ps[1].tx_invs_received[txid] >= 1, lock=mininode_lock)
7477

78+
7579
if __name__ == '__main__':
7680
ResendWalletTransactionsTest().main()

0 commit comments

Comments
 (0)