aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-24 15:05:24 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit6c3d02b7c43ee470938fb929f60336d151cf25ca (patch)
tree842113610aae4631622cc1052d7d00e8befc9d8b /dex/app_test.go
parentdf60600936084e5c0b795c1a53dd65fa778b37be (diff)
downloaddexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.tar
dexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.tar.gz
dexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.tar.bz2
dexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.tar.lz
dexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.tar.xz
dexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.tar.zst
dexon-6c3d02b7c43ee470938fb929f60336d151cf25ca.zip
consensus: dexcon: snapshot round height when finalizing block (#170)
Instead of having BP to send a tx to register the round height, just modify the state when finalizing block.
Diffstat (limited to 'dex/app_test.go')
-rw-r--r--dex/app_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/dex/app_test.go b/dex/app_test.go
index 34b31d3d3..d2837b174 100644
--- a/dex/app_test.go
+++ b/dex/app_test.go
@@ -513,12 +513,6 @@ func TestNumChainsChange(t *testing.T) {
Height: 1,
})
- // Snapshot round on round 1 and height 2.
- input, err = abiObject.Pack("snapshotRound", big.NewInt(1), big.NewInt(1))
- if err != nil {
- t.Fatalf("abiObject pack error: %v", err)
- }
-
block, err = prepareConfirmedBlockWithTxAndData(dex, key, [][]byte{input}, 1)
if err != nil {
t.Fatalf("prepare block error: %v", err)