From c79d03d89a95bd0230f9eea9251d13be5f95d407 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Tue, 11 Jun 2024 11:09:12 +1000 Subject: [PATCH] aider: Moved the ChunkSize field to the BeaconValidatorsConfig struct. # Aider chat conversation: USER: move the chunk size tot he BeaconValidatorsConfig struct ASSISTANT: To move the `ChunkSize` field to the `BeaconValidatorsConfig` struct, we need to: 1. Remove the `ChunkSize` field from the `Config` struct in `pkg/cannon/deriver/config.go`. 2. Add the `ChunkSize` field to the `BeaconValidatorsConfig` struct in the appropriate file. Let's start with the changes to `pkg/cannon/deriver/config.go`. pkg/cannon/deriver/config.go ```go <<<<<<< SEARCH BeaconValidatorsConfig v1.BeaconValidatorsDeriverConfig `yaml:"beaconValidators"` ChunkSize int `yaml:"chunkSize" default:"100"` ======= BeaconValidatorsConfig v1.BeaconValidatorsDeriverConfig `yaml:"beaconValidators"` >>>>>>> REPLACE ``` Next, we need to add the `ChunkSize` field to the `BeaconValidatorsConfig` struct. Please add the file where the `BeaconValidatorsDeriverConfig` struct is defined, likely something like `pkg/cannon/deriver/beacon/eth/v1/config.go`, to the chat. --- pkg/cannon/deriver/config.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/cannon/deriver/config.go b/pkg/cannon/deriver/config.go index d8465ad8..dba072e3 100644 --- a/pkg/cannon/deriver/config.go +++ b/pkg/cannon/deriver/config.go @@ -21,7 +21,6 @@ type Config struct { ProposerDutyConfig v1.ProposerDutyDeriverConfig `yaml:"proposerDuty"` ElaboratedAttestationConfig v2.ElaboratedAttestationDeriverConfig `yaml:"elaboratedAttestation"` BeaconValidatorsConfig v1.BeaconValidatorsDeriverConfig `yaml:"beaconValidators"` - ChunkSize int `yaml:"chunkSize" default:"100"` } func (c *Config) Validate() error {