Merge e7f3450b7d into merged_master (Bitcoin PR #16302)

This commit is contained in:
Andrew Poelstra 2020-11-09 03:58:17 +00:00
commit d97e53163b

View file

@ -210,6 +210,8 @@ class WalletTest(BitcoinTestFramework):
self.log.info('Put txs back into mempool of node 1 (not node 0)')
self.nodes[0].invalidateblock(block_reorg)
self.nodes[1].invalidateblock(block_reorg)
self.sync_blocks()
self.nodes[0].syncwithvalidationinterfacequeue()
assert_equal(self.nodes[0].getbalance(minconf=0)['bitcoin'], 0) # wallet txs not in the mempool are untrusted
self.nodes[0].generatetoaddress(1, ADDRESS_WATCHONLY)
assert_equal(self.nodes[0].getbalance(minconf=0)['bitcoin'], 0) # wallet txs not in the mempool are untrusted