aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/run_bp.py9
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)