mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-05 10:12:48 +01:00
test: Add smoke test to check that wallets are flushed by default
This commit is contained in:
@@ -202,5 +202,10 @@ class WalletDumpTest(BitcoinTestFramework):
|
|||||||
result = self.nodes[0].getaddressinfo(multisig_addr)
|
result = self.nodes[0].getaddressinfo(multisig_addr)
|
||||||
assert result['ismine']
|
assert result['ismine']
|
||||||
|
|
||||||
|
self.log.info('Check that wallet is flushed')
|
||||||
|
with self.nodes[0].assert_debug_log(['Flushing wallet.dat'], timeout=20):
|
||||||
|
self.nodes[0].getnewaddress()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
WalletDumpTest().main()
|
WalletDumpTest().main()
|
||||||
|
|||||||
Reference in New Issue
Block a user