Skip to content

Commit

Permalink
disabling m.txsub check (#17)
Browse files Browse the repository at this point in the history
* disabling check

* added todo

* enableeeeeee
  • Loading branch information
transmissions12 authored Mar 21, 2023
1 parent db20350 commit 29251e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eth/filters/filter_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
)
Expand Down Expand Up @@ -241,10 +240,11 @@ func NewEventSystem(sys *FilterSystem, lightMode bool) *EventSystem {
m.chainSub = m.backend.SubscribeChainEvent(m.chainCh)
m.pendingLogsSub = m.backend.SubscribePendingLogsEvent(m.pendingLogsCh)

// Make sure none of the subscriptions are empty
if m.txsSub == nil || m.logsSub == nil || m.rmLogsSub == nil || m.chainSub == nil || m.pendingLogsSub == nil {
log.Crit("Subscribe for event system failed")
}
// TODO: enable this check once m.txsSub is implemented
// // Make sure none of the subscriptions are empty
// if m.txsSub == nil || m.logsSub == nil || m.rmLogsSub == nil || m.chainSub == nil || m.pendingLogsSub == nil {
// log.Crit("Subscribe for event system failed")
// }

go m.eventLoop()
return m
Expand Down

0 comments on commit 29251e5

Please sign in to comment.