Skip to content

Commit

Permalink
fix issues after merging stage
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Oct 31, 2024
1 parent 295f728 commit 075100b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cli/operator/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ var StartNodeCmd = &cobra.Command{
cfg.SSVOptions.Network = networkConfig
cfg.SSVOptions.P2PNetwork = p2pNetwork
cfg.SSVOptions.ValidatorOptions.NetworkConfig = networkConfig
cfg.SSVOptions.ValidatorOptions.BeaconNetwork = networkConfig.Beacon.GetNetwork()
cfg.SSVOptions.ValidatorOptions.Context = cmd.Context()
cfg.SSVOptions.ValidatorOptions.DB = db
cfg.SSVOptions.ValidatorOptions.Network = p2pNetwork
Expand Down Expand Up @@ -365,7 +364,7 @@ var StartNodeCmd = &cobra.Command{
Shares: nodeStorage.Shares(),
},
&handlers.Exporter{
DomainType: networkConfig.AlanDomainType,
DomainType: networkConfig.DomainType,
QBFTStores: storageMap,
},
)
Expand Down
2 changes: 1 addition & 1 deletion operator/validator/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ type ControllerOptions struct {
MetadataUpdateInterval time.Duration `yaml:"MetadataUpdateInterval" env:"METADATA_UPDATE_INTERVAL" env-default:"12m" env-description:"Interval for updating metadata"`
HistorySyncBatchSize int `yaml:"HistorySyncBatchSize" env:"HISTORY_SYNC_BATCH_SIZE" env-default:"25" env-description:"Maximum number of messages to sync in a single batch"`
MinPeers int `yaml:"MinimumPeers" env:"MINIMUM_PEERS" env-default:"2" env-description:"The required minimum peers for sync"`
BeaconNetwork beaconprotocol.Network
Network P2PNetwork
Beacon beaconprotocol.BeaconNode
FullNode bool `yaml:"FullNode" env:"FULLNODE" env-default:"false" env-description:"Save decided history rather than just highest messages"`
Expand Down Expand Up @@ -233,6 +232,7 @@ func NewController(logger *zap.Logger, options ControllerOptions) Controller {
metrics = options.Metrics
}

beaconNetwork := options.NetworkConfig.Beacon
cacheTTL := beaconNetwork.SlotDurationSec() * time.Duration(beaconNetwork.SlotsPerEpoch()*2) // #nosec G115

ctrl := controller{
Expand Down
2 changes: 0 additions & 2 deletions protocol/v2/ssv/validator/non_committee_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
"strconv"
"strings"

"github.com/ssvlabs/ssv/protocol/v2/qbft/roundtimer"

"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/herumi/bls-eth-go-binary/bls"
"github.com/jellydator/ttlcache/v3"
Expand Down

0 comments on commit 075100b

Please sign in to comment.