diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-03 15:28:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 43b14136118d600f14a4ae706557fa14401047d2 (patch) | |
tree | 9595f648b2b369913d828023b458c152c7e76d33 /dex/backend.go | |
parent | d7f599a14d89e7ce1e9f2ab44a01e0d63c428f26 (diff) | |
download | go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.tar go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.tar.gz go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.tar.bz2 go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.tar.lz go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.tar.xz go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.tar.zst go-tangerine-43b14136118d600f14a4ae706557fa14401047d2.zip |
test: start a separate RPC node for testing block sync
Diffstat (limited to 'dex/backend.go')
-rw-r--r-- | dex/backend.go | 11 |
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 } |