From 7db1987af38c6fb95c97203695e60c2a2a1aeca3 Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Thu, 24 Oct 2024 01:15:21 +0200 Subject: [PATCH] core/filtermaps: use new ChainEvent format --- core/filtermaps/indexer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/filtermaps/indexer.go b/core/filtermaps/indexer.go index ad4dabae2c..301bd3b033 100644 --- a/core/filtermaps/indexer.go +++ b/core/filtermaps/indexer.go @@ -83,7 +83,7 @@ func (f *FilterMaps) updateLoop() { for { select { case ev := <-headEventCh: - head = ev.Block.Header() + head = ev.Header case syncMatcher = <-f.matcherSyncCh: head = f.chain.CurrentBlock() case <-f.closeCh: @@ -126,7 +126,7 @@ func (f *FilterMaps) updateLoop() { // return nil if head processing needs to be stopped select { case ev := <-headEventCh: - head = ev.Block.Header() + head = ev.Header case syncMatcher = <-f.matcherSyncCh: head = f.chain.CurrentBlock() case <-f.closeCh: @@ -160,7 +160,7 @@ func (f *FilterMaps) updateLoop() { // return true if tail processing needs to be stopped select { case ev := <-headEventCh: - head = ev.Block.Header() + head = ev.Header case syncMatcher = <-f.matcherSyncCh: head = f.chain.CurrentBlock() case <-f.closeCh: