Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
5aab014
rampage
rezzmah Mar 11, 2025
fca383b
cleanup inprogress
rezzmah Mar 11, 2025
3172a64
Rename
rezzmah Mar 11, 2025
8f246b9
Deleted unused pruner
rezzmah Mar 11, 2025
6162470
fix gomock issues
rezzmah Mar 11, 2025
831580d
more cleanup
rezzmah Mar 11, 2025
6927ffa
cleanup
rezzmah Mar 11, 2025
3ace3a8
Cleanup
rezzmah Mar 11, 2025
0349136
cleanup
rezzmah Mar 11, 2025
340367c
cleanup
rezzmah Mar 11, 2025
90c0edd
donezo
rezzmah Mar 11, 2025
da94127
Update interfaces.go
rezzmah Mar 12, 2025
6d34318
Update interfaces.go
rezzmah Mar 12, 2025
f63ad68
Update chain_spec.mock.go
rezzmah Mar 12, 2025
4cc4276
x
rezzmah Mar 10, 2025
f91925c
ssz
rezzmah Mar 11, 2025
b3b18a0
Update body_test.go
rezzmah Mar 11, 2025
0c0cac4
Update body.go
rezzmah Mar 11, 2025
a7f31ca
Update execution_requests.go
rezzmah Mar 11, 2025
45a64aa
Update body.go
rezzmah Mar 11, 2025
14f68e4
Fixed tests
rezzmah Mar 11, 2025
e19855b
Update execution_requests.go
rezzmah Mar 11, 2025
e250124
Update execution_requests.go
rezzmah Mar 11, 2025
bef0d9b
Small test refactor
rezzmah Mar 11, 2025
739c508
Update body.go
rezzmah Mar 12, 2025
06a28d4
fix tests and change unmarshalling
rezzmah Mar 12, 2025
4a7230f
make executionRequests private
rezzmah Mar 12, 2025
432fe90
cleanup
rezzmah Mar 12, 2025
7aaa22e
making stuff private
rezzmah Mar 12, 2025
8a5e5a1
fix
rezzmah Mar 12, 2025
3bab234
Update attributes.go
rezzmah Mar 12, 2025
800e881
Update attributes.go
rezzmah Mar 12, 2025
e82b9f8
Update payload.go
rezzmah Mar 12, 2025
c2861a9
chore(types): remove unused chain spec from da/blob (#2595)
calbera Mar 12, 2025
9f184e3
remove pectra types for now
rezzmah Mar 12, 2025
486203d
fixes
rezzmah Mar 12, 2025
9ed548d
remove unused
rezzmah Mar 12, 2025
fa9404f
Delete temp-test-unit-cover.txt
rezzmah Mar 12, 2025
1071ade
Removed hardcoded deneb from types
rezzmah Mar 12, 2025
fedbc6f
Merge branch 'cleanup-excessive-types' into pectra-types-rez-poc
rezzmah Mar 12, 2025
f28032b
chore(types): remove unused chain spec from da/store (#2596)
Mar 12, 2025
cadf2fa
Add RunForAll
rezzmah Mar 12, 2025
2d61ed3
Merge branch 'cleanup-excessive-types' into pectra-types-rez-poc
rezzmah Mar 12, 2025
6eaf397
clean
rezzmah Mar 12, 2025
959e628
Merge branch 'main' into pectra-types-rez-poc
rezzmah Mar 12, 2025
b3190d9
Update interfaces.go
rezzmah Mar 12, 2025
db13791
Update block_test.go
rezzmah Mar 12, 2025
9a50a51
Update transformers.go
rezzmah Mar 12, 2025
47a09f8
Fix quick test
rezzmah Mar 12, 2025
31ed961
fails
rezzmah Mar 13, 2025
5f89e80
Update withdrawals_test.go
rezzmah Mar 13, 2025
37edbb6
fixed
rezzmah Mar 13, 2025
d21c091
cleanup
rezzmah Mar 13, 2025
e7debe9
Update compare_test.go
rezzmah Mar 13, 2025
4193d10
bring back types
rezzmah Mar 13, 2025
15dabfc
started and todo
rezzmah Mar 13, 2025
8e98064
Adding TODOs
rezzmah Mar 13, 2025
1f9119d
Added test cases
rezzmah Mar 13, 2025
81f304e
add
rezzmah Mar 13, 2025
510dc1e
Tests and fixes
rezzmah Mar 13, 2025
ea142c6
Update execution_requests.go
rezzmah Mar 13, 2025
9735fc1
Update prysm to fix consolidations amount
rezzmah Mar 14, 2025
dc86015
Update execution_requests_test.go
rezzmah Mar 14, 2025
6b500e0
Update execution_requests_test.go
rezzmah Mar 14, 2025
08a0d64
Merge branch 'main' into pectra-types-rez-poc
rezzmah Mar 17, 2025
12fd20e
Merge branch 'pectra-types-rez-poc' into pectra-types-for-real
rezzmah Mar 17, 2025
9fc1297
lint
rezzmah Mar 17, 2025
d41a1d3
wip - race condition
rezzmah Mar 17, 2025
8355af2
chore(types): standardize interfaces and convention (#2602)
calbera Mar 17, 2025
d0a8674
Merge branch 'main' into pectra-types-rez-poc
calbera Mar 17, 2025
7cc9b86
Merge branch 'pectra-types-rez-poc' into pectra-types-for-real
rezzmah Mar 18, 2025
322d688
merge conflict issues
rezzmah Mar 18, 2025
9f93530
Update signed_beacon_block_test.go
rezzmah Mar 18, 2025
0e6738f
Update body.go
rezzmah Mar 18, 2025
335d60d
Fixes
rezzmah Mar 18, 2025
298d39d
Update core_test.go
rezzmah Mar 18, 2025
9647923
Merge branch 'pectra-types-rez-poc' into pectra-types-for-real
calbera Mar 18, 2025
36afbed
progressing
rezzmah Mar 18, 2025
31aab0b
fixes
rezzmah Mar 18, 2025
3922c5b
Merge branch 'pectra-types-fix-ssz' into pectra-types-for-real
rezzmah Mar 18, 2025
c0ce942
Update body_test.go
rezzmah Mar 18, 2025
5f46be9
Merge branch 'pectra-types-fix-ssz' into pectra-types-for-real
rezzmah Mar 18, 2025
f419c32
Update body_test.go
rezzmah Mar 18, 2025
1bebe0d
Merge branch 'pectra-types-for-real' of github.com:berachain/beacon-k…
rezzmah Mar 18, 2025
6f9325c
try this
calbera Mar 18, 2025
839d26f
Update body_test.go
rezzmah Mar 18, 2025
6cfcbbd
tests
calbera Mar 18, 2025
90c274e
fix tests
rezzmah Mar 18, 2025
7955ce7
Merge branch 'signed-blk' into pectra-types-for-real
rezzmah Mar 18, 2025
85df076
fixing merge conflicts
rezzmah Mar 18, 2025
552a761
linter
rezzmah Mar 18, 2025
028f13a
Merge branch 'signed-blk' into pectra-types-for-real
rezzmah Mar 18, 2025
6fa5f52
fix tests
rezzmah Mar 18, 2025
d66f05f
Update execution_requests_test.go
rezzmah Mar 18, 2025
9a07173
Fix SSZ Unmarshalling for SignedBlock (#2610)
calbera Mar 18, 2025
e7fe78c
Merge branch 'pectra-types-rez-poc' into pectra-types-for-real
rezzmah Mar 18, 2025
75b09c3
Merge branch 'main' into pectra-types-rez-poc
calbera Mar 18, 2025
aded626
Merge branch 'pectra-types-rez-poc' of github.com:berachain/beacon-ki…
calbera Mar 18, 2025
6a11388
todo added
calbera Mar 18, 2025
544466c
Update execution_requests_test.go
rezzmah Mar 18, 2025
237a085
Update go.sum
rezzmah Mar 18, 2025
42d269f
Update execution_requests_test.go
rezzmah Mar 18, 2025
312806f
hacking
rezzmah Mar 18, 2025
d40ddf9
refactor chainspec component
rezzmah Mar 18, 2025
2df3e73
hacking
rezzmah Mar 19, 2025
8d86772
Update payload_requests.go
rezzmah Mar 19, 2025
40d0d60
Update signed_beacon_block.go
rezzmah Mar 19, 2025
a123b59
Update pectra_test.go
rezzmah Mar 19, 2025
94597d1
Update signed_beacon_block.go
rezzmah Mar 19, 2025
d42c62c
Update signed_beacon_block.go
rezzmah Mar 19, 2025
94d70ab
Update utils.go
rezzmah Mar 19, 2025
d4c6e44
Correctly distinguish JSON/SSZ marshaling and misc cleanup (#2611)
calbera Mar 19, 2025
ed6b6b2
some minor nits
calbera Mar 19, 2025
f3109f7
wip: created single constructor
abi87 Mar 19, 2025
e63e90f
unlocked compilation
abi87 Mar 19, 2025
b5d8d52
fixing UTs
abi87 Mar 19, 2025
09cebb1
fixed BlobSidecar syntax
abi87 Mar 19, 2025
b14cb9e
nit
abi87 Mar 19, 2025
cb68791
appease linter
abi87 Mar 19, 2025
ae1797f
nit
abi87 Mar 19, 2025
e26127c
appease nilaway
abi87 Mar 19, 2025
d6ad0ab
nit: make interfaces private for those that can be
calbera Mar 19, 2025
85e2edd
darned patterns..
calbera Mar 19, 2025
d3f11ce
Merge branch 'pectra-types-rez-poc' into pectra-types-for-real
rezzmah Mar 19, 2025
c07d927
Merge branch 'pectra-types-for-real' into pectra-handling
rezzmah Mar 19, 2025
5dcb8fd
fixed UTs
abi87 Mar 20, 2025
f48704e
some more cleanup
abi87 Mar 20, 2025
5d91a14
nits
abi87 Mar 20, 2025
c220613
Merge branch 'pectra-types-rez-poc' into pectra-types-ctor-cleanup-v2
abi87 Mar 20, 2025
5ec10c8
wip: dropping use of sszVersionedUnmarshaler.NewFromSSZ
abi87 Mar 20, 2025
fca8985
cleaned up interface
abi87 Mar 20, 2025
b573aac
fixed UTs
abi87 Mar 20, 2025
af80c26
Merge branch 'main' into pectra-types-ctor-cleanup-v2
abi87 Mar 20, 2025
7bd5a5f
Merge branch 'pectra-types-ctor-cleanup-v2' into pectra-types-cleanup…
abi87 Mar 20, 2025
63422ec
Fixed EnsureSyntaxFromSSZ
abi87 Mar 20, 2025
71c549b
cleanup imports to prevent import cycles
rezzmah Mar 20, 2025
97e4143
reintroducing types
rezzmah Mar 20, 2025
a7e9e40
cleanup and moving across
rezzmah Mar 20, 2025
e791b2d
Update body.go
rezzmah Mar 20, 2025
7f238c7
Update consolidation_request.go
rezzmah Mar 20, 2025
692026a
cleanup
rezzmah Mar 20, 2025
6f13371
Update pectra_test.go
rezzmah Mar 20, 2025
47b8a4d
fix licenses
rezzmah Mar 20, 2025
155354a
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 20, 2025
831e967
remove comments from merge conflicts
rezzmah Mar 20, 2025
eb4242c
Update state_processor_payload.go
rezzmah Mar 20, 2025
8482c0f
fix bug in test
rezzmah Mar 20, 2025
2224be5
fix bug in test
rezzmah Mar 21, 2025
7d43422
Fix tests
rezzmah Mar 21, 2025
522b7ac
Update supported.go
rezzmah Mar 21, 2025
748b4a1
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 21, 2025
3f1f729
Renamed EnsureSyntaxFromSSZ
abi87 Mar 21, 2025
4599d74
nit
abi87 Mar 21, 2025
3c4a875
ValidateAfterDecodingSSZ minor change
abi87 Mar 21, 2025
f7c7b02
Merge branch 'pectra-types-ctor-cleanup-v2' into pectra-types-cleanup…
abi87 Mar 21, 2025
9dcf6df
fix merge
abi87 Mar 21, 2025
3ff91c6
drop ExecutionPayloadHeader empty
abi87 Mar 21, 2025
c5b82ce
Merge branch 'pectra-types-cleanup-ctors-v3' into pectra-type-cleanup-v4
abi87 Mar 21, 2025
39c3cce
Merge branch 'pectra-type-cleanup-v4' into pectra-types-v5
rezzmah Mar 21, 2025
50613dd
merge fixes
rezzmah Mar 21, 2025
d1a7a31
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 21, 2025
98944cb
Merge branch 'pectra-handling' of github.com:berachain/beacon-kit int…
rezzmah Mar 21, 2025
672aec4
Merge branch 'main' into pectra-type-cleanup-v4
abi87 Mar 21, 2025
d5e2c37
Merge branch 'pectra-type-cleanup-v4' into pectra-types-v5
rezzmah Mar 21, 2025
b4322e4
Merge branch 'main' into pectra-types-v5
rezzmah Mar 21, 2025
ceac516
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 21, 2025
069b66e
Fix comment
rezzmah Mar 22, 2025
40d2cac
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 22, 2025
54f88d1
Merge branch 'main' into pectra-types-v5
rezzmah Mar 23, 2025
89ad669
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 23, 2025
cb60f48
Merge branch 'main' into pectra-types-v5
rezzmah Mar 24, 2025
0f04ff9
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 24, 2025
fa3c849
timestamp based forking
Mar 25, 2025
3c34720
disable pectra fork in devnet
Mar 25, 2025
bee44a9
Fix inflation test
Mar 25, 2025
e46a0e3
cleanup
Mar 25, 2025
89d61d5
Add time to finalize Block
Mar 25, 2025
03dba92
Merge branch 'main' into pectra-types-v5
rezzmah Mar 25, 2025
9fd93ee
Merge branch 'pectra-types-v5' into pectra-handling
rezzmah Mar 25, 2025
9e56892
Fix consensusTime vs blkTime and give up on tests
Mar 26, 2025
5da16a0
Merge branch 'main' into timestamp-based-forking
Mar 26, 2025
73ff8f5
Fix e2e tests and nits
Mar 26, 2025
1a68db1
Merge branch 'timestamp-based-forking' of github.com:berachain/beacon…
Mar 26, 2025
36dec02
Merge branch 'main' into pectra-handling
rezzmah Mar 26, 2025
a4a3712
Merge branch 'main' into timestamp-based-forking
calbera Mar 26, 2025
ee840c3
Merge branch 'pectra-handling' of github.com:berachain/beacon-kit int…
Mar 26, 2025
0ef5f7d
Set timestamps in simulated tests
Mar 26, 2025
7ca7c75
Merge branch 'main' of github.com:berachain/beacon-kit into timestamp…
Mar 26, 2025
197cbf2
nits and lint
Mar 26, 2025
acb4e5a
Add real deneb1 fork time to chainspecs
Mar 26, 2025
649daf2
fix inflation value in e2e test
Mar 26, 2025
88971e5
comment nit
Mar 26, 2025
2a95bba
Merge branch 'main' of github.com:berachain/beacon-kit into timestamp…
Mar 27, 2025
88be46d
address comments:
Mar 27, 2025
4c242db
Update config/spec/defaults.go
Mar 27, 2025
9f0ae7e
nits and better comments
Mar 27, 2025
6c9fd52
Merge branch 'timestamp-based-forking' of github.com:berachain/beacon…
Mar 27, 2025
a39e545
fork
rezzmah Mar 27, 2025
b9090ba
hcking
rezzmah Mar 27, 2025
396c262
Update payload.go
rezzmah Mar 27, 2025
639ceb2
Merge branch 'fix-bug-in-force-sync-upon-finalize' into timestamp-bas…
rezzmah Mar 27, 2025
60c9fe3
Refactor
rezzmah Mar 28, 2025
4857ee9
refactor
rezzmah Mar 28, 2025
6ef8978
Merge branch 'fix-bug-in-force-sync-upon-finalize' into timestamp-bas…
rezzmah Mar 29, 2025
c7fa6d7
tidy
rezzmah Mar 29, 2025
efc45b7
x
rezzmah Mar 29, 2025
65c1d5a
working fork
rezzmah Mar 30, 2025
0ec070b
Update finalize_block.go
rezzmah Mar 30, 2025
04d5f7c
Cleanup
rezzmah Mar 30, 2025
ec75a22
fix
rezzmah Mar 30, 2025
f45b536
reth persistance
rezzmah Mar 30, 2025
9c122b3
Update testing.mk
rezzmah Mar 30, 2025
ae094d7
Update devnet.go
rezzmah Mar 30, 2025
2d153fb
Update testing.mk
rezzmah Mar 30, 2025
4bf635f
Update version.go
rezzmah Mar 30, 2025
250d9cb
working
rezzmah Mar 30, 2025
cb79f12
delete chainspec depinject
rezzmah Mar 30, 2025
66830ad
Delete configurable.go
rezzmah Mar 30, 2025
2d92b19
working
rezzmah Mar 30, 2025
d4ade29
Update chainspec.go
rezzmah Mar 30, 2025
520fa65
Added make start-configurable
rezzmah Mar 30, 2025
deb275f
Update chainspec_test.go
rezzmah Mar 30, 2025
a1f99bb
Update chainspec_test.go
rezzmah Mar 30, 2025
b784edd
Update chainspec.go
rezzmah Mar 30, 2025
e2e1752
Update chainspec.go
rezzmah Mar 30, 2025
890aa40
Merge branch 'chain-spec-config-file' of github.com:berachain/beacon-…
Mar 31, 2025
469af14
Merge branch 'main' of github.com:berachain/beacon-kit into timestamp…
Apr 1, 2025
94dfdf8
nit for_slot
Apr 1, 2025
b0d874e
Merge branch 'timestamp-based-forking' into timestamp-based-forking-d…
rezzmah Apr 1, 2025
222edd6
logging fix
rezzmah Apr 1, 2025
a677e52
Update finalize_block.go
rezzmah Apr 1, 2025
9d4ee02
Update devnet.go
rezzmah Apr 1, 2025
d3600f5
Update version.go
rezzmah Apr 1, 2025
9d8e5d8
Rename test case
Apr 1, 2025
d2d2c8f
better finalize block comment
Apr 1, 2025
981f3d6
Merge branch 'timestamp-based-forking' into timestamp-based-forking-d…
rezzmah Apr 1, 2025
a131052
Merge branch 'main' into timestamp-based-forking-devnet-chainspec-1
Apr 3, 2025
9b82c28
remove extra line from conflict resolution
Apr 3, 2025
adb542d
Merge branch 'main' into timestamp-based-forking-devnet-chainspec-1
rezzmah Apr 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions node-core/components/reporting_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package components

import (
"cosmossdk.io/depinject"
"github.com/berachain/beacon-kit/chain"
"github.com/berachain/beacon-kit/execution/client"
"github.com/berachain/beacon-kit/log/phuslu"
"github.com/berachain/beacon-kit/node-core/components/metrics"
Expand All @@ -34,6 +35,7 @@ type ReportingServiceInput struct {
Logger *phuslu.Logger
TelemetrySink *metrics.TelemetrySink
EngineClient *client.EngineClient
ChainSpec chain.Spec
}

func ProvideReportingService(in ReportingServiceInput) *version.ReportingService {
Expand All @@ -42,5 +44,6 @@ func ProvideReportingService(in ReportingServiceInput) *version.ReportingService
in.TelemetrySink,
sdkversion.Version,
in.EngineClient,
in.ChainSpec,
)
}
6 changes: 6 additions & 0 deletions node-core/services/version/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

package version

import "github.com/berachain/beacon-kit/chain"

// TelemetrySink is an interface for sending telemetry data.
type TelemetrySink interface {
// IncrementCounter increments a counter metric identified by the provided
Expand All @@ -29,3 +31,7 @@ type TelemetrySink interface {
// provided keys.
SetGauge(key string, value int64, args ...string)
}

type ForkSpec interface {
chain.ForkSpec
}
9 changes: 8 additions & 1 deletion node-core/services/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ type ReportingService struct {
// sink is the telemetry sink used to report metrics.
sink TelemetrySink
// client to query the execution layer
client *client.EngineClient
client *client.EngineClient
forkSpec ForkSpec
}

// NewReportingService creates a new VersionReporterService.
Expand All @@ -58,13 +59,15 @@ func NewReportingService(
telemetrySink TelemetrySink,
version string,
engineClient *client.EngineClient,
forkSpec ForkSpec,
) *ReportingService {
return &ReportingService{
logger: logger,
version: version,
reportingInterval: defaultReportingInterval,
sink: telemetrySink,
client: engineClient,
forkSpec: forkSpec,
}
}

Expand Down Expand Up @@ -147,6 +150,8 @@ func (rs *ReportingService) printToConsole(
+ 🧩 Your node is running version: %-40s+
+ ♦ Eth client: %-59s+
+ 💾 Your system: %-57s+
+ 🍴 Deneb1 Fork Time: %-52d+
+ 🍴 Electra Fork Time: %-51d+
+ 🦺 Please report issues @ https://github.com/berachain/beacon-kit/issues +
+==========================================================================+

Expand All @@ -155,6 +160,8 @@ func (rs *ReportingService) printToConsole(
rs.version,
fmt.Sprintf("%s (version: %s)", ethClient.Name, ethClient.Version),
runtime.GOOS+"/"+runtime.GOARCH,
rs.forkSpec.Deneb1ForkTime(),
rs.forkSpec.ElectraForkTime(),
))
}

Expand Down
10 changes: 7 additions & 3 deletions scripts/build/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ start-reth:
--authrpc.addr "0.0.0.0" \
--authrpc.jwtsecret $(JWT_PATH) \
--datadir ${ETH_DATA_DIR} \
--ipcpath ${IPC_PATH}
--ipcpath ${IPC_PATH} \
--engine.persistence-threshold 0 \
--engine.memory-block-buffer-target 0
Comment on lines +82 to +84
Copy link
Copy Markdown
Contributor Author

@rezzmah rezzmah Apr 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reth needs these flags or it borks due to not persisting blocks. Adding to local.

Could also add to testnet/mainnet


## Start a local ephemeral `reth` node on host machine
start-reth-host:
Expand All @@ -93,7 +95,9 @@ start-reth-host:
--authrpc.addr "0.0.0.0" \
--authrpc.jwtsecret $(JWT_PATH) \
--datadir ${ETH_DATA_DIR} \
--ipcpath ${IPC_PATH}
--ipcpath ${IPC_PATH} \
--engine.persistence-threshold 0 \
--engine.memory-block-buffer-target 0

## Start an ephemeral `geth` node with docker
start-geth:
Expand Down Expand Up @@ -123,7 +127,7 @@ start-geth:
--ipcpath ${IPC_PATH}

## Start a local ephemeral `geth` node on host machine
start-geth-host:
start-geth-host:
$(call ask_reset_dir_func, $(ETH_DATA_DIR))
geth init --datadir ${ETH_DATA_DIR} ${ETH_GENESIS_PATH}
geth \
Expand Down
14 changes: 14 additions & 0 deletions state-transition/core/state_processor_payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
ctypes "github.com/berachain/beacon-kit/consensus-types/types"
"github.com/berachain/beacon-kit/errors"
"github.com/berachain/beacon-kit/primitives/math"
"github.com/berachain/beacon-kit/primitives/version"
statedb "github.com/berachain/beacon-kit/state-transition/core/state"
"golang.org/x/sync/errgroup"
)
Expand Down Expand Up @@ -58,6 +59,19 @@ func (sp *StateProcessor) processExecutionPayload(
"verify payload", txCtx.VerifyPayload(),
)

if version.EqualsOrIsAfter(blk.GetForkVersion(), version.Electra()) {
requests, getErr := blk.GetBody().GetExecutionRequests()
if getErr != nil {
return getErr
}
sp.logger.Info(
"Processing execution requests",
"deposits", len(requests.Deposits),
"withdrawals", len(requests.Withdrawals),
"consolidations", len(requests.Consolidations),
)
}

// Perform payload verification only if the context is configured as such.
if txCtx.VerifyPayload() {
g.Go(func() error {
Expand Down
Loading