Commit graph

11059 commits

Author SHA1 Message Date
ThomasV
ae402303ca channel: is_closed 2019-08-20 09:03:11 +02:00
ThomasV
f6f5cbee72 fix lnworker.get_balance 2019-08-20 09:03:11 +02:00
ThomasV
b7d93e2e11 gui: display lightning balance in status bar 2019-08-20 09:03:11 +02:00
Janus
18bd934461 ln: show full chan id in list, use Event for initialized, more timeouts, return peer from add_peer, set max_htlc_value_in_flight_msat to capacity 2019-08-20 09:03:11 +02:00
ThomasV
19e60f00bb add watchtower_window 2019-08-20 09:03:11 +02:00
ThomasV
7bb4ea150f gui: show incoming lightning requests, add on-chain icon 2019-08-20 09:03:11 +02:00
ThomasV
2af178a586 Store boolean is_received in lightning invoices. Sort lightning history with timestamp. Minor fixes 2019-08-20 09:03:11 +02:00
Janus
4e3b2b5479 tests: update lnbase test to use 4-tuple for invoices 2019-08-20 09:03:11 +02:00
ThomasV
281d51c002 follow-up prev commit 2019-08-20 09:03:11 +02:00
ThomasV
0e8dba897e lightning:
* store invoices for both directions
* do not store lightning_payments_inflight, lightning_payments_completed in lnworker
* payment history is returned by get_payments method of LNChannel
* command line: lightning history, lightning_invoices
* re-enable push_msat
2019-08-20 09:03:11 +02:00
Janus
d80b709aa4 lnbase: fix on_open_channel, add TODOs for missing validation 2019-08-20 09:03:11 +02:00
Janus
d5ed4309bb revert low max_htlc_value_in_flight_msat, fix test
spec does not mention that there can be an upper bound
on max_htlc_value_in_flight_msat, so don't try to make
any node happy that has a max limit on this.
2019-08-20 09:03:11 +02:00
Janus
e6bd3959e0 ln: handle channel limits better, show remote limits in details dialog, replace rusty's testnet peer (doesn't work currently) 2019-08-20 09:03:11 +02:00
ThomasV
0a08ccc1c6 rename paying -> inflight 2019-08-20 09:03:11 +02:00
ThomasV
b0d6000771 turn lightning_payments_completed into dict. Show status of lightning payments in GUI. Make 'listchannels' available offline 2019-08-20 09:03:11 +02:00
ThomasV
26ced1b343 fix test 2019-08-20 09:03:11 +02:00
ThomasV
d789f11898 remove deterministic derivation for testing 2019-08-20 09:03:11 +02:00
ThomasV
e6d680ec1b instanciate LNWorker without Network 2019-08-20 09:03:11 +02:00
Janus
7cf4f40dcb ln: warn when negotiated feerate is too low 2019-08-20 09:03:11 +02:00
Janus
8fc1779b0d ln: add test_lnwatcher 2019-08-20 09:03:11 +02:00
Janus
129099797a lnworker: handle null whitelist correctly 2019-08-20 09:03:11 +02:00
Janus
3b44cf8c67 lnworker: fix 'channel details' with stuck htlc 2019-08-20 09:03:11 +02:00
Janus
f8dc9b344a lnbase: work around peer not sending funding_locked so channel doesn't get marked open 2019-08-20 09:03:11 +02:00
Janus
6b6097a453 ln: add closechannel cli command 2019-08-20 09:03:11 +02:00
Janus
bd45f3f1c8 lnworker: return txid from force_close_channel as expected 2019-08-20 09:03:11 +02:00
Janus
38396e8ed4 lnwatcher: fix incorrect tuple unpacking in do_breach_remedy 2019-08-20 09:03:11 +02:00
Janus
38d2d4c321 lnchan: fix per_commitment_point number in verify_htlc 2019-08-20 09:03:11 +02:00
Janus
1f1207ecbe ln: request_list: post rebase fixup (remove new_request_button deactivation) 2019-08-20 09:03:11 +02:00
ThomasV
02798aeb39 sort requests by date 2019-08-20 09:03:11 +02:00
ThomasV
3ce0f7f0cd simplify requests list 2019-08-20 09:03:11 +02:00
ThomasV
290a1c61a8 confirmation dialog before force closure 2019-08-20 09:03:11 +02:00
ThomasV
dbcd5fe59d channel_details: minor fix 2019-08-20 09:03:11 +02:00
ThomasV
3c8dea9b28 lightning: simplify request tab 2019-08-20 09:03:11 +02:00
Janus
51bc02557d ln: fix sweeping htlc output from remote ctx (timeout e.g. without htlc tx) 2019-08-20 09:03:11 +02:00
Janus
e56e849505 lnchan refactor
- replace undoing logic with new HTLCManager class
- separate SENT/RECEIVED
- move UpdateAddHtlc to lnutil
2019-08-20 09:03:11 +02:00
Janus
ef88bb1c28 request_list: select new items 2019-08-20 09:03:11 +02:00
ThomasV
d9e7807fff lnpeer: print port in error_messages 2019-08-20 09:03:11 +02:00
Janus
3ccd2fedff ln: two remaining encumberedTx removal remnants 2019-08-20 09:03:11 +02:00
ThomasV
320dc29732 use to_dict (follow-up baa03a469f3e0e0ae61593272f5cb7e2483d49ad) 2019-08-20 09:03:11 +02:00
Janus
9cbf55f977 request_list: do not mention that ln invoice is bolt-11 2019-08-20 09:03:11 +02:00
Janus
720146ee40 request_list: fix qr code display and keyboard selection of lightning invoices 2019-08-20 09:03:11 +02:00
ThomasV
5776b322f7 formatting 2019-08-20 09:03:11 +02:00
ThomasV
b0f39718bb remove useless returns and cryptic names 2019-08-20 09:03:11 +02:00
Janus
2c1fcb2f54 ln: remove EncumberedTransaction 2019-08-20 09:03:11 +02:00
Janus
60508725b6 lnbase: fix sig encoding in mutual close 2019-08-20 09:03:11 +02:00
Janus
3975560db5 lnsweep: use dicts consistently 2019-08-20 09:03:11 +02:00
Janus
06d4224101 lnchan: remove debugging code, commented out code 2019-08-20 09:03:11 +02:00
Janus
2323118bda lnchan: only sign force_close_tx when demanded, assure consistency, fix test 2019-08-20 09:03:11 +02:00
Janus
37a0315aab lnbase: fix NameError 2019-08-20 09:03:11 +02:00
Janus
1d8fe52fa3 lnchan: make force_close_tx() assure that tx is valid, trigger failure in test 2019-08-20 09:03:11 +02:00