mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-02-02 19:26:27 +00:00
CW-295-Electrum-Transactions-not-getting-fetched-correctly (#838)
* increase timeout for electrum server.ping
* update timer for compliter
* Revert "update timer for compliter"
This reverts commit a2af1e1ff7
.
* [skip ci] increace aliveTimerDuration
This commit is contained in:
parent
8b7bfd74e3
commit
35ce5b8b36
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ class ElectrumClient {
|
|||
unterminatedString = '';
|
||||
|
||||
static const connectionTimeout = Duration(seconds: 5);
|
||||
static const aliveTimerDuration = Duration(seconds: 2);
|
||||
static const aliveTimerDuration = Duration(seconds: 4);
|
||||
|
||||
bool get isConnected => _isConnected;
|
||||
Socket? socket;
|
||||
|
@ -358,7 +358,7 @@ class ElectrumClient {
|
|||
Future<dynamic> callWithTimeout(
|
||||
{required String method,
|
||||
List<Object> params = const [],
|
||||
int timeout = 2000}) async {
|
||||
int timeout = 4000}) async {
|
||||
try {
|
||||
final completer = Completer<dynamic>();
|
||||
_id += 1;
|
||||
|
|
Loading…
Reference in a new issue