Skip to content

Commit 1ec5642

Browse files
committed
Expose get_root_hash from persistent frontier
1 parent 6e8f3c0 commit 1ec5642

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/transition_frontier/persistent_frontier/persistent_frontier.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ module Instance = struct
169169

170170
let check_database t = Database.check t.db
171171

172+
let get_root_hash t =
173+
Database.get_root_hash t.db |> Result.map_error ~f:Database.Error.message
174+
172175
let get_root_transition ~signature_kind ~proof_cache_db t =
173176
let open Result.Let_syntax in
174177
Database.get_root_hash t.db

0 commit comments

Comments
 (0)