wallet: update to new btcrpcclient API

This commit is contained in:
Olaoluwa Osuntokun 2016-12-08 18:09:45 -08:00
parent a978bfec8e
commit 02b0f7d51c

View file

@ -390,6 +390,7 @@ func (w *Wallet) syncWithChain() error {
syncBlock = bs syncBlock = bs
break break
} }
if rollback { if rollback {
err = w.Manager.SetSyncedTo(&syncBlock) err = w.Manager.SetSyncedTo(&syncBlock)
if err != nil { if err != nil {
@ -1137,7 +1138,7 @@ func (w *Wallet) GetTransactions(startBlock, endBlock *BlockIdentifier, cancel <
if chainClient == nil { if chainClient == nil {
return nil, errors.New("no chain server client") return nil, errors.New("no chain server client")
} }
startResp = chainClient.GetBlockVerboseAsync(startBlock.hash) startResp = chainClient.GetBlockVerboseTxAsync(startBlock.hash)
} }
} }
if endBlock != nil { if endBlock != nil {
@ -1147,7 +1148,7 @@ func (w *Wallet) GetTransactions(startBlock, endBlock *BlockIdentifier, cancel <
if chainClient == nil { if chainClient == nil {
return nil, errors.New("no chain server client") return nil, errors.New("no chain server client")
} }
endResp = chainClient.GetBlockVerboseAsync(endBlock.hash) endResp = chainClient.GetBlockVerboseTxAsync(endBlock.hash)
} }
} }
if startResp != nil { if startResp != nil {