Skip to content

Commit

Permalink
eth/catalyst: reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Mar 6, 2023
1 parent f138d2e commit 7d805c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions eth/catalyst/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7d805c2

Please sign in to comment.