core-lightning/channeld
niftynei 1b3a9be416 df, channeld: cleanup how psbt signalling works
We used to send our tx_sigs before we got to channeld existing. We
changed how this worked so that multifundchannel could live, but failed
to clean up the logic of what "having a psbt around" means wrt channeld
and messaging our peer.

The general idea is that we want to send `tx_signatures` to our peer on
reconnect until they've sent us `funding_locked`.

Note that it's an error to
  - send `funding_locked` without having sent `tx_signatures`
  - send `tx_signatures` after sending `funding_locked`

We use the 'finalized' state of the peer's inputs/outputs to help signal
where we are in receiving their sigs -- but this doesn't work at all for
opens where the peer doesn't contribute inputs at all.

This isn't really a huge deal, but it does mean that if we receive a
peer's `tx_sigs` more than once (will happen for a reconnect before
`funding_locked`), then we'll issue a notification about receiving their
sigs multiple times. /shrug
2020-10-21 09:04:32 +10:30
..
test channel_id: save to database, dont derive from funding_txid 2020-09-09 19:54:20 +09:30
channeld_htlc.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
channeld_wire.csv dual-fund: rework where we send our tx-sigs message, allow peers in 2020-10-21 09:04:32 +10:30
channeld_wiregen.c dual-fund: rework where we send our tx-sigs message, allow peers in 2020-10-21 09:04:32 +10:30
channeld_wiregen.h dual-fund: rework where we send our tx-sigs message, allow peers in 2020-10-21 09:04:32 +10:30
channeld.c df, channeld: cleanup how psbt signalling works 2020-10-21 09:04:32 +10:30
commit_tx.c doc: update BOLT now option_anchor_outputs is merged. 2020-08-24 20:55:47 +09:30
commit_tx.h option_anchor_outputs: wire into all the subdaemons. 2020-08-14 11:51:14 +09:30
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00
full_channel.c channeld: log broken message if we receive HTLCs out of order. 2020-10-14 19:58:57 +10:30
full_channel.h channel_id: save to database, dont derive from funding_txid 2020-09-09 19:54:20 +09:30
Makefile gossip_store: make private channels more similar to channel_announcement 2020-10-21 08:58:34 +10:30
watchtower.c hsmd: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
watchtower.h channeld: pass in HSM_FD as an argument to watchtower code. 2020-05-07 11:35:31 +02:00