You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently do not verify that the latest hash is among those messages received, but we should.
Solution
Call GIMessage.deserialize on all the messages first, then starting from the end of the list, check to make sure one of the messages' hashes matches latest. If no such message can be found throw an error. Otherwise proceed with calling 'chelonia/private/in/handleEvent'
The text was updated successfully, but these errors were encountered:
Problem
In
'chelonia/private/in/syncContract'
, we have this line:We then fetch the events up to whatever the latest hash is (since the most recent message we've processed):
We currently do not verify that the
latest
hash is among those messages received, but we should.Solution
Call
GIMessage.deserialize
on all the messages first, then starting from the end of the list, check to make sure one of the messages' hashes matcheslatest
. If no such message can be found throw an error. Otherwise proceed with calling'chelonia/private/in/handleEvent'
The text was updated successfully, but these errors were encountered: