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

Add print of collision reason in TxPool #2664

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

AurelienFT
Copy link
Contributor

Description

This can allow us to make more easy debugging when a transaction had a collision.

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

@AurelienFT AurelienFT enabled auto-merge (squash) February 3, 2025 21:48
storage
.get(collision)
.map(|d| d.transaction.id().to_string())
.unwrap_or(String::from("Error")),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.unwrap_or(String::from("Error")),
.unwrap_or(String::from("Couldn't get transaction id")),

@AurelienFT AurelienFT merged commit f568eb9 into master Feb 3, 2025
33 checks passed
@AurelienFT AurelienFT deleted the add_parent_info_tx_collision branch February 3, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants