Skip to content

Commit 0b625f3

Browse files
chore: double P256VERIFY cost (#8925)
* double P256VERIFY cost Signed-off-by: Gabriel-Trintinalia <[email protected]> * update test Signed-off-by: Gabriel-Trintinalia <[email protected]> --------- Signed-off-by: Gabriel-Trintinalia <[email protected]>
1 parent 3593f10 commit 0b625f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

evm/src/main/java/org/hyperledger/besu/evm/gascalculator/FrontierGasCalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class FrontierGasCalculator implements GasCalculator {
5151

5252
private static final long ECREC_PRECOMPILED_GAS_COST = 3_000L;
5353

54-
private static final long P256VERIFY_PRECOMPILED_GAS_COST = 3_450L;
54+
private static final long P256VERIFY_PRECOMPILED_GAS_COST = 6_900L;
5555

5656
private static final long SHA256_PRECOMPILED_BASE_GAS_COST = 60L;
5757

evm/src/test/java/org/hyperledger/besu/evm/precompile/P256VerifyPrecompiledContractTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ void testP256Verify(final TestCase testCase) {
8686

8787
@Test
8888
void sanityCheck() {
89-
assertEquals(3450, contract.gasRequirement(Bytes.wrap(new byte[128])));
89+
assertEquals(6_900L, contract.gasRequirement(Bytes.wrap(new byte[128])));
9090
}
9191
}

0 commit comments

Comments
 (0)