Skip to content

Commit 49971d9

Browse files
author
Bertrand256
committed
Additinal validation of commandline parameters related to sig_time offset.
1 parent 14e42a6 commit 49971d9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/app_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ def init(self, app_dir):
256256
self.trezor_hid = args.trezor_hid
257257
self.sig_time_offset_min = args.sig_time_offset_min
258258
self.sig_time_offset_max = args.sig_time_offset_max
259+
if not self.sig_time_offset_min < self.sig_time_offset_max:
260+
WndUtils.errorMsg('--sig-time-offset-min must be less than --sig-time-offset-max. Using the default '
261+
'values (-1800/1800).')
262+
self.sig_time_offset_min = -1800
263+
self.sig_time_offset_max = 1800
259264

260265
app_user_dir = ''
261266
if args.data_dir:

0 commit comments

Comments
 (0)