Skip to content

Commit

Permalink
fix off by one when initializing a wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
jolan committed Apr 12, 2016
1 parent 5166dcc commit 6be3794
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 @@ -123,7 +123,7 @@ func (a *addressPool) initialize(account uint32, branch uint32, index uint32,
if mgrIdx == index {
a.addresses = make([]string, 0)
} else {
fetchNum := mgrIdx - index
fetchNum := mgrIdx - index + 1
a.addresses = make([]string, fetchNum)
for i := uint32(0); i < fetchNum; i++ {
addr, err := w.Manager.AddressDerivedFromDbAcct(index+i, account,
Expand Down

0 comments on commit 6be3794

Please sign in to comment.