From 1ce6af8ce125af05107567244b955b16c3b9277a Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Mon, 30 Sep 2019 14:27:40 +0800 Subject: scripts: add --force and --verbosity to run_bp.py --- scripts/run_bp.py | 9 +++++++-- 1 file 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) -- cgit