aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2017-09-14 15:35:54 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-14 15:35:54 +0800
commit9be07de5396527eb527f3ca0dd402213c0008a3e (patch)
tree9bf0efb8b97884f3cbf058aac8333b8e0c0e1536 /params
parent885c13c2c941710f5545bee01541e6f7602599aa (diff)
downloadgo-tangerine-9be07de5396527eb527f3ca0dd402213c0008a3e.tar.gz
go-tangerine-9be07de5396527eb527f3ca0dd402213c0008a3e.tar.zst
go-tangerine-9be07de5396527eb527f3ca0dd402213c0008a3e.zip
params: Updated finalized gascosts for ECMUL/MODEXP (#15135)
* params: Updated finalized gascosts for ECMUL/MODEXP * core,tests: Updates pending new tests * tests: Updated with new tests * core: revert state transition bugfix * tests: Add expected failures due to #15119
Diffstat (limited to 'params')
-rw-r--r--params/protocol_params.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/params/protocol_params.go b/params/protocol_params.go
index 9c84c7d34..c56faf56f 100644
--- a/params/protocol_params.go
+++ b/params/protocol_params.go
@@ -64,9 +64,9 @@ const (
Ripemd160PerWordGas uint64 = 120 // Per-word price for a RIPEMD160 operation
IdentityBaseGas uint64 = 15 // Base price for a data copy operation
IdentityPerWordGas uint64 = 3 // Per-work price for a data copy operation
- ModExpQuadCoeffDiv uint64 = 100 // Divisor for the quadratic particle of the big int modular exponentiation
+ ModExpQuadCoeffDiv uint64 = 20 // Divisor for the quadratic particle of the big int modular exponentiation
Bn256AddGas uint64 = 500 // Gas needed for an elliptic curve addition
- Bn256ScalarMulGas uint64 = 2000 // Gas needed for an elliptic curve scalar multiplication
+ Bn256ScalarMulGas uint64 = 40000 // Gas needed for an elliptic curve scalar multiplication
Bn256PairingBaseGas uint64 = 100000 // Base price for an elliptic curve pairing check
Bn256PairingPerPointGas uint64 = 80000 // Per-point price for an elliptic curve pairing check
)