From ef499d0cc4ffd9c4cd6fa387f3e5f6a80ba829cb Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 26 Jul 2024 12:55:42 +0200 Subject: [PATCH] EIP-7688 MEV types --- AllTests-mainnet.md | 5 +++-- beacon_chain/spec/mev/electra_mev.nim | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/AllTests-mainnet.md b/AllTests-mainnet.md index bebb17622..c55646046 100644 --- a/AllTests-mainnet.md +++ b/AllTests-mainnet.md @@ -56,6 +56,7 @@ OK: 4/4 Fail: 0/4 Skip: 0/4 + sanity check Deneb states, reusing buffers [Preset: mainnet] OK + sanity check Electra blocks [Preset: mainnet] OK + sanity check blobs (Deneb) [Preset: mainnet] OK ++ sanity check blobs (Electra) [Preset: mainnet] OK + sanity check genesis roundtrip [Preset: mainnet] OK + sanity check phase 0 blocks [Preset: mainnet] OK + sanity check phase 0 getState rollback [Preset: mainnet] OK @@ -63,7 +64,7 @@ OK: 4/4 Fail: 0/4 Skip: 0/4 + sanity check phase 0 states, reusing buffers [Preset: mainnet] OK + sanity check state diff roundtrip [Preset: mainnet] OK ``` -OK: 26/26 Fail: 0/26 Skip: 0/26 +OK: 27/27 Fail: 0/27 Skip: 0/27 ## Beacon state [Preset: mainnet] ```diff + Smoke test initialize_beacon_state_from_eth1 [Preset: mainnet] OK @@ -1036,4 +1037,4 @@ OK: 2/2 Fail: 0/2 Skip: 0/2 OK: 9/9 Fail: 0/9 Skip: 0/9 ---TOTAL--- -OK: 691/696 Fail: 0/696 Skip: 5/696 +OK: 694/699 Fail: 0/699 Skip: 5/699 diff --git a/beacon_chain/spec/mev/electra_mev.nim b/beacon_chain/spec/mev/electra_mev.nim index 08ec71e30..ce0610372 100644 --- a/beacon_chain/spec/mev/electra_mev.nim +++ b/beacon_chain/spec/mev/electra_mev.nim @@ -7,7 +7,9 @@ {.push raises: [].} -import ".."/datatypes/[altair, electra] +import + ".."/datatypes/[altair, electra], + ./stable_mev from stew/byteutils import to0xHex from ".."/datatypes/phase0 import AttesterSlashing @@ -28,7 +30,7 @@ type message*: BuilderBid signature*: ValidatorSig - BlindedBeaconBlockBody* = object + BlindedBeaconBlockBody* {.sszProfile: StableBlindedBeaconBlockBody.} = object randao_reveal*: ValidatorSig eth1_data*: Eth1Data graffiti*: GraffitiBytes