From fb511876c51b784126f726f553bd1a5e07e3790d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 14 Jun 2018 22:06:09 -0700 Subject: [PATCH] wallet: update to use new recovery manager API --- wallet/wallet.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index e393ebb..ed4dc59 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -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 @@ -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