SomberNight
|
0b2993cd06
|
add licence headers to more files
|
2018-11-05 20:24:10 +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
|
3866df6650
|
lnworker: fix listchannels
|
2018-11-05 20:24:09 +01:00 |
|
Janus
|
838b79f7b8
|
lnbase: do not assert only one htlc in commitment
|
2018-11-05 20:24:08 +01:00 |
|
Janus
|
1dc9e062df
|
lightning channels reserves: use pretty balance in Qt, fix bugs, add tests
|
2018-11-05 20:24:08 +01:00 |
|
ThomasV
|
f8fd131d01
|
use WaitingDialog to close channels
|
2018-11-05 20:24:07 +01:00 |
|
ThomasV
|
b38e25844b
|
add close_channel method to peer
|
2018-11-05 20:24:07 +01:00 |
|
ThomasV
|
82e1c5228a
|
fix typo
|
2018-11-05 20:24:06 +01:00 |
|
ThomasV
|
61cbe573a5
|
parse invoices with lightning: prefix
|
2018-11-05 20:24:06 +01:00 |
|
ThomasV
|
304e4fd537
|
lnbase: self.channel_reestablished is not a queue
|
2018-11-05 20:24:05 +01:00 |
|
Janus
|
36d03f4762
|
lightning channel reserves
|
2018-11-05 20:24:05 +01:00 |
|
SomberNight
|
53027d6b2f
|
lnworker: store invoices based on payment_hash
|
2018-11-05 20:24:04 +01:00 |
|
ThomasV
|
0890a2beaa
|
lnbase: call save_channel in revoke and receive_revoke
|
2018-11-05 20:24:04 +01:00 |
|
Janus
|
94b0631ccc
|
fix co-op close
|
2018-11-05 20:24:04 +01:00 |
|
Janus
|
c34ce01f3b
|
follow-up redeeming of local outgoing htlc outputs, fix tests
|
2018-11-05 20:24:03 +01:00 |
|
SomberNight
|
5ce88014c8
|
lnutil.make_funding_input: don't return payment pubkeys
order depends on who is initiator anyway
|
2018-11-05 20:24:03 +01:00 |
|
Janus
|
3afb9c8ca3
|
redeem htlc outputs of our local commitment transaction back to wallet
|
2018-11-05 20:24:02 +01:00 |
|
SomberNight
|
5c8b5a0b7c
|
some more type annotations that needed conditional imports
|
2018-11-05 20:24:02 +01:00 |
|
SomberNight
|
c60715d55c
|
lnchan: set diagnostic_name
previously was only set for tests
|
2018-11-05 20:24:01 +01:00 |
|
SomberNight
|
9c7140f383
|
better handling of channel updates for private channels
|
2018-11-05 20:24:01 +01:00 |
|
SomberNight
|
d83b4a8c88
|
lnrouter: can_pay for own channels should use amount_to_forward
|
2018-11-05 20:24:00 +01:00 |
|
SomberNight
|
3f53384309
|
lnrouter: run Dijkstra in reverse direction
|
2018-11-05 20:24:00 +01:00 |
|
SomberNight
|
78ca70887a
|
fix confusion re max path length
|
2018-11-05 20:23:59 +01:00 |
|
SomberNight
|
4fcc766ba5
|
protect against getting robbed through routing fees
|
2018-11-05 20:23:59 +01:00 |
|
SomberNight
|
80798061c3
|
lnbase: when opening channel, test if we have enough balance first
and make sure we don't try to create the funding txn from local UTXOs
|
2018-11-05 20:23:59 +01:00 |
|
SomberNight
|
f1ea73a2c6
|
start failing htlcs
|
2018-11-05 20:23:58 +01:00 |
|
SomberNight
|
5538b9bb8a
|
lnonion: implement error packet construction
|
2018-11-05 20:23:58 +01:00 |
|
SomberNight
|
1503227bbf
|
invoice 'r' field fallback: change cltv to 1
|
2018-11-05 20:23:57 +01:00 |
|
SomberNight
|
5493296d81
|
unify hardcoded regtest fee
|
2018-11-05 20:23:57 +01:00 |
|
ThomasV
|
dd957e1836
|
Qt gui: show messages about payment outcome
|
2018-11-05 20:23:56 +01:00 |
|
ThomasV
|
784b4a9d65
|
encapsulate get_invoice in lnworker
|
2018-11-05 20:23:56 +01:00 |
|
ThomasV
|
1aa624c96c
|
make on_update_add_htlc async
|
2018-11-05 20:23:55 +01:00 |
|
SomberNight
|
d5f83c827a
|
follow-up prev
|
2018-11-05 20:23:55 +01:00 |
|
SomberNight
|
1de6e7f673
|
fix multi-hop payments
|
2018-11-05 20:23:54 +01:00 |
|
Janus
|
0b2f539c81
|
lnchan: add available_to_spend()
|
2018-11-05 20:23:54 +01:00 |
|
Janus
|
c7ccaabcc2
|
lnchan: make function for onion_keys decoding/encoding
|
2018-11-05 20:23:54 +01:00 |
|
ThomasV
|
cb0cebba0c
|
follow-up 3460ba738e
|
2018-11-05 20:23:53 +01:00 |
|
SomberNight
|
97d1438f5d
|
lnaddr: encode min_final_cltv into invoice
|
2018-11-05 20:23:53 +01:00 |
|
SomberNight
|
66cfcd9feb
|
log if no invoice has no routing hints
|
2018-11-05 20:23:52 +01:00 |
|
ThomasV
|
8ed199b87a
|
revert rbf on funding tx
|
2018-11-05 20:23:52 +01:00 |
|
SomberNight
|
ab61a7592e
|
lnbase: fix peer clean-up
|
2018-11-05 20:23:51 +01:00 |
|
ThomasV
|
bcf202c465
|
improve suggest_peers; add htlcs to list_channels.
|
2018-11-05 20:23:51 +01:00 |
|
ThomasV
|
3c1fbc2247
|
funding tx: use fees from config and set rbf
|
2018-11-05 20:23:50 +01:00 |
|
SomberNight
|
2f9e3067ff
|
clean-up Peer init
|
2018-11-05 20:23:50 +01:00 |
|
SomberNight
|
be6a7e432b
|
if channel_update for our channel is missing, fill invoice with zeroes
|
2018-11-05 20:23:50 +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 |
|
SomberNight
|
763eaec21e
|
lnrouter: use htlc_maximum_msat
|
2018-11-05 20:23:48 +01:00 |
|
SomberNight
|
3dad632472
|
lnworker: make add_peer async
|
2018-11-05 20:23:48 +01:00 |
|