aboutsummaryrefslogtreecommitdiffstats
path: root/dex/downloader
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/downloader
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/downloader')
-rw-r--r--dex/downloader/testchain_test.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/dex/downloader/testchain_test.go b/dex/downloader/testchain_test.go
index d96ebcfbf..73d4863a5 100644
--- a/dex/downloader/testchain_test.go
+++ b/dex/downloader/testchain_test.go
@@ -201,15 +201,6 @@ func (tc *testChain) generate(n int, seed byte, parent *types.Block, nodes *dexc
half := roundInterval / 2
switch i % roundInterval {
- case 0:
- if round > 0 {
- node := testNodes.Nodes(round)[0]
- data, err := vm.PackNotifyRoundHeight(round, uint64(i))
- if err != nil {
- panic(err)
- }
- addTx(block, node, data)
- }
case half:
// Sign current CRS to geneate the next round CRS and propose it.
testNodes.SignCRS(round)