From 596f3796907353b3a62135a0fa727d48faffe3f2 Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Wed, 22 Jul 2020 19:27:06 -0300 Subject: [PATCH] run VerifyWinningPoStProof test on client node --- chain/sync_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chain/sync_test.go b/chain/sync_test.go index 5c459c3c5..451ba1959 100644 --- a/chain/sync_test.go +++ b/chain/sync_test.go @@ -170,7 +170,7 @@ func (tu *syncTestUtil) pushTsExpectErr(to int, fts *store.FullTipSet, experr bo } } -func (tu *syncTestUtil) mineOnBlock(blk *store.FullTipSet, src int, miners []int, wait, fail bool) *store.FullTipSet { +func (tu *syncTestUtil) mineOnBlock(blk *store.FullTipSet, to int, miners []int, wait, fail bool) *store.FullTipSet { if miners == nil { for i := range tu.g.Miners { miners = append(miners, i) @@ -188,9 +188,9 @@ func (tu *syncTestUtil) mineOnBlock(blk *store.FullTipSet, src int, miners []int require.NoError(tu.t, err) if fail { - tu.pushTsExpectErr(src, mts.TipSet, true) + tu.pushTsExpectErr(to, mts.TipSet, true) } else { - tu.pushFtsAndWait(src, mts.TipSet, wait) + tu.pushFtsAndWait(to, mts.TipSet, wait) } return mts.TipSet @@ -465,7 +465,7 @@ func TestSyncBadWinningPoSt(t *testing.T) { tu.g.SetWinningPoStProver(tu.g.Miners[1], &badWpp{}) // now ensure that new blocks are not accepted - tu.mineOnBlock(base, 0, nil, false, true) + tu.mineOnBlock(base, client, nil, false, true) } func (tu *syncTestUtil) loadChainToNode(to int) {