diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-22 21:28:25 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-22 21:28:25 +0800 |
commit | 6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf (patch) | |
tree | bd39caf3c59242112295ece748db251300696816 | |
parent | d240e0cdec95681cf595609809dea4224dc479df (diff) | |
download | dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.tar dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.tar.gz dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.tar.bz2 dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.tar.lz dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.tar.xz dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.tar.zst dexon-consensus-6fbd0cd47fd70cfad707e95bc9fb948e7b44d4cf.zip |
core: fix uninitialized variable in configuration chain (#238)
-rw-r--r-- | core/configuration-chain.go | 1 | ||||
-rw-r--r-- | core/consensus.go | 2 |
2 files changed, 2 insertions, 1 deletions
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 |