mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
bch block height showing as pending in ui fix
This commit is contained in:
parent
b9211ad2c3
commit
e05caa589f
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue