mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 21:39:05 +01: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:
@@ -55,8 +55,8 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
||||
self.stop_node(1)
|
||||
|
||||
self.log.info("Move mempool.dat from old to new node")
|
||||
old_node_mempool = os.path.join(old_node.datadir, self.chain, 'mempool.dat')
|
||||
new_node_mempool = os.path.join(new_node.datadir, self.chain, 'mempool.dat')
|
||||
old_node_mempool = os.path.join(old_node.chain_path, 'mempool.dat')
|
||||
new_node_mempool = os.path.join(new_node.chain_path, 'mempool.dat')
|
||||
os.rename(old_node_mempool, new_node_mempool)
|
||||
|
||||
self.log.info("Start new node and verify mempool contains the tx")
|
||||
|
||||
Reference in New Issue
Block a user