From 3b0393968c405d9f4ff46e410e0d7e983ac73f75 Mon Sep 17 00:00:00 2001 From: Eason Date: Thu, 8 Dec 2022 13:48:35 +0800 Subject: [PATCH] refactor: total difficulty always be zero --- core/api/src/jsonrpc/web3_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api/src/jsonrpc/web3_types.rs b/core/api/src/jsonrpc/web3_types.rs index 10254eab3..9bf6036d7 100644 --- a/core/api/src/jsonrpc/web3_types.rs +++ b/core/api/src/jsonrpc/web3_types.rs @@ -289,7 +289,7 @@ impl From 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),