Skip to content

Commit

Permalink
Make totalDifficulty field optional, as spec has changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
nebasuke committed Nov 29, 2024
1 parent c6efe1d commit cc6023b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const baseBlockResponse = {
receiptsRoot: rpcHash,
miner: rpcAddress,
difficulty: rpcQuantity,
totalDifficulty: rpcQuantity,
// now optional since https://github.com/ethereum/execution-apis/pull/570
totalDifficulty: optional(rpcQuantity),
extraData: rpcData,
size: rpcQuantity,
gasLimit: rpcQuantity,
Expand Down

0 comments on commit cc6023b

Please sign in to comment.