From 02b0f7d51c4f0f7ced17695ebb3575834bf999a5 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 8 Dec 2016 18:09:45 -0800 Subject: [PATCH] wallet: update to new btcrpcclient API --- wallet/wallet.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index 6411f0a..4f4f55d 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -390,6 +390,7 @@ func (w *Wallet) syncWithChain() error { syncBlock = bs break } + if rollback { err = w.Manager.SetSyncedTo(&syncBlock) if err != nil { @@ -1137,7 +1138,7 @@ func (w *Wallet) GetTransactions(startBlock, endBlock *BlockIdentifier, cancel < if chainClient == nil { return nil, errors.New("no chain server client") } - startResp = chainClient.GetBlockVerboseAsync(startBlock.hash) + startResp = chainClient.GetBlockVerboseTxAsync(startBlock.hash) } } if endBlock != nil { @@ -1147,7 +1148,7 @@ func (w *Wallet) GetTransactions(startBlock, endBlock *BlockIdentifier, cancel < if chainClient == nil { return nil, errors.New("no chain server client") } - endResp = chainClient.GetBlockVerboseAsync(endBlock.hash) + endResp = chainClient.GetBlockVerboseTxAsync(endBlock.hash) } } if startResp != nil {