From 235d7e75ca04f0c93ad09a678ff112156d87b182 Mon Sep 17 00:00:00 2001 From: Giulio Date: Wed, 11 Dec 2024 20:43:12 +0100 Subject: [PATCH] up-bump alpha6 --- cl/beacon/handler/block_production.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cl/beacon/handler/block_production.go b/cl/beacon/handler/block_production.go index 750ae290b12..18c5c1e656d 100644 --- a/cl/beacon/handler/block_production.go +++ b/cl/beacon/handler/block_production.go @@ -326,8 +326,11 @@ func (a *ApiHandler) GetEthV3ValidatorBlock( } startConsensusProcessing := time.Now() + + blockBuldingMachine := ð2.Impl{} + blockBuldingMachine.BlockRewardsCollector = ð2.BlockRewardsCollector{} // do state transition - if err := machine.ProcessBlock(transition.DefaultMachine, baseState, block.ToGeneric()); err != nil { + if err := machine.ProcessBlock(blockBuldingMachine, baseState, block.ToGeneric()); err != nil { log.Warn("Failed to process execution block", "err", err, "slot", targetSlot) return nil, err } @@ -351,7 +354,7 @@ func (a *ApiHandler) GetEthV3ValidatorBlock( ) // todo: consensusValue - rewardsCollector := ð2.BlockRewardsCollector{} + rewardsCollector := blockBuldingMachine.BlockRewardsCollector consensusValue := rewardsCollector.Attestations + rewardsCollector.ProposerSlashings + rewardsCollector.AttesterSlashings + rewardsCollector.SyncAggregate a.setupHeaderReponseForBlockProduction( w,