consensus: fix a bug with nil tx channel

This commit is contained in:
Evgenii Stratonikov 2019-11-29 15:40:11 +03:00
parent 821c9b2851
commit 189a708988

View file

@ -91,6 +91,8 @@ func NewService(cfg Config) (Service, error) {
cache: newFIFOCache(cacheMaxCapacity),
txx: newFIFOCache(cacheMaxCapacity),
messages: make(chan Payload, 100),
transactions: make(chan *transaction.Transaction, 100),
}
if cfg.Wallet == nil {