mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
scripted-diff: Use generate* from TestFramework
-BEGIN VERIFY SCRIPT- sed --regexp-extended -i \ 's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self.\5\1, /g' \ $(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf') -END VERIFY SCRIPT-
This commit is contained in:
@ -134,7 +134,7 @@ class WalletDumpTest(BitcoinTestFramework):
|
||||
self.log.info('Mine a block one second before the wallet is dumped')
|
||||
dump_time = int(time.time())
|
||||
self.nodes[0].setmocktime(dump_time - 1)
|
||||
self.nodes[0].generate(1)
|
||||
self.generate(self.nodes[0], 1)
|
||||
self.nodes[0].setmocktime(dump_time)
|
||||
dump_time_str = '# * Created on {}Z'.format(
|
||||
datetime.datetime.fromtimestamp(
|
||||
|
Reference in New Issue
Block a user