diff options
author | bojie <bojie@dexon.org> | 2018-12-12 15:32:27 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 1f3ccade14c54be94fd3b67851807c27c20d7ef7 (patch) | |
tree | 0c2721ad642b303cb97afb31113ce2baea69e1af /dex/app.go | |
parent | 36860ece33daa650bb58efe1a6a717ba6955044f (diff) | |
download | dexon-1f3ccade14c54be94fd3b67851807c27c20d7ef7.tar.gz dexon-1f3ccade14c54be94fd3b67851807c27c20d7ef7.tar.zst dexon-1f3ccade14c54be94fd3b67851807c27c20d7ef7.zip |
app: remove unnecessary code (#86)
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dex/app.go b/dex/app.go index 5ce34668c..8da00d07b 100644 --- a/dex/app.go +++ b/dex/app.go @@ -47,8 +47,7 @@ type DexconApp struct { finalizedBlockFeed event.Feed scope event.SubscriptionScope - chainLocks sync.Map - chainLatestRoot sync.Map + chainLocks sync.Map } type witnessData struct { @@ -486,12 +485,11 @@ func (d *DexconApp) BlockDelivered( }, txs, nil, nil) h := d.blockchain.CurrentBlock().NumberU64() + 1 - root, err := d.blockchain.ProcessPendingBlock(newBlock, &block.Witness) + _, err = d.blockchain.ProcessPendingBlock(newBlock, &block.Witness) if err != nil { log.Error("Failed to process pending block", "error", err) panic(err) } - d.chainLatestRoot.Store(block.Position.ChainID, root) d.blockchain.RemoveConfirmedBlock(chainID, blockHash) |