Skip to content

Commit

Permalink
eth: Add sidecars when available to broadcasted current block (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac authored Sep 4, 2024
1 parent 75af65d commit 24a46de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ func (h *handler) doSync(op *chainSyncOp) error {
// degenerate connectivity, but it should be healthy for the mainnet too to
// more reliably update peers or the local TD state.
if block := h.chain.GetBlock(head.Hash(), head.Number.Uint64()); block != nil {
if h.chain.Config().IsCancun(block.Number(), block.Time()) {
block = block.WithSidecars(h.chain.GetSidecarsByHash(block.Hash()))
}
h.BroadcastBlock(block, false)
}
}
Expand Down

0 comments on commit 24a46de

Please sign in to comment.