Skip to content

Conversation

@conomist
Copy link
Contributor

Cache protocol.GetHashFn result once per GetReceipts call and reuse for all EVM invocations.
Removes redundant hash-fn reconstruction per transaction while keeping behavior unchanged.
No additional code paths touched; lint clean.


evm := protocol.CreateEVM(cfg, protocol.GetHashFn(genEnv.header, genEnv.getHeader), g.engine, accounts.NilAddress, genEnv.ibs, genEnv.header, vmCfg)
go func() {
evm := protocol.CreateEVM(cfg, hashFn, g.engine, accounts.NilAddress, genEnv.ibs, genEnv.header, vmCfg) go func() {
Copy link
Member

Choose a reason for hiding this comment

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

fix ci pls

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.

2 participants