Skip to content

privval: Implement gRPC support #476

Open

Description

@thanethomson

Originally tracked in tendermint/tendermint#4698 and implemented in tendermint/tendermint#5725 in the v0.35/v0.36 release series.

We should bring these changes into whichever releases we can.

The corresponding work in tendermint-rs, for instance, is documented in ADR-011. See also cometbft/tendermint-rs#1134.

Activity

  1. added
    P:integrator-experience
    on Mar 7, 2023
  2. adizere commented on Mar 14, 2023

    @adizere
    Contributor
  3. tony-iqlusion commented on Aug 6, 2024

    @tony-iqlusion

    I had some suggestions for error handling I left in this comment I wanted to make sure don't get lost in the shuffle: #850 (comment)

    It's been a major problem with multiple chain upgrades that prevents a validator with a remote signer from coming online, so it'd be really great to get it addressed.

    Quoting here for posterity:


    Really all I'd like is a documented standard way of communicating a double signing error from sign_vote and sign_proposal and including metadata that CometBFT can parse and use to inform future signing requests. Something like the following:

    • On double signing error, return 409 Conflict to indicate a signature at the requested height already exists
    • The error should include metadata for last_height in h/r/s format, which reflects the last height a signature was computed for

    If last_height reflects the current block height, but CometBFT's round counter is lower than the KMS's, then CometBFT can advance the round counter to one more than the one included in last_height.

    Right now CometBFT does not handle privval errors very well. This was pretty painful with the last Neutron halt, where the chain halted for several hours and validators needed to resync. When the halt height was reached syncing, it took an additional hour for validators using TMKMS to reach the correct round to participate in consensus. It seems settings like timeout_prevote(_delta) and timeout_precommit(_delta) are not properly honored in this case (which perhaps I should report as a separate bug).


    Edit: I opened a separate issue for this for the existing proto-RPC-over-P2P privval interface: #5459

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

    P:integrator-experienceprivval

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions