mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Add getUnconfirmedBalance to wallet
This commit is contained in:
parent
f5591f3c0f
commit
e2ffba5d40
1 changed files with 4 additions and 3 deletions
|
@ -53,11 +53,12 @@ trait LockedWalletApi extends WalletApi {
|
||||||
transaction: Transaction,
|
transaction: Transaction,
|
||||||
confirmations: Int): Future[LockedWalletApi]
|
confirmations: Int): Future[LockedWalletApi]
|
||||||
|
|
||||||
/** Sums up the value of all UTXOs in the wallet */
|
/** Gets the sum of all confirmed UTXOs in this wallet */
|
||||||
// noinspection AccessorLikeMethodIsEmptyParen
|
|
||||||
// async calls have side effects :-)
|
|
||||||
def getBalance(): Future[CurrencyUnit]
|
def getBalance(): Future[CurrencyUnit]
|
||||||
|
|
||||||
|
/** Gets the sum of all unconfirmed UTXOs in this wallet */
|
||||||
|
def getUnconfirmedBalance(): Future[CurrencyUnit]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If a UTXO is spent outside of the wallet, we
|
* If a UTXO is spent outside of the wallet, we
|
||||||
* need to remove it from the database so it won't be
|
* need to remove it from the database so it won't be
|
||||||
|
|
Loading…
Add table
Reference in a new issue