-
Notifications
You must be signed in to change notification settings - Fork 1
feat: on failed txn checks, return more diagnostics info #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe PR modifies account access validation error handling to return detailed error information including the problematic account's public key. Failed validations are now converted to synthetic executed transactions with diagnostic logs rather than propagating errors directly. Supporting test coverage for rent collection and fee payer validation scenarios is removed. Changes
Sequence DiagramsequenceDiagram
participant TP as TransactionProcessor
participant AP as AccessPermissions
participant Ledger
TP->>AP: validate_accounts_access(message)
alt Validation Passes
AP-->>TP: Ok(())
TP->>Ledger: Process transaction normally
else Validation Fails
AP-->>TP: Err((TransactionError, Pubkey))
rect rgb(255, 200, 200)
Note over TP: Create synthetic ExecutedTransaction<br/>with error status & diagnostic log
end
TP->>Ledger: Push as ProcessedTransaction::Executed
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
💤 Files with no reviewable changes (2)
🧰 Additional context used🧬 Code graph analysis (1)src/transaction_processor.rs (2)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
GabrielePicco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary by CodeRabbit
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.