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
SomberNight
3be5b4b00f
network: fix some threading issues
7 years ago
SomberNight
855a70bc66
network: new trigger 'blockchain_updated'
...
follow-up af63913189
needed to update history tab when new blocks come,
to refresh the number of confirmations (icons/tooltips)
7 years ago
SomberNight
8ee1f140d8
interface: split run_fetch_blocks
...
The 'continue' in the middle was too easy to miss.
We want a 'network_updated' trigger from every interface,
not just the fastest.
7 years ago
SomberNight
9161e8c8f4
interface: refuse to overwrite blockchain of main interface
...
in case of conflicting forks
7 years ago
SomberNight
adc91eb75e
interface: hostname cannot be empty
7 years ago
SomberNight
af63913189
network triggers: rm 'updated'; more fine-grained instead
...
rm 'interfaces'
add 'wallet_updated', add 'network_updated'
7 years ago
SomberNight
825d7c2cbd
interface: subscribe to headers in run_fetch_blocks
...
so that 'monitor_connection' is already running while waiting for first header
7 years ago
SomberNight
7221fb3231
interface: further simplifications for fork resolution
7 years ago
SomberNight
b3a2bce213
interface: simplify fork resolution logic
7 years ago
SomberNight
4360a785ad
blockchain: blockchains_lock needed to write/iterate global dict
7 years ago
SomberNight
7dc5665ab1
interface: faster bootstrap of backwards search
7 years ago
SomberNight
9c919e6478
interface: fix off-by-one in request_chunk
...
was harmless; usually we just downloaded an extra individual header after the chunk
7 years ago