Skip to content

Commit

Permalink
aider: Moved the ChunkSize field to the BeaconValidatorsConfig struct.
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
samcm committed Jun 11, 2024
1 parent b8da374 commit c79d03d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/cannon/deriver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c79d03d

Please sign in to comment.