fix: quick hack to show incoming joinsplit txns

This commit is contained in:
julian 2023-05-24 10:25:13 -06:00
parent d18ba61c22
commit 1a8aefa45c

View file

@ -3361,17 +3361,17 @@ class FiroWallet extends CoinServiceAPI
List<Map<String, dynamic>> allTransactions = [];
final currentHeight = await chainHeight;
// final currentHeight = await chainHeight;
for (final txHash in allTxHashes) {
final storedTx = await db
.getTransactions(walletId)
.filter()
.txidEqualTo(txHash["tx_hash"] as String)
.findFirst();
// final storedTx = await db
// .getTransactions(walletId)
// .filter()
// .txidEqualTo(txHash["tx_hash"] as String)
// .findFirst();
if (storedTx == null ||
!storedTx.isConfirmed(currentHeight, MINIMUM_CONFIRMATIONS)) {
// if (storedTx == null ||
// !storedTx.isConfirmed(currentHeight, MINIMUM_CONFIRMATIONS)) {
final tx = await cachedElectrumXClient.getTransaction(
txHash: txHash["tx_hash"] as String,
verbose: true,
@ -3387,7 +3387,7 @@ class FiroWallet extends CoinServiceAPI
tx["height"] = txHash["height"];
allTransactions.add(tx);
}
}
// }
}
final List<Tuple2<isar_models.Transaction, isar_models.Address?>> txnsData =