-
Notifications
You must be signed in to change notification settings - Fork 20.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
Improved blockhash caching #20589
Improved blockhash caching #20589
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.
LGTM
3abe832
to
8ba3166
Compare
8ba3166
to
8d05c59
Compare
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.
:P
core/vm/runtime/runtime_test.go
Outdated
t.Fatalf("Expected no error, got %v", err) | ||
} | ||
if len(ret) != 96 { | ||
t.Fatalf("Expected returndata to be 96 bytes, got %d", len(ret)) |
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.
casing :P
core/vm/runtime/runtime_test.go
Outdated
BlockNumber: new(big.Int).Set(header.Number), | ||
}) | ||
if err != nil { | ||
t.Fatalf("Expected no error, got %v", err) |
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.
casing :P
* core/vm/runtime: add test for blockhash * core/evm: less iteration in blockhash * core/vm/runtime: nitpickfix Co-authored-by: Péter Szilágyi <[email protected]>
I've realized that #19319 might never make it in. It's quite big.
So, here's a very small PR which, although not as awesome as that one, is still a lot better than the way things work currently.