mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
Cw 868 fix false synchronised status when the socket connection fails due to network issues (#1892)
* prevent setting Synced status when the connection is lost * fallback for UTXO fetch failures * minor fix
This commit is contained in:
parent
20d30013d0
commit
b79ef988c8
2 changed files with 64 additions and 11 deletions
|
@ -235,7 +235,7 @@ class ElectrumClient {
|
|||
return [];
|
||||
});
|
||||
|
||||
Future<List<Map<String, dynamic>>> getListUnspent(String scriptHash) async {
|
||||
Future<List<Map<String, dynamic>>?> getListUnspent(String scriptHash) async {
|
||||
final result = await call(method: 'blockchain.scripthash.listunspent', params: [scriptHash]);
|
||||
|
||||
if (result is List) {
|
||||
|
@ -248,7 +248,7 @@ class ElectrumClient {
|
|||
}).toList();
|
||||
}
|
||||
|
||||
return [];
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<List<Map<String, dynamic>>> getMempool(String scriptHash) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue