Skip to content

app-channel: inform the application when a polka certificate is stored #1617

Open

Description

@Dinonard

Description

Context

  • v0.8.2 (a453b32)
  • ValuePayload::ProposalAndParts
  • 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:

AppMsg::Polka {
    height: Ctx::Height,
    round: Round,
    value_id: ValueId<Ctx>,
}

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

  1. added
    need-triage
    on Nov 6, 2026
  2. added
    application
    and removed
    need-triage
    on Nov 9, 2026
  3. romac commented on Nov 9, 2026

    @romac
    Contributor

    Thanks for the report! We are looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    applicationtracked internally

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions