aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-10-19 18:39:17 +0800
committerGitHub <noreply@github.com>2018-10-19 18:39:17 +0800
commit1f7491df37caf974ffa0c824c4c02a8fe2aafcd9 (patch)
tree55c6e653c3d78ab34e3fbe8627ba1c0a62cb53a8 /simulation
parentbec97aadfa95ebb42ef042bd53c7976ae410c496 (diff)
downloaddexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar
dexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.gz
dexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.bz2
dexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.lz
dexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.xz
dexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.tar.zst
dexon-consensus-1f7491df37caf974ffa0c824c4c02a8fe2aafcd9.zip
core: initial commit for logger (#228)
* Replace "log.*" with logger. * Add simple logger to log with log package. * Add debug logs to all calls to these interfaces: - core.Application - core.Governance - core.Network * Add Stringer to these types: - types.DKGComplaint - types.AgreementResult - types.DKGMasterPublicKey - types.DKGFinalize
Diffstat (limited to 'simulation')
-rw-r--r--simulation/node.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/simulation/node.go b/simulation/node.go
index 0a59994..5919b3e 100644
--- a/simulation/node.go
+++ b/simulation/node.go
@@ -100,7 +100,13 @@ func (n *node) run(serverEndpoint interface{}, dMoment time.Time) {
}
}
n.consensus = core.NewConsensus(
- dMoment, n.app, n.gov, n.db, n.netModule, n.prvKey)
+ dMoment,
+ n.app,
+ n.gov,
+ n.db,
+ n.netModule,
+ n.prvKey,
+ &common.SimpleLogger{})
go n.consensus.Run(&types.Block{})
// Blocks forever.