Skip to content

Commit

Permalink
change between to inequalities in gap detector
Browse files Browse the repository at this point in the history
Alternatively, the left boundary could be excluded following the
convention from the other code. In that case the binary search would
have to be adapted too.
  • Loading branch information
fhenneke committed Jan 5, 2024
1 parent 31397b0 commit 6d98f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/gap_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

DB_COUNT_QUERY = (
"select count(*) as batches from settlements "
"where block_number between {{start}} and {{end}};"
"where block_number >= {{start}} and block_number <= {{end}};"
)
DB_HASH_QUERY = (
"select concat('0x', encode(tx_hash, 'hex')) as tx_hash from settlements "
"where block_number between {{start}} and {{end}};"
"where block_number >= {{start}} and block_number <= {{end}};"
)

DUNE_COUNT_QUERY_ID = 2481826
Expand Down

0 comments on commit 6d98f49

Please sign in to comment.