SomberNight
0b0139c676
network.get_transaction: move some response validation logic from Synchronizer
2020-01-09 19:23:28 +01:00
SomberNight
787ac5fe99
interface: make changing max incoming msg size (1 MB) easier
2019-12-27 17:43:12 +01:00
SomberNight
24ebc77d76
ln chan verifier: fix code rot
2019-12-10 01:14:38 +01:00
SomberNight
68dad21fb4
network: make best_effort_reliable smarter and a bit more lenient
...
related: #5815
2019-12-01 23:24:43 +01:00
SomberNight
a13344938f
interface: fix connecting to raw IPv6 (as hostname) on Windows
...
Changed cert pinning filename as on Windows paths cannot contain a colon ':'.
2019-11-27 13:08:22 +01:00
SomberNight
d430ec4bfc
interface.deserialize_server: better ipv6 handling
2019-11-26 00:17:00 +01:00
SomberNight
a10dc04b28
wallet: fix offline hw wallet signing when not specifying --offline
...
closes #5532
2019-07-29 13:27:37 +02:00
SomberNight
935ab9a12f
interface: check if future already done in handle_disconnect
...
future could get cancelled in network.py in which case set_result raised
2019-06-28 21:13:33 +02:00
SomberNight
4fc43da344
interface.debug will now also print errors
2019-06-26 01:16:34 +02:00
SomberNight
ab81a09de2
interface: hide some server-induced errors from log
2019-05-28 21:23:06 +02:00
SomberNight
d17e6a1b87
interface: fix for aiorpcx 0.18
2019-05-28 06:14:53 +02:00
SomberNight
41f160dd74
update to aiorpcx 0.18
2019-05-27 19:35:30 +02:00
SomberNight
eaf203dbb5
interface: fix connecting to new servers using self-signed certs
...
got broken in 6ec1578a90
2019-05-27 19:09:54 +02:00
SomberNight
e1c1a9d6a2
interface: add comment
2019-05-25 05:20:21 +02:00
SomberNight
a591ccf9b1
interface: follow-up 6ec1578a90
2019-05-22 17:43:33 +02:00
SomberNight
6ec1578a90
follow-up prev
2019-05-21 18:43:16 +02:00
SomberNight
fecef91ee0
interface was suppressing storage r/w exceptions
2019-05-21 18:11:49 +02:00
SomberNight
e8bc5bbec4
interface: follow-up 6cc70bc7a2
2019-05-15 19:56:16 +02:00
SomberNight
6cc70bc7a2
interface: when disconnecting due to RPCError, don't dump traceback
2019-05-14 15:58:02 +02:00
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
2019-05-07 21:07:18 +02:00
SomberNight
92ad7ec5c0
interface: use itertools.count
2019-05-07 17:24:00 +02:00
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
2019-05-02 15:19:10 +02:00
SomberNight
3385a94753
logging: basics
2019-05-02 15:19:03 +02:00
SomberNight
556fa30ddf
interface: partially fix ipv6 proxy
...
note that network.deserialize_proxy is still broken for ipv6
2019-05-02 12:04:06 +02:00
SomberNight
51e0672da6
update to aiorpcx 0.17
2019-04-30 21:24:39 +02:00
SomberNight
c49d5f672c
network: fix proxy case
...
follow-up "healty spread of servers" d8f3ab0917
2019-04-15 10:49:09 +02:00
SomberNight
2dca91d048
interface: better exception handling for _try_saving_ssl_cert_for_first_time
2019-04-12 22:49:34 +02:00
SomberNight
d8f3ab0917
network: do not connect to multiple servers on same /16
...
maintain a healthy spread of (IP addresses of) connected servers
2019-04-12 22:32:36 +02:00
SomberNight
4f2aa53a76
interface: in server.version, send "electrum/3.3.4" as client name
...
closes #5246
2019-04-12 19:11:25 +02:00
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".
2019-03-18 21:34:01 +01:00
SomberNight
0bf0b1d20b
interface.is_server_ca_signed: don't rely on assert
2019-02-18 18:00:54 +01:00
ghost43
c8562f5362
network: reintroduce network.debug ( #5093 )
...
network.debug and interface.debug were removed during the asyncio-aiorpcx
network-rewrite.
2019-02-12 20:23:43 +01:00
ThomasV
eb96d422f7
import version module
2019-02-09 12:15:46 +01:00
SomberNight
d77e4d8f5d
exception formatting: use repr(e) instead of str(e) in messages
...
repr(e) is more useful
2019-01-17 17:16:19 +01:00
SomberNight
4d0030363b
interface: catch more SOCKS exceptions
2019-01-04 11:00:48 +01:00
ghost43
7773443c17
network: put NetworkTimeout constants together ( #4945 )
...
* network: put NetworkTimeout constants together
* fix prev
2018-12-20 16:49:17 +01:00
SomberNight
78f5afff74
use certifi directly instead of requests
2018-12-13 23:11:59 +01:00
SomberNight
c09ac41b27
ssl: use certifi explicitly for aiohttp and electrum-server connections
...
fixes ssl issues on Android
2018-12-13 22:54:53 +01:00
SomberNight
0ddccd56c7
interface: fix only-genesis regtest case
2018-12-10 17:46:37 +01:00
SomberNight
9607854b67
network: fix switching interface (restart old one)
...
follow-up b3ff173b45
connection_down was killing the already restarted old interface
2018-12-10 08:03:42 +01:00
SomberNight
b3ff173b45
interface: change close() implementation
...
was getting on lightning branch in some circumstances
RecursionError: maximum recursion depth exceeded while calling a Python object
2018-12-09 20:02:00 +01:00
SomberNight
141ff99580
blockchain.py: generalise fork ids to get rid of conflicts
2018-11-22 16:57:22 +01:00
ThomasV
a266de6735
PrintError: display verbosity filter
2018-11-14 13:16:08 +01:00
SomberNight
1c63bca2c7
follow-up prev
2018-10-30 19:19:46 +01:00
SomberNight
5b4fada2a0
fix some network.get_transaction calls
...
see #4814 (issuecomment-434392195)
2018-10-30 19:07:37 +01:00
SomberNight
bcdb0c46fc
update to aiorpcx 0.9 and require it
2018-10-26 17:06:42 +02:00
SomberNight
81cc20039e
more type annotations in core lib
2018-10-22 16:41:25 +02:00
SomberNight
e3b372946a
rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
2018-10-12 18:36:48 +02:00
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.
2018-10-11 20:07:19 +02:00
SomberNight
02f108d927
restructure synchronizer
...
fix CLI notify cmd. fix merchant websockets.
2018-10-03 17:13:46 +02:00