diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-12-22 12:54:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-22 12:54:03 +0800 |
commit | 6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6 (patch) | |
tree | 1895248f011a356fcd2a28c03dbda9d93fd46fd8 /core/agreement-mgr.go | |
parent | 146ed32cf841151b826eafd7d6ade188c56865bf (diff) | |
download | dexon-consensus-6d1c1aeea0d3e75d10cbb2712c68b4c422ba8ba6.tar.gz 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.go | 6 |
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) |