Skip to content

Commit f6c08b2

Browse files
committed
core/filtermaps: use new ChainEvent format
1 parent 76cc163 commit f6c08b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/filtermaps/indexer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (f *FilterMaps) updateLoop() {
8383
for {
8484
select {
8585
case ev := <-headEventCh:
86-
head = ev.Block.Header()
86+
head = ev.Header
8787
case syncMatcher = <-f.matcherSyncCh:
8888
head = f.chain.CurrentBlock()
8989
case <-f.closeCh:
@@ -126,7 +126,7 @@ func (f *FilterMaps) updateLoop() {
126126
// return nil if head processing needs to be stopped
127127
select {
128128
case ev := <-headEventCh:
129-
head = ev.Block.Header()
129+
head = ev.Header
130130
case syncMatcher = <-f.matcherSyncCh:
131131
head = f.chain.CurrentBlock()
132132
case <-f.closeCh:
@@ -160,7 +160,7 @@ func (f *FilterMaps) updateLoop() {
160160
// return true if tail processing needs to be stopped
161161
select {
162162
case ev := <-headEventCh:
163-
head = ev.Block.Header()
163+
head = ev.Header
164164
case syncMatcher = <-f.matcherSyncCh:
165165
head = f.chain.CurrentBlock()
166166
case <-f.closeCh:

0 commit comments

Comments
 (0)