Skip to content

Commit 91d62ad

Browse files
rustyrussellcdecker
authored andcommitted
pytest: create only a single config file.
For some reason, we created a second bitcoin.conf in the regtest/ directory, which AFAICT nothing uses. Signed-off-by: Rusty Russell <[email protected]>
1 parent 2375302 commit 91d62ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ def __init__(self, bitcoin_dir="/tmp/bitcoind-test", rpcport=None):
241241
'-nolisten',
242242
]
243243
BITCOIND_CONFIG['rpcport'] = rpcport
244-
btc_conf_file = os.path.join(regtestdir, 'bitcoin.conf')
245-
write_config(os.path.join(bitcoin_dir, 'bitcoin.conf'), BITCOIND_CONFIG)
244+
btc_conf_file = os.path.join(bitcoin_dir, 'bitcoin.conf')
246245
write_config(btc_conf_file, BITCOIND_CONFIG)
247246
self.rpc = SimpleBitcoinProxy(btc_conf_file=btc_conf_file)
248247

0 commit comments

Comments
 (0)