Skip to content

Commit

Permalink
fix the order in the location list
Browse files Browse the repository at this point in the history
  • Loading branch information
deepthiskumar committed Dec 1, 2023
1 parent 717ff96 commit c86eced
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/mina_ledger/sparse_ledger.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ let of_ledger_subset_exn (oledger : Ledger.t) keys =
in
let loc = ref first_loc in
first_loc
:: List.init (num_new_accounts - 1) ~f:(fun _ ->
loc := next_location_exn !loc ;
!loc )
:: ( List.init (num_new_accounts - 1) ~f:(fun _ ->
loc := next_location_exn !loc ;
!loc )
|> List.rev )
in
let merkle_paths =
Ledger.merkle_path_batch oledger (empty_locations @ non_empty_locations)
Expand Down

0 comments on commit c86eced

Please sign in to comment.