mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
fix: quick hack to show incoming joinsplit txns
This commit is contained in:
parent
d18ba61c22
commit
1a8aefa45c
1 changed files with 22 additions and 22 deletions
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue