Sitelet https://github.com/Fantom-foundation/Sonic/commit/f8398cdda980925f6ad3d43a826349a0d9028572
Skip to content

Commit f8398cd

Browse files
committed
Cancel notification updates when feeder is not started
1 parent ee9fe99 commit f8398cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎gossip/service.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ func (f *ServiceFeed) notifyAboutNewBlock(
144144
block *evmcore.EvmBlock,
145145
logs []*types.Log,
146146
) {
147+
// ignore updates if not started
148+
if f.incomingUpdates == nil {
149+
return
150+
}
147151
f.incomingUpdates <- feedUpdate{
148152
block: block,
149153
logs: logs,

0 commit comments

Comments
 (0)