Janus
53124413ae
lightning: post-rebase fixes, read_QIcon and invalid import
6 years ago
ThomasV
cbf27b2102
test_forwarding: do not set HOME
6 years ago
ThomasV
19b27713f3
lnbase: rename methods, fix tests
6 years ago
ThomasV
c1eb25bc52
script that tests htlc forwarding
6 years ago
ThomasV
adc6e577d9
Forward HTLCs
6 years ago
ThomasV
24d1e59ef7
lnworker: get_channel_by_short_id
6 years ago
ThomasV
0e7a733147
lnpeer: receive_and_revoke, send_and_revoke
6 years ago
ThomasV
e14485d66c
set short_channel_id regardless of channel state, because peer might be disconnected
6 years ago
ThomasV
7b1481155f
show amount in channel opening/closure
6 years ago
ThomasV
a9973e644a
fix: test short_channel_id before removing from channel_db
6 years ago
ThomasV
b39d1a6ea0
history tab: render channel opening/closure on a single line
6 years ago
ThomasV
c6e6e4ac8b
restructure channel_reestablish, resend funding_locked if needed
6 years ago
ThomasV
11bb0e845e
fix tests
6 years ago
ThomasV
dcf0cdc534
move LNPeer handshake back into initialize
6 years ago
ThomasV
81588c4b93
history: better handling of None timestamps
6 years ago
ThomasV
4c110cd85c
follow-up previous commit
6 years ago
ThomasV
d1d2d2b006
create transport and perform handshake before creating Peer
6 years ago
ThomasV
2ea77f1224
do not add ephemeral addresses to recent peers
6 years ago
ThomasV
51127c3ec4
fix channel closure when it was requested by the remote party
6 years ago
ThomasV
e12b0f28a5
CLI: use funding_point in channel_open and channel_close. add host:port to nodeid
6 years ago
ThomasV
819b2aea8a
rpartition->rsplit
6 years ago
ThomasV
308e9aa4ca
follow-up prev commit: use maxsize to sort timestamps
6 years ago
ThomasV
8e748521fd
save channel timestamps, and show lightning payments in history tab
6 years ago
ThomasV
37ab8b5852
channel: is_closed
6 years ago
ThomasV
e9d1e32c1a
fix lnworker.get_balance
6 years ago
ThomasV
ec3e9960e7
gui: display lightning balance in status bar
6 years ago
Janus
9699693109
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
6 years ago
ThomasV
9d3c1c90a8
add watchtower_window
6 years ago
ThomasV
4036da086f
gui: show incoming lightning requests, add on-chain icon
6 years ago
ThomasV
fde6ad2390
Store boolean is_received in lightning invoices. Sort lightning history with timestamp. Minor fixes
6 years ago
Janus
9f18f517b0
tests: update lnbase test to use 4-tuple for invoices
6 years ago
ThomasV
90f722c100
follow-up prev commit
6 years ago
ThomasV
d4b21fab27
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
6 years ago
Janus
9a02100073
lnbase: fix on_open_channel, add TODOs for missing validation
6 years ago
Janus
09366b4a09
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.
6 years ago
Janus
22e34d3d8f
ln: handle channel limits better, show remote limits in details dialog, replace rusty's testnet peer (doesn't work currently)
6 years ago
ThomasV
7005aa8510
rename paying -> inflight
6 years ago
ThomasV
efa77cbafd
turn lightning_payments_completed into dict. Show status of lightning payments in GUI. Make 'listchannels' available offline
6 years ago
ThomasV
cd98bdb5a8
fix test
6 years ago
ThomasV
2a21d41934
remove deterministic derivation for testing
6 years ago
ThomasV
ca1201c9c2
instanciate LNWorker without Network
6 years ago
Janus
9b91ffedcc
ln: warn when negotiated feerate is too low
6 years ago
Janus
6197b8ba34
ln: add test_lnwatcher
6 years ago
Janus
7f28fc70c4
lnworker: handle null whitelist correctly
6 years ago
Janus
612cded39b
lnworker: fix 'channel details' with stuck htlc
6 years ago
Janus
57508b1cfb
lnbase: work around peer not sending funding_locked so channel doesn't get marked open
6 years ago
Janus
466d830e1a
ln: add closechannel cli command
6 years ago
Janus
03920c853d
lnworker: return txid from force_close_channel as expected
6 years ago
Janus
2601ab951a
lnwatcher: fix incorrect tuple unpacking in do_breach_remedy
6 years ago
Janus
5d5c24a423
lnchan: fix per_commitment_point number in verify_htlc
6 years ago