state/privval: no GetPubKey retry beyond the proposal/voting window (#6578)

Closes #5142
This commit is contained in:
JayT106
2021-06-28 09:50:25 -04:00
committed by GitHub
parent c5cc3c8d3f
commit 11a71c228c
4 changed files with 49 additions and 4 deletions

View File

@@ -11,6 +11,17 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
)
// PrivValidatorType defines the implemtation types.
type PrivValidatorType uint8
const (
MockSignerClient = PrivValidatorType(0x00) // mock singer
FileSignerClient = PrivValidatorType(0x01) // singer client via file
RetrySignerClient = PrivValidatorType(0x02) // singer client via socket
SignerClient = PrivValidatorType(0x03) // singer client via gRPC
ErrorMockSignerClient = PrivValidatorType(0x04) // error mock singer
)
// PrivValidator defines the functionality of a local Tendermint validator
// that signs votes and proposals, and never double signs.
type PrivValidator interface {