mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-30 00:23:46 +00:00
27 lines
723 B
Go
27 lines
723 B
Go
package bor
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/maticnetwork/bor/common"
|
|
)
|
|
|
|
// Will include any new bor consensus errors here in an attempt to make error messages more descriptive
|
|
|
|
// ProposerNotFoundError is returned if the given proposer address is not present in the validator set
|
|
type ProposerNotFoundError struct {
|
|
Address common.Address
|
|
}
|
|
|
|
func (e *ProposerNotFoundError) Error() string {
|
|
return fmt.Sprintf("Proposer: %s not found", e.Address.Hex())
|
|
}
|
|
|
|
// SignerNotFoundError is returned when the signer address is not present in the validator set
|
|
type SignerNotFoundError struct {
|
|
Address common.Address
|
|
}
|
|
|
|
func (e *SignerNotFoundError) Error() string {
|
|
return fmt.Sprintf("Signer: %s not found", e.Address.Hex())
|
|
}
|