core/filtermaps: use new ChainEvent format

This commit is contained in:
Zsolt Felfoldi 2024-10-24 01:15:21 +02:00
parent 077ab869f3
commit 7db1987af3
1 changed files with 3 additions and 3 deletions

View File

@ -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: