mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 10:52:39 +02:00
scripted-diff: Use wallets_path and chain_path where possible
Instead of passing the datadir and chain name to os.path.join, just use the existing properties, which are the same. -BEGIN VERIFY SCRIPT- sed -i --regexp-extended 's|\.datadir, self\.chain, .wallets.|.wallets_path|g' $(git grep -l '\.datadir, self\.chain,') sed -i --regexp-extended 's|\.datadir, self\.chain,|.chain_path,|g' $(git grep -l '\.datadir, self\.chain,') -END VERIFY SCRIPT-
This commit is contained in:
@@ -234,8 +234,8 @@ class ListTransactionsTest(BitcoinTestFramework):
|
||||
# refill keypool otherwise the second node wouldn't recognize addresses generated on the first nodes
|
||||
self.nodes[0].keypoolrefill(1000)
|
||||
self.stop_nodes()
|
||||
wallet0 = os.path.join(self.nodes[0].datadir, self.chain, self.default_wallet_name, "wallet.dat")
|
||||
wallet2 = os.path.join(self.nodes[2].datadir, self.chain, self.default_wallet_name, "wallet.dat")
|
||||
wallet0 = os.path.join(self.nodes[0].chain_path, self.default_wallet_name, "wallet.dat")
|
||||
wallet2 = os.path.join(self.nodes[2].chain_path, self.default_wallet_name, "wallet.dat")
|
||||
shutil.copyfile(wallet0, wallet2)
|
||||
self.start_nodes()
|
||||
# reconnect nodes
|
||||
|
Reference in New Issue
Block a user