-
Notifications
You must be signed in to change notification settings - Fork 18
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
Message gets ignored if received before we sync with protocol state #382
Comments
I wonder if this is related to how we just send encrypted messages for all messages from the protocol including the |
Additionally, we can restructure the locks out of the picture such that our game loop is the only holder of the |
Well, so the thing is - participants are aware of each right from the start because the initialized contract state contains the information about them (including the URL). So imagine the following situation:
|
Agreed, this is a sensible approach. And we should ensure that the queue should only be processed after we have synced with the contract state. |
Then additionally, we can have a separate queue to store the message on the sender participant, such that any network failure when sending the encrypted message becomes queued up to be sent later in the protocol loop. Then for simplicity sakes, we should also just by default send all messages during the protocol loop too. |
Yeah, that would make sense. We also just need a general timeout/retry mechanism too. |
Description
I tried deploying multichain today and encountered an interesting bug. One of the nodes was slow to spin up and sync with contract state, so the other two managed to broadcast a message before this node was aware of them. Thus it "failed
to decrypt the message" and binned it crippling the entire key generation protocol as the result.
So I think we might want to do two things here:
Open to other suggestions as well
The text was updated successfully, but these errors were encountered: