diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-18 09:46:56 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:50 +0800 |
commit | 1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f (patch) | |
tree | 50ee45dffb0d171973eadd913724763ef3ad89b5 /dex | |
parent | bd9a6326be84eb74f6fec8c4045d931208a051ed (diff) | |
download | dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.tar dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.tar.gz dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.tar.bz2 dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.tar.lz dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.tar.xz dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.tar.zst dexon-1fa4415d48e4ed7ee0f75ed21e62847ea68d3a0f.zip |
dex: add initial block to Run
Diffstat (limited to 'dex')
-rw-r--r-- | dex/backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go index ecc8ace2d..7a23ba80b 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 } |