AN-4264/OP-state-hash-tx-dupes (#223)

* add de-dup qualify to state hash

* update qualify statement
This commit is contained in:
Matt Romano 2023-12-19 16:12:13 -08:00 committed by GitHub
parent 3b7cd20213
commit b1f59ab53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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