merge fixes [skip ci]

This commit is contained in:
Matthew Fosse 2024-05-29 19:08:33 -07:00
parent 4e1b96e99b
commit 0882ba016f
6 changed files with 15 additions and 17 deletions

View file

@ -355,19 +355,13 @@ class ElectrumClient {
// }
BehaviorSubject<Map<String, dynamic>>? tipListener;
int? currentTip;
Future<int?> getCurrentBlockChainTip() =>
callWithTimeout(method: 'blockchain.headers.subscribe').then((result) {
if (result is Map<String, dynamic>) {
return result["height"] as int;
}
Future<int?> getCurrentBlockChainTip() async {
final method = 'blockchain.headers.subscribe';
final cb = (result) => currentTip = result['height'] as int;
if (tipListener == null) {
tipListener = subscribe(id: method, method: method);
tipListener?.listen(cb);
cb(await call(method: method));
callWithTimeout(method: method).then(cb);
}
return currentTip;
}

View file

@ -582,14 +582,6 @@ abstract class ElectrumWalletBase
throw BitcoinTransactionNoInputsException();
}
int fee = await calcFee(
utxos: utxos,
outputs: outputs,
network: network,
memo: memo,
feeRate: feeRate,
);
return UtxoDetails(
availableInputs: availableInputs,
unconfirmedCoins: unconfirmedCoins,

View file

@ -325,8 +325,8 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
}
@override
Future<void> updateUnspentCoins() async {
await super.updateUnspentCoins();
Future<void> updateUnspent() async {
await super.updateUnspent();
await checkMwebUtxosSpent();
final mwebAddrs = (walletAddresses as LitecoinWalletAddresses).mwebAddrs;
mwebUtxos.forEach((outputId, utxo) {

View file

@ -62,6 +62,10 @@ dev_dependencies:
dependency_overrides:
watcher: ^1.1.0
protobuf: ^3.1.0
bitcoin_base:
git:
url: https://github.com/cake-tech/bitcoin_base
ref: cake-mweb
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View file

@ -47,6 +47,10 @@ dev_dependencies:
dependency_overrides:
watcher: ^1.1.0
bitcoin_base:
git:
url: https://github.com/cake-tech/bitcoin_base
ref: cake-mweb
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View file

@ -140,6 +140,10 @@ dependency_overrides:
ref: cake
flutter_secure_storage_platform_interface: 1.0.2
protobuf: ^3.1.0
bitcoin_base:
git:
url: https://github.com/cake-tech/bitcoin_base
ref: cake-mweb
flutter_icons:
image_path: "assets/images/app_logo.png"