From 789d4a80859524418ad4e7775eabf21e89ef2862 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 27 Nov 2023 08:42:09 -0600 Subject: [PATCH] firo electrumx batching re enabled --- .../wallet/wallet_mixin_interfaces/electrumx_interface.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart index b710c718f..be786ff52 100644 --- a/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart +++ b/lib/wallets/wallet/wallet_mixin_interfaces/electrumx_interface.dart @@ -16,6 +16,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart'; import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart'; import 'package:stackwallet/utilities/logger.dart'; +import 'package:stackwallet/wallets/crypto_currency/coins/firo.dart'; import 'package:stackwallet/wallets/models/tx_data.dart'; import 'package:stackwallet/wallets/wallet/intermediate/bip39_hd_wallet.dart'; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/paynym_interface.dart'; @@ -26,7 +27,10 @@ mixin ElectrumXInterface on Bip39HDWallet { late CachedElectrumXClient electrumXCachedClient; double? _serverVersion; - bool get serverCanBatch => _serverVersion != null && _serverVersion! >= 1.6; + // Firo server added batching without incrementing version number... + bool get serverCanBatch => + (_serverVersion != null && _serverVersion! >= 1.6) || + cryptoCurrency is Firo; List<({String address, Amount amount})> _helperRecipientsConvert( List addrs, List satValues) {