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 a2af1e1ff70454af5507da5a1598eaaaf1421fea. * [skip ci] increace aliveTimerDuration

Serhii committed Mar 31, 2023 at 04:52 UTC 35ce5b8b366882db32e051266760096b6e65af9f
1 file changed +2 -2
cw_bitcoin/lib/electrum.dart
+2 -2
@@ -40,7 +40,7 @@ class ElectrumClient {
40 unterminatedString = '';
41
42 static const connectionTimeout = Duration(seconds: 5);
43 - static const aliveTimerDuration = Duration(seconds: 2);
43 + static const aliveTimerDuration = Duration(seconds: 4);
44
45 bool get isConnected => _isConnected;
46 Socket? socket;
@@ -358,7 +358,7 @@ class ElectrumClient {
358 Future<dynamic> callWithTimeout(
359 {required String method,
360 List<Object> params = const [],
361 - int timeout = 2000}) async {
361 + int timeout = 4000}) async {
362 try {
363 final completer = Completer<dynamic>();
364 _id += 1;