Skip to content

Commit

Permalink
tmp type missmatch fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AKorpusenko committed Jul 16, 2024
1 parent 1d74323 commit 11aa8f0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/ssvlabs/ssv
go 1.20

require (
github.com/AKorpusenko/genesis-go-eth2-client v1.0.0
github.com/aquasecurity/table v1.8.0
github.com/attestantio/go-eth2-client v0.21.3
github.com/bloxapp/eth2-key-manager v1.4.0
Expand Down Expand Up @@ -59,7 +60,6 @@ require (
)

require (
github.com/AKorpusenko/genesis-go-eth2-client v1.0.0 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
Expand Down Expand Up @@ -229,6 +229,8 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
)

replace github.com/attestantio/go-eth2-client => github.com/moshe-blox/go-eth2-client v0.0.0-20240529101804-84ddfd928b95

replace github.com/google/flatbuffers => github.com/google/flatbuffers v1.11.0

replace github.com/dgraph-io/ristretto => github.com/dgraph-io/ristretto v0.1.1-0.20211108053508-297c39e6640f
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ github.com/aristanetworks/goarista v0.0.0-20200805130819-fd197cf57d96 h1:XJH0YfV
github.com/aristanetworks/goarista v0.0.0-20200805130819-fd197cf57d96/go.mod h1:QZe5Yh80Hp1b6JxQdpfSEEe8X7hTyTEZSosSrFf/oJE=
github.com/aristanetworks/splunk-hec-go v0.3.3/go.mod h1:1VHO9r17b0K7WmOlLb9nTk/2YanvOEnLMUgsFrxBROc=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/attestantio/go-eth2-client v0.21.3 h1:m4Tzgb5AZkcjvtpmeZSiFireIhdZVK/fSAntJKAH8qM=
github.com/attestantio/go-eth2-client v0.21.3/go.mod h1:vhb0ZoQ6bz0kkoyxVbHDRrZTOJbwlY6udFkwfwrJZTE=
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
github.com/bazelbuild/rules_go v0.23.2 h1:Wxu7JjqnF78cKZbsBsARLSXx/jlGaSLCnUV3mTlyHvM=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
Expand Down Expand Up @@ -553,6 +551,8 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
github.com/moshe-blox/go-eth2-client v0.0.0-20240529101804-84ddfd928b95 h1:/CBNyui4oUKb4wbLiMh3kGzZSWHkoBJgw23EszgUQJ8=
github.com/moshe-blox/go-eth2-client v0.0.0-20240529101804-84ddfd928b95/go.mod h1:vhb0ZoQ6bz0kkoyxVbHDRrZTOJbwlY6udFkwfwrJZTE=
github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ=
github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
Expand Down
47 changes: 33 additions & 14 deletions operator/validator/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"sync"
"time"

genesisphase0 "github.com/AKorpusenko/genesis-go-eth2-client/spec/phase0"
"github.com/attestantio/go-eth2-client/spec/bellatrix"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -1340,6 +1341,25 @@ func SetupGenesisRunners(ctx context.Context, logger *zap.Logger, options valida
genesisspectypes.BNRoleVoluntaryExit,
}

share := &genesisspectypes.Share{}

share.OperatorID = options.Operator.OperatorID
share.ValidatorPubKey = options.SSVShare.Share.ValidatorPubKey[:]
share.SharePubKey = options.SSVShare.Share.SharePubKey
share.Committee = make([]*genesisspectypes.Operator, len(options.SSVShare.Share.Committee))
for _, c := range options.SSVShare.Share.Committee {
share.Committee = append(share.Committee, &genesisspectypes.Operator{
OperatorID: c.Signer,
PubKey: c.SharePubKey,
})
}

// TODO NEED TO HAVE QUORUM IN NEW SPEC
//share.Quorum = options.SSVShare.Share.Quorum
share.DomainType = genesisspectypes.DomainType(options.SSVShare.Share.DomainType)
share.FeeRecipientAddress = options.SSVShare.Share.FeeRecipientAddress
share.Graffiti = options.SSVShare.Share.Graffiti

buildController := func(role genesisspectypes.BeaconRole, valueCheckF genesisspecqbft.ProposedValueCheckF) *genesisqbftcontroller.Controller {
config := &genesisqbft.Config{
Signer: options.GenesisOptions.Signer,
Expand All @@ -1357,9 +1377,8 @@ func SetupGenesisRunners(ctx context.Context, logger *zap.Logger, options valida
SignatureVerification: true,
}
config.ValueCheckF = valueCheckF

identifier := genesisspectypes.NewMsgID(genesisssvtypes.GetDefaultDomain(), options.SSVShare.Share.ValidatorPubKey[:], role)
qbftCtrl := genesisqbftcontroller.NewController(identifier[:], options.SSVShare.Share, config, options.FullNode)
qbftCtrl := genesisqbftcontroller.NewController(identifier[:], share, config, options.FullNode)
qbftCtrl.NewDecidedHandler = options.GenesisOptions.NewDecidedHandler
return qbftCtrl
}
Expand All @@ -1370,31 +1389,31 @@ func SetupGenesisRunners(ctx context.Context, logger *zap.Logger, options valida
for _, role := range runnersType {
switch role {
case genesisspectypes.BNRoleAttester:
valCheck := genesisspecssv.AttesterValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], options.SSVShare.BeaconMetadata.Index, options.SSVShare.SharePubKey)
valCheck := genesisspecssv.AttesterValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], genesisphase0.ValidatorIndex(options.SSVShare.BeaconMetadata.Index), options.SSVShare.SharePubKey)
qbftCtrl := buildController(genesisspectypes.BNRoleAttester, valCheck)
runners[role] = genesisrunner.NewAttesterRunnner(genesisBeaconNetwork, &options.SSVShare.Share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, valCheck, 0, options.Operator.OperatorID)
runners[role] = genesisrunner.NewAttesterRunnner(genesisBeaconNetwork, share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, valCheck, genesisphase0.Slot(0))

Check failure on line 1394 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewAttesterRunnner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1394 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewAttesterRunnner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1394 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewAttesterRunnner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
case genesisspectypes.BNRoleProposer:
proposedValueCheck := genesisspecssv.ProposerValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], options.SSVShare.BeaconMetadata.Index, options.SSVShare.SharePubKey)
proposedValueCheck := genesisspecssv.ProposerValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], genesisphase0.ValidatorIndex(options.SSVShare.BeaconMetadata.Index), options.SSVShare.SharePubKey)
qbftCtrl := buildController(genesisspectypes.BNRoleProposer, proposedValueCheck)
runners[role] = genesisrunner.NewProposerRunner(genesisBeaconNetwork, &options.SSVShare.Share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, proposedValueCheck, 0, options.Operator.OperatorID)
runners[role] = genesisrunner.NewProposerRunner(genesisBeaconNetwork, share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, proposedValueCheck, 0)

Check failure on line 1398 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewProposerRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1398 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewProposerRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1398 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewProposerRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
runners[role].(*genesisrunner.ProposerRunner).ProducesBlindedBlocks = options.BuilderProposals // apply blinded block flag
case genesisspectypes.BNRoleAggregator:
aggregatorValueCheckF := genesisspecssv.AggregatorValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], options.SSVShare.BeaconMetadata.Index)
aggregatorValueCheckF := genesisspecssv.AggregatorValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], genesisphase0.ValidatorIndex(options.SSVShare.BeaconMetadata.Index))
qbftCtrl := buildController(genesisspectypes.BNRoleAggregator, aggregatorValueCheckF)
runners[role] = genesisrunner.NewAggregatorRunner(genesisBeaconNetwork, &options.SSVShare.Share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, aggregatorValueCheckF, 0, options.Operator.OperatorID)
runners[role] = genesisrunner.NewAggregatorRunner(genesisBeaconNetwork, share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, aggregatorValueCheckF, 0)

Check failure on line 1403 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewAggregatorRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1403 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewAggregatorRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1403 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewAggregatorRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
case genesisspectypes.BNRoleSyncCommittee:
syncCommitteeValueCheckF := genesisspecssv.SyncCommitteeValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.ValidatorPubKey[:], options.SSVShare.BeaconMetadata.Index)
syncCommitteeValueCheckF := genesisspecssv.SyncCommitteeValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.ValidatorPubKey[:], genesisphase0.ValidatorIndex(options.SSVShare.BeaconMetadata.Index))
qbftCtrl := buildController(genesisspectypes.BNRoleSyncCommittee, syncCommitteeValueCheckF)
runners[role] = genesisrunner.NewSyncCommitteeRunner(genesisBeaconNetwork, &options.SSVShare.Share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, syncCommitteeValueCheckF, 0, options.Operator.OperatorID)
runners[role] = genesisrunner.NewSyncCommitteeRunner(genesisBeaconNetwork, share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, syncCommitteeValueCheckF, 0)

Check failure on line 1407 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewSyncCommitteeRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1407 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewSyncCommitteeRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1407 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewSyncCommitteeRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
case genesisspectypes.BNRoleSyncCommitteeContribution:
syncCommitteeContributionValueCheckF := genesisspecssv.SyncCommitteeContributionValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], options.SSVShare.BeaconMetadata.Index)
syncCommitteeContributionValueCheckF := genesisspecssv.SyncCommitteeContributionValueCheckF(options.GenesisOptions.Signer, genesisBeaconNetwork, options.SSVShare.Share.ValidatorPubKey[:], genesisphase0.ValidatorIndex(options.SSVShare.BeaconMetadata.Index))
qbftCtrl := buildController(genesisspectypes.BNRoleSyncCommitteeContribution, syncCommitteeContributionValueCheckF)
runners[role] = genesisrunner.NewSyncCommitteeAggregatorRunner(genesisBeaconNetwork, &options.SSVShare.Share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, syncCommitteeContributionValueCheckF, 0, options.Operator.OperatorID)
runners[role] = genesisrunner.NewSyncCommitteeAggregatorRunner(genesisBeaconNetwork, share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, syncCommitteeContributionValueCheckF, 0)

Check failure on line 1411 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewSyncCommitteeAggregatorRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1411 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewSyncCommitteeAggregatorRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1411 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewSyncCommitteeAggregatorRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
case genesisspectypes.BNRoleValidatorRegistration:
qbftCtrl := buildController(genesisspectypes.BNRoleValidatorRegistration, nil)
runners[role] = genesisrunner.NewValidatorRegistrationRunner(genesisBeaconNetwork, &options.SSVShare.Share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, options.Operator.OperatorID)
runners[role] = genesisrunner.NewValidatorRegistrationRunner(genesisBeaconNetwork, share, qbftCtrl, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer)

Check failure on line 1414 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewValidatorRegistrationRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1414 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewValidatorRegistrationRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1414 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewValidatorRegistrationRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
case genesisspectypes.BNRoleVoluntaryExit:
runners[role] = genesisrunner.NewVoluntaryExitRunner(genesisBeaconNetwork, &options.SSVShare.Share, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer, options.Operator.OperatorID)
runners[role] = genesisrunner.NewVoluntaryExitRunner(genesisBeaconNetwork, share, options.Beacon, options.GenesisOptions.Network, options.GenesisOptions.Signer)

Check failure on line 1416 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewVoluntaryExitRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1416 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / test

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewVoluntaryExitRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)

Check failure on line 1416 in operator/validator/controller.go

View workflow job for this annotation

GitHub Actions / lint

cannot use options.Beacon (variable of type "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode) as "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode value in argument to genesisrunner.NewVoluntaryExitRunner: "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon".BeaconNode does not implement "github.com/ssvlabs/ssv-spec-pre-cc/ssv".BeaconNode (wrong type for method DomainData)
}
}
return runners
Expand Down

0 comments on commit 11aa8f0

Please sign in to comment.