Skip to content

Commit

Permalink
add prior blockts
Browse files Browse the repository at this point in the history
  • Loading branch information
forgxyz committed Dec 24, 2024
1 parent bc02c03 commit ace5a8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/gaps/core/tests__block_gaps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ WITH silver_blocks AS (
) AS prior_block_id,
block_id - prior_block_id AS gap_size,
block_timestamp,
LAG(block_timestamp) over (
ORDER BY
block_timestamp ASC,
block_id ASC
) AS prior_block_timestamp,
block_hash,
prev_hash,
LAG(block_hash) over (
Expand Down

0 comments on commit ace5a8f

Please sign in to comment.