SomberNight
a66437f399
lnonion: implement basis of varonion support
2020-04-01 21:42:48 +02:00
SomberNight
3a73f6ee5c
lnmsg.decode_msg: dict values for numbers are int, instead of BE bytes
...
Will be useful for TLVs where it makes sense to do the conversion in lnmsg,
as it might be more complicated than just int.from_bytes().
2020-04-01 21:39:52 +02:00
SomberNight
5e59d1a0ed
lnonion: use random starting bytes in Sphinx packet as in updated BOLT4
...
see https://github.com/lightningnetwork/lightning-rfc/pull/697
2020-03-16 04:37:52 +01:00
ThomasV
beac1c4ddc
channel_db: raise specific exception if database is not loaded when we try to find a route
2020-03-10 15:13:20 +01:00
SomberNight
74a3faf803
crypto: add 'cryptography' as alt dependency for 'pycryptodomex'
2020-03-04 18:54:20 +01:00
SomberNight
cdb72509a7
lnrouter: change edge cost estimate (distance metric)
...
Old estimate was heavily biased towards simply minimising CLTV sum.
(fees had a too low weight; typically they were ~noise)
Now also take payment_amount into account.
2020-03-03 02:12:42 +01:00
SomberNight
ec372adbb9
tests: fix test_find_path_for_payment. need to close sqlite connection
...
test was sometimes randomly failing
(always on Windows, as it's illegal to rm open files there)
2019-09-22 21:21:24 +02:00
SomberNight
04edad9984
config: no longer singleton. it is passed to Wallet.__init__
...
The few other cases that used SimpleConfig.get_instance() now
either get passed a config instance, or they try to get a reference
to something else that has a reference to a config.
(see lnsweep, qt/qrcodewidget, qt/qrtextedit)
2019-09-22 20:46:01 +02:00
JeremyRand
032810dace
test_lnrouter: Pull in chain_hash from constants
2019-08-25 07:19:36 +00:00
ThomasV
f2d58d0e3f
optimize channel_db:
...
- use python objects mirrored by sql database
- write sql to file asynchronously
- the sql decorator is awaited in sweepstore, not in channel_db
2019-08-20 09:03:12 +02:00
ThomasV
522ce5bb9f
verify channel updates in peer's TaskGroup
2019-08-20 09:03:11 +02:00
ThomasV
bfdf0a7e88
start asyncio loop in test_lnrouter and test_lnpeer
2019-08-20 09:03:11 +02:00
Janus
dd7c4b3bab
sqlite in lnrouter
2019-08-20 09:03:11 +02:00
SomberNight
2364de930b
lnrouter: run Dijkstra in reverse direction
2019-08-20 09:03:10 +02:00
SomberNight
ded11b4d9e
lnonion: implement error packet construction
2019-08-20 09:03:10 +02:00
SomberNight
2e5552816c
if payment fails with UPDATE onion error, also utilise channel_update for private channels
2019-08-20 09:03:10 +02:00
SomberNight
0578bbd5d0
fix tests
2019-08-20 09:03:10 +02:00
SomberNight
7589bdc6a9
fix tests
2019-08-20 09:03:10 +02:00
SomberNight
d29191b010
rename LNChanAnnVerifier
2019-08-20 09:03:10 +02:00
SomberNight
0b0bc89083
fix tests
2019-08-20 09:03:10 +02:00
SomberNight
5a05a92b3d
move bolt-04 onion stuff to its own module
2019-08-20 09:03:10 +02:00
SomberNight
d0798c336f
channeldb: allow injecting trusted edges
2019-08-20 09:03:10 +02:00
SomberNight
a5b44d25b0
persist channel db on disk. verify channel gossip sigs.
2019-08-20 09:03:10 +02:00
Janus
d740475e7a
move channel_state into HTLCStateMachine
2019-08-20 09:03:10 +02:00
Janus
35adc3231b
lightning: fixup after rebasing on restructured master
2019-08-20 09:03:10 +02:00