aboutsummaryrefslogtreecommitdiffstats
path: root/dex/backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-03 15:28:45 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commite7f80a566b38c906b0a6fb5e8d60d0e68e3a510e (patch)
treefaa67b9219e93810cb4edb686c074ef2263b604b /dex/backend.go
parent1b8ce702f45aa122ea0d89655c5fdef5e6ddb37e (diff)
downloaddexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.tar.gz
dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.tar.zst
dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.zip
test: start a separate RPC node for testing block sync
Diffstat (limited to 'dex/backend.go')
-rw-r--r--dex/backend.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/dex/backend.go b/dex/backend.go
index 3a50eb649..74aea8325 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -249,12 +249,6 @@ func (s *Dexon) Start(srvr *p2p.Server) error {
// Start the networking layer and the light server if requested
s.protocolManager.Start(srvr, maxPeers)
s.protocolManager.addSelfMeta()
-
- go func() {
- time.Sleep(10 * time.Second)
- // TODO: Run with the latest confirmed block in compaction chain.
- s.consensus.Run(&coreTypes.Block{})
- }()
return nil
}
@@ -263,9 +257,8 @@ func (s *Dexon) Stop() error {
}
func (s *Dexon) StartProposing() error {
- // TODO(sonic):
- // enable dispatch vote, agreement result, finalization result.. msg to consensus core.
- log.Debug("###############start proposing")
+ // TODO: Run with the latest confirmed block in compaction chain.
+ s.consensus.Run(&coreTypes.Block{})
return nil
}