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