SomberNight
a10dc04b28
wallet: fix offline hw wallet signing when not specifying --offline
...
closes #5532
6 years ago
SomberNight
935ab9a12f
interface: check if future already done in handle_disconnect
...
future could get cancelled in network.py in which case set_result raised
7 years ago
SomberNight
4fc43da344
interface.debug will now also print errors
7 years ago
SomberNight
ab81a09de2
interface: hide some server-induced errors from log
7 years ago
SomberNight
d17e6a1b87
interface: fix for aiorpcx 0.18
7 years ago
SomberNight
41f160dd74
update to aiorpcx 0.18
7 years ago
SomberNight
eaf203dbb5
interface: fix connecting to new servers using self-signed certs
...
got broken in 6ec1578a90
7 years ago
SomberNight
e1c1a9d6a2
interface: add comment
7 years ago
SomberNight
a591ccf9b1
interface: follow-up 6ec1578a90
7 years ago
SomberNight
6ec1578a90
follow-up prev
7 years ago
SomberNight
fecef91ee0
interface was suppressing storage r/w exceptions
7 years ago
SomberNight
e8bc5bbec4
interface: follow-up 6cc70bc7a2
7 years ago
SomberNight
6cc70bc7a2
interface: when disconnecting due to RPCError, don't dump traceback
7 years ago
SomberNight
104b8804f7
logging: '-V' cli option can blacklist/whitelist classes with short names
...
for example, '-V ni' will whitelist the 'Network' and 'Interface' classes
'-V ^ni' will blacklist those instead
7 years ago
SomberNight
92ad7ec5c0
interface: use itertools.count
7 years ago
SomberNight
6940c424d1
logging: cli options to filter for modules using -v
...
old style "-v" still works
filtering examples:
-v=debug,network=error,interface=error // effectively blacklists network and interface
-v=warning,network=debug,interface=debug // effectively whitelists network and interface
7 years ago
SomberNight
3385a94753
logging: basics
7 years ago
SomberNight
556fa30ddf
interface: partially fix ipv6 proxy
...
note that network.deserialize_proxy is still broken for ipv6
7 years ago
SomberNight
51e0672da6
update to aiorpcx 0.17
7 years ago
SomberNight
c49d5f672c
network: fix proxy case
...
follow-up "healty spread of servers" d8f3ab0917
7 years ago
SomberNight
2dca91d048
interface: better exception handling for _try_saving_ssl_cert_for_first_time
7 years ago
SomberNight
d8f3ab0917
network: do not connect to multiple servers on same /16
...
maintain a healthy spread of (IP addresses of) connected servers
7 years ago
SomberNight
4f2aa53a76
interface: in server.version, send "electrum/3.3.4" as client name
...
closes #5246
7 years ago
SomberNight
3b1ece4c70
interface: if iface conn fails early, don't wait for timeout of 'ready'
...
Network code is waiting for iface.ready with a timeout.
While network.py code is waiting, the already failed iface takes up a slot
in "connecting".
7 years ago
SomberNight
0bf0b1d20b
interface.is_server_ca_signed: don't rely on assert
7 years ago
ghost43
c8562f5362
network: reintroduce network.debug ( #5093 )
...
network.debug and interface.debug were removed during the asyncio-aiorpcx
network-rewrite.
7 years ago
ThomasV
eb96d422f7
import version module
7 years ago
SomberNight
d77e4d8f5d
exception formatting: use repr(e) instead of str(e) in messages
...
repr(e) is more useful
7 years ago
SomberNight
4d0030363b
interface: catch more SOCKS exceptions
7 years ago
ghost43
7773443c17
network: put NetworkTimeout constants together ( #4945 )
...
* network: put NetworkTimeout constants together
* fix prev
7 years ago
SomberNight
78f5afff74
use certifi directly instead of requests
7 years ago
SomberNight
c09ac41b27
ssl: use certifi explicitly for aiohttp and electrum-server connections
...
fixes ssl issues on Android
7 years ago
SomberNight
0ddccd56c7
interface: fix only-genesis regtest case
7 years ago
SomberNight
9607854b67
network: fix switching interface (restart old one)
...
follow-up b3ff173b45
connection_down was killing the already restarted old interface
7 years ago
SomberNight
b3ff173b45
interface: change close() implementation
...
was getting on lightning branch in some circumstances
RecursionError: maximum recursion depth exceeded while calling a Python object
7 years ago
SomberNight
141ff99580
blockchain.py: generalise fork ids to get rid of conflicts
7 years ago
ThomasV
a266de6735
PrintError: display verbosity filter
7 years ago
SomberNight
1c63bca2c7
follow-up prev
7 years ago
SomberNight
5b4fada2a0
fix some network.get_transaction calls
...
see #4814 (issuecomment-434392195)
7 years ago
SomberNight
bcdb0c46fc
update to aiorpcx 0.9 and require it
7 years ago
SomberNight
81cc20039e
more type annotations in core lib
7 years ago
SomberNight
e3b372946a
rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
7 years ago
SomberNight
37206ec08e
network: auto-switch servers to preferred fork (or longest chain)
...
If auto_connect is enabled, allow jumping between forks too.
(Previously auto_connect was only switching servers on a given fork,
not across forks)
If there is a preferred fork set, jump to that (and stay);
if there isn't, always jump to the longest fork.
7 years ago
SomberNight
02f108d927
restructure synchronizer
...
fix CLI notify cmd. fix merchant websockets.
7 years ago
SomberNight
5e4a4ae16b
minor clean-up (prints/types/imports)
7 years ago
SomberNight
3e2c5e8656
network.best_effort_reliable: force DC if req times out; retry on new iface
7 years ago
SomberNight
4984890265
follow-up prev: make best_effort_reliable react faster to disconnects
7 years ago
SomberNight
6b8ad2d126
fix some CLI/RPC commands
7 years ago
SomberNight
deda6535e0
bump min aiorpcx to 0.8.2
7 years ago
SomberNight
952e9b87e1
network: clean-up. make external API clear. rm interface_lock (mostly).
7 years ago