@@ -436,37 +436,30 @@ where
436
436
FinalizeOutcome :: Result ( result) => {
437
437
let entry_point2 = transition. make_entry_point2 ( result) ;
438
438
let round = entry_point2. make_round ( rng, & shared_randomness, & id) ?;
439
-
440
- Ok ( FinalizeOutcome :: AnotherRound ( BoxedRound :: new_dynamic ( ChainedRound :: <
441
- Id ,
442
- T ,
443
- > {
439
+ let chained_round = ChainedRound :: < Id , T > {
444
440
state : ChainState :: Protocol2 ( round) ,
445
- } ) ) )
441
+ } ;
442
+ Ok ( FinalizeOutcome :: AnotherRound ( BoxedRound :: new_dynamic ( chained_round) ) )
446
443
}
447
444
FinalizeOutcome :: AnotherRound ( round) => {
448
- Ok ( FinalizeOutcome :: AnotherRound ( BoxedRound :: new_dynamic ( ChainedRound :: <
449
- Id ,
450
- T ,
451
- > {
445
+ let chained_round = ChainedRound :: < Id , T > {
452
446
state : ChainState :: Protocol1 {
453
447
id,
454
448
shared_randomness,
455
449
round,
456
450
transition,
457
451
} ,
458
- } ) ) )
452
+ } ;
453
+ Ok ( FinalizeOutcome :: AnotherRound ( BoxedRound :: new_dynamic ( chained_round) ) )
459
454
}
460
455
} ,
461
456
ChainState :: Protocol2 ( round) => match round. into_boxed ( ) . finalize ( rng, payloads, artifacts) ? {
462
457
FinalizeOutcome :: Result ( result) => Ok ( FinalizeOutcome :: Result ( result) ) ,
463
458
FinalizeOutcome :: AnotherRound ( round) => {
464
- Ok ( FinalizeOutcome :: AnotherRound ( BoxedRound :: new_dynamic ( ChainedRound :: <
465
- Id ,
466
- T ,
467
- > {
459
+ let chained_round = ChainedRound :: < Id , T > {
468
460
state : ChainState :: Protocol2 ( round) ,
469
- } ) ) )
461
+ } ;
462
+ Ok ( FinalizeOutcome :: AnotherRound ( BoxedRound :: new_dynamic ( chained_round) ) )
470
463
}
471
464
} ,
472
465
}
0 commit comments