From 26cec9d9c7a6cc5e8d9f308964030f9c87120fcb Mon Sep 17 00:00:00 2001 From: kasey <489222+kasey@users.noreply.github.com> Date: Thu, 14 Aug 2025 17:45:47 -0500 Subject: [PATCH] omit NetworkScheduleEntry fields that are not part of BlobScheduleEntry (#15557) Co-authored-by: Kasey Kirkham --- changelog/kasey_omit-non-blob-fields.md | 2 ++ config/params/config.go | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 changelog/kasey_omit-non-blob-fields.md diff --git a/changelog/kasey_omit-non-blob-fields.md b/changelog/kasey_omit-non-blob-fields.md new file mode 100644 index 0000000000..2c04b22de9 --- /dev/null +++ b/changelog/kasey_omit-non-blob-fields.md @@ -0,0 +1,2 @@ +### Ignored +- omits non-standard blob schedule entry struct fields from marshaling. diff --git a/config/params/config.go b/config/params/config.go index 49f821b540..a52f9bca98 100644 --- a/config/params/config.go +++ b/config/params/config.go @@ -348,13 +348,13 @@ func (b *BeaconChainConfig) ExecutionRequestLimits() enginev1.ExecutionRequestLi } type NetworkScheduleEntry struct { - ForkVersion [fieldparams.VersionLength]byte - ForkDigest [4]byte - MaxBlobsPerBlock uint64 `yaml:"MAX_BLOBS_PER_BLOCK" json:"MAX_BLOBS_PER_BLOCK"` - Epoch primitives.Epoch `yaml:"EPOCH" json:"EPOCH"` - BPOEpoch primitives.Epoch - VersionEnum int - isFork bool + ForkVersion [fieldparams.VersionLength]byte `yaml:"-" json:"-"` + ForkDigest [4]byte `yaml:"-" json:"-"` + MaxBlobsPerBlock uint64 `yaml:"MAX_BLOBS_PER_BLOCK" json:"MAX_BLOBS_PER_BLOCK"` + Epoch primitives.Epoch `yaml:"EPOCH" json:"EPOCH"` + BPOEpoch primitives.Epoch `yaml:"-" json:"-"` + VersionEnum int `yaml:"-" json:"-"` + isFork bool `yaml:"-" json:"-"` } func (e NetworkScheduleEntry) LogFields() log.Fields {