diff --git a/src/keri/app/cli/commands/multisig/join.py b/src/keri/app/cli/commands/multisig/join.py index 49db15a37..e79a35422 100644 --- a/src/keri/app/cli/commands/multisig/join.py +++ b/src/keri/app/cli/commands/multisig/join.py @@ -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) @@ -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: