Skip to content

Commit

Permalink
Fixup self_merkle_path
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 authored and georgeee committed Nov 27, 2023
1 parent 3db9fd6 commit 5085720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/merkle_mask/masking_merkle_tree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ module Make (Inputs : Inputs_intf.S) = struct
| Error _ ->
(* Caught by [try_with] above. *) assert false
in
Direction.map sibling_dir ~left:(`Left hash) ~right:(`Right hash)
Direction.map sibling_dir ~left:(`Right hash) ~right:(`Left hash)
:: self_merkle_path parent_address
in
self_merkle_path address )
Expand Down
3 changes: 1 addition & 2 deletions src/lib/merkle_mask/masking_merkle_tree_intf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ module type S = sig
(** called when parent sets an account; update local state *)
val parent_set_notify : t -> account -> unit

val copy : t -> t

(* makes new mask instance with copied tables, re-use parent *)
val copy : t -> t

(** already have module For_testing from include above *)
module For_testing : sig
Expand Down

0 comments on commit 5085720

Please sign in to comment.