Commit Graph

2032 Commits

Author SHA1 Message Date
SomberNight 449ec013fe add licence headers to more files 2019-08-20 09:03:10 +02:00
Janus f5201327d1 add lnd copyright boilerplate to lnchan, test_lnchan 2019-08-20 09:03:10 +02:00
Janus 85789d8a09 lnbase: mark initialized later, add tests, etc
- consistent node_id sorting
- require OPTION_DATA_LOSS_PROTECT and test it
2019-08-20 09:03:10 +02:00
Janus a42c1067ab lnworker: fix listchannels 2019-08-20 09:03:10 +02:00
Janus 578faeb91a lnbase: do not assert only one htlc in commitment 2019-08-20 09:03:10 +02:00
Janus a5a7c1406e lightning channels reserves: use pretty balance in Qt, fix bugs, add tests 2019-08-20 09:03:10 +02:00
ThomasV eb4e6b2e54 use WaitingDialog to close channels 2019-08-20 09:03:10 +02:00
ThomasV 70dbd8e672 add close_channel method to peer 2019-08-20 09:03:10 +02:00
ThomasV f985aac8d1 fix typo 2019-08-20 09:03:10 +02:00
ThomasV a5ab431b4b parse invoices with lightning: prefix 2019-08-20 09:03:10 +02:00
ThomasV 5ca6fbaea7 lnbase: self.channel_reestablished is not a queue 2019-08-20 09:03:10 +02:00
Janus 15b0720f5e lightning channel reserves 2019-08-20 09:03:10 +02:00
SomberNight 54edc9488a lnworker: store invoices based on payment_hash 2019-08-20 09:03:10 +02:00
ThomasV d9facabc8c lnbase: call save_channel in revoke and receive_revoke 2019-08-20 09:03:10 +02:00
Janus 0dfc9e512b fix co-op close 2019-08-20 09:03:10 +02:00
Janus d6f62d4e7f follow-up redeeming of local outgoing htlc outputs, fix tests 2019-08-20 09:03:10 +02:00
SomberNight 04ec7e9968 lnutil.make_funding_input: don't return payment pubkeys
order depends on who is initiator anyway
2019-08-20 09:03:10 +02:00
Janus 1f97a9753e redeem htlc outputs of our local commitment transaction back to wallet 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 f3d1f71e94 lnchan: set diagnostic_name
previously was only set for tests
2019-08-20 09:03:10 +02:00
SomberNight edff357fad better handling of channel updates for private channels 2019-08-20 09:03:10 +02:00
SomberNight bd48072e04 lnrouter: can_pay for own channels should use amount_to_forward 2019-08-20 09:03:10 +02:00
SomberNight 2364de930b lnrouter: run Dijkstra in reverse direction 2019-08-20 09:03:10 +02:00
SomberNight 7edbd5682a fix confusion re max path length 2019-08-20 09:03:10 +02:00
SomberNight 2fafd01945 protect against getting robbed through routing fees 2019-08-20 09:03:10 +02:00
SomberNight c577df8489 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
2019-08-20 09:03:10 +02:00
SomberNight d511ecdc00 start failing htlcs 2019-08-20 09:03:10 +02:00
SomberNight ded11b4d9e lnonion: implement error packet construction 2019-08-20 09:03:10 +02:00
SomberNight dfe61e15c3 invoice 'r' field fallback: change cltv to 1 2019-08-20 09:03:10 +02:00
SomberNight 4b37343c62 unify hardcoded regtest fee 2019-08-20 09:03:10 +02:00
ThomasV d6b4268fde Qt gui: show messages about payment outcome 2019-08-20 09:03:10 +02:00
ThomasV 02c39a950f encapsulate get_invoice in lnworker 2019-08-20 09:03:10 +02:00
ThomasV 095de2dd22 make on_update_add_htlc async 2019-08-20 09:03:10 +02:00
SomberNight 3ac9858d59 follow-up prev 2019-08-20 09:03:10 +02:00
SomberNight 56c0983e69 fix multi-hop payments 2019-08-20 09:03:10 +02:00
Janus ac68c8f531 lnchan: add available_to_spend() 2019-08-20 09:03:10 +02:00
Janus d317bdbd9b lnchan: make function for onion_keys decoding/encoding 2019-08-20 09:03:10 +02:00
ThomasV c0aee58e4d follow-up 3460ba738e 2019-08-20 09:03:10 +02:00
SomberNight e6a0b641d5 lnaddr: encode min_final_cltv into invoice 2019-08-20 09:03:10 +02:00
SomberNight 384fd665b3 log if no invoice has no routing hints 2019-08-20 09:03:10 +02:00
ThomasV d9eb92979b revert rbf on funding tx 2019-08-20 09:03:10 +02:00
SomberNight a8b9727817 lnbase: fix peer clean-up 2019-08-20 09:03:10 +02:00
ThomasV 87cc312d1e improve suggest_peers; add htlcs to list_channels. 2019-08-20 09:03:10 +02:00
ThomasV f8894d467f funding tx: use fees from config and set rbf 2019-08-20 09:03:10 +02:00
SomberNight 9de6028fb5 clean-up Peer init 2019-08-20 09:03:10 +02:00
SomberNight 25c2657680 if channel_update for our channel is missing, fill invoice with zeroes 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
Janus 962f70c7da ln: add lightning_listen config option 2019-08-20 09:03:10 +02:00
SomberNight 52377dbfa0 lnrouter: use htlc_maximum_msat 2019-08-20 09:03:10 +02:00
SomberNight ff0aa90ddf lnworker: make add_peer async 2019-08-20 09:03:10 +02:00