mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
multi-account: update listsinceblock
This commit is contained in:
parent
1edb90e0aa
commit
51e700e7d9
2 changed files with 4 additions and 4 deletions
|
@ -1466,7 +1466,7 @@ func listSinceBlock(icmd interface{}, w *wallet.Wallet, chainClient *chain.RPCCl
|
||||||
start = int32(block.Height) + 1
|
start = int32(block.Height) + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
txInfoList, err := w.ListSinceBlock(start, -1, syncBlock.Height)
|
txInfoList, err := w.ListSinceBlock("*", start, -1, syncBlock.Height)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -2049,7 +2049,7 @@ outputs:
|
||||||
// ListSinceBlock returns a slice of objects with details about transactions
|
// ListSinceBlock returns a slice of objects with details about transactions
|
||||||
// since the given block. If the block is -1 then all transactions are included.
|
// since the given block. If the block is -1 then all transactions are included.
|
||||||
// This is intended to be used for listsinceblock RPC replies.
|
// This is intended to be used for listsinceblock RPC replies.
|
||||||
func (w *Wallet) ListSinceBlock(start, end, syncHeight int32) ([]btcjson.ListTransactionsResult, error) {
|
func (w *Wallet) ListSinceBlock(accountName string, start, end, syncHeight int32) ([]btcjson.ListTransactionsResult, error) {
|
||||||
txList := []btcjson.ListTransactionsResult{}
|
txList := []btcjson.ListTransactionsResult{}
|
||||||
err := walletdb.View(w.db, func(tx walletdb.ReadTx) error {
|
err := walletdb.View(w.db, func(tx walletdb.ReadTx) error {
|
||||||
txmgrNs := tx.ReadBucket(wtxmgrNamespaceKey)
|
txmgrNs := tx.ReadBucket(wtxmgrNamespaceKey)
|
||||||
|
@ -2059,8 +2059,8 @@ func (w *Wallet) ListSinceBlock(start, end, syncHeight int32) ([]btcjson.ListTra
|
||||||
detail := detail
|
detail := detail
|
||||||
|
|
||||||
jsonResults := listTransactions(
|
jsonResults := listTransactions(
|
||||||
tx, &detail, w.Manager, syncHeight,
|
accountName, tx, &detail, w.Manager,
|
||||||
w.chainParams,
|
syncHeight, w.chainParams,
|
||||||
)
|
)
|
||||||
txList = append(txList, jsonResults...)
|
txList = append(txList, jsonResults...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue