Skip to content

Commit 72869ce

Browse files
committed
feat(test): add tests for eth_getRequiredBlockState
1 parent bb9b5c8 commit 72869ce

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

specs/required_block_state.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The `RequiredBlockState` consists of account state values as Merkle proofs, cont
9292
and recent block hashes.
9393

9494
### Notation
95-
Code snippets appearing in `this style` are to be interpreted as Python 3 psuedocode. The
95+
Code snippets appearing in `this style` are to be interpreted as Python 3 pseudocode. The
9696
style of the document is intended to be readable by those familiar with the
9797
Ethereum consensus [https://github.com/ethereum/consensus-specs](https://github.com/ethereum/consensus-specs)
9898
and Simple Serialize (SSZ) ([https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md](https://github.com/ethereum/consensus-specs/blob/dev/ssz/simple-serialize.md))
@@ -190,7 +190,7 @@ Contract = List[uint8, MAX_BYTES_PER_CONTRACT]
190190

191191
An alias for a node in a merkle patricia proof.
192192

193-
Merkle Patricia Trie (MPT) proofs consist of a list of witness nodes that correspond to each trie node that consists of various data elements depending on the type of node (e.g. blank, branch, extension, leaf). When serialized, each witness node is represented as an RLP serialized list of the component elements.
193+
Merkle Patricia Trie proofs consist of a list of witness nodes that correspond to each trie node that consists of various data elements depending on the type of node (e.g. blank, branch, extension, leaf). When serialized, each witness node is represented as an RLP serialized list of the component elements.
194194

195195
```python
196196
TrieNode = List[uint8, MAX_BYTES_PER_NODE]
@@ -293,7 +293,7 @@ of stack in the subsequent step).
293293
### `verify_required_block_state`
294294

295295
Check block hashes are canonical such as a node or against an accumulator of canonical
296-
block hashes. Check merkle proofs in the requied block state.
296+
block hashes. Check merkle proofs in the required block state.
297297

298298
### `trace_block_locally`
299299

src/eth/state.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@
9292
required: true
9393
schema:
9494
$ref: '#/components/schemas/BlockNumberOrTag'
95-
- name: Hydrated transactions
96-
required: true
97-
schema:
98-
title: hydrated
99-
type: boolean
10095
result:
10196
name: Required block state
10297
description: The RequiredBlockState (SSZ- and snappy-encoded) which contains block prestate and proof data.

tests/eth_getRequiredBlockState/get-required-block-state-17190873.io

Lines changed: 2 additions & 0 deletions
Large diffs are not rendered by default.

tests/eth_getRequiredBlockState/get-required-block-state-n-17869626.io

Lines changed: 2 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
>> {"jsonrpc":"2.0","id":1,"method":"eth_getRequiredBlockState","params":["0x5f5e100"]}
2+
<< {"jsonrpc":"2.0","id":1,"result":null}

wordlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ bodiesbyhashv
66
bytecode
77
configurationv
88
crypto
9+
dev
910
eip
1011
endian
1112
enum
1213
eth
1314
ethereum
15+
EVM
1416
interop
1517
json
1618
mempool
@@ -33,6 +35,7 @@ uint
3335
updatedv
3436
url
3537
validator
38+
verkle
3639
wei
3740
yaml
3841
yParity

0 commit comments

Comments
 (0)