Rusty Russell
a37c165cb9
common: move some files out of lightningd/
...
Basically all files shared by different daemons.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-29 17:54:14 +02:00
Rusty Russell
8375857116
common: absorb remaining files from daemon/
...
Also, we split the more sophisticated json_add helpers to avoid pulling in
everything into lightning-cli, and unify the routines to print struct
short_channel_id (it's ':', not '/' too).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-29 17:54:14 +02:00
Rusty Russell
85ff95e829
common: new directory for any shared objects.
...
To avoid everything pulling in HTLCs stuff to the opening daemon, we
split the channel and commit_tx routines into initial_channel and
initial_commit_tx (no HTLC support) and move full HTLC supporting versions
into channeld.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-29 17:54:14 +02:00
Rusty Russell
fea412dd94
BOLT: Update text to latest commit.
...
This brings us up to 955e874acc535ab2c74c1cf0eab61896ea4224ff in
https://github.com/lightningnetwork/lightning-rfc
This doesn't actually change anything; the only actual change is held back
for the next commit.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-22 14:56:02 +02:00
Rusty Russell
c389215a35
closingd: send the tx to master as we negotiate.
...
We can derive fees from this, and also broadcast at any time without
having to reconstruct it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-20 13:06:41 +09:30
Rusty Russell
2b7c091e70
closing: update to match proposal to restart negotiation on reconnect.
...
This simplifies significantly, as we don't need to remember what we offered.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-08-02 11:45:30 +09:30
Rusty Russell
03be40ea8b
lightningd: don't reset balance when we reconnect!
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-07-12 10:21:16 +09:30
Rusty Russell
0c5e238a48
lightningd: handle reconnect during shutdown and closing.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-07-12 10:21:16 +09:30
Rusty Russell
e5a8a7502c
lightningd/closing: subdaemon for closing negotiation.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2017-07-12 10:21:16 +09:30