aboutsummaryrefslogtreecommitdiffstats
path: root/dex/backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-16 15:24:02 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commitd7e1207ad870969dfa9612e882bc64ec30a7f71f (patch)
tree8be9f0a7ac16aea5765151a0b62b5bd3382dfe95 /dex/backend.go
parent89d99563b957d0f88a5a2e8e8e13ada65cd1bbad (diff)
downloaddexon-d7e1207ad870969dfa9612e882bc64ec30a7f71f.tar.gz
dexon-d7e1207ad870969dfa9612e882bc64ec30a7f71f.tar.zst
dexon-d7e1207ad870969dfa9612e882bc64ec30a7f71f.zip
hack: temp fix for running tests
Diffstat (limited to 'dex/backend.go')
-rw-r--r--dex/backend.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go
index 2d4c43547..81ac272a0 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -199,7 +199,10 @@ func (s *Dexon) Start(srvr *p2p.Server) error {
s.protocolManager.Start(srvr, maxPeers)
s.protocolManager.addSelfMeta()
- go s.consensus.Run()
+ go func() {
+ time.Sleep(10 * time.Second)
+ s.consensus.Run()
+ }()
return nil
}