Skip to content
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

[EASY] Improve settlement tx cancellation logging #3165

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

squadgazzz
Copy link
Contributor

@squadgazzz squadgazzz commented Dec 16, 2024

Description

ATM, it is not possible to understand whether a settlement cancellation tx succeeded. This PR adds logs with the cancellation tx hash, so it will be possible to check the transaction on chain later. Also, additional context is added when working with the cancellation tx submission since, currently, it is impossible to distinguish between the actual settlement tx submission error.

@squadgazzz squadgazzz changed the title Improve settlement tx cancellation logging [EASY] Improve settlement tx cancellation logging Dec 16, 2024
@squadgazzz squadgazzz marked this pull request as ready for review December 16, 2024 18:18
@squadgazzz squadgazzz requested a review from a team as a code owner December 16, 2024 18:18
crates/driver/src/domain/mempools.rs Outdated Show resolved Hide resolved
tracing::info!(
?hash,
settle_tx_hash = ?hash,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are now skipping the log if self.cancel returns error. Hope this is intended by this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we do. In case of cancellation fails, we have an enriched context error to understand which path that was.

@squadgazzz squadgazzz merged commit 53ec067 into main Dec 17, 2024
11 checks passed
@squadgazzz squadgazzz deleted the tx-cancellation-logs branch December 17, 2024 12:09
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants