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
{{ message }}
Repository navigation
app-channel: inform the application when a polka certificate is stored #1617
Each of our proposal part uniquely identifies the Value, and carries the signature of the proposer.
To avoid the possibility of being spammed by byzantine actors, we allow only 1 entry per (height, round, value Id)
this allows us to buffer only one entry per proposer
Problem
The aforementioned rule we have, leaves a liveness hole a single Byzantine proposer can open:
The proposer of round r signs two manifests, a junk one and the real value.
It sends the junk first to n - q honest validators, whose buffer for (h, r, proposer) is now taken, and the real value to the other honest validators, who prevote it.
It prevotes the real value itself. The polka completes and the holders lock.
It withholds its precommit. The holders are q - 1, the victims precommit nil, no decision.
In every later round the honest re-proposal restreams the real value but the victims drop it as a second entry for a taken key. The holders stay locked, the victims never get the value, and no quorum forms again.
I'm not saying the above is because of malachite repository, it's also because of the approach I took with aggregating proposals.
With the v0.8.2, I can use the newly added (or modified) from field in the AppMsg::ReceivedProposalPart to figure out some kind of filtering to ensure the above does not happen, or at least to prevent it from exploding the memory usage due to buffering too many parts.
Request
Would you consider a notification to the application when the driver stores a polka certificate, for example:
It could go like this: Polka -> Decided -> Finalized
That way we can easily check the one we have buffered, and if it contradicts with the polka, we eject it.
Or if you have a better suggestion how to resolve the problem I have? 🙂
Activity
romac commentedon Nov 9, 2026
Thanks for the report! We are looking into this.