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
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
Activity
adizere commentedon Mar 14, 2023
Needed for amygdala-labs/horcrux#39.
tony-iqlusion commentedon Aug 6, 2024
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_voteandsign_proposaland including metadata that CometBFT can parse and use to inform future signing requests. Something like the following:last_heightinh/r/sformat, which reflects the last height a signature was computed forIf
last_heightreflects 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 inlast_height.Right now CometBFT does not handle
privvalerrors 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 liketimeout_prevote(_delta)andtimeout_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