Skip to content

Commit

Permalink
Only send chain head feed in zone
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Apr 8, 2024
1 parent d89c7ad commit 61ec22f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ func (sl *Slice) Append(header *types.WorkObject, domPendingHeader *types.WorkOb
sl.hc.chainSideFeed.Send(ChainSideEvent{Blocks: []*types.WorkObject{block}, ResetUncles: false})
}

if subReorg {
// Chain head feed is only used by the Zone chains
if subReorg && nodeCtx == common.ZONE_CTX {
sl.hc.chainHeadFeed.Send(ChainHeadEvent{Block: block})
}

Expand Down

0 comments on commit 61ec22f

Please sign in to comment.