aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-18 09:46:56 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit834ed1db5b5a7d24dacf58084782f68113171075 (patch)
treed9255215d79dcbeaa2dbf7b5e3bc4c11e9eac870 /dex
parent5ceac39dba0a8d4c3228d41a1b3fab8cdbe3d991 (diff)
downloaddexon-834ed1db5b5a7d24dacf58084782f68113171075.tar
dexon-834ed1db5b5a7d24dacf58084782f68113171075.tar.gz
dexon-834ed1db5b5a7d24dacf58084782f68113171075.tar.bz2
dexon-834ed1db5b5a7d24dacf58084782f68113171075.tar.lz
dexon-834ed1db5b5a7d24dacf58084782f68113171075.tar.xz
dexon-834ed1db5b5a7d24dacf58084782f68113171075.tar.zst
dexon-834ed1db5b5a7d24dacf58084782f68113171075.zip
dex: add initial block to Run
Diffstat (limited to 'dex')
-rw-r--r--dex/backend.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go
index 032d973de..4151fa8e2 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -25,6 +25,7 @@ import (
dexCore "github.com/dexon-foundation/dexon-consensus-core/core"
"github.com/dexon-foundation/dexon-consensus-core/core/blockdb"
coreEcdsa "github.com/dexon-foundation/dexon-consensus-core/core/crypto/ecdsa"
+ coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
"github.com/dexon-foundation/dexon/accounts"
"github.com/dexon-foundation/dexon/consensus"
@@ -238,7 +239,8 @@ func (s *Dexon) Start(srvr *p2p.Server) error {
go func() {
time.Sleep(10 * time.Second)
- s.consensus.Run()
+ // TODO: Run with the latest confirmed block in compaction chain.
+ s.consensus.Run(&coreTypes.Block{})
}()
return nil
}