-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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: speed up transaction signing by removing code that does nothing #25302
fix: speed up transaction signing by removing code that does nothing #25302
Conversation
Codecov Report
@@ Coverage Diff @@
## master #25302 +/- ##
===========================================
- Coverage 82.0% 75.0% -7.1%
===========================================
Files 598 38 -560
Lines 165882 2301 -163581
Branches 0 335 +335
===========================================
- Hits 136125 1726 -134399
+ Misses 29757 459 -29298
- Partials 0 116 +116 |
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.
Yeah, not sure why this was added, thanks for the cleanup!
Problem
This
_verifySignatures()
step runs verification, returns the result of that verification to nobody, and does nothing. We're essentially paying the cost ofMessage#serialize
andTransaction#_verifySignatures
and then throwing out the result.Summary of Changes
false
or otherwise making use of the result. Let's just get rid of it?Fixes #24822.