-
Notifications
You must be signed in to change notification settings - Fork 83
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
[Non-breaking changes] Move Message struct from types to core package #367
[Non-breaking changes] Move Message struct from types to core package #367
Conversation
core/state_processor.go
Outdated
@@ -517,7 +515,6 @@ func InitSignerInTransactions(config *params.ChainConfig, header *types.Header, | |||
go func(from int, to int) { | |||
for j := from; j < to; j++ { | |||
types.CacheSigner(signer, txs[j]) |
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.
Keep cache hash for Tx
types.CacheSigner(signer, txs[j]) | |
types.CacheSigner(signer, txs[j]) | |
txs[j].CacheHash() |
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.
Re-added the CacheHash
, PTAL
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
Reference:
Checklist:
Message
related structures & abstractions within a single package (core). Previously it was leaking intocore/types/Transaction.go
, most of whose users have no need for it