Skip to content

Commit

Permalink
AN-4264/OP-state-hash-tx-dupes (#223)
Browse files Browse the repository at this point in the history
* add de-dup qualify to state hash

* update qualify statement
  • Loading branch information
mattromano authored Dec 20, 2023
1 parent 3b7cd20 commit b1f59ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/silver/ethereum/silver__state_hashes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@ FROM
blocks
INNER JOIN base
ON block_number BETWEEN state_min_block
AND state_max_block
AND state_max_block QUALIFY(ROW_NUMBER() over(PARTITION BY block_number
ORDER BY
state_block_timestamp DESC)) = 1

0 comments on commit b1f59ab

Please sign in to comment.