@@ -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 }
0 commit comments