Skip to content

Commit

Permalink
wallet: update to use new recovery manager API
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Jul 17, 2018
1 parent 49e46f3 commit fb51187
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ func (w *Wallet) syncWithChain() error {
// size of 2000.
recoveryMgr = NewRecoveryManager(
w.recoveryWindow, recoveryBatchSize,
w.chainParams,
)

// In the event that this recovery is being resumed, we
Expand Down Expand Up @@ -743,8 +744,8 @@ expandHorizons:

// Update the global set of watched outpoints with any that were found
// in the block.
for outPoint := range filterResp.FoundOutPoints {
recoveryState.AddWatchedOutPoint(&outPoint)
for outPoint, addr := range filterResp.FoundOutPoints {
recoveryState.AddWatchedOutPoint(&outPoint, addr)
}

// Finally, record all of the relevant transactions that were returned
Expand Down

0 comments on commit fb51187

Please sign in to comment.