From 9079dfbd33df514d5e9422bae7910e6ffffafa81 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 4 Dec 2019 19:24:35 -0800 Subject: [PATCH] cmd/lncli: exit if user opts to not recover SCB files --- cmd/lncli/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 0f274ee93..52b0c848d 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -1452,8 +1452,8 @@ func create(ctx *cli.Context) error { restoreSCB = true break warningLoop case "n": - restoreSCB = false - break warningLoop + fmt.Println("Aborting SCB recovery") + return nil } } }