This commit is contained in:
Jared Wasinger 2024-10-22 18:25:25 +07:00
parent eadcda9319
commit 70c02df837
2 changed files with 3 additions and 3 deletions

View file

@ -21,14 +21,13 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
"math"
"math/big" "math/big"
"net/http" "net/http"
"strings" "strings"
"testing" "testing"
"time" "time"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus" "github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/consensus/beacon" "github.com/ethereum/go-ethereum/consensus/beacon"

View file

@ -22,6 +22,7 @@ import (
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
stdmath "math"
"math/big" "math/big"
"os" "os"
"reflect" "reflect"
@ -132,7 +133,7 @@ func (t *BlockTest) Run(snapshotter bool, scheme string, witness bool, tracer *t
// if ttd is not specified, set an arbitrary huge value // if ttd is not specified, set an arbitrary huge value
if gspec.Config.TerminalTotalDifficulty == nil { if gspec.Config.TerminalTotalDifficulty == nil {
gspec.Config.TerminalTotalDifficulty = big.NewInt(math.MaxInt64) gspec.Config.TerminalTotalDifficulty = big.NewInt(stdmath.MaxInt64)
} }
triedb := triedb.NewDatabase(db, tconf) triedb := triedb.NewDatabase(db, tconf)
gblock, err := gspec.Commit(db, triedb) gblock, err := gspec.Commit(db, triedb)