From 34b681ab78be3186627add470b56c54047042ad2 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Tue, 28 Nov 2023 11:42:27 +0100 Subject: [PATCH] Do not use calendars when solo stamping --- otsclient/cmds.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/otsclient/cmds.py b/otsclient/cmds.py index cdc949f..7e2532f 100644 --- a/otsclient/cmds.py +++ b/otsclient/cmds.py @@ -108,6 +108,10 @@ def create_timestamp(timestamp, nonce, calendar_urls, args): assert block_timestamp is not None timestamp.merge(block_timestamp) + # Do not use calendars when solo stamping: + if args.use_btc_wallet: + return True + m = args.m n = len(calendar_urls) if m > n or m <= 0: @@ -198,7 +202,7 @@ def stamp_command(args): merkle_tip = make_merkle_tree(merkle_roots) - if not args.calendar_urls: + if not args.use_btc_wallet or not args.calendar_urls: # Neither calendar nor wallet specified; add defaults args.calendar_urls.append('https://a.pool.opentimestamps.org') args.calendar_urls.append('https://b.pool.opentimestamps.org')