aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-chain.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-14 15:25:54 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2018-11-14 15:25:54 +0800
commit3a04c0d3405960e3a6eabb6adc700fa2fd5aac21 (patch)
treee13d65047af0c5646867a7424683b96bfc2e843f /core/configuration-chain.go
parente33261e6008dfba5b3401d0adc22a7da8649c9dc (diff)
downloaddexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.gz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.bz2
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.lz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.xz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.zst
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.zip
utils: add utils package (#327)
Diffstat (limited to 'core/configuration-chain.go')
-rw-r--r--core/configuration-chain.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/configuration-chain.go b/core/configuration-chain.go
index bda2fdf..03a4602 100644
--- a/core/configuration-chain.go
+++ b/core/configuration-chain.go
@@ -26,6 +26,7 @@ import (
"github.com/dexon-foundation/dexon-consensus/core/crypto"
"github.com/dexon-foundation/dexon-consensus/core/types"
typesDKG "github.com/dexon-foundation/dexon-consensus/core/types/dkg"
+ "github.com/dexon-foundation/dexon-consensus/core/utils"
)
// Errors for configuration chain..
@@ -51,7 +52,7 @@ type configurationChain struct {
tsig map[common.Hash]*tsigProtocol
tsigTouched map[common.Hash]struct{}
tsigReady *sync.Cond
- cache *NodeSetCache
+ cache *utils.NodeSetCache
dkgSet map[types.NodeID]struct{}
mpkReady bool
pendingPrvShare map[types.NodeID]*typesDKG.PrivateShare
@@ -64,7 +65,7 @@ func newConfigurationChain(
ID types.NodeID,
recv dkgReceiver,
gov Governance,
- cache *NodeSetCache,
+ cache *utils.NodeSetCache,
logger common.Logger) *configurationChain {
return &configurationChain{
ID: ID,