Skip to content

Commit fa7d3a8

Browse files
author
MarcoFalke
committed
test: Add missing sync_blocks to wallet_hd
1 parent eeeed51 commit fa7d3a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/wallet_hd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def run_test(self):
231231
txid = self.nodes[0].sendtoaddress(addr, 1)
232232
origin_rpc.sendrawtransaction(self.nodes[0].gettransaction(txid)['hex'])
233233
self.nodes[0].generate(1)
234+
self.sync_blocks()
234235
origin_rpc.gettransaction(txid)
235236
assert_raises_rpc_error(-5, 'Invalid or non-wallet transaction id', restore_rpc.gettransaction, txid)
236237
out_of_kp_txid = txid
@@ -241,6 +242,7 @@ def run_test(self):
241242
txid = self.nodes[0].sendtoaddress(last_addr, 1)
242243
origin_rpc.sendrawtransaction(self.nodes[0].gettransaction(txid)['hex'])
243244
self.nodes[0].generate(1)
245+
self.sync_blocks()
244246
origin_rpc.gettransaction(txid)
245247
restore_rpc.gettransaction(txid)
246248
assert_raises_rpc_error(-5, 'Invalid or non-wallet transaction id', restore_rpc.gettransaction, out_of_kp_txid)

0 commit comments

Comments
 (0)