From 6c3d02b7c43ee470938fb929f60336d151cf25ca Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 24 Jan 2019 15:05:24 +0800 Subject: 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. --- dex/downloader/testchain_test.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'dex/downloader') 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) -- cgit v1.2.3