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 null pointer in RecoverSignatures #7564

Merged
merged 10 commits into from
Oct 10, 2024
Merged

Fix null pointer in RecoverSignatures #7564

merged 10 commits into from
Oct 10, 2024

Conversation

ak88
Copy link
Contributor

@ak88 ak88 commented Oct 7, 2024

Changes

Fix for change after review comment.

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

@ak88 ak88 marked this pull request as ready for review October 7, 2024 15:26
@ak88 ak88 requested a review from LukaszRozmej October 7, 2024 15:26
Copy link
Contributor

@MarekM25 MarekM25 left a comment

Choose a reason for hiding this comment

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

Can you try to write a test?

@@ -87,7 +87,7 @@ public void RecoverData(Block block)
recoverFromEcdsa++;
}

if (tx.HasAuthorizationList)
if (poolTx is not null && tx.HasAuthorizationList)
Copy link
Member

Choose a reason for hiding this comment

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

still increment recoverFromEcdsa++; ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to trigger the recovery if an authority is missing. We could add
else if(tx.AuthorizationList[i].Authority is null)
maybe?

@ak88 ak88 merged commit 7ef9398 into master Oct 10, 2024
73 checks passed
@ak88 ak88 deleted the fix/recoversignatures branch October 10, 2024 10:43
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.

4 participants