mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
bitcoin -> dash
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
eb1b61b364
commit
722c373f51
@ -28,7 +28,7 @@ class HTTPBasicsTest (BitcoinTestFramework):
|
|||||||
with open(os.path.join(self.options.tmpdir+"/node0", "dash.conf"), 'a', encoding='utf8') as f:
|
with open(os.path.join(self.options.tmpdir+"/node0", "dash.conf"), 'a', encoding='utf8') as f:
|
||||||
f.write(rpcauth+"\n")
|
f.write(rpcauth+"\n")
|
||||||
f.write(rpcauth2+"\n")
|
f.write(rpcauth2+"\n")
|
||||||
with open(os.path.join(self.options.tmpdir+"/node1", "bitcoin.conf"), 'a', encoding='utf8') as f:
|
with open(os.path.join(self.options.tmpdir+"/node1", "dash.conf"), 'a', encoding='utf8') as f:
|
||||||
f.write(rpcuser+"\n")
|
f.write(rpcuser+"\n")
|
||||||
f.write(rpcpassword+"\n")
|
f.write(rpcpassword+"\n")
|
||||||
|
|
||||||
|
@ -218,8 +218,8 @@ def get_datadir_path(dirname, n):
|
|||||||
def get_auth_cookie(datadir, n):
|
def get_auth_cookie(datadir, n):
|
||||||
user = None
|
user = None
|
||||||
password = None
|
password = None
|
||||||
if os.path.isfile(os.path.join(datadir, "bitcoin.conf")):
|
if os.path.isfile(os.path.join(datadir, "dash.conf")):
|
||||||
with open(os.path.join(datadir, "bitcoin.conf"), 'r') as f:
|
with open(os.path.join(datadir, "dash.conf"), 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
if line.startswith("rpcuser="):
|
if line.startswith("rpcuser="):
|
||||||
assert user is None # Ensure that there is only one rpcuser line
|
assert user is None # Ensure that there is only one rpcuser line
|
||||||
@ -268,7 +268,7 @@ def wait_for_bitcoind_start(process, datadir, i, rpchost=None):
|
|||||||
except JSONRPCException as e: # Initialization phase
|
except JSONRPCException as e: # Initialization phase
|
||||||
if e.error['code'] != -28: # RPC in warmup?
|
if e.error['code'] != -28: # RPC in warmup?
|
||||||
raise # unknown JSON RPC exception
|
raise # unknown JSON RPC exception
|
||||||
except ValueError as e: # cookie file not found and no rpcuser or rpcassword. bitcoind still starting
|
except ValueError as e: # cookie file not found and no rpcuser or rpcassword. dashd still starting
|
||||||
if "No RPC credentials" not in str(e):
|
if "No RPC credentials" not in str(e):
|
||||||
raise
|
raise
|
||||||
time.sleep(0.25)
|
time.sleep(0.25)
|
||||||
|
Loading…
Reference in New Issue
Block a user