daemon.py: minor fixes and cleanups
This commit is contained in:
parent
08fc25d863
commit
517f0ee54f
2 changed files with 5 additions and 3 deletions
|
|
@ -454,7 +454,7 @@ class CoinDaemon(Daemon):
|
|||
|
||||
def remove_datadir(self):
|
||||
"remove the network's datadir"
|
||||
assert self.test_suite, 'datadir removal permitted only for test suite'
|
||||
assert self.test_suite, 'datadir removal restricted to test suite'
|
||||
if self.state == 'stopped':
|
||||
try: # exception handling required for MSWin/MSYS2
|
||||
run(['/bin/rm','-rf',self.network_datadir])
|
||||
|
|
@ -468,7 +468,7 @@ class bitcoin_core_daemon(CoinDaemon):
|
|||
exec_fn = 'bitcoind'
|
||||
cli_fn = 'bitcoin-cli'
|
||||
testnet_dir = 'testnet3'
|
||||
cfg_file_hdr = '# BitcoinCoreDaemon config file\n'
|
||||
cfg_file_hdr = '# Bitcoin Core config file\n'
|
||||
tracking_wallet_name = 'mmgen-tracking-wallet'
|
||||
rpc_ports = _nw(8332, 18332, 18443)
|
||||
cfg_file = 'bitcoin.conf'
|
||||
|
|
@ -544,6 +544,7 @@ class bitcoin_cash_node_daemon(bitcoin_core_daemon):
|
|||
'linux': [g.home_dir,'.bitcoin-bchn'],
|
||||
'win': [os.getenv('APPDATA'),'Bitcoin_ABC']
|
||||
}
|
||||
cfg_file_hdr = '# Bitcoin Cash Node config file\n'
|
||||
|
||||
class litecoin_core_daemon(bitcoin_core_daemon):
|
||||
daemon_data = _dd('Litecoin Core', 180100, '0.18.1')
|
||||
|
|
@ -556,6 +557,7 @@ class litecoin_core_daemon(bitcoin_core_daemon):
|
|||
'linux': [g.home_dir,'.litecoin'],
|
||||
'win': [os.getenv('APPDATA'),'Litecoin']
|
||||
}
|
||||
cfg_file_hdr = '# Litecoin Core config file\n'
|
||||
|
||||
class monero_daemon(CoinDaemon):
|
||||
daemon_data = _dd('Monero', 'N/A', 'N/A')
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import sys,os
|
||||
os.environ['MMGEN_TEST_SUITE'] = '1'
|
||||
repo_root = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]),os.pardir)))
|
||||
os.chdir(repo_root)
|
||||
sys.path[0] = repo_root
|
||||
os.environ['MMGEN_TEST_SUITE'] = '1'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue