This commit is contained in:
Thomas E Lackey 2023-07-20 23:24:47 -05:00
parent e5f0fd6a3a
commit 53e0a6bb8d

View File

@ -227,7 +227,7 @@ state_cids.state_leaf_key = $1
FROM eth.header_cids FROM eth.header_cids
WHERE block_hash = $2 WHERE block_hash = $2
LIMIT 1) LIMIT 1)
AND header_cids.canonical AND header_cids.canonical
AND state_cids.header_id = header_cids.block_hash AND state_cids.header_id = header_cids.block_hash
AND state_cids.block_number = header_cids.block_number AND state_cids.block_number = header_cids.block_number
ORDER BY state_cids.block_number DESC ORDER BY state_cids.block_number DESC