fix block 1017395 problem

This commit is contained in:
andri lim 2019-03-11 12:03:57 +07:00
parent 8b9f4fd702
commit de809b0060
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 2 deletions

View File

@ -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")