SomberNight
bc06ded4b9
persist nodes in channel_db on disk
7 years ago
SomberNight
a5b44d25b0
persist channel db on disk. verify channel gossip sigs.
7 years ago
SomberNight
c1d1826014
start using electrum protocol 1.4
7 years ago
ThomasV
c7e47b74a9
Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements
7 years ago
ThomasV
61983c222a
lightning: single shared instance of Watcher, ChannelDB and PathFinder
7 years ago
Janus
98f6f67c6b
lightning: misc patches, launch asyncio loop on separate thread
7 years ago
SomberNight
a10dc04b28
wallet: fix offline hw wallet signing when not specifying --offline
closes #5532
6 years ago
SomberNight
a2bffb9137
network: harden against eclipse attacks
6 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
6 years ago
SomberNight
2481d708cc
network: sanitize_tx_broadcast_response - new strings in bitcoind 0.18
6 years ago
SomberNight
0c963b0894
network.broadcast_transaction: add "do not trust" text to log messages
6 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
6 years ago
SomberNight
3385a94753
logging: basics
6 years ago
SomberNight
1110f13c62
network: allow longer timeouts in _run_new_interface
On Windows box with weird networking setup (VPN, no IPv6, many DNS nameservers
but only some working well), the previous timeouts were too low: they were
reached due to DNS resolution.
related: #4421
6 years ago
SomberNight
c49d5f672c
network: fix proxy case
follow-up "healty spread of servers" d8f3ab0917
6 years ago
SomberNight
d8f3ab0917
network: do not connect to multiple servers on same /16
maintain a healthy spread of (IP addresses of) connected servers
6 years ago
SomberNight
7ddc28b0dc
network: cap number of server peers accepted from main server
6 years ago
SomberNight
d07fce0826
windows DNS resolution: handle domain with only AAAA records
this is getting too complicated :/
6 years ago
SomberNight
c4fb58cd74
windows DNS resolution: follow-up 9b0773cf2b
related: #5176 , #4421
prev was failing on systems where
IPv6 is not available but DNS can resolve AAAA records
(my artificial test environment with IPv6 disabled was also filtering AAAA DNS)
6 years ago
SomberNight
1cfac928f9
trustedcoin: longer timeout for server signing
fixes #5221
6 years ago
SomberNight
9b0773cf2b
windows DNS resolution: handle IPv6
related: #5176 , #4421
6 years ago
SomberNight
6702c335e8
network: (trivial) ignore empty string donation address
6 years ago
ThomasV
791e680a96
abstract database away from wallet and address_synchronizer
6 years ago
SomberNight
4b3a285871
exchange_rate: some clean-up and fixes
- generation of currencies.json was broken
- removed some dead exchanges
6 years ago
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
6 years ago
SomberNight
141ff99580
blockchain.py: generalise fork ids to get rid of conflicts
6 years ago
SomberNight
55963bd092
network: oneserver should be bool
fix #4858
6 years ago
SomberNight
e1b85327be
transaction: clean-up multisig_script
6 years ago
SomberNight
a89e67eeed
network: trivial clean-up
6 years ago
SomberNight
160bc93e26
implement oneserver option for kivy
closes #4826
6 years ago
SomberNight
7a46bd1089
network: minor clean-up
6 years ago
SomberNight
e37da62a1c
fix most "scripts"
related: #4754
6 years ago
SomberNight
5c4a6c0f2b
rm network.add_job
current implementation is prone to race, and is not used anyway
6 years ago