SomberNight
c010aa327e
lnworker: (fix) a listening node would busy-loop if remote DC-ed early
...
StreamReader.read() returns b'' on EOF, resulting in a busy loop
2020-09-24 01:52:35 +02:00
SomberNight
223b62554e
lntransport: use network proxy if available
...
fixes #4824
2020-04-15 21:44:09 +02:00
SomberNight
90cb032721
lnworker: implement exponential backoff for retries
2020-04-15 17:24:04 +02:00
SomberNight
8e8ab775eb
lnchannel: make AbstractChannel inherit ABC
...
and add some type annotations, clean up method signatures
2020-04-13 15:57:53 +02:00
SomberNight
18f3a37032
crypto: move LN-related chacha20/poly1305 code into crypto.py
2020-03-04 17:58:43 +01:00
SomberNight
13d6997355
LNPeerAddr: validate arguments
...
no longer subclassing NamedTuple (as it is difficult to do validation then...)
2019-11-26 00:15:33 +01:00
SomberNight
a27b03be6d
lnhtlc: local update raw messages must not be deleted before acked
...
In recv_rev() previously all unacked_local_updates were deleted
as it was assumed that all of them have been acked at that point by
the revoke_and_ack itself. However this is not necessarily the case:
see new test case.
renamed log['unacked_local_updates'] to log['unacked_local_updates2']
to avoid breaking existing wallet files
2019-08-20 09:03:12 +02:00
ThomasV
a3c6f82bb2
move LNPeer handshake back into initialize
2019-08-20 09:03:11 +02:00
ThomasV
b5482e4470
create transport and perform handshake before creating Peer
2019-08-20 09:03:11 +02:00
ThomasV
d493dd1953
add pycryptodomex to requirements
2019-08-20 09:03:11 +02:00
SomberNight
9256472485
rm 'cryptography' as dependency; use new pycryptodomex version
...
pycryptodomex 3.7 implemented chacha20_poly1305 and chacha20,
and it is already used (although optionally) to speed up AES,
so we can remove cryptography and make pycryptodomex mandatory for LN
2019-08-20 09:03:11 +02:00
SomberNight
449ec013fe
add licence headers to more files
2019-08-20 09:03:10 +02:00
SomberNight
f70e679aba
some more type annotations that needed conditional imports
2019-08-20 09:03:10 +02:00
SomberNight
9de6028fb5
clean-up Peer init
2019-08-20 09:03:10 +02:00
Janus
962f70c7da
ln: add lightning_listen config option
2019-08-20 09:03:10 +02:00
ThomasV
409a336071
fix tests (follow-up previous commit)
2019-08-20 09:03:10 +02:00
ThomasV
445252284f
move transport code to its own file
2019-08-20 09:03:10 +02:00