erigon-pulse/polygon/sync/validator_set_interface.go
2024-01-12 16:11:01 +01:00

14 lines
354 B
Go

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)
}