From 32c4201eddbeaa89507b3835ba78eef87761b393 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 22 Feb 2019 18:08:01 -0800 Subject: [PATCH] cmd/lncli: increase default recovery window to 2.5k Increases the default window from 250 to 2.5k. Many users have reported attempting recovery with the default value only to find an empty wallet. This change should help ensure that the first recovery attempt succeeds for the majority of nodes that have modest load. It might prudent to consider increasing this value further in the future if the issue persists or average node age increases. --- cmd/lncli/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 3d51fa98..49eb57ff 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -33,7 +33,7 @@ import ( // TODO(roasbeef): expose all fee conf targets -const defaultRecoveryWindow int32 = 250 +const defaultRecoveryWindow int32 = 2500 func printJSON(resp interface{}) { b, err := json.Marshal(resp)