mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 15:37:54 -05:00
implement the proposed gas changes for bls / eip-2537 (#8008)
* implement the proposed gas changes for bls / eip-2537 for pectra-devnet-5 * disable eip-2537 testing until we have new artifacts that reflect pectra gas costs Signed-off-by: garyschulte <garyschulte@gmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@ public class GenesisReaderTest {
|
||||
final var configNode = mapper.createObjectNode();
|
||||
configNode.put("londonBlock", 1);
|
||||
final var allocNode = mapper.createObjectNode();
|
||||
allocNode.put(Address.BLS12_G2MUL.toUnprefixedHexString(), generateAllocation(Wei.ONE));
|
||||
allocNode.put(Address.BLS12_G2MULTIEXP.toUnprefixedHexString(), generateAllocation(Wei.ONE));
|
||||
final var rootNode = mapper.createObjectNode();
|
||||
rootNode.put("chainId", 12);
|
||||
rootNode.put(CONFIG_FIELD, configNode);
|
||||
@@ -52,7 +52,8 @@ public class GenesisReaderTest {
|
||||
assertThat(genesisReader.getRoot().has(ALLOCATION_FIELD)).isFalse();
|
||||
assertThat(genesisReader.getConfig().get("londonblock").asInt()).isEqualTo(1);
|
||||
assertThat(genesisReader.streamAllocations())
|
||||
.containsExactly(new GenesisAccount(Address.BLS12_G2MUL, 0, Wei.ONE, null, Map.of(), null));
|
||||
.containsExactly(
|
||||
new GenesisAccount(Address.BLS12_G2MULTIEXP, 0, Wei.ONE, null, Map.of(), null));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -60,7 +61,7 @@ public class GenesisReaderTest {
|
||||
final var configNode = mapper.createObjectNode();
|
||||
configNode.put("londonBlock", 1);
|
||||
final var allocNode = mapper.createObjectNode();
|
||||
allocNode.put(Address.BLS12_G2MUL.toUnprefixedHexString(), generateAllocation(Wei.ONE));
|
||||
allocNode.put(Address.BLS12_G2MULTIEXP.toUnprefixedHexString(), generateAllocation(Wei.ONE));
|
||||
final var rootNode = mapper.createObjectNode();
|
||||
rootNode.put("chainId", 12);
|
||||
rootNode.put(CONFIG_FIELD, configNode);
|
||||
|
||||
Reference in New Issue
Block a user