@@ -113,8 +113,7 @@ impl<H, N> Precommit<H, N> {
113
113
114
114
/// A primary proposed block, this is a broadcast of the last round's estimate.
115
115
#[ derive( Clone , PartialEq , Eq ) ]
116
- #[ cfg_attr( any( feature = "std" , test) , derive(
117
- Debug ) ) ]
116
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
118
117
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
119
118
pub struct PrimaryPropose < H , N > {
120
119
/// The target block's hash.
@@ -130,8 +129,7 @@ impl<H, N> PrimaryPropose<H, N> {
130
129
}
131
130
132
131
#[ derive( Clone , PartialEq ) ]
133
- #[ cfg_attr( any( feature = "std" , test) , derive(
134
- Debug ) ) ]
132
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
135
133
pub enum Error {
136
134
NotDescendent ,
137
135
}
@@ -219,8 +217,7 @@ pub struct Equivocation<Id, V, S> {
219
217
220
218
/// A protocol message or vote.
221
219
#[ derive( Clone , PartialEq , Eq ) ]
222
- #[ cfg_attr( any( feature = "std" , test) , derive(
223
- Debug ) ) ]
220
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
224
221
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
225
222
pub enum Message < H , N > {
226
223
/// A prevote message.
@@ -247,8 +244,7 @@ impl<H, N: Copy> Message<H, N> {
247
244
248
245
/// A signed message.
249
246
#[ derive( Clone , PartialEq , Eq ) ]
250
- #[ cfg_attr( any( feature = "std" , test) , derive(
251
- Debug ) ) ]
247
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
252
248
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
253
249
pub struct SignedMessage < H , N , S , Id > {
254
250
/// The internal message which has been signed.
@@ -270,8 +266,7 @@ impl<H, N: Copy, S, Id> SignedMessage<H, N, S, Id> {
270
266
271
267
/// A commit message which is an aggregate of precommits.
272
268
#[ derive( Clone , PartialEq , Eq ) ]
273
- #[ cfg_attr( any( feature = "std" , test) , derive(
274
- Debug ) ) ]
269
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
275
270
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
276
271
pub struct Commit < H , N , S , Id > {
277
272
/// The target block's hash.
@@ -284,8 +279,7 @@ pub struct Commit<H, N, S, Id> {
284
279
285
280
/// A signed prevote message.
286
281
#[ derive( Clone , PartialEq , Eq ) ]
287
- #[ cfg_attr( any( feature = "std" , test) , derive(
288
- Debug ) ) ]
282
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
289
283
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
290
284
pub struct SignedPrevote < H , N , S , Id > {
291
285
/// The prevote message which has been signed.
@@ -298,8 +292,7 @@ pub struct SignedPrevote<H, N, S, Id> {
298
292
299
293
/// A signed precommit message.
300
294
#[ derive( Clone , PartialEq , Eq ) ]
301
- #[ cfg_attr( any( feature = "std" , test) , derive(
302
- Debug ) ) ]
295
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
303
296
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
304
297
pub struct SignedPrecommit < H , N , S , Id > {
305
298
/// The precommit message which has been signed.
@@ -312,8 +305,7 @@ pub struct SignedPrecommit<H, N, S, Id> {
312
305
313
306
/// A commit message with compact representation of authentication data.
314
307
#[ derive( Clone , PartialEq , Eq ) ]
315
- #[ cfg_attr( any( feature = "std" , test) , derive(
316
- Debug ) ) ]
308
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
317
309
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
318
310
pub struct CompactCommit < H , N , S , Id > {
319
311
/// The target block's hash.
@@ -332,8 +324,7 @@ pub struct CompactCommit<H, N, S, Id> {
332
324
/// This message contains a "base", which is a block all of the vote-targets are
333
325
/// a descendent of.
334
326
#[ derive( Clone , PartialEq , Eq ) ]
335
- #[ cfg_attr( any( feature = "std" , test) , derive(
336
- Debug ) ) ]
327
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
337
328
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
338
329
pub struct CatchUp < H , N , S , Id > {
339
330
/// Round number.
@@ -520,8 +511,7 @@ pub fn process_commit_validation_result<H, N>(
520
511
521
512
/// Historical votes seen in a round.
522
513
#[ derive( Default , Clone , PartialEq , Eq ) ]
523
- #[ cfg_attr( any( feature = "std" , test) , derive(
524
- Debug ) ) ]
514
+ #[ cfg_attr( any( feature = "std" , test) , derive( Debug ) ) ]
525
515
#[ cfg_attr( feature = "derive-codec" , derive( Encode , Decode ) ) ]
526
516
pub struct HistoricalVotes < H , N , S , Id > {
527
517
seen : Vec < SignedMessage < H , N , S , Id > > ,
0 commit comments