Skip to content

Commit

Permalink
refactor(API): total difficulty in header always be zero (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaoImin authored Dec 8, 2022
1 parent 42763fc commit 3dfcf10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api/src/jsonrpc/web3_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl From<Block> for Web3Block {
receipts_root: b.header.receipts_root,
miner: b.header.proposer,
difficulty: b.header.difficulty,
total_difficulty: None,
total_difficulty: Some(U256::zero()),
seal_fields: vec![],
base_fee_per_gas: b.header.base_fee_per_gas,
extra_data: Hex::encode(&b.header.extra_data),
Expand Down

0 comments on commit 3dfcf10

Please sign in to comment.