Add getUnconfirmedBalance to wallet

This commit is contained in:
Torkel Rogstad 2019-06-19 19:07:54 +02:00
parent f5591f3c0f
commit e2ffba5d40

View file

@ -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