2021-10-28 20:18:14 +00:00
|
|
|
## Difficulty calculation
|
|
|
|
|
|
|
|
This test shows how the `evm t8n` can be used to calculate the (ethash) difficulty, if none is provided by the caller,
|
2022-06-15 11:10:38 +00:00
|
|
|
this time on `GrayGlacier` (Eip 5133).
|
2021-10-28 20:18:14 +00:00
|
|
|
|
2022-06-15 11:10:38 +00:00
|
|
|
Calculating it (with an empty set of txs) using `GrayGlacier` rules (and no provided unclehash for the parent block):
|
2021-10-28 20:18:14 +00:00
|
|
|
```
|
2022-06-15 11:10:38 +00:00
|
|
|
[user@work evm]$ ./evm t8n --input.alloc=./testdata/19/alloc.json --input.txs=./testdata/19/txs.json --input.env=./testdata/19/env.json --output.result=stdout --state.fork=GrayGlacier
|
2021-10-28 20:18:14 +00:00
|
|
|
```
|