Skip to content

Commit b58a670

Browse files
ShahanaFarooquirustyrussell
authored andcommitted
dev: Start dev-listaddrs index from 1 not 0
Changelog-None.
1 parent 63e15c1 commit b58a670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wallet/walletrpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static struct command_result *json_listaddrs(struct command *cmd,
287287
response = json_stream_success(cmd);
288288
json_array_start(response, "addresses");
289289

290-
for (s64 keyidx = 0; keyidx <= *bip32_max_index; keyidx++) {
290+
for (s64 keyidx = 1; keyidx <= *bip32_max_index; keyidx++) {
291291

292292
if (keyidx == BIP32_INITIAL_HARDENED_CHILD){
293293
break;

0 commit comments

Comments
 (0)