Rusty Russell
c328a76438
channeld: use flags to track whether changes are pending.
...
This is required when we have non-HTLC changes (ie. fees).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-22 19:40:46 +01:00
Rusty Russell
5fb4577890
channeld/full_channel: fix incorrect reutrn from channel_rcvd_revoke_and_ack.
...
It was always returning false; it was supposed to return true if
we had added pending changes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-22 19:40:46 +01:00
Rusty Russell
4db460903a
htlc_tx: wire up the htlc points.
...
All the callers need to pass it in: currently channeld and openingd just
fake it by copying the payment point.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-16 17:40:57 +01:00
Rusty Russell
fe5614a489
basepoints/secrets: add htlc entry
...
Currently derive_basepoints just sets it to match the payment point/secret.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-16 17:40:57 +01:00
Rusty Russell
2a28173891
Typo fix: CTLV -> CLTV.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-10-10 20:17:37 +02:00
Rusty Russell
e137e2527f
Update BOLT references with typo fixes.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-10-10 20:17:37 +02:00
Rusty Russell
7e13e9e457
channeld: don't allow NULL htlcmap for full_channel
...
That was only for the initial state, which is now in initial_channel.c.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-03 02:01:54 +02:00
Rusty Russell
1cf33eefe2
lightningd: handle case where channeld fails locally-generated HTLC.
...
jl777 reported a crash when we try to pay past reserve. Fix that (and
a whole class of related bugs) and add tests.
In test_lightning.py I had to make non-async path for sendpay() non-threaded
to get the exception passed through for testing.
Closes : #236
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-30 11:36:37 +02:00
Rusty Russell
bbed5e3411
Rename subdaemons, move them into top level.
...
We leave the *build* results in lightningd/ for ease of in-place testing though.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-29 17:54:14 +02:00