@@ -147,7 +147,9 @@ pub enum BlockError {
147
147
///
148
148
/// It's unclear if this block is valid, but it cannot be processed without already knowing
149
149
/// its parent.
150
- ParentUnknown { parent_root : Hash256 } ,
150
+ ParentUnknown {
151
+ parent_root : Hash256 ,
152
+ } ,
151
153
/// The block slot is greater than the present slot.
152
154
///
153
155
/// ## Peer scoring
@@ -162,7 +164,10 @@ pub enum BlockError {
162
164
/// ## Peer scoring
163
165
///
164
166
/// 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
+ } ,
166
171
/// The block was a genesis block, these blocks cannot be re-imported.
167
172
GenesisBlock ,
168
173
/// The slot is finalized, no need to import.
@@ -181,7 +186,9 @@ pub enum BlockError {
181
186
///
182
187
/// It's unclear if this block is valid, but it conflicts with finality and shouldn't be
183
188
/// imported.
184
- NotFinalizedDescendant { block_parent_root : Hash256 } ,
189
+ NotFinalizedDescendant {
190
+ block_parent_root : Hash256 ,
191
+ } ,
185
192
/// Block is already known and valid, no need to re-import.
186
193
///
187
194
/// ## Peer scoring
@@ -208,7 +215,10 @@ pub enum BlockError {
208
215
/// ## Peer scoring
209
216
///
210
217
/// 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
+ } ,
212
222
/// The `block.proposal_index` is not known.
213
223
///
214
224
/// ## Peer scoring
@@ -226,7 +236,10 @@ pub enum BlockError {
226
236
/// ## Peer scoring
227
237
///
228
238
/// 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
+ } ,
230
243
/// At least one block in the chain segment did not have it's parent root set to the root of
231
244
/// the prior block.
232
245
///
0 commit comments