We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78aaaf6 commit bd3607dCopy full SHA for bd3607d
bitcoin/rpc.py
@@ -170,7 +170,9 @@ def __init__(self,
170
('http', conf['rpchost'], conf['rpcport']))
171
172
cookie_dir = conf.get('datadir', os.path.dirname(btc_conf_file))
173
- if bitcoin.params.NAME != "mainnet":
+ if bitcoin.params.NAME == 'testnet':
174
+ cookie_dir = os.path.join(cookie_dir, 'testnet3')
175
+ elif bitcoin.params.NAME == 'regtest':
176
cookie_dir = os.path.join(cookie_dir, bitcoin.params.NAME)
177
cookie_file = os.path.join(cookie_dir, ".cookie")
178
try:
0 commit comments