Commit f2b2006
authored
refactor(l1): make improvements to public functions used by ethrex_replay (#5416)
**Motivation**
<!-- Why does this pull request exist? What are its goals? -->
**Description**
<!-- A clear and concise general description of the changes this PR
introduces -->
- from_nodes doesn't decode the nodes anymore, this is useful because
when called multiple times with same set of nodes we were decoding them
more than once unnecessarily.
- `execution_witness_from_rpc_chain_config` now gets the initial state
root from the rpc_witness itself. This should ALWAYS be in the block
headers, otherwise it returns an error.
Related Replay PR: lambdaclass/ethrex-replay#501 parent 3fb2e90 commit f2b2006
File tree
2 files changed
+22
-10
lines changed- crates
- common/trie
- networking/rpc/debug
2 files changed
+22
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
| |||
0 commit comments