Skip to content

Commit

Permalink
Fix case on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cjepson committed Apr 6, 2016
1 parent 93eaee4 commit f1d9bd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wallet/addresspool.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (a *addressPool) initialize(account uint32, branch uint32, index uint32,
// finish or rollback must be called after.
func (a *addressPool) getNewAddress() (dcrutil.Address, error) {
if !a.started {
return nil, fmt.Errorf("failed to GetNewAddress; pool not started")
return nil, fmt.Errorf("failed to getNewAddress; pool not started")
}

chainClient, err := a.wallet.requireChainClient()
Expand Down Expand Up @@ -266,7 +266,7 @@ func (a *addressPool) BatchFinish() {
}

// BatchRollback must be run after every unsuccessful series of usages
// of GetNewAddress to restore the cursor to the original position in
// of getNewAddress to restore the cursor to the original position in
// the slice, thus marking all addresses unused again.
func (a *addressPool) BatchRollback() {
a.index -= uint32(a.cursor)
Expand Down Expand Up @@ -380,7 +380,7 @@ func (w *Wallet) AddressPoolIndex(account uint32, branch uint32) (uint32, error)
}

// SyncAddressPoolIndex synchronizes an account's branch to the given address
// by iteratively calling GetNewAddress on the respective address pool.
// by iteratively calling getNewAddress on the respective address pool.
func (w *Wallet) SyncAddressPoolIndex(account uint32, branch uint32,
index uint32) error {
// Sanity checks.
Expand Down Expand Up @@ -410,7 +410,7 @@ func (w *Wallet) SyncAddressPoolIndex(account uint32, branch uint32,
return nil
}

// Synchronize our address pool by calling GetNewAddress
// Synchronize our address pool by calling getNewAddress
// iteratively until the next to use index is synced to
// where we need it.
toFetch := index - addrPool.index
Expand Down

0 comments on commit f1d9bd6

Please sign in to comment.