Skip to content

Commit 05e0871

Browse files
committed
Cargo fmt why
1 parent f5b4e4a commit 05e0871

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

beacon_node/beacon_chain/src/block_verification.rs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ pub enum BlockError {
147147
///
148148
/// It's unclear if this block is valid, but it cannot be processed without already knowing
149149
/// its parent.
150-
ParentUnknown { parent_root: Hash256 },
150+
ParentUnknown {
151+
parent_root: Hash256,
152+
},
151153
/// The block slot is greater than the present slot.
152154
///
153155
/// ## Peer scoring
@@ -162,7 +164,10 @@ pub enum BlockError {
162164
/// ## Peer scoring
163165
///
164166
/// The peer has incompatible state transition logic and is faulty.
165-
StateRootMismatch { block: Hash256, local: Hash256 },
167+
StateRootMismatch {
168+
block: Hash256,
169+
local: Hash256,
170+
},
166171
/// The block was a genesis block, these blocks cannot be re-imported.
167172
GenesisBlock,
168173
/// The slot is finalized, no need to import.
@@ -181,7 +186,9 @@ pub enum BlockError {
181186
///
182187
/// It's unclear if this block is valid, but it conflicts with finality and shouldn't be
183188
/// imported.
184-
NotFinalizedDescendant { block_parent_root: Hash256 },
189+
NotFinalizedDescendant {
190+
block_parent_root: Hash256,
191+
},
185192
/// Block is already known and valid, no need to re-import.
186193
///
187194
/// ## Peer scoring
@@ -208,7 +215,10 @@ pub enum BlockError {
208215
/// ## Peer scoring
209216
///
210217
/// The block is invalid and the peer is faulty.
211-
IncorrectBlockProposer { block: u64, local_shuffling: u64 },
218+
IncorrectBlockProposer {
219+
block: u64,
220+
local_shuffling: u64,
221+
},
212222
/// The `block.proposal_index` is not known.
213223
///
214224
/// ## Peer scoring
@@ -226,7 +236,10 @@ pub enum BlockError {
226236
/// ## Peer scoring
227237
///
228238
/// The block is invalid and the peer is faulty.
229-
BlockIsNotLaterThanParent { block_slot: Slot, parent_slot: Slot },
239+
BlockIsNotLaterThanParent {
240+
block_slot: Slot,
241+
parent_slot: Slot,
242+
},
230243
/// At least one block in the chain segment did not have it's parent root set to the root of
231244
/// the prior block.
232245
///

0 commit comments

Comments
 (0)