Conversation
…nsaction - 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
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to b805a49 in 1 minute and 5 seconds. Click for details.
- Reviewed
35lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. crates/lib/src/fee/fee.rs:15
- Draft comment:
Removed unused import 'solana_message::Message'. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. crates/lib/src/fee/fee.rs:498
- Draft comment:
Directly calling get_fee_for_message for V0 messages removes the manual serialization workaround. Ensure this fits with the now-fixed agave validator behavior. - Reason this comment was not posted:
Confidence changes required:10%<= threshold50%None
Workflow ID: wflow_aGgNKzrlSANOVhle
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Greptile OverviewGreptile SummaryThis PR removes a workaround for handling V0 transactions with address lookup tables in fee estimation. Previously, the code converted V0 messages to legacy format with resolved account keys before calling Changes Made
Impact AnalysisThe change affects the
The codebase has existing tests for V0 transactions with lookup tables (e.g., Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client
participant RPC as RPC Method
participant FeeUtil as TransactionFeeUtil
participant RPCClient as Solana RPC Client
Client->>RPC: Request fee estimation
RPC->>FeeUtil: get_estimate_fee_resolved(resolved_transaction)
alt Legacy Transaction
FeeUtil->>RPCClient: get_fee_for_message(legacy_message)
RPCClient-->>FeeUtil: fee (u64)
else V0 Transaction (NEW)
FeeUtil->>RPCClient: get_fee_for_message(v0_message)
Note over FeeUtil,RPCClient: Direct call without workaround
RPCClient-->>FeeUtil: fee (u64)
end
FeeUtil-->>RPC: fee estimate
RPC-->>Client: fee response
|
…nsaction (#297) - 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 Co-authored-by: Jo D <dev-jodee@users.noreply.github.com>
…nsaction
Important
Fixes transaction too big error by directly using
v0_messageinget_estimate_fee_resolved()infee.rs, removing a workaround for Agave validator serialization issue.v0_messageinget_estimate_fee_resolved()infee.rs.VersionedMessage::V0inget_estimate_fee_resolved().Messagefromsolana_message.This description was created by
for b805a49. You can customize this summary. It will automatically update as commits are pushed.
📊 Unit Test Coverage
Unit Test Coverage: 80.7%
View Detailed Coverage Report