From 7892c7cbf4b91799e9e200b98addbef35a1b8a19 Mon Sep 17 00:00:00 2001 From: Mushow Date: Fri, 13 Jun 2025 15:49:43 +0200 Subject: [PATCH] feat(protocol-params): implement new gas repricing to support 100Mgas limit --- params/protocol_params.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/params/protocol_params.go b/params/protocol_params.go index 6b06dadaef..a0b5544423 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -146,13 +146,13 @@ const ( IdentityPerWordGas uint64 = 3 // Per-work price for a data copy operation Bn256AddGasByzantium uint64 = 500 // Byzantium gas needed for an elliptic curve addition - Bn256AddGasIstanbul uint64 = 150 // Gas needed for an elliptic curve addition + Bn256AddGasIstanbul uint64 = 1800 // Gas needed for an elliptic curve addition Bn256ScalarMulGasByzantium uint64 = 40000 // Byzantium gas needed for an elliptic curve scalar multiplication - Bn256ScalarMulGasIstanbul uint64 = 6000 // Gas needed for an elliptic curve scalar multiplication + Bn256ScalarMulGasIstanbul uint64 = 13000 // Gas needed for an elliptic curve scalar multiplication Bn256PairingBaseGasByzantium uint64 = 100000 // Byzantium base price for an elliptic curve pairing check - Bn256PairingBaseGasIstanbul uint64 = 45000 // Base price for an elliptic curve pairing check + Bn256PairingBaseGasIstanbul uint64 = 80000 // Base price for an elliptic curve pairing check Bn256PairingPerPointGasByzantium uint64 = 80000 // Byzantium per-point price for an elliptic curve pairing check - Bn256PairingPerPointGasIstanbul uint64 = 34000 // Per-point price for an elliptic curve pairing check + Bn256PairingPerPointGasIstanbul uint64 = 125000 // Per-point price for an elliptic curve pairing check Bls12381G1AddGas uint64 = 375 // Price for BLS12-381 elliptic curve G1 point addition Bls12381G1MulGas uint64 = 12000 // Price for BLS12-381 elliptic curve G1 point scalar multiplication