SomberNight
38980a4f5c
interface: (trivial) make some methods private
5 years ago
SomberNight
69de3b94db
config: "serverfingerprint" key requires "server" key
follow-up prev
5 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
5 years ago
SomberNight
e2ae44beb9
commands: "notify" cmd: stop watching addr if called with empty URL
closes #5881
5 years ago
SomberNight
54fdb011f9
fixups for CallbackManager refactor
9224404108
5 years ago
ThomasV
f4dc93cb7d
lnworker: blacklist channel if policy is unchanged but has a new timestamp.
5 years ago
ThomasV
2d0ef78a11
channel_db: add verbose option to add_channel_update
5 years ago
Evgeny Zinoviev
64733a39dc
set more restrictive file permissions for exported private keys ( #6106 )
5 years ago
Jin Eguchi
1846154ca3
build: update git in dockerfiles ( #6107 )
5 years ago
ThomasV
bdb870af00
follow-up c454564ed6
5 years ago
ThomasV
0b6ae1dbff
fix #6101
5 years ago
ThomasV
4d01a550c4
fix #6103 : local config contains remote reserve
5 years ago
ThomasV
1a4d33086b
refactoring: remove inspect_edge
5 years ago
ThomasV
ec5330fc21
separate method that runs Dijkstra and return distances
5 years ago
SomberNight
f52072e169
follow-up prev
we can't just test with a 1 msat htlc as that might be below htlc_minimum_msat
5 years ago
SomberNight
12d771737a
fix #6096 : bugfix for creating zero amount LN invoice
(also there was a unit-mismatch here...)
5 years ago
SomberNight
8f4c384aad
qt crash reporter: html.escape traceback to avoid formatting issues
fixes #6099
5 years ago
SomberNight
b1d2389656
hww: stop keystore.thread when closing wallet
previously left running? Qt on macOS was complaining:
```
QThread: Destroyed while thread is still running
Abort trap: 6
```
5 years ago
SomberNight
2cfa3bd6c8
hww hidapi usage: try to mitigate some thread-safety issues
related: #6097
5 years ago
SomberNight
98d2ab5bd6
hww: fix HardwareClientBase not having reference to plugin
it was incorrectly documented that it did (previously only for some plugins)
5 years ago
Luke Childs
cd199390e2
Use non-standard localhost port for server-string fallback ( #6087 )
* Use non-standard localhost port for server-string fallback
Co-authored-by: Luke Childs <lukechilds123@gmail.com>
5 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
5 years ago
SomberNight
b2cfaddff2
network.NetworkParameters: merge host+port+protocol into "server" field
5 years ago
SomberNight
adc3784bc2
network: allow mixed protocols among interfaces
Previously all the interfaces used either "t" or "s".
Now the network only tries to use "s" for all interfaces, except for
the main interface, which the user can manually specify to use "t".
(so e.g. if you run with "--server localhost:50002:t", the main server will use "t",
but all the rest will use "s")
5 years ago
Luke Childs
872380a525
Add electrum_data to .gitignore ( #6092 )
5 years ago
SomberNight
ea64b2af64
interface.get_certificate: use public asyncio APIs
5 years ago
ThomasV
ef5ad5f22f
extend 'add_peer', 'list_peers' commands to gossip
5 years ago
ThomasV
c454564ed6
sql_db: do not require network object
5 years ago
SomberNight
82da581d45
lnworker: clear peer retry times if proxy settings change
maybe there were failures due to the previous proxy details being incorrect
5 years ago
SomberNight
95fa5d37c3
lnworker.peers: follow-up b5811e8072
somehow I forgot writes...
5 years ago
SomberNight
223b62554e
lntransport: use network proxy if available
fixes #4824
5 years ago
SomberNight
b5811e8072
lnworker.peers: fix threading issues
5 years ago
SomberNight
47ab8f8dc5
daemon.on_stop: adapt to python 3.8
(py3.8 has breaking changes re asyncio.CancelledError and asyncio.TimeoutError)
follow-up 308517d473
5 years ago
SomberNight
c2d6a902dd
build: update some packages in dockerfiles
Ubuntu no longer serves old version
5 years ago
SomberNight
1600241b02
fix tests: follow-up prev few commits
5 years ago
SomberNight
7257172e1c
NetworkRetryManager: add random noise to time
5 years ago
SomberNight
76f0ad3271
util: add NetworkRetryManager, a baseclass for LNWorker and Network
5 years ago
SomberNight
90cb032721
lnworker: implement exponential backoff for retries
5 years ago
SomberNight
86b29603cb
network: (trivial) rename field to indicate private
5 years ago
SomberNight
ac749f3a19
network: introduce NUM_STICKY_SERVERS
5 years ago
SomberNight
34e3e48ba5
network: rm server_queue
it's no longer needed; now it was just an extra level of indirection
5 years ago
SomberNight
8baa79be88
network: implement exponential backoff for retries
5 years ago
SomberNight
cf1f2ba4dc
network: replace "server" strings with ServerAddr objects
5 years ago
ThomasV
ef2ff11926
fix tests (follow-up prev commit)
5 years ago
ThomasV
9224404108
Move callback manager out of Network class
5 years ago
ThomasV
73325831b7
run lnworker.main_loop directly on the event loop
5 years ago
Luke Childs
1d667fe932
Hard fail on bad server-string ( #6086 )
* If server-string can't be parsed, fall back to localhost.
Co-Authored-By: Luke Childs <lukechilds123@gmail.com>
Co-authored-by: ghost43 <somber.night@protonmail.com>
5 years ago
ThomasV
da8b24d61a
require aiohttp_socks>=0.3
5 years ago
SomberNight
70f70d0f80
README: mention script location (for "electrum", after pip install)
related: #6082
5 years ago
SomberNight
40dc54e8b8
macOS: duplicate Qt "Preferences" menu item
There is a standardised location along with reserved hotkey for "Preferences"
in applications on macOS. Let's put *another* preferences menu item there.
The duplicate items ensure that
- an electrum user coming from a different OS,
- a macOS user used to the standardised preferences location,
will both find "Preferences" easily.
5 years ago