1
0

add regtest support (#4242)

* add regtest support

* set default regtest ssl and tcp ports to 51002 and 51002

* regtest inherits parameters from testnet
This commit is contained in:
fivepiece
2018-04-11 20:10:14 +03:00
committed by ghost43
parent b68f5645cb
commit b4d71e651b
6 changed files with 28 additions and 0 deletions

View File

@@ -115,6 +115,9 @@ class SimpleConfig(PrintError):
if self.get('testnet'):
path = os.path.join(path, 'testnet')
make_dir(path)
elif self.get('regtest'):
path = os.path.join(path, 'regtest')
make_dir(path)
self.print_error("electrum directory", path)
return path