ThomasV
52520490c5
improve network send_multiple_requests
6 years ago
SomberNight
7b8114f865
synchronizer: allow server not finding txn sometimes
User has wallet file with history that includes some txid; corresponding
raw tx is not in the "transactions" dict in the file however.
When the synchronizer starts up, it requests this "missing" txn from
the server... but what if the server does not know about it?
Maybe it was reorged and is not in the new best chain,
and not even in mempool. This was not handled previously.
fix #5122
6 years ago
ghost43
c8562f5362
network: reintroduce network.debug ( #5093 )
network.debug and interface.debug were removed during the asyncio-aiorpcx
network-rewrite.
6 years ago
SomberNight
019884a98b
network: follow-up 38ab7ee554
6 years ago
SomberNight
38ab7ee554
network: catch untrusted exceptions from server in public methods
and re-raise a wrapper exception (that retains the original exc in a field)
closes #5111
6 years ago
SomberNight
8072ad1ad9
network broadcast_transaction: make error text clearer
6 years ago
ThomasV
6ade5903dc
network: fix send_multiple_requests
6 years ago
ThomasV
4ed8787433
remove 'util.py' from scripts
6 years ago
SomberNight
bc2a421d87
network: clean up broadcast_transaction
Handle all exceptions in network.py, instead of in gui code.
Send some exceptions to crash reporter; previously gui code
would suppress them.
6 years ago
SomberNight
52d602b6c1
network: fix get_servers to not modify default list
6 years ago
SomberNight
e39e2ed8f1
fix typo
follow-up #5011
closes #5014
6 years ago
SomberNight
5403ae7687
network: sanitize tx broadcast response
6 years ago
SomberNight
5248613e9d
gui: prepend broadcast_transaction errors with explanatory message
6 years ago
ghost43
7773443c17
network: put NetworkTimeout constants together ( #4945 )
* network: put NetworkTimeout constants together
* fix prev
6 years ago
SomberNight
9607854b67
network: fix switching interface (restart old one)
follow-up b3ff173b45
connection_down was killing the already restarted old interface
6 years ago
SomberNight
62e352a2a8
network: don't let _maintain_sessions die from CancelledError
as then the network would get paralysed and no one can fix it
6 years ago
Janus
e1f4865844
digitalbitbox, trustedcoin: proxied http client
use common cross-thread HTTP method, which is put in network.py,
since that is where the proxy is. TrustedCoin tested successfully,
but DigitalBitbox can't be tested completely due to #4903
before this commit, digitalbitbox would not use any proxying
6 years ago
SomberNight
fe6367cbcd
network: validate donation address for server
7 years ago
SomberNight
141ff99580
blockchain.py: generalise fork ids to get rid of conflicts
7 years ago
SomberNight
55963bd092
network: oneserver should be bool
fix #4858
7 years ago
SomberNight
e1b85327be
transaction: clean-up multisig_script
7 years ago
SomberNight
a89e67eeed
network: trivial clean-up
7 years ago
SomberNight
160bc93e26
implement oneserver option for kivy
closes #4826
7 years ago
SomberNight
7a46bd1089
network: minor clean-up
7 years ago
SomberNight
e37da62a1c
fix most "scripts"
related: #4754
7 years ago
SomberNight
5c4a6c0f2b
rm network.add_job
current implementation is prone to race, and is not used anyway
7 years ago
SomberNight
c2ecfaf239
move event loop construction to daemon
7 years ago
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