From 3d4d8072526dd3a45de9b8493296844c7867b161 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Mon, 15 Jul 2024 08:03:22 -0300 Subject: [PATCH] genesis message validation: remove unused qbft config --- message/validation/genesis/qbft_config.go | 53 ----------------------- 1 file changed, 53 deletions(-) delete mode 100644 message/validation/genesis/qbft_config.go diff --git a/message/validation/genesis/qbft_config.go b/message/validation/genesis/qbft_config.go deleted file mode 100644 index 97944a7696..0000000000 --- a/message/validation/genesis/qbft_config.go +++ /dev/null @@ -1,53 +0,0 @@ -package validation - -import ( - specqbft "github.com/ssvlabs/ssv-spec-pre-cc/qbft" - genesisspectypes "github.com/ssvlabs/ssv-spec-pre-cc/types" - spectypes "github.com/ssvlabs/ssv-spec-pre-cc/types" - - "github.com/ssvlabs/ssv/protocol/v2/qbft/roundtimer" - qbftstorage "github.com/ssvlabs/ssv/protocol/v2/qbft/storage" -) - -// qbftConfig is used in message validation and has no signature verification. -type qbftConfig struct { - domain spectypes.DomainType -} - -func newQBFTConfig(domain spectypes.DomainType) qbftConfig { - return qbftConfig{ - domain: domain, - } -} - -func (q qbftConfig) GetSigner() genesisspectypes.BeaconSigner { - panic("should not be called") -} - -func (q qbftConfig) GetSignatureDomainType() spectypes.DomainType { - return q.domain -} - -func (q qbftConfig) GetValueCheckF() specqbft.ProposedValueCheckF { - panic("should not be called") -} - -func (q qbftConfig) GetProposerF() specqbft.ProposerF { - panic("should not be called") -} - -func (q qbftConfig) GetNetwork() specqbft.Network { - panic("should not be called") -} - -func (q qbftConfig) GetStorage() qbftstorage.QBFTStore { - panic("should not be called") -} - -func (q qbftConfig) GetTimer() roundtimer.Timer { - panic("should not be called") -} - -func (q qbftConfig) VerifySignatures() bool { - return false -}