@@ -283,21 +283,21 @@ module Ledger_inner = struct
283283 and type token_id_set := Token_id.Set. t
284284 and type account_id := Account_id. t
285285 and type account_id_set := Account_id.Set. t
286- and type converted_account := Account.Unstable . t
286+ and type converted_account := Account.Hardfork . t
287287 and type primary_ledger = Db. t
288- and type converting_ledger = Unstable_db . t =
288+ and type converting_ledger = Hardfork_db . t =
289289 Converting_merkle_tree. With_database
290290 (struct
291- type converted_account = Account.Unstable .t
291+ type converted_account = Account.Hardfork .t
292292
293- let convert = Account.Unstable . of_stable
293+ let convert = Account.Hardfork . of_stable
294294
295- let converted_equal = Account.Unstable . equal
295+ let converted_equal = Account.Hardfork . equal
296296
297297 include Inputs
298298 end )
299299 (Db )
300- (Unstable_db )
300+ (Hardfork_db )
301301
302302 let of_any_ledger ledger =
303303 let mask = Mask. create ~depth: (Any_ledger.M. depth ledger) () in
@@ -334,7 +334,7 @@ module Ledger_inner = struct
334334 , Converting_ledger. converting_ledger converting_ledger )
335335
336336 module Root = struct
337- include Root. Make (Any_ledger ) (Db ) (Unstable_db ) (Converting_ledger )
337+ include Root. Make (Any_ledger ) (Db ) (Hardfork_db ) (Converting_ledger )
338338
339339 let as_masked t = as_unmasked t |> of_any_ledger
340340 end
@@ -909,7 +909,7 @@ let%test_unit "user_command application on converting ledger" =
909909 L. with_converting_ledger_exn ~logger ~depth ~f: (fun (l , cl ) ->
910910 Init_ledger. init (module L ) init_ledger l ;
911911 let init_merkle_root = L. merkle_root l in
912- let init_cl_merkle_root = Unstable_db . merkle_root cl in
912+ let init_cl_merkle_root = Hardfork_db . merkle_root cl in
913913 let () =
914914 iter_err cmds
915915 ~f:
@@ -923,18 +923,15 @@ let%test_unit "user_command application on converting ledger" =
923923 assert (
924924 not
925925 (Ledger_hash. equal init_cl_merkle_root
926- (Unstable_db . merkle_root cl) ) ) ;
927- (* Assert that the converted ledger has the same accounts as the first one, up to the new field *)
926+ (Hardfork_db . merkle_root cl) ) ) ;
927+ (* Assert that the converted ledger has the same accounts as the first one, up to conversion *)
928928 L. iteri l ~f: (fun index account ->
929- let account_converted = Unstable_db . get_at_index_exn cl index in
929+ let account_converted = Hardfork_db . get_at_index_exn cl index in
930930 assert (
931- Mina_base.Account.Key. (
932- equal account.public_key account_converted.public_key) ) ;
933- assert (
934- Mina_base.Account.Nonce. (
935- equal account_converted.nonce account_converted.unstable_field) ) ) ;
931+ Mina_base.Account.Hardfork. (
932+ equal (of_stable account) account_converted) ) ) ;
936933 (* Assert that the converted ledger doesn't have anything "extra" compared to the primary ledger *)
937- Unstable_db . iteri cl ~f: (fun index account_converted ->
934+ Hardfork_db . iteri cl ~f: (fun index account_converted ->
938935 let account = L. get_at_index_exn l index in
939936 assert (
940937 Mina_base.Account.Key. (
0 commit comments