Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for group member to join group in rotation with valid KEL #562

Merged
merged 1 commit into from
Aug 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/keri/app/cli/commands/multisig/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,6 @@ def rotate(self, attrs):
serder = coring.Serder(ked=ked)
seqner = coring.Seqner(sn=serder.sn)

if serder.sner.num <= kever.sner.num:
print(f"Discarding stale rotation event for AID {gid} to sequence number {serder.sner.num}")
return True # return True here so event is deleted, we will never process this event
elif serder.sner.num != kever.sner.num + 1:
print(f"Unable to joid {gid}, current KEL out of date")

if gid not in self.hby.habs:
print(f"\nRequest to add local AID '{mhab.name}' to multisig AID {gid} in rotation to {serder.sner.num}:")
self.showEvent(mhab, both, ked)
Expand All @@ -254,6 +248,13 @@ def rotate(self, attrs):
ghab.inited = True
self.hby.habs[ghab.pre] = ghab

if serder.sner.num <= kever.sner.num:
print(f"Caught up to existing rotation event for AID {gid} to sequence number {serder.sner.num}")
return True # return True here so event is deleted, we will never process this event
elif serder.sner.num != kever.sner.num + 1:
print(f"Unable to joid {gid}, current KEL out of date")
return False

local = False

else:
Expand Down
Loading