diff options
author | Jimmy Hu <jim2212001@gmail.com> | 2019-10-01 14:39:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 14:39:13 +0800 |
commit | 77b4c717e29b58b48c3d5035911ded3efc163dcb (patch) | |
tree | 249dbc00dfc66d15966c12b76af799b63468c60d | |
parent | 989f662336288dd7f548e0737bc55df0274c05e4 (diff) | |
download | go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.tar go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.tar.gz go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.tar.bz2 go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.tar.lz go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.tar.xz go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.tar.zst go-tangerine-77b4c717e29b58b48c3d5035911ded3efc163dcb.zip |
scripts: add --force and --verbosity to run_bp.py (#2)tan-v1.0.0
-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) |