From 7c8883ae7d3095fa7584283eed9683bcea03d7cc Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 23 Feb 2018 18:56:18 +0100 Subject: [PATCH] wallet: Fix an off by one error in dev-listaddrs Reported-By: @Xian001 Signed-off-by: Christian Decker --- wallet/walletrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index 92267954d..9aa204e73 100644 --- a/wallet/walletrpc.c +++ b/wallet/walletrpc.c @@ -421,7 +421,7 @@ static void json_listaddrs(struct command *cmd, json_object_start(response, NULL); json_array_start(response, "addresses"); - for (s64 keyidx = 0; keyidx < bip32_max_index; keyidx++) { + for (s64 keyidx = 0; keyidx <= bip32_max_index; keyidx++) { if(keyidx == BIP32_INITIAL_HARDENED_CHILD){ break;