SomberNight
5b4fada2a0
fix some network.get_transaction calls
...
see #4814 (issuecomment-434392195)
7 years ago
SomberNight
9037f25da1
kill old-style namedtuples
7 years ago
SomberNight
917b7fa898
network shutdown safety belts
7 years ago
SomberNight
791e0e1a67
move relayfee and dust_threshold to bitcoin.py
7 years ago
SomberNight
81cc20039e
more type annotations in core lib
7 years ago
SomberNight
ef2a6359e4
fix SSL log spam on py3.7
...
based on kyuupichan/electrumx@83813ff1ac71da6030f7181d3c8fe961491a51f3
see pooler/electrum-ltc#191
7 years ago
SomberNight
637e65efe3
network.stop: fix await
7 years ago
SomberNight
0e59bc1bc5
network: "switch unwanted fork" should check what fork we are on..
...
follow-up #4767
7 years ago
SomberNight
8fa6bd2aac
network: add_job
7 years ago
SomberNight
e3b372946a
rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
7 years ago
SomberNight
372921b423
mv NetworkJobOnDefaultServer to util
...
break ref cycles
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
87b05e1c9e
network: change broadcast_transaction api
...
raise exceptions instead of weird return values
closes #4433
7 years ago
SomberNight
cc18f66793
network: don't save negative ETA fee estimates
...
-1 means bitcoind could not give an estimate
7 years ago
SomberNight
02f108d927
restructure synchronizer
...
fix CLI notify cmd. fix merchant websockets.
7 years ago
SomberNight
da9d1e6001
network: ensure there is a main interface
...
scenario with previous code:
auto_connect enabled, there is only one server in regtest environment.
client started before server; client would not switch to server after it is started.
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
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
55b582511e
fix deprecation warnings in regexes
7 years ago
SomberNight
cedd518aea
mark 'blockchain_headers' file as sparse on windows
...
based on fyookball/electrum@647a6cc26dfe2d0d942159207c6e72e1b0e8d94d
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
9161e8c8f4
interface: refuse to overwrite blockchain of main interface
...
in case of conflicting forks
7 years ago
SomberNight
96b699e534
synchronizer: fix refresh bug
7 years ago
SomberNight
916cdebacb
network: send out update trigger when stopping/starting network
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
4360a785ad
blockchain: blockchains_lock needed to write/iterate global dict
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
2e61359d50
network: stop pending connections when stopping network
7 years ago
SomberNight
23f56ffa8a
network: avoid infinite reconnect loop to same server
7 years ago
SomberNight
e4bd445a38
network.new_interface: clarify how timed out interfaces are closed
7 years ago
SomberNight
78e9152723
network: get_servers to always include recent servers
7 years ago
SomberNight
1f14894c43
network: add server to recent_servers only after checks
7 years ago
SomberNight
a3fb865db0
follow-up prev
...
this is already running inside interface.group
7 years ago
SomberNight
6452582a17
network: batch requests in request_server_info
7 years ago
SomberNight
8cd08cc0fa
network: rm dead code; simplify
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
SomberNight
54cc822227
network: send out 'interfaces' event on new_interface
...
network dialog was not always showing up-to-date data
7 years ago
SomberNight
e2338581eb
broadcast_transaction: introduce async variant
7 years ago
SomberNight
b279d351d8
interface.session: add default timeout to send_request
7 years ago
SomberNight
526319630e
network: minor fix in switch_to_interface
7 years ago
SomberNight
b2547601a5
rm dead code
7 years ago
SomberNight
97ea4679a7
network: fix monkey-patching in set_proxy
7 years ago
SomberNight
3d424077fd
introduce NetworkParameters namedtuple
7 years ago
SomberNight
ecf4ea9ba7
move (de)serialize_server to interface; and use it
7 years ago
SomberNight
096b3e6026
network.maintain_sessions: rm redundant 'update' notifications
7 years ago
SomberNight
e3fb991b1b
clean-up network start/stop a bit
7 years ago