diff --git a/README.md b/README.md index a6395a3ba..b179a4eed 100644 --- a/README.md +++ b/README.md @@ -374,7 +374,7 @@ beacon node. | `--suggested-fee-recipient` | Execution address for block rewards, `0x`-prefixed. Optional, but without it the beacon node picks an address that is not yours | | `--graffiti` | Text for proposed blocks, at most 32 bytes | | `--graffiti-file` | Per-validator graffiti in Lighthouse's `--graffiti-file` format, read again before every proposal. Conflicts with `--graffiti`, as in Lighthouse | -| `--gas-limit` | The gas limit validators target. From gloas the beacon node builds this client's own payloads toward it. Without it, the gas limit the network's `GAS_LIMIT_SCHEDULE` names for the proposal's epoch (Sepolia's and Platåberget's name `200000000`), else `60000000` | +| `--gas-limit` | The gas limit validators target. From gloas the beacon node builds this client's own payloads toward it. Without it, the gas limit the network's `GAS_LIMIT_SCHEDULE` names for the proposal's epoch (Sepolia's, Hoodi's and Platåberget's name `200000000`), else `60000000` | | `--builder-proposals` | Propose builder blocks before gloas: register each validator with the beacon node's builder (`--builder` on an ethlambda node) and sign a blinded block when the builder's bid wins. Off by default. From gloas, with or without it, builders' p2p bids compete with the local payload (`--builder-boost-factor`, default `100`; `--builder-min-bid`, default `0`), and a block built on the winning bid is signed | | `--self-build-only` | Never sign a block built on a builder's payload: from gloas each block request asks for no bid, and a block built on one anyway is refused. A slot whose local payload cannot be built is missed. Off by default | | `--enable-keymanager` | Serve the keymanager API on `--keymanager-port` (default `5062`). Off by default, since it mutates key material | diff --git a/bin/ethlambda/assets/hoodi/config.yaml b/bin/ethlambda/assets/hoodi/config.yaml index 311ac8191..d15db761f 100644 --- a/bin/ethlambda/assets/hoodi/config.yaml +++ b/bin/ethlambda/assets/hoodi/config.yaml @@ -205,6 +205,8 @@ MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 4096 # Gloas # 2**7 (= 128) payloads MAX_REQUEST_PAYLOADS: 128 +# 2**12 (= 4,096) gas +MIN_TRANSACTION_GAS: 4096 # Blob Scheduling @@ -215,3 +217,10 @@ BLOB_SCHEDULE: MAX_BLOBS_PER_BLOCK: 15 - EPOCH: 54016 MAX_BLOBS_PER_BLOCK: 21 + +# Gas limit scheduling +# --------------------------------------------------------------- + +GAS_LIMIT_SCHEDULE: + - EPOCH: 143616 + GAS_LIMIT: 200000000 diff --git a/bin/ethlambda/src/network/built_in.rs b/bin/ethlambda/src/network/built_in.rs index 5e9dcad23..94bb77370 100644 --- a/bin/ethlambda/src/network/built_in.rs +++ b/bin/ethlambda/src/network/built_in.rs @@ -259,6 +259,8 @@ mod tests { assert_eq!(hoodi.fork_at_epoch(0), ForkName::Deneb); assert_eq!(hoodi.fulu_fork_version, [0x70, 0x00, 0x09, 0x10]); assert_eq!(hoodi.fulu_fork_epoch, 50_688); + assert_eq!(hoodi.gloas_fork_version, [0x80, 0x00, 0x09, 0x10]); + assert_eq!(hoodi.gloas_fork_epoch, 143_616); assert_eq!(hoodi.deposit_chain_id, 560_048); let plataberget = BuiltInNetwork::Plataberget.resolve().unwrap().config; diff --git a/bin/ethlambda/src/network/config_file.rs b/bin/ethlambda/src/network/config_file.rs index 405b5d8f4..9cccda861 100644 --- a/bin/ethlambda/src/network/config_file.rs +++ b/bin/ethlambda/src/network/config_file.rs @@ -267,11 +267,12 @@ mod tests { #[test] fn the_gas_limit_schedule_is_claimed_rather_than_ignored() { - // The devnet's is empty, Sepolia's and Platåberget's are not; none is - // reported as ignored any more. + // The devnet's is empty, Sepolia's, Hoodi's and Platåberget's are not; + // none is reported as ignored any more. for text in [ DEVNET, include_str!("../../assets/sepolia/config.yaml"), + include_str!("../../assets/hoodi/config.yaml"), include_str!("../../assets/plataberget/config.yaml"), ] { let parsed = ConfigFile::parse(text).unwrap(); diff --git a/crates/common/types/src/beacon/config.rs b/crates/common/types/src/beacon/config.rs index a78cbc6d4..d5b061803 100644 --- a/crates/common/types/src/beacon/config.rs +++ b/crates/common/types/src/beacon/config.rs @@ -2045,6 +2045,22 @@ mod tests { Some(200_000_000) ); + // Hoodi's schedule starts with its gloas, at epoch 143616. + let hoodi: Config = serde_yaml_ng::from_str(include_str!( + "../../../../../bin/ethlambda/assets/hoodi/config.yaml" + )) + .unwrap(); + assert_eq!(hoodi.gloas_fork_epoch, 143_616); + assert_eq!( + hoodi.gas_limit_schedule.entries(), + [gas_limit_entry(143_616, 200_000_000)] + ); + assert_eq!(hoodi.gas_limit_schedule.gas_limit_at(143_615), None); + assert_eq!( + hoodi.gas_limit_schedule.gas_limit_at(143_616), + Some(200_000_000) + ); + let plataberget: Config = serde_yaml_ng::from_str(include_str!( "../../../../../bin/ethlambda/assets/plataberget/config.yaml" )) diff --git a/crates/storage/src/store.rs b/crates/storage/src/store.rs index 494cef0a4..210d624df 100644 --- a/crates/storage/src/store.rs +++ b/crates/storage/src/store.rs @@ -9567,8 +9567,8 @@ mod tests { assert!(missing.is_empty(), "{missing:?}"); assert_eq!(filled.gas_limit_schedule, scheduled.gas_limit_schedule); - // An empty schedule (mainnet's, Hoodi's) is written as a row too, so - // every later resume finds it rather than adding it again. + // An empty schedule (mainnet's) is written as a row too, so every + // later resume finds it rather than adding it again. let unscheduled = Store::from_db_state(beacon_directory(Config::mainnet())) .unwrap() .unwrap(); diff --git a/docs/cli.md b/docs/cli.md index 5f776abd2..e623f474a 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -510,7 +510,7 @@ slot's end, so a node serving a wrong one cannot park a duty past its slot. | `--metrics-port` | `5064` | Prometheus metrics port | | `--keymanager-port` | `5062` | Keymanager API port. Only bound with `--enable-keymanager` | | `--suggested-fee-recipient` | none | Execution address to receive block rewards, `0x`-prefixed, for every validator the keymanager API gives no address of its own. Optional, and startup warns when it is absent: without it the beacon node pays its own fallback address (on ethlambda, `beacon --fallback-fee-recipient`), which is the zero address unless its operator set one, and may not be yours. The addresses reach each beacon node as one `prepare_beacon_proposer` request every slot, listing each validator that has an index on chain and an address, as Lighthouse's validator client sends it. The zero address is accepted, as every other client accepts it, but reported at error at startup: it burns the rewards, and builder registrations and proposer preferences sign it for the builder to pay | -| `--gas-limit` | the network's schedule, else `60000000` | The gas limit every validator targets, unless the keymanager API gives it its own. Before gloas it goes into builder registrations (with `--builder-proposals`). From gloas it goes into the proposer preferences, which are published for every proposal, and the beacon node builds this client's own payloads toward it as well. Without it, each validator targets the gas limit the network's `GAS_LIMIT_SCHEDULE` (served on the beacon node's `/eth/v1/config/spec`) names for the proposal's epoch, and `60000000` for an epoch the schedule names none or a node that does not serve it, as Lighthouse does; Sepolia's and Platåberget's schedules name `200000000`, so neither needs the flag. Must be positive | +| `--gas-limit` | the network's schedule, else `60000000` | The gas limit every validator targets, unless the keymanager API gives it its own. Before gloas it goes into builder registrations (with `--builder-proposals`). From gloas it goes into the proposer preferences, which are published for every proposal, and the beacon node builds this client's own payloads toward it as well. Without it, each validator targets the gas limit the network's `GAS_LIMIT_SCHEDULE` (served on the beacon node's `/eth/v1/config/spec`) names for the proposal's epoch, and `60000000` for an epoch the schedule names none or a node that does not serve it, as Lighthouse does; Sepolia's, Hoodi's and Platåberget's schedules name `200000000`, so none of them needs the flag. Must be positive | | `--graffiti` | none | Text for the graffiti field of proposed blocks, for every validator the keymanager API gives no graffiti of its own. Conflicts with `--graffiti-file`, as in Lighthouse. At most 32 bytes as UTF-8, right-padded with zeros. Refused rather than truncated if longer. Without it a block request carries no graffiti and the beacon node applies its own default; an ethlambda beacon node appends both clients' versions to whatever the graffiti is (see [`rpc.md`](rpc.md#validator-endpoints)). See [Graffiti](#graffiti) | | `--graffiti-file` | none | A file of per-validator graffiti in Lighthouse's format (`default: `, `<0xpubkey>: `), read again before every proposal and ahead of the keymanager API's per-validator graffiti. Conflicts with `--graffiti`, as in Lighthouse. A file that does not parse refuses startup; once running, a bad read logs a warning and the validator's own graffiti applies, else none. See [Graffiti](#graffiti) | | `--enable-keymanager` | off | Serve the keymanager API: keystores, remote keys, plus each validator's own fee recipient, graffiti and gas limit. Off by default because it mutates key material |