From 2767f08f4d3beac511d81973b28a0626cb800043 Mon Sep 17 00:00:00 2001 From: Potuz Date: Mon, 29 Dec 2025 08:39:12 -0300 Subject: [PATCH] Do not send FCU on block batches (#16199) On block batches the engine does not need to be notified of FCU, only on regular sync at the end of sync it's useful to notify the engine. --- beacon-chain/blockchain/process_block.go | 8 -------- changelog/potuz_no_fcu_on_batches.md | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) create mode 100644 changelog/potuz_no_fcu_on_batches.md diff --git a/beacon-chain/blockchain/process_block.go b/beacon-chain/blockchain/process_block.go index a15563ad21..f3297312d9 100644 --- a/beacon-chain/blockchain/process_block.go +++ b/beacon-chain/blockchain/process_block.go @@ -295,14 +295,6 @@ func (s *Service) onBlockBatch(ctx context.Context, blks []consensusblocks.ROBlo return errors.Wrap(err, "could not set optimistic block to valid") } } - arg := &fcuConfig{ - headState: preState, - headRoot: lastBR, - headBlock: lastB, - } - if _, err := s.notifyForkchoiceUpdate(ctx, arg); err != nil { - return err - } return s.saveHeadNoDB(ctx, lastB, lastBR, preState, !isValidPayload) } diff --git a/changelog/potuz_no_fcu_on_batches.md b/changelog/potuz_no_fcu_on_batches.md new file mode 100644 index 0000000000..3eac4a81a7 --- /dev/null +++ b/changelog/potuz_no_fcu_on_batches.md @@ -0,0 +1,2 @@ +### Ignored +- D not send FCU on block batches.