serai-dex / serai

Other
242 stars 45 forks source link

Rewrite tendermint's message handling loop to much more clearly match the paper #560

Closed kayabaNerve closed 2 months ago

kayabaNerve commented 2 months ago

No longer checks relevant branches upon messages, yet all branches upon any state change. This is slower, yet easier to review and likely without one or two rare edge cases.

When reviewing, please see page 5 of https://arxiv.org/pdf/1807.04938.pdf. Lines from the specified algorithm can be found in the code by searching for "// L".