mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
wallet: update to new btcrpcclient API
This commit is contained in:
parent
a978bfec8e
commit
02b0f7d51c
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue