Skip to content

Commit

Permalink
squashme
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklodder committed Dec 20, 2023
1 parent 66fdd4e commit 6603974
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions qa/rpc-tests/walletnotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ def run_test(self):
assert self.nodes[0].gettransaction(txid)['confirmations'] == 0
self.current_line += 2

# mine the same transaction again and make sure it's in the mempool by
# force submitting it on the miner node.
self.nodes[1].sendrawtransaction(self.nodes[0].gettransaction(txid)['hex'], True)
self.nodes[1].generate(1)
self.sync_all()

# we should now have received one more notification.
height = self.nodes[1].getblockchaininfo()['blocks']
assert len(notifs) == self.current_line + 1
assert notifs[self.current_line] == "{} {}".format(txid, height)
assert self.nodes[0].gettransaction(txid)['confirmations'] == 1
self.current_line += 1




if __name__ == '__main__':
Expand Down

0 comments on commit 6603974

Please sign in to comment.