-
Notifications
You must be signed in to change notification settings - Fork 434
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
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.
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) |
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.
still increment recoverFromEcdsa++; ?
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.
We need to trigger the recovery if an authority is missing. We could add
else if(tx.AuthorizationList[i].Authority is null)
maybe?
…recoversignatures-test
check if auth is null before activating ecdsa recovery
Changes
Fix for change after review comment.
Types of changes
What types of changes does your code introduce?