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-04-09 21:32:56 +0800
commit87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0 (patch)
tree7243672ff3235c5fc741b09e0cadf7c69a7c6ec8 /dex/app_test.go
parent6f9f78e54ceb93db5495a3e15568efbfa9e5b25b (diff)
downloaddexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.tar
dexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.tar.gz
dexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.tar.bz2
dexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.tar.lz
dexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.tar.xz
dexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.tar.zst
dexon-87db7f44d06ff4610b7a7a0b3bc845b8d8e342d0.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)