mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +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:
@@ -143,8 +143,8 @@ class MempoolPersistTest(BitcoinTestFramework):
|
||||
self.nodes[2].syncwithvalidationinterfacequeue() # Flush mempool to wallet
|
||||
assert_equal(node2_balance, wallet_watch.getbalance())
|
||||
|
||||
mempooldat0 = os.path.join(self.nodes[0].datadir, self.chain, 'mempool.dat')
|
||||
mempooldat1 = os.path.join(self.nodes[1].datadir, self.chain, 'mempool.dat')
|
||||
mempooldat0 = os.path.join(self.nodes[0].chain_path, 'mempool.dat')
|
||||
mempooldat1 = os.path.join(self.nodes[1].chain_path, 'mempool.dat')
|
||||
|
||||
self.log.debug("Force -persistmempool=0 node1 to savemempool to disk via RPC")
|
||||
assert not os.path.exists(mempooldat1)
|
||||
|
Reference in New Issue
Block a user