aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app_test.go
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2018-12-12 15:32:27 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit11dce7b83d696cc9940c21325a7412a0650fad19 (patch)
treee04ae25c226b522a37c25666bd098005d7255223 /dex/app_test.go
parent1c1849aed3714f9148132016c554c1491592eb76 (diff)
downloadgo-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.tar
go-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.tar.gz
go-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.tar.bz2
go-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.tar.lz
go-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.tar.xz
go-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.tar.zst
go-tangerine-11dce7b83d696cc9940c21325a7412a0650fad19.zip
app: remove unnecessary code (#86)
Diffstat (limited to 'dex/app_test.go')
-rw-r--r--dex/app_test.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/dex/app_test.go b/dex/app_test.go
index cbd29d0dc..abe83b92a 100644
--- a/dex/app_test.go
+++ b/dex/app_test.go
@@ -417,17 +417,7 @@ func TestBlockDelivered(t *testing.T) {
Height: 1,
})
- pendingBlock, pendingState := dex.blockchain.GetPending()
-
- r, ok := dex.app.chainLatestRoot.Load(firstBlocksInfo[0].Block.Position.ChainID)
- if !ok {
- t.Errorf("lastest root cache not exist")
- }
-
- if *r.(*common.Hash) != pendingBlock.Root() {
- t.Errorf("incorrect pending root")
- }
-
+ _, pendingState := dex.blockchain.GetPending()
currentBlock := dex.blockchain.CurrentBlock()
if currentBlock.NumberU64() != 0 {
t.Errorf("unexpected current block number %v", currentBlock.NumberU64())