Skip to content

Commit 4a04127

Browse files
authored
cmd/geth: fix import / export issues related to DB unavailability (#21414)
* should fix import / export issues related to DB unavailability * document reason for makeConfigNode * fix comment * comment consistency * remove comments * lint
1 parent 2de37f2 commit 4a04127

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/geth/chaincmd.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ func importChain(ctx *cli.Context) error {
278278
utils.SetupMetrics(ctx)
279279
// Start system runtime metrics collection
280280
go metrics.CollectProcessMetrics(3 * time.Second)
281-
stack, _ := makeFullNode(ctx)
281+
282+
stack, _ := makeConfigNode(ctx)
282283
defer stack.Close()
283284

284285
chain, db := utils.MakeChain(ctx, stack, false)
@@ -372,7 +373,8 @@ func exportChain(ctx *cli.Context) error {
372373
if len(ctx.Args()) < 1 {
373374
utils.Fatalf("This command requires an argument.")
374375
}
375-
stack, _ := makeFullNode(ctx)
376+
377+
stack, _ := makeConfigNode(ctx)
376378
defer stack.Close()
377379

378380
chain, _ := utils.MakeChain(ctx, stack, true)

0 commit comments

Comments
 (0)