lncli: remove possibility to discard mission control from loadmc

This can already be done with resetmc and was only included here because
loadmc was used in a different context.
This commit is contained in:
bitromortac
2025-05-06 10:17:42 +02:00
parent 452022ee75
commit 725a80a3b7

View File

@@ -115,10 +115,6 @@ var loadMissionControlCommand = cli.Command{
Name: "mcdatapath",
Usage: "The path to the querymc output file (json).",
},
cli.BoolFlag{
Name: "discard",
Usage: "Discards current mission control data.",
},
cli.StringFlag{
Name: "timeoffset",
Usage: "Time offset to add to all timestamps. " +
@@ -171,22 +167,6 @@ func loadMissionControl(ctx *cli.Context) error {
client := routerrpc.NewRouterClient(conn)
// We discard mission control data if requested.
if ctx.Bool("discard") {
if !promptForConfirmation("This will discard all current " +
"mission control data in the database (yes/no): ") {
return nil
}
_, err = client.ResetMissionControl(
rpcCtx, &routerrpc.ResetMissionControlRequest{},
)
if err != nil {
return err
}
}
// Add a time offset to all timestamps if requested.
timeOffset := ctx.String("timeoffset")
if timeOffset != "" {