From 31b46209a7e739778d87818f6e9ba0820be84e4e Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 9 Dec 2024 18:59:09 +0700 Subject: [PATCH] fix mapg2 gas --- params/protocol_params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/params/protocol_params.go b/params/protocol_params.go index 86b81a55ea..9929fe5fab 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -158,7 +158,7 @@ const ( Bls12381PairingBaseGas uint64 = 78000 // Base gas price for BLS12-381 elliptic curve pairing check Bls12381PairingPerPairGas uint64 = 51600 // Per-point pair gas price for BLS12-381 elliptic curve pairing check Bls12381MapG1Gas uint64 = 4125 // Gas price for BLS12-381 mapping field element to G1 operation - Bls12381MapG2Gas uint64 = 16866 // Gas price for BLS12-381 mapping field element to G2 operation + Bls12381MapG2Gas uint64 = 17000 // Gas price for BLS12-381 mapping field element to G2 operation // The Refund Quotient is the cap on how much of the used gas can be refunded. Before EIP-3529, // up to half the consumed gas could be refunded. Redefined as 1/5th in EIP-3529