bch block height showing as pending in ui fix

This commit is contained in:
julian 2023-05-01 13:41:53 -06:00
parent b9211ad2c3
commit e05caa589f

View file

@ -1949,8 +1949,6 @@ class BitcoinCashWallet extends CoinServiceAPI
List<Map<String, dynamic>> allTransactions = []; List<Map<String, dynamic>> allTransactions = [];
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)
@ -1958,7 +1956,9 @@ class BitcoinCashWallet extends CoinServiceAPI
.txidEqualTo(txHash["tx_hash"] as String) .txidEqualTo(txHash["tx_hash"] as String)
.findFirst(); .findFirst();
if (storedTx == null || storedTx.address.value == null if (storedTx == null ||
storedTx.address.value == null ||
storedTx.height == null
// zero conf messes this up // zero conf messes this up
// !storedTx.isConfirmed(currentHeight, MINIMUM_CONFIRMATIONS) // !storedTx.isConfirmed(currentHeight, MINIMUM_CONFIRMATIONS)
) { ) {