From 189a708988fee13f2ceff86cc36f7a7cc41136c4 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 29 Nov 2019 15:40:11 +0300 Subject: [PATCH] consensus: fix a bug with nil tx channel --- pkg/consensus/consensus.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/consensus/consensus.go b/pkg/consensus/consensus.go index 3c9e87dc6..f2aff036b 100644 --- a/pkg/consensus/consensus.go +++ b/pkg/consensus/consensus.go @@ -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 {