mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/vm: optimize opKeccak256 using uint256.Int.SetBytes32
This commit is contained in:
parent
0ec63272bf
commit
aba837cfc5
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ func opKeccak256(pc *uint64, evm *EVM, scope *ScopeContext) ([]byte, error) {
|
||||||
if evm.Config.EnablePreimageRecording {
|
if evm.Config.EnablePreimageRecording {
|
||||||
evm.StateDB.AddPreimage(evm.hasherBuf, data)
|
evm.StateDB.AddPreimage(evm.hasherBuf, data)
|
||||||
}
|
}
|
||||||
size.SetBytes(evm.hasherBuf[:])
|
size.SetBytes32(evm.hasherBuf[:])
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue