Add missing send to ready channel in consensus state when mining new block

This commit is contained in:
ChronosX88 2021-06-11 14:43:48 +03:00
parent ea9ceaeda9
commit 29c38e80b7
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -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 {