minor fix

This commit is contained in:
Serhii 2024-12-19 14:18:41 +02:00
parent f82e3b561c
commit bd8df5eed9

View file

@ -1361,7 +1361,10 @@ abstract class ElectrumWalletBase
@action @action
Future<void> updateAllUnspents() async { Future<void> updateAllUnspents() async {
List<BitcoinUnspent> updatedUnspentCoins = []; List<BitcoinUnspent> updatedUnspentCoins = [];
final previousUnspentCoins = List<BitcoinUnspent>.from(unspentCoins);
final previousUnspentCoins = List<BitcoinUnspent>.from(unspentCoins.where((utxo) =>
utxo.bitcoinAddressRecord.type != SegwitAddresType.mweb &&
utxo.bitcoinAddressRecord is! BitcoinSilentPaymentAddressRecord));
if (hasSilentPaymentsScanning) { if (hasSilentPaymentsScanning) {
// Update unspents stored from scanned silent payment transactions // Update unspents stored from scanned silent payment transactions