SomberNight
21e637f543
network: validate server peers sent by main server
...
Data returned by the main server for request "server.peers.subscribe"
is of course untrusted input. Previously if it contained e.g. invalid port numbers
or IP addresses, it could kill the whole network taskgroup.
(this might have only affected master and not released versions,
which would only raise exceptions once the client actually tried to connect to an invalid host/port)
2020-05-13 19:28:35 +02:00
SomberNight
6d1acc929a
kivy: fix "choose from peers" in network server-select popup
...
follow-up 9e57ae630b
fixes #6161
2020-05-13 19:05:07 +02:00
SomberNight
41aa50a3f3
coldcard: log exception traceback in create_client
...
related: https://github.com/Coldcard/ckcc-protocol/pull/9
2020-05-13 18:11:53 +02:00
ThomasV
a3332dc72a
show watchtower db size in GUI
2020-05-13 15:13:09 +02:00
ThomasV
d3fb68575d
daemon.py: Add authentication to Watchtower.
...
Define abstract class AuthenticatedServer
2020-05-12 10:12:30 +02:00
ThomasV
2fed218452
follow-up prev commit (fix regtest)
2020-05-12 09:22:39 +02:00
ThomasV
8fb79196ba
add_lightning_request command: return request object
2020-05-11 17:52:04 +02:00
SomberNight
c034219c5a
ln invoices: more relaxed filtering of chans to include route hints for
...
e.g. just because remote peer is temporarily offline, we might still want it
included in the invoice
2020-05-11 16:01:33 +02:00
ThomasV
1788e5c1c0
lnworker: catch exceptions raised in decode_msg
2020-05-11 10:31:49 +02:00
ThomasV
6aeab66463
fix #6157
2020-05-11 08:12:09 +02:00
ThomasV
e2c2c89988
follow-up prev
2020-05-10 22:11:09 +02:00
ThomasV
0070e5036c
follow-up previous commit
2020-05-10 21:45:10 +02:00
ThomasV
13317c2f51
fix callback name: request_status
2020-05-10 21:14:31 +02:00
ThomasV
87facaa781
payserver: do not allow create_invoice by default
2020-05-10 17:07:19 +02:00
ThomasV
11aaa0b66f
Simplify services (watchtower, payserver):
...
- Do not expose services settings in GUI
- Use a single netaddress configuration variable.
2020-05-10 14:52:50 +02:00
ThomasV
526c75ad53
lnrouter: blacklist channels for a limited time (see #6124 )
2020-05-10 12:37:27 +02:00
ThomasV
ac67f7ae30
discard channel updates too far in the future, or too close apart (see #6124 )
2020-05-10 12:16:16 +02:00
ThomasV
b891d3dc85
new command: get_ssl_domain
2020-05-09 10:33:18 +02:00
relativistic electron
fbc539e2cc
One can now click the back button in the show_xpub_and_add_cosigners wizard step
2020-05-07 10:19:48 +02:00
ThomasV
984da7515a
fix #6125 : detect self-payments
2020-05-06 12:58:55 +02:00
SomberNight
619f8555f5
follow-up prev: trivial rename
...
Just realised that the "diamond" graph is actually defined in Graph Theory
but it has an extra edge. What we have here is apparently called a "square" graph.
Not that it matters much but might as well name it as such then...
2020-05-06 11:27:50 +02:00
SomberNight
cc4029c335
test_lnpeer: add some multi-hop payment unit tests
2020-05-06 11:06:44 +02:00
SomberNight
7153e753d1
lnworker._pay: allow specifying path as argument
...
not exposed to CLI/etc yet but will be used in tests soon
2020-05-06 11:06:40 +02:00
SomberNight
63b18dc30f
lnrouter: add PathEdge/LNPaymentPath for (node_id, scid)
2020-05-06 11:06:37 +02:00
SomberNight
04d018cd0f
test_lnpeer: some clean-up, make it easier to add "num_node>2" tests
2020-05-06 11:06:33 +02:00
SomberNight
7951f2ed3b
lnworker.pay: small clean-up
2020-05-06 04:02:59 +02:00
SomberNight
7d3eb5d4db
(trivial) follow-up c1b1638615
2020-05-06 04:01:56 +02:00
SomberNight
62be1cc367
small clean-up re "extract preimage from on-chain htlc_tx"
...
related: #6122
2020-05-06 03:15:20 +02:00
ThomasV
5c05c06bf0
follow-up prev commit: fix test_lnpeer
2020-05-05 21:18:17 +02:00
ThomasV
7b44e27087
lnpay: return payment log, increase timeout
2020-05-05 18:32:43 +02:00
ThomasV
d7b853f271
follow-up 8ba7e68064
2020-05-05 15:40:13 +02:00
ThomasV
887b643706
follow-up prev commit...
2020-05-05 09:58:50 +02:00
ThomasV
a8c14e65ad
follow-up prev commit
2020-05-05 09:57:01 +02:00
ThomasV
1529b07aa4
follow-up prev commit
2020-05-05 09:55:56 +02:00
ThomasV
c1b1638615
fix htlc forwarding:
...
- persist fail_htlc error messages
- do not rely on payment_hash in htlc_switch
2020-05-05 09:23:48 +02:00
ThomasV
7cbb102c81
add test with fail_malformed_htlc to forwarding regtest
2020-05-05 09:04:17 +02:00
ThomasV
ab188ff375
add config variable to test update_fail_malformed_htlc
2020-05-04 20:31:44 +02:00
ThomasV
8ba7e68064
fix #6122 : extract preimage from on-chain htlc_tx
2020-05-03 16:03:27 +02:00
JeremyRand
62ca53cdf4
Fix "backed" typo in crypto.py
2020-05-03 03:08:28 +00:00
SomberNight
484e317bfa
android build: update p4a and buildozer
...
should fix travis issues
2020-05-03 04:06:06 +02:00
ThomasV
abe1bece2c
remove UnknownPaymentHash (exception used as value)
2020-05-02 22:37:28 +02:00
ThomasV
a5a5048d53
lnpay: save invoice
2020-05-02 17:26:02 +02:00
ThomasV
085b6ca2ab
jsonrpc: pass timeout to aiohttp session
2020-05-02 17:25:30 +02:00
ThomasV
123b8c1792
(minor) rename chan.sweep_htlc
2020-05-02 11:42:47 +02:00
ThomasV
f53a10084d
create_sweeptxs_for_our_ctx: fix static_remotekey
2020-05-01 16:54:50 +02:00
SomberNight
5bf3115a4a
qt send tab: (fix) allow user to set lower fees if "not enough funds"
...
Previously if the user tried to pay an invoice, we tried to construct
a tx with the desired feerate. If this raise NotEnoughFunds, we would just
show the error and not let the user change the feerate.
related: https://github.com/spesmilo/electrum/issues/6136#issuecomment-622254754 (method 2)
2020-05-01 07:51:29 +02:00
SomberNight
b9bb78a1db
qt ConfirmTxDialog: fix exc for "max" invoice when "not enough funds"
...
"not enough funds" is possible even for "max" invoice due to fees
fixes #6136
2020-05-01 07:34:11 +02:00
SomberNight
0ee73378c9
daemon: rm "daemon.wallet" reference
...
related: #4905 -- when closing a wallet, it can get gc-ed now
TODO: PayServer needs to choose wallet somehow
2020-05-01 06:56:21 +02:00
SomberNight
0f6cbfba8e
qt update checker: do not keep main window ref so it can gc-ed
...
related: #4905
2020-05-01 06:39:55 +02:00
SomberNight
2105c6c4e6
qt exception window: turn Exception_Hook into singleton
...
related #4905
related Electron-Cash/Electron-Cash@6a3d76b0ab
conceptually did not really make sense that the Exception_Hook kept a reference
to an ~arbitrary main window (preventing gc)
2020-05-01 06:33:38 +02:00