mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 22:04:52 +00:00
fix block 1017395 problem
This commit is contained in:
parent
8b9f4fd702
commit
de809b0060
@ -76,7 +76,7 @@ proc ecRecover*(computation: var BaseComputation) =
|
|||||||
|
|
||||||
proc sha256*(computation: var BaseComputation) =
|
proc sha256*(computation: var BaseComputation) =
|
||||||
let
|
let
|
||||||
wordCount = computation.msg.data.len div 32
|
wordCount = wordCount(computation.msg.data.len)
|
||||||
gasFee = GasSHA256 + wordCount * GasSHA256Word
|
gasFee = GasSHA256 + wordCount * GasSHA256Word
|
||||||
|
|
||||||
computation.gasMeter.consumeGas(gasFee, reason="SHA256 Precompile")
|
computation.gasMeter.consumeGas(gasFee, reason="SHA256 Precompile")
|
||||||
@ -85,7 +85,7 @@ proc sha256*(computation: var BaseComputation) =
|
|||||||
|
|
||||||
proc ripemd160*(computation: var BaseComputation) =
|
proc ripemd160*(computation: var BaseComputation) =
|
||||||
let
|
let
|
||||||
wordCount = computation.msg.data.len div 32
|
wordCount = wordCount(computation.msg.data.len)
|
||||||
gasFee = GasRIPEMD160 + wordCount * GasRIPEMD160Word
|
gasFee = GasRIPEMD160 + wordCount * GasRIPEMD160Word
|
||||||
|
|
||||||
computation.gasMeter.consumeGas(gasFee, reason="RIPEMD160 Precompile")
|
computation.gasMeter.consumeGas(gasFee, reason="RIPEMD160 Precompile")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user