From 366295f09c172df94484c9e3ae52dbdb4beac0b0 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 25 Sep 2020 08:08:58 +0000 Subject: [PATCH] Added upload mixing run script arg --- run-onionr-node.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/run-onionr-node.py b/run-onionr-node.py index d4ef3ad5..49d14bb6 100755 --- a/run-onionr-node.py +++ b/run-onionr-node.py @@ -82,6 +82,9 @@ parser.add_argument( parser.add_argument( '--keep-log-on-exit', help='Onionr can keep or delete its log file on exit', type=int, default=0) +parser.add_argument( + '--use-upload-mixing', help='Re-upload blocks uploaded to us. Slow but more secure', + type=int, default=0) args = parser.parse_args() p = Popen([sub_script, 'version'], stdout=DEVNULL) @@ -114,6 +117,10 @@ if args.keep_log_on_exit: config['log']['file']['remove_on_exit'] = True else: config['log']['file']['remove_on_exit'] = False + +config['general']['upload_mixing'] = False +if args.use_upload_mixing: + config['general']['upload_mixing'] = True config['general']['display_header'] = False config['general']['security_level'] = args.security_level