aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJhih-Ming Huang <fbihjmeric@gmail.com>2020-02-24 19:49:30 +0800
committerGitHub <noreply@github.com>2020-02-24 19:49:30 +0800
commit486712f1e3fb607bc210f5ea98a8452b530b658f (patch)
tree97f88893adaac64ff26130cb7ddeed93e5cf2086
parent5244bb6d79fc118bfdabeb367b645608ea05003a (diff)
downloadgo-tangerine-486712f1e3fb607bc210f5ea98a8452b530b658f.tar.gz
go-tangerine-486712f1e3fb607bc210f5ea98a8452b530b658f.tar.zst
go-tangerine-486712f1e3fb607bc210f5ea98a8452b530b658f.zip
scripts: add recovery network endpoint option (#9)
-rwxr-xr-xscripts/run_bp.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/run_bp.py b/scripts/run_bp.py
index b5212aff9..e3fcb6ccf 100755
--- a/scripts/run_bp.py
+++ b/scripts/run_bp.py
@@ -229,7 +229,8 @@ def start(args, force=False):
'--cache=1024',
'--verbosity=%s' % args.verbosity,
'--gcmode=archive',
- '--port=%d' % port]
+ '--port=%d' % port,
+ '--recovery.network-rpc=%s' % args.recovery_network_rpc]
if args.testnet:
cmd.append('--testnet')
@@ -292,6 +293,10 @@ def main():
dest='skip_env_check', action='store_true',
help='Skip environment check, should only be '
'used for AU mechanism')
+ parser.add_argument('--recovery-network-rpc',
+ default='https://mainnet.infura.io',
+ dest='recovery_network_rpc',
+ help='Recovery network endpoint')
args = parser.parse_args()