Federico
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
electrum/network.py
|
|
@ -759,6 +759,8 @@ class Network(Logger, NetworkRetryManager[ServerAddr]): |
|
|
|
util.trigger_callback('network_updated') |
|
|
|
|
|
|
|
def get_network_timeout_seconds(self, request_type=NetworkTimeout.Generic) -> int: |
|
|
|
if self.config.get('network_timeout', None): |
|
|
|
return int(self.config.get('network_timeout')) |
|
|
|
if self.oneserver and not self.auto_connect: |
|
|
|
return request_type.MOST_RELAXED |
|
|
|
if self.proxy: |
|
|
|