Browse Source

wallet: Fix an off by one error in dev-listaddrs

Reported-By: @Xian001
Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
7c8883ae7d
  1. 2
      wallet/walletrpc.c

2
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;

Loading…
Cancel
Save