Skip to content

Commit 1098d14

Browse files
authored
cmd/geth: remove unused param (#29952)
1 parent deaf109 commit 1098d14

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cmd/geth/chaincmd.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import (
3939
"github.com/ethereum/go-ethereum/internal/flags"
4040
"github.com/ethereum/go-ethereum/log"
4141
"github.com/ethereum/go-ethereum/metrics"
42-
"github.com/ethereum/go-ethereum/node"
4342
"github.com/ethereum/go-ethereum/params"
4443
"github.com/urfave/cli/v2"
4544
)
@@ -516,7 +515,7 @@ func importPreimages(ctx *cli.Context) error {
516515
return nil
517516
}
518517

519-
func parseDumpConfig(ctx *cli.Context, stack *node.Node, db ethdb.Database) (*state.DumpConfig, common.Hash, error) {
518+
func parseDumpConfig(ctx *cli.Context, db ethdb.Database) (*state.DumpConfig, common.Hash, error) {
520519
var header *types.Header
521520
if ctx.NArg() > 1 {
522521
return nil, common.Hash{}, fmt.Errorf("expected 1 argument (number or hash), got %d", ctx.NArg())
@@ -580,7 +579,7 @@ func dump(ctx *cli.Context) error {
580579
db := utils.MakeChainDatabase(ctx, stack, true)
581580
defer db.Close()
582581

583-
conf, root, err := parseDumpConfig(ctx, stack, db)
582+
conf, root, err := parseDumpConfig(ctx, db)
584583
if err != nil {
585584
return err
586585
}

cmd/geth/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ func dumpState(ctx *cli.Context) error {
544544
db := utils.MakeChainDatabase(ctx, stack, true)
545545
defer db.Close()
546546

547-
conf, root, err := parseDumpConfig(ctx, stack, db)
547+
conf, root, err := parseDumpConfig(ctx, db)
548548
if err != nil {
549549
return err
550550
}

0 commit comments

Comments
 (0)