We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccf1f60 commit e40b9a6Copy full SHA for e40b9a6
eth1_api/src/eth1_block.rs
@@ -26,10 +26,6 @@ enum Error {
26
MissingNumber {
27
block: Block<ExecutionTransactionHash>,
28
},
29
- #[error("RPC returned block without total difficulty: {block:?}")]
30
- MissingTotalDifficulty {
31
- block: Block<ExecutionTransactionHash>,
32
- },
33
}
34
35
#[derive(Default, Debug, Ssz)]
@@ -69,7 +65,7 @@ impl TryFrom<Block<ExecutionTransactionHash>> for Eth1Block {
69
65
70
66
let total_difficulty = match total_difficulty {
71
67
Some(total_difficulty) => total_difficulty.into(),
72
- None => bail!(Error::MissingTotalDifficulty { block }),
68
+ None => Difficulty::ZERO,
73
};
74
75
Ok(Self {
0 commit comments