SomberNight
56a9ccca6d
interface: make localhost exempt from ip-range bucketing
6 years ago
SomberNight
38980a4f5c
interface: (trivial) make some methods private
6 years ago
Luke Childs
ca1046bce2
Add --serverfingerprint option ( #6094 )
...
* Add --fingerprint option
* Simplify conditional checks
* Improve warning wording
* Throw error instead of logging and returning
* --fingerprint => --serverfingerprint
* Only run fingerprint checks against main server
* Throw error if --serverfingerprint is set for a non SSL main server
* Fix linting errors
* Don't check certificate fingerprint in a seperate connection
* Disallow CA signed certs when a fingerprint is provided
* Show clear error and then exit for Qt GUI users
* Remove leading newlines from error dialog
* Always check is_main_server() when getting fingerprint
* Document how to generate SSL cert fingerprint
6 years ago
SomberNight
9e57ae630b
network/gui: unify host/port input fields to single server str
...
This allows optionally specifying the protocol for the main server.
fixes #6095
fixes #5278
6 years ago
SomberNight
ea64b2af64
interface.get_certificate: use public asyncio APIs
6 years ago
SomberNight
223b62554e
lntransport: use network proxy if available
...
fixes #4824
6 years ago
SomberNight
cf1f2ba4dc
network: replace "server" strings with ServerAddr objects
6 years ago
ThomasV
9224404108
Move callback manager out of Network class
6 years ago
ThomasV
133d74adfb
fee estimates: use median if auto-connect
6 years ago
SomberNight
ed234d3444
rename all TaskGroup() fields to "taskgroup"
...
for consistency
6 years ago
SomberNight
e65ce96f9d
interface: better error msg for main server re SSL cert issues
...
(logger.warning is shown even without -v, if there is a terminal)
closes #5884
6 years ago
SomberNight
0b0139c676
network.get_transaction: move some response validation logic from Synchronizer
6 years ago
SomberNight
787ac5fe99
interface: make changing max incoming msg size (1 MB) easier
6 years ago
SomberNight
24ebc77d76
ln chan verifier: fix code rot
6 years ago
SomberNight
68dad21fb4
network: make best_effort_reliable smarter and a bit more lenient
...
related: #5815
6 years ago
SomberNight
a13344938f
interface: fix connecting to raw IPv6 (as hostname) on Windows
...
Changed cert pinning filename as on Windows paths cannot contain a colon ':'.
6 years ago
SomberNight
d430ec4bfc
interface.deserialize_server: better ipv6 handling
6 years ago
SomberNight
a10dc04b28
wallet: fix offline hw wallet signing when not specifying --offline
...
closes #5532
6 years ago
SomberNight
935ab9a12f
interface: check if future already done in handle_disconnect
...
future could get cancelled in network.py in which case set_result raised
7 years ago
SomberNight
4fc43da344
interface.debug will now also print errors
7 years ago
SomberNight
ab81a09de2
interface: hide some server-induced errors from log
7 years ago
SomberNight
d17e6a1b87
interface: fix for aiorpcx 0.18
7 years ago
SomberNight
41f160dd74
update to aiorpcx 0.18
7 years ago
SomberNight
eaf203dbb5
interface: fix connecting to new servers using self-signed certs
...
got broken in 6ec1578a90
7 years ago
SomberNight
e1c1a9d6a2
interface: add comment
7 years ago
SomberNight
a591ccf9b1
interface: follow-up 6ec1578a90
7 years ago
SomberNight
6ec1578a90
follow-up prev
7 years ago
SomberNight
fecef91ee0
interface was suppressing storage r/w exceptions
7 years ago
SomberNight
e8bc5bbec4
interface: follow-up 6cc70bc7a2
7 years ago
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