Check for canonical_header_hash (warning, slow performance)

This commit is contained in:
Thomas E Lackey 2023-06-15 15:48:13 -05:00
parent c153fe6249
commit 725d41be1e

View File

@ -133,6 +133,7 @@ const (
AND receipt_cids.header_id = transaction_cids.header_id
AND receipt_cids.block_number = transaction_cids.block_number
AND transaction_cids.header_id = log_cids.header_id
AND transaction_cids.header_id = (SELECT canonical_header_hash(transaction_cids.block_number))
AND transaction_cids.block_number = log_cids.block_number`
RetrieveStorageLeafByAddressHashAndLeafKeyAndBlockHashPgStr = `SELECT cid, val, block_number, removed, state_leaf_removed FROM get_storage_at_by_hash($1, $2, $3)`
RetrieveStorageAndRLPByAddressHashAndLeafKeyAndBlockHashPgStr = `