core/filtermaps: use new ChainEvent format
This commit is contained in:
parent
077ab869f3
commit
7db1987af3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue