WebOfTrust / keripy

Key Event Receipt Infrastructure - the spec and implementation of the KERI protocol
https://keripy.readthedocs.io/en/latest/
Apache License 2.0
60 stars 55 forks source link

fix: re-cue unmatched cues in Respondant #797

Closed iFergal closed 5 months ago

iFergal commented 5 months ago

Should resolve https://github.com/WebOfTrust/keria/issues/184.

In KERIA, the Respondant processes certain cues for a kevery, but it drops other cues like keyStateSaved and Phil has suggested this to be the safest change to make to resolve the issue.

Since we are pushing the cue back onto the Deck, I needed to process one item per tock instead of looping the entire Deck and then yielding. An alternative is to keep another list of items and re-add them all after while self.cues is finished but I find this risky in case there are a lot of items and the process dies half way through.