mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
core/vm: add precompile cache
This commit is contained in:
parent
17994c249e
commit
5b79f4d2da
1 changed files with 2 additions and 2 deletions
|
|
@ -228,8 +228,8 @@ func RunPrecompiledContract(addr common.Address, p PrecompiledContract, input []
|
|||
}
|
||||
suppliedGas -= gasCost
|
||||
// Check the cache
|
||||
if ouput, ok := getCache(addr, input); ok {
|
||||
return ouput, suppliedGas, nil
|
||||
if output, ok := getCache(addr, input); ok {
|
||||
return output, suppliedGas, nil
|
||||
}
|
||||
output, err := p.Run(input)
|
||||
if err == nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue