From 656e6c4d652721c25f5c7fcbde9d775367451016 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Tue, 2 Jul 2024 14:00:17 +0200 Subject: [PATCH] fix blockhash in read query --- blockstore/src/block_stores/postgres/postgres_transaction.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blockstore/src/block_stores/postgres/postgres_transaction.rs b/blockstore/src/block_stores/postgres/postgres_transaction.rs index 32614e9d..06a44dfb 100644 --- a/blockstore/src/block_stores/postgres/postgres_transaction.rs +++ b/blockstore/src/block_stores/postgres/postgres_transaction.rs @@ -357,7 +357,7 @@ impl PostgresTransaction { cu_requested, prioritization_fees, err, - recent_blockhash, + bh_ids.blockhash recent_blockhash, message_version, message, -- TODO remove --writable_accounts, @@ -372,6 +372,7 @@ impl PostgresTransaction { -- model_transaction_blockdata FROM {schema}.transaction_blockdata INNER JOIN {schema}.transaction_ids tx_ids USING(transaction_id) + INNER JOIN {schema}.blockhash_ids bh_ids ON bh_ids.blockhash_id=recent_blockhash WHERE slot = {} "#, slot,