Rusty Russell
7db8680530
lightningd: don't hand around partially-assembled channel_info.
wallet_commit_channel would fill in the old_remote_per_commit and
fee_states, which is weird since the caller doesn't care.
Make the caller set all the channel_info fields, so wallet_commit_channel
is a simple consumer.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4 years ago
Rusty Russell
58f6e316cc
lightningd: separate fee_states out of struct channel_info.
It was always kind of weird in there anyway.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4 years ago
niftynei
cf2a807d3c
dual_open: don't release uc here, it gets freed elsewhere
4 years ago
niftynei
56b3711bbc
dual_open: alignment nit
4 years ago
niftynei
ed9f661e07
dual_open: memleak problem with fee_states
4 years ago
niftynei
7d836a5945
dual_open_control: nit, reword comment
4 years ago
niftynei
aa6420cb58
dual_open: split logic for deserializing a changed vs signed PSBT
We need to run different checks on these, so split them out for finer
grained control
4 years ago
Rusty Russell
3c8049f32c
bitcoin/psbt: psbt_input_add_unknown/psbt_output_add_unknown needs a tal ctx.
Since it allocates something, it needs a context (used in the next patch!).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4 years ago
Rusty Russell
77b62d9e42
bitcoin/psbt: psbt_finalize needs a tal ctx.
Since it returns a wally_tx.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4 years ago
niftynei
aef5a5a0e5
psbt: psbt_has_serial_id -> psbt_find_serial_id
Cleans up some awkward spots in the code, makes the footprint a bit
neater
Suggested-By: @rustyrussell
4 years ago
niftynei
c50f377a85
psbt: pull out changeset logic into common, update API
Greatly simplify the changeset API. Instead of 'diff' we simply generate
the changes.
Also pulls up the 'next message' method, as at some point the
interactive tx protocol will be used for other things as well
(splices/closes etc)
Suggested-By: @rustyrussell
4 years ago
niftynei
5cd06227d7
build: exclude dualopend from non-experimental builds
4 years ago
niftynei
169b7817dc
psbt: only compare a subset of psbt input/output fields
At some point, it's ok to add more extra info to a psbt and still not
have that be counted as 'diff'd.
4 years ago
niftynei
9c89184c1f
dualfund: add feature flag for dual-funding
turn off until we're ready to test both sides
4 years ago
niftynei
59525853ae
dual-fund: accepter side implementation on lightningd
wherein we add the dual_open_control functions
4 years ago