Return only confirmed transactions in Wallet::getTransactions
This commit is contained in:
parent
d343bce815
commit
9d3b31b56e
@ -96,6 +96,7 @@ trait OfflineWalletOperations<B>: WalletHolder<B> {
|
|||||||
let transactions = self.get_wallet().list_transactions(true)?;
|
let transactions = self.get_wallet().list_transactions(true)?;
|
||||||
Ok(transactions
|
Ok(transactions
|
||||||
.iter()
|
.iter()
|
||||||
|
.filter(|x| x.confirmation_time.is_some())
|
||||||
.map(|x| ConfirmedTransaction {
|
.map(|x| ConfirmedTransaction {
|
||||||
fees: x.fee,
|
fees: x.fee,
|
||||||
height: x.confirmation_time.clone().map_or(0, |c| c.height),
|
height: x.confirmation_time.clone().map_or(0, |c| c.height),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user