erigon-pulse/polygon/sync/validator_set_interface.go

14 lines
354 B
Go
Raw Normal View History

package sync
import (
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/polygon/bor"
)
// valset.ValidatorSet abstraction for unit tests
type validatorSetInterface interface {
bor.ValidateHeaderTimeSignerSuccessionNumber
IncrementProposerPriority(times int)
Difficulty(signer libcommon.Address) (uint64, error)
}