aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement-mgr.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-12-22 12:54:03 +0800
committerGitHub <noreply@github.com>2018-12-22 12:54:03 +0800
commit6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6 (patch)
tree1895248f011a356fcd2a28c03dbda9d93fd46fd8 /core/agreement-mgr.go
parent146ed32cf841151b826eafd7d6ade188c56865bf (diff)
downloaddexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar
dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar.gz
dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar.bz2
dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar.lz
dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar.xz
dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar.zst
dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.zip
utils: move authenticator to utils package (#378)
Diffstat (limited to 'core/agreement-mgr.go')
-rw-r--r--core/agreement-mgr.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/agreement-mgr.go b/core/agreement-mgr.go
index fb65364..a9fa21d 100644
--- a/core/agreement-mgr.go
+++ b/core/agreement-mgr.go
@@ -86,7 +86,7 @@ type agreementMgr struct {
network Network
logger common.Logger
cache *utils.NodeSetCache
- auth *Authenticator
+ signer *utils.Signer
lattice *Lattice
ctx context.Context
lastEndTime time.Time
@@ -119,7 +119,7 @@ func newAgreementMgr(con *Consensus, initRound uint64,
network: con.network,
logger: con.logger,
cache: con.nodeSetCache,
- auth: con.authModule,
+ signer: con.signer,
lattice: con.lattice,
ctx: con.ctx,
initRound: initRound,
@@ -181,7 +181,7 @@ func (mgr *agreementMgr) appendConfig(
mgr.con.ID,
recv,
newLeaderSelector(genValidLeader(mgr), mgr.logger),
- mgr.auth)
+ mgr.signer)
// Hacky way to make agreement module self contained.
recv.agreementModule = agrModule
mgr.baModules = append(mgr.baModules, agrModule)