diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-24 15:05:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 15:05:24 +0800 |
commit | c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a (patch) | |
tree | 846a0f56def1c9ce7855bc51a42d724192ecf7b7 /dex/app_test.go | |
parent | d60075505d75de052905caad3562ead280d83199 (diff) | |
download | dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.tar dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.tar.gz dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.tar.bz2 dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.tar.lz dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.tar.xz dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.tar.zst dexon-c7dd1a1b622eba3e28944f9d00827b7c5fe57c4a.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.go | 6 |
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) |