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
5 years ago
SomberNight
223b62554e
lntransport: use network proxy if available
...
fixes #4824
6 years ago
SomberNight
90cb032721
lnworker: implement exponential backoff for retries
6 years ago
SomberNight
8e8ab775eb
lnchannel: make AbstractChannel inherit ABC
...
and add some type annotations, clean up method signatures
6 years ago
SomberNight
18f3a37032
crypto: move LN-related chacha20/poly1305 code into crypto.py
6 years ago
SomberNight
13d6997355
LNPeerAddr: validate arguments
...
no longer subclassing NamedTuple (as it is difficult to do validation then...)
6 years ago
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
6 years ago
ThomasV
a3c6f82bb2
move LNPeer handshake back into initialize
6 years ago
ThomasV
b5482e4470
create transport and perform handshake before creating Peer
6 years ago
ThomasV
d493dd1953
add pycryptodomex to requirements
6 years ago
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
6 years ago
SomberNight
449ec013fe
add licence headers to more files
6 years ago
SomberNight
f70e679aba
some more type annotations that needed conditional imports
6 years ago
SomberNight
9de6028fb5
clean-up Peer init
6 years ago
Janus
962f70c7da
ln: add lightning_listen config option
6 years ago
ThomasV
409a336071
fix tests (follow-up previous commit)
6 years ago
ThomasV
445252284f
move transport code to its own file
6 years ago