-
Notifications
You must be signed in to change notification settings - Fork 289
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
feat: add error log to txstatus #3788
Conversation
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.
I think breaking proto should not be a problem here
WalkthroughWalkthroughThe recent changes improve error handling and clarity across transaction processing components. Key updates include the addition of an Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant S as txServer
participant T as Transaction Service
C->>S: Request TxStatus
S->>T: Query Transaction Status
T-->>S: Return Transaction Status (with Error if any)
S-->>C: Respond with TxStatus (including Error field)
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Co-authored-by: Callum Waters <[email protected]>
pkg/user/tx_client.go
Outdated
@@ -46,6 +47,7 @@ type TxResponse struct { | |||
Height int64 | |||
TxHash string | |||
Code uint32 | |||
Error string |
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.
I would advocate for removing error here because it should be returned in the error
type
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.
done!
Co-authored-by: Callum Waters <[email protected]>
## Overview - [x] Bump celestia-core verison including refactored TxStatus work - [x] Extend the rpc response to return the error log - [x] Update TxClient with extended TxStatus struct --------- Co-authored-by: Callum Waters <[email protected]> (cherry picked from commit 02b604d) # Conflicts: # app/test/big_blob_test.go # app/test/prepare_proposal_context_test.go # app/test/square_size_test.go # app/test/std_sdk_test.go # pkg/user/tx_client.go # pkg/user/tx_client_test.go # x/blobstream/integration_test.go # x/signal/legacy_test.go
## Overview Ended up cherry picking #3790 to make it easier for the reviewer --------- Co-authored-by: nina / ნინა <[email protected]>
Overview