Skip to content

Commit

Permalink
Add threshold information; minor formatting update.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Jan 21, 2024
1 parent 65db038 commit 3d02407
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/ritual_health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ def cli(network, domain, ritual_id):
# Info
print("Ritual Information")
print("==================")
print(f"\tInitiator : {ritual.initiator}")
print(f"\tThreshold : {ritual.threshold}-of-{ritual.dkgSize}")
print(f"\tInit Timestamp : {datetime.fromtimestamp(ritual.initTimestamp).isoformat()}")
print(f"\tEnd Timestamp : {datetime.fromtimestamp(ritual.endTimestamp).isoformat()}")
print(f"\tInitiator : {ritual.initiator}")
print(f"\tAuthority : {ritual.authority}")
isGlobalAllowList = ritual.accessController == contracts["GlobalAllowList"].address
print(
Expand All @@ -75,7 +76,7 @@ def cli(network, domain, ritual_id):
print()
print("Ritual State")
print("============")
print(f"\tState : {RitualState(ritual_state).name}")
print(f"\tState : {RitualState(ritual_state).name}")
if ritual_state == RitualState.DKG_AWAITING_TRANSCRIPTS:
if ritual.totalTranscripts < len(participants):
print("\t! Missing transcripts")
Expand Down

0 comments on commit 3d02407

Please sign in to comment.