Skip to content

Commit

Permalink
cmd, parlia: option to disable verify validators
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Mar 29, 2024
1 parent eda56e2 commit 4ce7033
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmd/geth/chaincmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/internal/era"
"github.com/ethereum/go-ethereum/internal/flags"
Expand Down Expand Up @@ -500,11 +501,16 @@ func importChain(ctx *cli.Context) error {
// Start system runtime metrics collection
go metrics.CollectProcessMetrics(3 * time.Second)

stack, _ := makeConfigNode(ctx)
stack, cfg := makeConfigNode(ctx)
defer stack.Close()

chain, db := utils.MakeChain(ctx, stack, false)
defer db.Close()
backend, err := eth.New(stack, &cfg.Eth)
if err != nil {
return err
}

chain := backend.BlockChain()
db := backend.ChainDb()

// Start periodically gathering memory profiles
var peakMemAlloc, peakMemSys atomic.Uint64
Expand Down

0 comments on commit 4ce7033

Please sign in to comment.