Return only confirmed transactions in Wallet::getTransactions
This commit is contained in:
parent
25b8a8841d
commit
4a7d665f7c
@ -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