From f959873629dd376197348b6e29aae103cd5d2734 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Wed, 26 Mar 2025 11:12:52 +0530 Subject: [PATCH] graphql: use shanghai block instead of timestamp --- graphql/graphql_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index f8db80ee00..5421487030 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -473,8 +473,10 @@ func newGQLService(t *testing.T, stack *node.Node, shanghai bool, gspec *core.Ge gspec.Config.TerminalTotalDifficulty = common.Big0 // GenerateChain will increment timestamps by 10. // Shanghai upgrade at block 1. - shanghaiTime := uint64(5) - gspec.Config.ShanghaiTime = &shanghaiTime + // shanghaiTime := uint64(5) + // gspec.Config.ShanghaiTime = &shanghaiTime + // Using block 1 instead as bor doesn't allow timestamp based hardforks + gspec.Config.ShanghaiBlock = big.NewInt(1) } else { // set an arbitrary large ttd as chains are required to be known to be merged gspec.Config.TerminalTotalDifficulty = big.NewInt(math.MaxInt64)