From 1043207689375b5bda70b5b8878c2bbbb6844ae8 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Wed, 21 Oct 2020 07:38:25 +0000 Subject: [PATCH] [consensus] print log when participants is empty Signed-off-by: Leo Chen --- consensus/consensus_service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consensus/consensus_service.go b/consensus/consensus_service.go index be5db99d8..1d3d793f4 100644 --- a/consensus/consensus_service.go +++ b/consensus/consensus_service.go @@ -92,6 +92,10 @@ func (consensus *Consensus) UpdatePublicKeys(pubKeys []bls_cosi.PublicKeyWrapper consensus.LeaderPubKey = &allKeys[0] utils.Logger().Info(). Str("info", consensus.LeaderPubKey.Bytes.Hex()).Msg("My Leader") + } else { + utils.Logger().Error(). + Msg("[UpdatePublicKeys] Participants is empty") + consensus.pubKeyLock.Unlock() } consensus.pubKeyLock.Unlock() // reset states after update public keys