Skip to content

Commit d8dce70

Browse files
james-prysmfernantho
authored andcommitted
blob_sidecar_subnet configs missing from /eth/v1/config/spec endpoint (OffchainLabs#15016)
* fixing config display * fixing test
1 parent 1df9868 commit d8dce70

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

beacon-chain/rpc/eth/config/handlers_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ func TestGetSpec(t *testing.T) {
160160
config.MaxTransactionsPerPayload = 99
161161
config.FieldElementsPerBlob = 100
162162
config.KzgCommitmentInclusionProofDepth = 101
163+
config.BlobsidecarSubnetCount = 102
164+
config.BlobsidecarSubnetCountElectra = 103
163165

164166
var dbp [4]byte
165167
copy(dbp[:], []byte{'0', '0', '0', '1'})
@@ -198,7 +200,7 @@ func TestGetSpec(t *testing.T) {
198200
data, ok := resp.Data.(map[string]interface{})
199201
require.Equal(t, true, ok)
200202

201-
assert.Equal(t, 168, len(data))
203+
assert.Equal(t, 170, len(data))
202204
for k, v := range data {
203205
t.Run(k, func(t *testing.T) {
204206
switch k {
@@ -559,6 +561,10 @@ func TestGetSpec(t *testing.T) {
559561
assert.Equal(t, "100", v)
560562
case "KZG_COMMITMENT_INCLUSION_PROOF_DEPTH":
561563
assert.Equal(t, "101", v)
564+
case "BLOB_SIDECAR_SUBNET_COUNT":
565+
assert.Equal(t, "102", v)
566+
case "BLOB_SIDECAR_SUBNET_COUNT_ELECTRA":
567+
assert.Equal(t, "103", v)
562568
default:
563569
t.Errorf("Incorrect key: %s", k)
564570
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Fixed
2+
3+
- fixed /eth/v1/config/spec displays BLOB_SIDECAR_SUBNET_COUNT,BLOB_SIDECAR_SUBNET_COUNT_ELECTRA

config/params/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ type BeaconChainConfig struct {
235235
ExecutionEngineTimeoutValue uint64 // ExecutionEngineTimeoutValue defines the seconds to wait before timing out engine endpoints with execution payload execution semantics (newPayload, forkchoiceUpdated).
236236

237237
// Subnet value
238-
BlobsidecarSubnetCount uint64 `yaml:"BLOB_SIDECAR_SUBNET_COUNT"` // BlobsidecarSubnetCount is the number of blobsidecar subnets used in the gossipsub protocol.
239-
BlobsidecarSubnetCountElectra uint64 `yaml:"BLOB_SIDECAR_SUBNET_COUNT_ELECTRA"` // BlobsidecarSubnetCountElectra is the number of blobsidecar subnets used in the gossipsub protocol post Electra hard fork.
238+
BlobsidecarSubnetCount uint64 `yaml:"BLOB_SIDECAR_SUBNET_COUNT" spec:"true"` // BlobsidecarSubnetCount is the number of blobsidecar subnets used in the gossipsub protocol.
239+
BlobsidecarSubnetCountElectra uint64 `yaml:"BLOB_SIDECAR_SUBNET_COUNT_ELECTRA" spec:"true"` // BlobsidecarSubnetCountElectra is the number of blobsidecar subnets used in the gossipsub protocol post Electra hard fork.
240240

241241
// Values introduced in Deneb hard fork
242242
MaxPerEpochActivationChurnLimit uint64 `yaml:"MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT" spec:"true"` // MaxPerEpochActivationChurnLimit is the maximum amount of churn allotted for validator activation.

0 commit comments

Comments
 (0)