Commit graph

83 commits

Author SHA1 Message Date
Janus
c64c9b5d0b tests/lnbase: stub on_channels_updated 2018-11-12 18:15:48 +01:00
ThomasV
9c4fa7b251 follow-up prev commit 2018-11-12 12:25:21 +01:00
Janus
cedf1b5433 fix ln tests 2018-11-07 18:00:45 +01:00
Janus
5d7acf993d function that returns map from commitment number to list of HTLCs 2018-11-05 20:31:06 +01:00
Janus
481b6c231a
call force_close_channel on LNWorker, not Peer 2018-11-05 20:24:16 +01:00
Janus
266d9462f3
move force_close_channel to lnbase, test it, add FORCE_CLOSING state 2018-11-05 20:24:15 +01:00
Janus
09a948c448
lnchan: use NamedTuple for logs instead of dict with static keys (adds, locked_in, settles, fails) 2018-11-05 20:24:13 +01:00
Janus
cbc0422af1
lnchan: make sign_next_commitment revert state 2018-11-05 20:24:12 +01:00
SomberNight
f411183158
after rebase clean-up 2018-11-05 20:24:11 +01:00
Janus
751942442e
test_lnbase: add test that pays to another local electrum 2018-11-05 20:24:11 +01:00
Janus
d8de048003
add lnd copyright boilerplate to lnchan, test_lnchan 2018-11-05 20:24:09 +01:00
Janus
3efd8dedb6
lnbase: mark initialized later, add tests, etc
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
2018-11-05 20:24:09 +01:00
Janus
1dc9e062df
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests 2018-11-05 20:24:08 +01:00
Janus
36d03f4762
lightning channel reserves 2018-11-05 20:24:05 +01:00
Janus
c34ce01f3b
follow-up redeeming of local outgoing htlc outputs, fix tests 2018-11-05 20:24:03 +01:00
SomberNight
3f53384309
lnrouter: run Dijkstra in reverse direction 2018-11-05 20:24:00 +01:00
SomberNight
5538b9bb8a
lnonion: implement error packet construction 2018-11-05 20:23:58 +01:00
Janus
0b2f539c81
lnchan: add available_to_spend() 2018-11-05 20:23:54 +01:00
SomberNight
97d1438f5d
lnaddr: encode min_final_cltv into invoice 2018-11-05 20:23:53 +01:00
SomberNight
3d89cc355d
if payment fails with UPDATE onion error, also utilise channel_update for private channels 2018-11-05 20:23:49 +01:00
Janus
34dff98919
ln: add lightning_listen config option 2018-11-05 20:23:49 +01:00
Janus
e85226a6b3
make function for determining who pays fee 2018-11-05 20:23:46 +01:00
ThomasV
560a8e99ac
fix tests (follow-up previous commit) 2018-11-05 20:23:44 +01:00
SomberNight
a124e7ebf9
fix tests 2018-11-05 20:23:42 +01:00
SomberNight
4e8d019d8d
fix tests 2018-11-05 20:19:05 +01:00
Janus
12bc0a75f8
rename lnhtlc->lnchan, HTLCStateMachine->Channel 2018-11-05 20:19:01 +01:00
Janus
e1f37a17f3
lnhtlc: only store feerate once, don't store heights since we do not roll back 2018-11-05 20:19:00 +01:00
Janus
ab2ca4d018
lnhtlc: merge config and state, remove unnecessary properties 2018-11-05 20:19:00 +01:00
Janus
ab991ce207
lnhtlc: remove lookup_htlc, use heterogeneously typed lists 2018-11-05 20:18:59 +01:00
Janus
7cb76fee84
lnhtlc: save settled htlc amounts separately 2018-11-05 20:18:59 +01:00
SomberNight
8a14993f9b
fix tests 2018-11-05 20:18:47 +01:00
Janus
4b2fa6a828
move connection string decoding to lnworker, fix test_lnutil 2018-11-05 20:18:38 +01:00
Janus
0e0f8a7d8f
avoid reading from queues concurrently in pay() 2018-11-05 20:18:31 +01:00
SomberNight
af16e32257
rename LNChanAnnVerifier 2018-11-05 20:18:28 +01:00
Janus
d79ccb1c4c
lnhtlc: save logs and feeupdates 2018-11-05 20:16:12 +01:00
Janus
48dce17263
lnhtlc: don't throw away fee updates or htlcs
also add inject_fees debug command
2018-11-05 20:16:11 +01:00
Janus
40dc5ed28f
lnhtlc: cleanup and save settled htlcs 2018-11-05 20:16:11 +01:00
Janus
211de74f47
lnhtlc: test that sent amount is received 2018-11-05 20:16:10 +01:00
Janus
d3a1c8ce42
lnwatcher rebased 2018-11-05 20:16:10 +01:00
SomberNight
fdc71e47f9
fix tests 2018-11-05 20:16:03 +01:00
SomberNight
a16388dbc8
persist recent peers. implement dns seed bootstrapping.
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
2018-11-05 20:16:03 +01:00
SomberNight
4537f2bcd5
persist nodes in channel_db on disk 2018-11-05 20:15:57 +01:00
SomberNight
766297da31
move bolt-04 onion stuff to its own module 2018-11-05 20:08:49 +01:00
Janus
add2ef5d87
ln: share more code with control path for failed htlc, verify ctx'es 2018-11-05 20:08:49 +01:00
Janus
fb4afb2383
ln: use START_INDEX instead of 2**48-1 2018-11-05 20:08:47 +01:00
Janus
d4c00ee986
ln: save htlc signatures 2018-11-05 20:08:47 +01:00
SomberNight
8f67b93e25
channeldb: allow injecting trusted edges 2018-11-05 20:08:46 +01:00
SomberNight
6742654681
persist channel db on disk. verify channel gossip sigs. 2018-11-05 20:07:42 +01:00
Janus
593552b3cb
ln: do not use mSAT accuracy for commitment fees 2018-11-05 20:06:00 +01:00
Janus
cd4d8e0598
ln: fundee must commit to fee first 2018-11-05 20:06:00 +01:00