Skip to content

Commit 5d193b9

Browse files
committed
Fix loading of unmigrated epoch root in sync mode
1 parent 72bec04 commit 5d193b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/consensus/proof_of_stake.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ module Make_str (A : Wire_types.Concrete) = struct
461461
let create_epoch_ledger ~config ~context:(module Context : CONTEXT)
462462
~genesis_epoch_ledger =
463463
let open Context in
464-
if Mina_ledger.Ledger.Root.Config.exists_backing config then (
464+
if Mina_ledger.Ledger.Root.Config.exists_any_backing config then (
465465
[%log info]
466466
~metadata:
467467
[ ("config", Mina_ledger.Ledger.Root.Config.to_yojson config) ]

src/lib/mina_ledger/test/test_mina_ledger.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module Root_test = struct
115115
in
116116
L.Root.Config.move_backing_exn ~src:config ~dst:config_moved ;
117117
assert (
118-
(not (L.Root.Config.exists_backing config))
118+
(not (L.Root.Config.exists_any_backing config))
119119
&& L.Root.Config.exists_backing config_moved
120120
|| failwith "Config is not moved" ) ;
121121
let root_moved =

0 commit comments

Comments
 (0)