From 7d805c2babb97e2b0456f08afbad7c003ce422ad Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Mon, 6 Mar 2023 15:32:04 +0100 Subject: [PATCH] eth/catalyst: reduce diff --- eth/catalyst/api_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go index 4a330bda9b71..09972691729e 100644 --- a/eth/catalyst/api_test.go +++ b/eth/catalyst/api_test.go @@ -443,15 +443,14 @@ func startEthService(t *testing.T, genesis *core.Genesis, blocks []*types.Block) if err != nil { t.Fatal("can't create eth service:", err) } + if err := n.Start(); err != nil { + t.Fatal("can't start node:", err) + } if _, err := ethservice.BlockChain().InsertChain(blocks); err != nil { n.Close() t.Fatal("can't import test blocks:", err) } - if err := n.Start(); err != nil { - t.Fatal("can't start node:", err) - } - ethservice.SetEtherbase(testAddr) ethservice.SetSynced() return n, ethservice @@ -875,7 +874,7 @@ func TestNewPayloadOnInvalidTerminalBlock(t *testing.T) { n, ethservice := startEthService(t, genesis, preMergeBlocks) defer n.Close() - ethservice.BlockChain().Config().TerminalTotalDifficulty = preMergeBlocks[len(preMergeBlocks)-1].Difficulty() //.Sub(genesis.Config.TerminalTotalDifficulty, preMergeBlocks[len(preMergeBlocks)-1].Difficulty()) + ethservice.BlockChain().Config().TerminalTotalDifficulty = preMergeBlocks[0].Difficulty() //.Sub(genesis.Config.TerminalTotalDifficulty, preMergeBlocks[len(preMergeBlocks)-1].Difficulty()) var ( api = NewConsensusAPI(ethservice)