ThomasV
|
0e3e43f522
|
move transport code to its own file
|
2018-11-05 20:23:43 +01:00 |
|
Janus
|
da7f731b93
|
lnbase: split out BOLT-08 (Noise) implementation
|
2018-11-05 20:23:42 +01:00 |
|
SomberNight
|
dc43341717
|
rebase follow-up
|
2018-11-05 20:19:04 +01:00 |
|
Janus
|
04741512ce
|
lnbase: resend revoke_and_ack if necessary
|
2018-11-05 20:19:04 +01:00 |
|
Janus
|
786ead4d83
|
rebase fixup: use new broadcast_transaction API
|
2018-11-05 20:19:03 +01:00 |
|
Janus
|
b21fb16803
|
lnbase: use 45000 feerate on regtest for eclair compatibility
|
2018-11-05 20:19:02 +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 |
|
ThomasV
|
a8969d8822
|
fix previous commit
|
2018-11-05 20:18:58 +01:00 |
|
ThomasV
|
639e4ae8ca
|
follow-up 1c8a4bcfa497b117e4511c2f108dbca8a1adb793
|
2018-11-05 20:18:58 +01:00 |
|
SomberNight
|
048d9c7332
|
lnbase: handle some error codes re htlc failures ('UPDATE' flag)
|
2018-11-05 20:18:57 +01:00 |
|
SomberNight
|
93134c49c5
|
lnonion: use IntEnum and IntFlag for failure codes
|
2018-11-05 20:18:57 +01:00 |
|
SomberNight
|
a3dabbf889
|
handle failing htlc after restart
|
2018-11-05 20:18:56 +01:00 |
|
SomberNight
|
ea6406c5be
|
clean up local/global features
|
2018-11-05 20:18:56 +01:00 |
|
SomberNight
|
1479a50eb7
|
on_channel_reestablish: try to get remote to force close channel if out-of-sync.
see ACINQ/eclair#727 and lightningnetwork/lnd#1904
|
2018-11-05 20:18:55 +01:00 |
|
SomberNight
|
9578bfca12
|
on_update_fail_htlc: don't send commitment without changes
c-lightning was force-closing channels with us: "[lnbase:127.0.0.1] error commit_sig with no changes"
|
2018-11-05 20:18:55 +01:00 |
|
SomberNight
|
bea5fd8ba8
|
simplify ChannelDB.on_channel_update
|
2018-11-05 20:18:54 +01:00 |
|
SomberNight
|
54ce4feb24
|
use 'r' field in invoice when making payments (routing hints)
|
2018-11-05 20:18:53 +01:00 |
|
SomberNight
|
37ddb89ec1
|
make our channels private, and put routing hints in invoices we create
|
2018-11-05 20:18:53 +01:00 |
|
ThomasV
|
c654856cef
|
follow-up previous commit
|
2018-11-05 20:18:51 +01:00 |
|
SomberNight
|
f680708b87
|
follow-up lnwatcher changes
|
2018-11-05 20:18:50 +01:00 |
|
ThomasV
|
89460aecd8
|
aiosafe: define user visible exception class
|
2018-11-05 20:18:49 +01:00 |
|
ThomasV
|
297c43863c
|
lnbase: propagate error messages received in on_error to their relevant coroutines
|
2018-11-05 20:18:48 +01:00 |
|
ThomasV
|
607eda3a29
|
create sweep transaction outside of lnwatcher
|
2018-11-05 20:18:48 +01:00 |
|
SomberNight
|
714b0858f1
|
lnbase: Peer handles its own disconnection instead of lnworker
|
2018-11-05 20:18:46 +01:00 |
|
SomberNight
|
3b938160d1
|
make key derivation reasonable
no more hardcoded secrets, no more key-reuse
|
2018-11-05 20:18:45 +01:00 |
|
Janus
|
6be8b5994a
|
ln: fix opening of channels (NameErrors)
|
2018-11-05 20:18:44 +01:00 |
|
Janus
|
7d5e1a0932
|
lnbase: update gui after accomodating channel opening request
|
2018-11-05 20:18:43 +01:00 |
|
Janus
|
77479068c5
|
accept channel opening requests initiated by remote
|
2018-11-05 20:18:43 +01:00 |
|
Janus
|
cfc566c93c
|
lnworker.pay(): lightning-integration support
|
2018-11-05 20:18:40 +01:00 |
|
Janus
|
c8a00f7ccf
|
lnbase: remove code duplication by introducing send_commitment(chan)
|
2018-11-05 20:18:39 +01:00 |
|
Janus
|
da684b2e97
|
lnbase: remove unnecessary branching and duplicated code in receive_commitment_revoke_ack
|
2018-11-05 20:18:39 +01:00 |
|
ThomasV
|
5c1cc0ed8f
|
avoid code duplication between methods that send channel updates
|
2018-11-05 20:18:35 +01:00 |
|
Janus
|
634c39b6b0
|
ln: commit fee updates as soon as possible
|
2018-11-05 20:18:35 +01:00 |
|
Janus
|
308eacbdc3
|
ln fees: avoid resending same fee update before it has been committed to, docs
|
2018-11-05 20:18:35 +01:00 |
|
Janus
|
0e0f8a7d8f
|
avoid reading from queues concurrently in pay()
|
2018-11-05 20:18:31 +01:00 |
|
ThomasV
|
1d9ea1935e
|
add pong handler to reduce verbosity
|
2018-11-05 20:18:31 +01:00 |
|
Janus
|
75feba4b96
|
keep htlc history in case a htlc fails
|
2018-11-05 20:18:30 +01:00 |
|
Janus
|
0b2823be02
|
add command to clear ln blacklist, prevent error in pay() from killing Peer
|
2018-11-05 20:18:30 +01:00 |
|
SomberNight
|
2ef92a371f
|
fix prev
|
2018-11-05 20:18:28 +01:00 |
|
ThomasV
|
be53041966
|
lnbase: save_channel in revoke
|
2018-11-05 20:18:27 +01:00 |
|
ThomasV
|
4e68befcf8
|
fix: broadcast_transaction from non network thread
|
2018-11-05 20:18:27 +01:00 |
|
ThomasV
|
c4fc26d7b0
|
partial revert of df24fb00578309b5db27876769306196238ec3f2: process_message should not be async
|
2018-11-05 20:18:27 +01:00 |
|
Janus
|
137bf72602
|
ln: cooperative close with remote peer initiating
|
2018-11-05 20:16:13 +01:00 |
|
Janus
|
88431a59e0
|
lnhtlc: don't settle htlc with HTLCStateMachine too early
|
2018-11-05 20:16:12 +01:00 |
|
Janus
|
d79ccb1c4c
|
lnhtlc: save logs and feeupdates
|
2018-11-05 20:16:12 +01:00 |
|
Janus
|
d3a1c8ce42
|
lnwatcher rebased
|
2018-11-05 20:16:10 +01:00 |
|
Janus
|
9ccf80200b
|
lightning: post aiorpcx rebase fixup
|
2018-11-05 20:16:09 +01:00 |
|