Skip to content

Commit

Permalink
Change initilialize to use proper index (extIdx)
Browse files Browse the repository at this point in the history
Could cause address desyncing and address reuse
  • Loading branch information
alexlyp committed Apr 5, 2016
1 parent e7ad238 commit 8c46cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/addresspool.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func newAddressPools(account uint32, intIdx, extIdx uint32,
if err != nil {
return nil, err
}
err = a.external.initialize(account, waddrmgr.ExternalBranch, intIdx, w)
err = a.external.initialize(account, waddrmgr.ExternalBranch, extIdx, w)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8c46cb7

Please sign in to comment.