Couple of fixes

This commit is contained in:
Hector Chu 2024-04-27 17:40:47 +01:00
parent b1f0334550
commit 2c941efcc3

View file

@ -188,6 +188,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
date: date, confirmations: confirmations,
inputAddresses: [],
outputAddresses: [utxo.address]);
tx.height = utxo.height;
tx.isPending = utxo.height == 0;
tx.confirmations = confirmations;
if (transactionHistory.transactions[utxo.outputId] == null) {
@ -271,7 +272,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
if (outputId.isEmpty) return false;
final stub = await CwMweb.stub();
final resp = await stub.spent(SpentRequest(outputId: outputId));
if (resp.outputId.toSet() != target) return false;
if (!setEquals(resp.outputId.toSet(), target)) return false;
final status = await stub.status(StatusRequest());
if (!tx.isPending) return false;
tx.height = status.mwebUtxosHeight;