adapt uncle retrieval methods to work for v5

This commit is contained in:
i-norden committed 2023-03-13 12:48:25 -05:00
1 parent aab5a2ef0b
commit df8bec1ad0
4 files changed
+28 -59

No files matched your search

+4 -2
View File
@@ -20,7 +20,8 @@ const (
)
WHERE header_cids.block_hash = $1
AND header_cids.block_number = $2
ORDER BY uncle_cids.parent_hash`
ORDER BY uncle_cids.parent_hash
LIMIT 1`
RetrieveUnclesByBlockHashPgStr = `SELECT uncle_cids.cid, data
FROM eth.uncle_cids
INNER JOIN eth.header_cids ON (
@@ -32,7 +33,8 @@ const (
AND uncle_cids.block_number = blocks.block_number
)
WHERE header_cids.block_hash = $1
ORDER BY uncle_cids.parent_hash`
ORDER BY uncle_cids.parent_hash
LIMIT 1`
RetrieveTransactionsPgStr = `SELECT transaction_cids.cid, data
FROM eth.transaction_cids
INNER JOIN eth.header_cids ON (