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
SomberNight
1d711eeadc
interface: split up 'step'; binary search of headers
7 years ago
SomberNight
58a5346d72
network: switch lagging interface
7 years ago
SomberNight
27e42b4826
interface: if header is on other chain already, just switch (regression)
7 years ago
SomberNight
3fc9326c43
interface: try hard not to infinite loop while getting headers
7 years ago
SomberNight
da23e71db1
interface: block header search simplifications
7 years ago
SomberNight
ab94a47b8e
network: mv request_chunk to interface
...
this is a bugfix: the old code always tried to connect the chunk to
network.blockchain(). the correct behaviour is to connect to the
blockchain of the interface.
7 years ago
SomberNight
6f5a4a5502
fix prev: rm incorrect assert
7 years ago
SomberNight
482259df8b
interface: further clean-up in 'step'
7 years ago
SomberNight
beb37aafc5
interface: clean-up 'step'; backwards search
7 years ago
SomberNight
e4bd445a38
network.new_interface: clarify how timed out interfaces are closed
7 years ago
SomberNight
64ab8222f7
interface: if request times out, no need to dump trace
7 years ago
SomberNight
c93d137c5e
interface: minor clean-up split out _set_proxy from init
7 years ago
SomberNight
c40468a8d3
interface: disable bw rate limiting done by aiorpcx
7 years ago
SomberNight
cad4fb80c1
interface: throttle messages
7 years ago
SomberNight
47a97279af
rename CustomTaskGroup to SilentTaskGroup
7 years ago
SomberNight
2039c07a2d
interface.mark_ready: handle cancellation
7 years ago
SomberNight
1419a5c60d
interface: change how GracefulDisconnect is handled
7 years ago
SomberNight
152c6abb86
network: fix another race in session.subscribe
...
key in session.subscriptions does not imply key in session.cache
7 years ago
SomberNight
ab3c3c5ed7
interface: small clean-up
7 years ago
SomberNight
014c0d3a41
network: update UI when downloading chunks
7 years ago
SomberNight
518c6280e9
interface: minor clean-up re timeouts
7 years ago
SomberNight
ecc296cf67
fix race in session.subscribe
7 years ago
SomberNight
8b8ca14c6d
move get_index from network to session
7 years ago
SomberNight
e829d6bbcf
wallet: put Sync and Verifier in their own TaskGroup, and that into interface.group
7 years ago
Janus
09dfb0fd1d
fix off-by-one error when syncing from genesis w/o checkpoints
7 years ago