From b805a493764abbc4544bb2e073999ad30c9b3fc3 Mon Sep 17 00:00:00 2001 From: Jo D Date: Mon, 12 Jan 2026 10:43:38 -0500 Subject: [PATCH] hotfix: (PRO-639) Fix big transaction causing error when using v0 transaction - Used to have an issue with agave validator that would not properly serialized, this seems to be resolved, so we can now use the function directly, which fixes transaction too big error when trying to manually serialize it --- crates/lib/src/fee/fee.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/crates/lib/src/fee/fee.rs b/crates/lib/src/fee/fee.rs index b0973310..fd188b8d 100644 --- a/crates/lib/src/fee/fee.rs +++ b/crates/lib/src/fee/fee.rs @@ -15,7 +15,6 @@ use crate::{ ParsedSystemInstructionType, VersionedTransactionResolved, }, }; -use solana_message::Message; #[cfg(not(test))] use {crate::cache::CacheUtil, crate::state::get_config}; @@ -498,21 +497,7 @@ impl TransactionFeeUtil { // Legacy transactions don't have lookup tables, use as-is rpc_client.get_fee_for_message(message).await } - VersionedMessage::V0(v0_message) => { - // Create a legacy message with resolved account keys to avoid lookup table index issues - // This is a workaround for https://github.com/anza-xyz/agave/pull/7719 - - let resolved_message = Message::new_with_compiled_instructions( - v0_message.header.num_required_signatures, - v0_message.header.num_readonly_signed_accounts, - v0_message.header.num_readonly_unsigned_accounts, - resolved_transaction.all_account_keys.clone(), - v0_message.recent_blockhash, - v0_message.instructions.clone(), - ); - - rpc_client.get_fee_for_message(&resolved_message).await - } + VersionedMessage::V0(v0_message) => rpc_client.get_fee_for_message(v0_message).await, } .map_err(|e| KoraError::RpcError(e.to_string())) }