Move `BLOB_SIDECAR_SUBNET_COUNT` to networking config
This commit is contained in:
parent
512d2ca516
commit
210c4827bc
|
@ -132,3 +132,5 @@ MAX_REQUEST_BLOCKS_DENEB: 128
|
||||||
MAX_REQUEST_BLOB_SIDECARS: 768
|
MAX_REQUEST_BLOB_SIDECARS: 768
|
||||||
# `2**12` (= 4096 epochs, ~18 days)
|
# `2**12` (= 4096 epochs, ~18 days)
|
||||||
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
|
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
|
||||||
|
# `6`
|
||||||
|
BLOB_SIDECAR_SUBNET_COUNT: 6
|
||||||
|
|
|
@ -133,3 +133,5 @@ MAX_REQUEST_BLOCKS_DENEB: 128
|
||||||
MAX_REQUEST_BLOB_SIDECARS: 768
|
MAX_REQUEST_BLOB_SIDECARS: 768
|
||||||
# `2**12` (= 4096 epochs, ~18 days)
|
# `2**12` (= 4096 epochs, ~18 days)
|
||||||
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
|
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
|
||||||
|
# `6`
|
||||||
|
BLOB_SIDECAR_SUBNET_COUNT: 6
|
||||||
|
|
|
@ -40,11 +40,14 @@ The specification of these changes continues in the same format as the network s
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
|
*[New in Deneb:EIP4844]*
|
||||||
|
|
||||||
| Name | Value | Description |
|
| Name | Value | Description |
|
||||||
|------------------------------------------|-----------------------------------|---------------------------------------------------------------------|
|
|------------------------------------------|-----------------------------------|---------------------------------------------------------------------|
|
||||||
| `MAX_REQUEST_BLOCKS_DENEB` | `2**7` (= 128) | Maximum number of blocks in a single request |
|
| `MAX_REQUEST_BLOCKS_DENEB` | `2**7` (= 128) | Maximum number of blocks in a single request |
|
||||||
| `MAX_REQUEST_BLOB_SIDECARS` | `MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK` | Maximum number of blob sidecars in a single request |
|
| `MAX_REQUEST_BLOB_SIDECARS` | `MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK` | Maximum number of blob sidecars in a single request |
|
||||||
| `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` | `2**12` (= 4096 epochs, ~18 days) | The minimum epoch range over which a node must serve blob sidecars |
|
| `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` | `2**12` (= 4096 epochs, ~18 days) | The minimum epoch range over which a node must serve blob sidecars |
|
||||||
|
| `BLOB_SIDECAR_SUBNET_COUNT` | `6` | The number of blob sidecar subnets used in the gossipsub protocol. |
|
||||||
|
|
||||||
### Containers
|
### Containers
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
- [Introduction](#introduction)
|
- [Introduction](#introduction)
|
||||||
- [Prerequisites](#prerequisites)
|
- [Prerequisites](#prerequisites)
|
||||||
- [Constants](#constants)
|
|
||||||
- [Misc](#misc)
|
|
||||||
- [Helpers](#helpers)
|
- [Helpers](#helpers)
|
||||||
- [`BlobsBundle`](#blobsbundle)
|
- [`BlobsBundle`](#blobsbundle)
|
||||||
- [Modified `GetPayloadResponse`](#modified-getpayloadresponse)
|
- [Modified `GetPayloadResponse`](#modified-getpayloadresponse)
|
||||||
|
@ -40,14 +38,6 @@ All behaviors and definitions defined in this document, and documents it extends
|
||||||
All terminology, constants, functions, and protocol mechanics defined in the updated [Beacon Chain doc of Deneb](./beacon-chain.md) are requisite for this document and used throughout.
|
All terminology, constants, functions, and protocol mechanics defined in the updated [Beacon Chain doc of Deneb](./beacon-chain.md) are requisite for this document and used throughout.
|
||||||
Please see related Beacon Chain doc before continuing and use them as a reference throughout.
|
Please see related Beacon Chain doc before continuing and use them as a reference throughout.
|
||||||
|
|
||||||
## Constants
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
| Name | Value | Unit |
|
|
||||||
| - | - | :-: |
|
|
||||||
| `BLOB_SIDECAR_SUBNET_COUNT` | `6` | *[New in Deneb:EIP4844]* The number of blob sidecar subnets used in the gossipsub protocol. |
|
|
||||||
|
|
||||||
## Helpers
|
## Helpers
|
||||||
|
|
||||||
### `BlobsBundle`
|
### `BlobsBundle`
|
||||||
|
|
|
@ -18,3 +18,5 @@ def test_length(spec):
|
||||||
def test_networking(spec):
|
def test_networking(spec):
|
||||||
assert spec.MAX_BLOBS_PER_BLOCK < spec.MAX_BLOB_COMMITMENTS_PER_BLOCK
|
assert spec.MAX_BLOBS_PER_BLOCK < spec.MAX_BLOB_COMMITMENTS_PER_BLOCK
|
||||||
assert spec.config.MAX_REQUEST_BLOB_SIDECARS == spec.config.MAX_REQUEST_BLOCKS_DENEB * spec.MAX_BLOBS_PER_BLOCK
|
assert spec.config.MAX_REQUEST_BLOB_SIDECARS == spec.config.MAX_REQUEST_BLOCKS_DENEB * spec.MAX_BLOBS_PER_BLOCK
|
||||||
|
# Start with the same size, but `BLOB_SIDECAR_SUBNET_COUNT` could potentially increase later.
|
||||||
|
assert spec.config.BLOB_SIDECAR_SUBNET_COUNT == spec.MAX_BLOBS_PER_BLOCK
|
||||||
|
|
Loading…
Reference in New Issue