From 29c38e80b729bb55242cef362195ecea9796f77e Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Fri, 11 Jun 2021 14:43:48 +0300 Subject: [PATCH] Add missing send to ready channel in consensus state when mining new block --- consensus/consensus.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/consensus.go b/consensus/consensus.go index 861ca22..09da50d 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -247,6 +247,7 @@ func (pcm *PBFTConsensusManager) NewDrandRound(from phony.Actor, res client.Resu logrus.Errorf("Failed to select the block in consensus round %d: %s", pcm.state.blockHeight, err.Error()) return } + pcm.state.ready <- true minedBlock, err := pcm.miner.MineBlock(res.Randomness(), block.Header) if err != nil {