wallet: update to use new recovery manager API

This commit is contained in:
Olaoluwa Osuntokun 2018-06-14 22:06:09 -07:00
parent 49e46f3232
commit fb511876c5

View file

@ -403,6 +403,7 @@ func (w *Wallet) syncWithChain() error {
// size of 2000. // size of 2000.
recoveryMgr = NewRecoveryManager( recoveryMgr = NewRecoveryManager(
w.recoveryWindow, recoveryBatchSize, w.recoveryWindow, recoveryBatchSize,
w.chainParams,
) )
// In the event that this recovery is being resumed, we // In the event that this recovery is being resumed, we
@ -743,8 +744,8 @@ expandHorizons:
// Update the global set of watched outpoints with any that were found // Update the global set of watched outpoints with any that were found
// in the block. // in the block.
for outPoint := range filterResp.FoundOutPoints { for outPoint, addr := range filterResp.FoundOutPoints {
recoveryState.AddWatchedOutPoint(&outPoint) recoveryState.AddWatchedOutPoint(&outPoint, addr)
} }
// Finally, record all of the relevant transactions that were returned // Finally, record all of the relevant transactions that were returned