mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 06:45:21 +01:00
LndRpcClient: Fix listUnspent only showing unconfirmed utxos (#3663)
This commit is contained in:
parent
74777a9683
commit
fd6e0864ac
1 changed files with 6 additions and 1 deletions
|
@ -199,10 +199,15 @@ class LndRpcClient(val instance: LndInstance, binaryOpt: Option[File] = None)(
|
|||
}
|
||||
|
||||
def listUnspent: Future[Vector[UTXOResult]] = {
|
||||
val request = ListUnspentRequest(0, Int.MaxValue)
|
||||
listUnspent(request)
|
||||
}
|
||||
|
||||
def listUnspent(request: ListUnspentRequest): Future[Vector[UTXOResult]] = {
|
||||
logger.trace("lnd calling listunspent")
|
||||
|
||||
lnd
|
||||
.listUnspent(ListUnspentRequest())
|
||||
.listUnspent(request)
|
||||
.map(_.utxos.toVector.map { utxo =>
|
||||
val outPointOpt = utxo.outpoint.map { out =>
|
||||
val txId = DoubleSha256DigestBE(out.txidStr)
|
||||
|
|
Loading…
Add table
Reference in a new issue