From 6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 22 Oct 2018 21:28:25 +0800 Subject: core: fix uninitialized variable in configuration chain (#238) --- core/configuration-chain.go | 1 + core/consensus.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/configuration-chain.go b/core/configuration-chain.go index 8834e0d..2676351 100644 --- a/core/configuration-chain.go +++ b/core/configuration-chain.go @@ -68,6 +68,7 @@ func newConfigurationChain( dkgSigner: make(map[uint64]*dkgShareSecret), gpk: make(map[uint64]*DKGGroupPublicKey), tsig: make(map[common.Hash]*tsigProtocol), + tsigTouched: make(map[common.Hash]struct{}), tsigReady: sync.NewCond(&sync.Mutex{}), pendingPsig: make(map[common.Hash][]*types.DKGPartialSignature), } diff --git a/core/consensus.go b/core/consensus.go index 7154b1b..76fa3b7 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -733,7 +733,7 @@ func (con *Consensus) ProcessAgreementResult( con.logger.Debug("Calling Network.BroadcastRandomnessResult", "hash", result.BlockHash, "position", result.Position, - "randomness", string(result.Randomness)) + "randomness", hex.EncodeToString(result.Randomness)) con.network.BroadcastRandomnessResult(result) }() return nil -- cgit v1.2.3