@@ -4,9 +4,9 @@ use ctor::ctor;
4
4
use mockall:: predicate:: eq;
5
5
use ouroboros:: ledger:: { MockLedgerState , PoolSigma } ;
6
6
use ouroboros:: validator:: Validator ;
7
+ use ouroboros_crypto:: kes:: KesSecretKey ;
7
8
use ouroboros_praos:: consensus:: BlockValidator ;
8
9
use pallas_crypto:: hash:: Hash ;
9
- use pallas_crypto:: kes:: KesSecretKey ;
10
10
use pallas_crypto:: key:: ed25519:: SecretKey ;
11
11
use pallas_math:: math:: FixedDecimal ;
12
12
use pallas_traverse:: { ComputeHash , MultiEraHeader } ;
@@ -49,7 +49,7 @@ struct GeneratorContext {
49
49
#[ serde( rename = "ocertCounters" ) ]
50
50
operational_certificate_counters : HashMap < Hash < 28 > , u64 > ,
51
51
#[ serde( rename = "activeSlotCoeff" ) ]
52
- active_slot_coeff : f64
52
+ active_slot_coeff : f64 ,
53
53
}
54
54
55
55
impl GeneratorContext {
@@ -72,7 +72,8 @@ impl std::fmt::Debug for GeneratorContext {
72
72
. field (
73
73
"operational_certificate_counters" ,
74
74
& self . operational_certificate_counters ,
75
- ) . field ( "active_slot_coeff" , & self . active_slot_coeff )
75
+ )
76
+ . field ( "active_slot_coeff" , & self . active_slot_coeff )
76
77
. finish ( )
77
78
}
78
79
}
@@ -182,7 +183,11 @@ fn mock_ledger_state(context: &GeneratorContext) -> MockLedgerState {
182
183
let vrf_vkey_hash = context. vrf_vkey_hash ;
183
184
let praos_slots_per_kes_period = context. praos_slots_per_kes_period ;
184
185
let praos_max_kes_evolution = context. praos_max_kes_evolution ;
185
- let opcert_counter = context. operational_certificate_counters . get ( & pool_id) . copied ( ) . or ( None ) ;
186
+ let opcert_counter = context
187
+ . operational_certificate_counters
188
+ . get ( & pool_id)
189
+ . copied ( )
190
+ . or ( None ) ;
186
191
187
192
ledger_state
188
193
. expect_pool_id_to_sigma ( )
0 commit comments