diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-18 09:46:56 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 12eb896a11eaf15712339ffa7eedf2b7c88fdfdd (patch) | |
tree | 5c0794c58f7eb87c5d2ed71d904fb66ed11a26f7 /dex/backend.go | |
parent | 977d2e13c1616fa21705960c6765ccd33141141d (diff) | |
download | go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.tar go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.tar.gz go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.tar.bz2 go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.tar.lz go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.tar.xz go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.tar.zst go-tangerine-12eb896a11eaf15712339ffa7eedf2b7c88fdfdd.zip |
dex: add initial block to Run
Diffstat (limited to 'dex/backend.go')
-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 } |