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

fix(block_hash): Block hash mismatch for transaction with an empty signature #354

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

Trantorian1
Copy link
Collaborator

Pull Request type

  • Bugfix

What is the current behavior?

Resolves: #326

Warning

Madara was incorrectly calculating the transaction hash with signature for transactions >= v0.13.2 with empty signature.

What is the new behavior?

Updated and refactored transaction hash with signature computation to take this into account.

Does this introduce a breaking change?

No.

Other information

Leaving this file from Pathfinder for future reference on computing the block hash.

@Trantorian1 Trantorian1 added the bug Something isn't working label Oct 21, 2024
@Trantorian1 Trantorian1 self-assigned this Oct 21, 2024
Copy link
Member

@akhercha akhercha left a comment

Choose a reason for hiding this comment

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

Looks good - nothing to add, thanks for the changes! 🙏

@jbcaron jbcaron merged commit 166ec29 into main Oct 21, 2024
10 checks passed
@Mohiiit
Copy link
Contributor

Mohiiit commented Oct 21, 2024

we ran into this when we were trying to sync pathfinder with madara as sequencer, and we thought it was wrong on the pathfinder end lol

thanks for this <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Block hash mismatch error while syncing Madara.
4 participants