Skip to content

Commit e151b84

Browse files
committed
archive_hardfork_toolbox: rename is_in{_the->}_best_chain_*
1 parent 2fd0f5e commit e151b84

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/archive_hardfork_toolbox/logic.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ let is_in_best_chain ~postgres_uri ~fork_state_hash ~fork_height ~fork_slot () =
5757
let%bind (in_chain : bool) =
5858
query_db
5959
~f:
60-
(Sql.is_in_the_best_chain ~tip_hash:tip ~check_hash:fork_state_hash
60+
(Sql.is_in_best_chain ~tip_hash:tip ~check_hash:fork_state_hash
6161
~check_height:fork_height ~check_slot:(Int64.of_int fork_slot) )
6262
in
6363
let result =

src/app/archive_hardfork_toolbox/sql.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let latest_state_hash_query =
1212
let latest_state_hash (module Conn : CONNECTION) =
1313
Conn.find latest_state_hash_query ()
1414

15-
let is_in_the_best_chain_query =
15+
let is_in_best_chain_query =
1616
(Caqti_type.(t4 string string int int64) ->! Caqti_type.bool)
1717
{sql|
1818
WITH RECURSIVE chain AS (
@@ -47,9 +47,9 @@ let is_in_the_best_chain_query =
4747
) AS is_in_chain;
4848
|sql}
4949

50-
let is_in_the_best_chain (module Conn : CONNECTION) ~tip_hash ~check_hash
50+
let is_in_best_chain (module Conn : CONNECTION) ~tip_hash ~check_hash
5151
~check_height ~check_slot =
52-
Conn.find is_in_the_best_chain_query
52+
Conn.find is_in_best_chain_query
5353
(tip_hash, check_hash, check_height, check_slot)
5454

5555
let no_of_confirmations_query =

0 commit comments

Comments
 (0)