Skip to content

Commit 64a8007

Browse files
authored
caps/eth.md: add basefee-per-gas in block header definition (#209)
1 parent 6b0abc3 commit 64a8007

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

caps/eth.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ Ethereum blocks are encoded as follows:
188188
time: P,
189189
extradata: B,
190190
mix-digest: B_32,
191-
block-nonce: B_8
191+
block-nonce: B_8,
192+
basefee-per-gas: P,
192193
]
193194

194195
In certain protocol messages, the transaction and ommer lists are relayed together as a
@@ -206,7 +207,11 @@ headers are processed in sequence during chain synchronization, the following ru
206207
- When extending the locally-stored chain, implementations must also verify that the
207208
values of `difficulty`, `gas-limit` and `time` are within the bounds of protocol rules
208209
given in the [Yellow Paper].
209-
- The `gas-used` field of a block header must be less than or equal to the `gas-limit`.
210+
- The `gas-used` header field must be less than or equal to the `gas-limit`.
211+
- The `basefee-per-gas` header field must be present for blocks after the [London hard
212+
fork]. Note that `basefee-per-gas` must be absent for earlier blocks. This rule was
213+
added implicity by [EIP-1559], which added the field into the definition of the Ethereum
214+
block hash.
210215

211216
For complete blocks, we distinguish between the validity of the block's EVM state
212217
transition, and the (weaker) 'data validity' of the block. The definition of state
@@ -545,10 +550,12 @@ Version numbers below 60 were used during the Ethereum PoC development phase.
545550
[RLPx]: ../rlpx.md
546551
[Rinkeby]: https://rinkeby.io
547552
[EIP-155]: https://eips.ethereum.org/EIPS/eip-155
553+
[EIP-1559]: https://eips.ethereum.org/EIPS/eip-1559
548554
[EIP-2124]: https://eips.ethereum.org/EIPS/eip-2124
549555
[EIP-2364]: https://eips.ethereum.org/EIPS/eip-2364
550556
[EIP-2464]: https://eips.ethereum.org/EIPS/eip-2464
551557
[EIP-2481]: https://eips.ethereum.org/EIPS/eip-2481
552558
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718
553559
[EIP-2976]: https://eips.ethereum.org/EIPS/eip-2976
560+
[London hard fork]: https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/london.md
554561
[Yellow Paper]: https://ethereum.github.io/yellowpaper/paper.pdf

0 commit comments

Comments
 (0)