Skip to content

Commit

Permalink
Do not use calendars when solo stamping
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Nov 28, 2023
1 parent e8b3ce2 commit 34b681a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion otsclient/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 34b681a

Please sign in to comment.