diff options
author | Jimmy Hu <jim2212001@gmail.com> | 2019-09-30 14:27:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 14:27:40 +0800 |
commit | 1ce6af8ce125af05107567244b955b16c3b9277a (patch) | |
tree | 249dbc00dfc66d15966c12b76af799b63468c60d | |
parent | 989f662336288dd7f548e0737bc55df0274c05e4 (diff) | |
download | go-tangerine-jimmy-run_bp.tar.gz go-tangerine-jimmy-run_bp.tar.zst go-tangerine-jimmy-run_bp.zip |
scripts: add --force and --verbosity to run_bp.pyjimmy-run_bp
-rwxr-xr-x | scripts/run_bp.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/run_bp.py b/scripts/run_bp.py index 46ebbd5cb..2bcb38353 100755 --- a/scripts/run_bp.py +++ b/scripts/run_bp.py @@ -177,7 +177,7 @@ def start(args, force=False): '--datadir=/mnt/datadir', '--syncmode=fast', '--cache=1024', - '--verbosity=3', + '--verbosity=%s' % args.verbosity, '--gcmode=archive', '--port=%d' % port] @@ -228,6 +228,11 @@ def main(): parser.add_argument('--testnet', default=False, action='store_true', dest='testnet', help='Whether or not to run a testnet node') + parser.add_argument('--force', default=False, action='store_true', + dest='force', + help='Force restart a node') + parser.add_argument('--verbosity', default=3, dest='verbosity', + help='Verbosity level') args = parser.parse_args() @@ -244,7 +249,7 @@ def main(): print('Abort.') sys.exit(1) - start(args) + start(args, args.force) monitor(args) |