2020-09-09 12:10:25 +02:00
|
|
|
#include <bitcoin/chainparams.h>
|
|
|
|
#include <bitcoin/psbt.h>
|
|
|
|
#include <common/cryptomsg.h>
|
|
|
|
#include <common/channel_config.h>
|
|
|
|
#include <common/channel_id.h>
|
2022-10-21 23:16:45 +02:00
|
|
|
#include <common/channel_type.h>
|
2020-09-09 12:10:25 +02:00
|
|
|
#include <common/derive_basepoints.h>
|
|
|
|
#include <common/features.h>
|
2021-01-08 02:05:06 +01:00
|
|
|
#include <common/fee_states.h>
|
|
|
|
#include <common/htlc_wire.h>
|
2020-09-09 12:10:25 +02:00
|
|
|
#include <common/penalty_base.h>
|
2023-01-10 21:57:17 +01:00
|
|
|
#include <common/tx_roles.h>
|
2021-06-14 21:22:46 +02:00
|
|
|
#include <secp256k1.h>
|
2021-06-08 23:50:41 +02:00
|
|
|
#include <wire/peer_wire.h>
|
2020-09-09 12:10:25 +02:00
|
|
|
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_init,7000
|
2020-09-09 12:10:25 +02:00
|
|
|
# Which network are we configured for?
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_init,chainparams,chainparams,
|
|
|
|
msgdata,dualopend_init,our_feature_set,feature_set,
|
|
|
|
msgdata,dualopend_init,their_init_features_len,u16,
|
|
|
|
msgdata,dualopend_init,their_init_features,u8,their_init_features_len
|
2020-09-09 12:10:25 +02:00
|
|
|
# Base configuration we'll offer
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_init,our_config,channel_config,
|
2020-09-09 12:10:25 +02:00
|
|
|
# Minimum/maximum configuration values we'll accept
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_init,max_to_self_delay,u32,
|
|
|
|
msgdata,dualopend_init,min_effective_htlc_capacity_msat,amount_msat,
|
|
|
|
msgdata,dualopend_init,our_basepoints,basepoints,
|
|
|
|
msgdata,dualopend_init,our_funding_pubkey,pubkey,
|
2020-09-09 12:10:25 +02:00
|
|
|
# Constraints in case the other end tries to open a channel.
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_init,minimum_depth,u32,
|
2023-01-11 23:45:38 +01:00
|
|
|
msgdata,dualopend_init,require_confirmed_inputs,bool,
|
2024-01-31 04:16:17 +01:00
|
|
|
msgdata,dualopend_init,local_alias,short_channel_id,
|
2024-01-29 00:36:15 +01:00
|
|
|
msgdata,dualopend_init,dev_accept_any_channel_type,bool,
|
2020-09-09 12:10:25 +02:00
|
|
|
|
2021-01-08 02:05:06 +01:00
|
|
|
# master-dualopend: peer has reconnected
|
|
|
|
msgtype,dualopend_reinit,7001
|
|
|
|
msgdata,dualopend_reinit,chainparams,chainparams,
|
2023-07-30 03:41:26 +02:00
|
|
|
msgdata,dualopend_reinit,from_abort,bool,
|
2021-01-08 02:05:06 +01:00
|
|
|
msgdata,dualopend_reinit,our_feature_set,feature_set,
|
|
|
|
msgdata,dualopend_reinit,their_init_features_len,u16,
|
|
|
|
msgdata,dualopend_reinit,their_init_features,u8,their_init_features_len
|
|
|
|
msgdata,dualopend_reinit,our_config,channel_config,
|
|
|
|
msgdata,dualopend_reinit,their_config,channel_config,
|
|
|
|
msgdata,dualopend_reinit,channel_id,channel_id,
|
|
|
|
msgdata,dualopend_reinit,max_to_self_delay,u32,
|
|
|
|
msgdata,dualopend_reinit,min_effective_htlc_capacity_msat,amount_msat,
|
|
|
|
msgdata,dualopend_reinit,our_basepoints,basepoints,
|
|
|
|
msgdata,dualopend_reinit,our_funding_pubkey,pubkey,
|
|
|
|
msgdata,dualopend_reinit,their_funding_pubkey,pubkey,
|
|
|
|
msgdata,dualopend_reinit,minimum_depth,u32,
|
2021-10-13 05:45:36 +02:00
|
|
|
msgdata,dualopend_reinit,funding,bitcoin_outpoint,
|
2021-01-25 19:34:47 +01:00
|
|
|
msgdata,dualopend_reinit,most_recent_feerate_per_kw_funding,u32,
|
2021-01-08 02:05:06 +01:00
|
|
|
msgdata,dualopend_reinit,funding_satoshi,amount_sat,
|
|
|
|
msgdata,dualopend_reinit,our_funding,amount_msat,
|
|
|
|
msgdata,dualopend_reinit,their_basepoints,basepoints,
|
|
|
|
msgdata,dualopend_reinit,remote_per_commit,pubkey,
|
|
|
|
msgdata,dualopend_reinit,funding_psbt,wally_psbt,
|
|
|
|
msgdata,dualopend_reinit,opener,enum side,
|
2022-09-10 04:11:31 +02:00
|
|
|
msgdata,dualopend_reinit,local_channel_ready,bool,
|
|
|
|
msgdata,dualopend_reinit,remote_channel_ready,bool,
|
2021-01-08 02:05:06 +01:00
|
|
|
msgdata,dualopend_reinit,send_shutdown,bool,
|
|
|
|
msgdata,dualopend_reinit,remote_shutdown_received,bool,
|
|
|
|
msgdata,dualopend_reinit,local_shutdown_len,u16,
|
|
|
|
msgdata,dualopend_reinit,local_shutdown_scriptpubkey,u8,local_shutdown_len
|
|
|
|
msgdata,dualopend_reinit,remote_shutdown_len,u16,
|
|
|
|
msgdata,dualopend_reinit,remote_shutdown_scriptpubkey,u8,remote_shutdown_len
|
2021-11-04 18:48:43 +01:00
|
|
|
msgdata,dualopend_reinit,local_shutdown_wallet_index,?u32,
|
2021-01-08 02:05:06 +01:00
|
|
|
msgdata,dualopend_reinit,remote_funding_sigs_received,bool,
|
2023-10-27 21:38:19 +02:00
|
|
|
msgdata,dualopend_reinit,remote_commit_received,bool,
|
2021-01-08 02:05:06 +01:00
|
|
|
msgdata,dualopend_reinit,fee_states,fee_states,
|
2021-02-11 00:40:25 +01:00
|
|
|
msgdata,dualopend_reinit,channel_flags,u8,
|
2021-06-22 20:25:59 +02:00
|
|
|
msgdata,dualopend_reinit,lease_start_blockheight,u32,
|
2021-06-17 03:28:18 +02:00
|
|
|
msgdata,dualopend_reinit,lease_expiry,u32,
|
|
|
|
msgdata,dualopend_reinit,lease_commit_sig,?secp256k1_ecdsa_signature,
|
|
|
|
msgdata,dualopend_reinit,lease_chan_max_msat,u32,
|
|
|
|
msgdata,dualopend_reinit,lease_chan_max_ppt,u16,
|
2022-10-04 04:18:31 +02:00
|
|
|
msgdata,dualopend_reinit,requested_lease,?amount_sat,
|
2022-10-21 23:16:45 +02:00
|
|
|
msgdata,dualopend_reinit,channel_type,channel_type,
|
2023-01-11 23:45:38 +01:00
|
|
|
msgdata,dualopend_reinit,we_require_confirmed_inputs,bool,
|
2023-01-12 20:14:47 +01:00
|
|
|
msgdata,dualopend_reinit,they_require_confirmed_inputs,bool,
|
2024-01-31 04:16:17 +01:00
|
|
|
msgdata,dualopend_reinit,local_alias,short_channel_id,
|
2021-01-08 02:05:06 +01:00
|
|
|
|
2020-09-09 12:10:25 +02:00
|
|
|
# dualopend->master: they offered channel, should we continue?
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_got_offer,7005
|
2020-12-17 22:26:08 +01:00
|
|
|
msgdata,dualopend_got_offer,channel_id,channel_id,
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_got_offer,opener_funding,amount_sat,
|
|
|
|
msgdata,dualopend_got_offer,dust_limit_satoshis,amount_sat,
|
|
|
|
msgdata,dualopend_got_offer,max_htlc_value_in_flight_msat,amount_msat,
|
|
|
|
msgdata,dualopend_got_offer,htlc_minimum_msat,amount_msat,
|
2021-03-02 22:02:24 +01:00
|
|
|
msgdata,dualopend_got_offer,feerate_per_kw_funding,u32,
|
|
|
|
msgdata,dualopend_got_offer,feerate_per_kw_commitment,u32,
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_got_offer,to_self_delay,u16,
|
|
|
|
msgdata,dualopend_got_offer,max_accepted_htlcs,u16,
|
|
|
|
msgdata,dualopend_got_offer,channel_flags,u8,
|
|
|
|
msgdata,dualopend_got_offer,locktime,u32,
|
|
|
|
msgdata,dualopend_got_offer,shutdown_len,u16,
|
|
|
|
msgdata,dualopend_got_offer,shutdown_scriptpubkey,u8,shutdown_len
|
2022-09-22 21:21:04 +02:00
|
|
|
msgdata,dualopend_got_offer,requested_amt,?amount_sat,
|
2021-06-08 23:50:41 +02:00
|
|
|
msgdata,dualopend_got_offer,lease_blockheight_start,u32,
|
2023-01-10 22:03:44 +01:00
|
|
|
msgdata,dualopend_got_offer,require_confirmed_inputs,bool,
|
2020-09-09 12:10:25 +02:00
|
|
|
|
|
|
|
# master->dualopend: reply back with our first funding info/contribs
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_got_offer_reply,7105
|
|
|
|
msgdata,dualopend_got_offer_reply,accepter_funding,amount_sat,
|
|
|
|
msgdata,dualopend_got_offer_reply,psbt,wally_psbt,
|
|
|
|
msgdata,dualopend_got_offer_reply,shutdown_len,u16,
|
|
|
|
msgdata,dualopend_got_offer_reply,our_shutdown_scriptpubkey,?u8,shutdown_len
|
2021-11-04 18:48:43 +01:00
|
|
|
msgdata,dualopend_got_offer_reply,our_shutdown_wallet_index,?u32,
|
2021-07-02 23:19:47 +02:00
|
|
|
# must go last because of embedded tu32
|
2021-06-08 23:50:41 +02:00
|
|
|
msgdata,dualopend_got_offer_reply,lease_rates,?lease_rates,
|
2020-09-09 12:10:25 +02:00
|
|
|
|
2021-01-12 20:09:11 +01:00
|
|
|
# dualopend->master: they offered a RBF, should we continue?
|
|
|
|
msgtype,dualopend_got_rbf_offer,7500
|
|
|
|
msgdata,dualopend_got_rbf_offer,channel_id,channel_id,
|
2022-10-04 04:18:31 +02:00
|
|
|
msgdata,dualopend_got_rbf_offer,their_last_funding,amount_sat,
|
|
|
|
msgdata,dualopend_got_rbf_offer,their_curr_funding,amount_sat,
|
|
|
|
msgdata,dualopend_got_rbf_offer,our_last_funding,amount_sat,
|
2021-01-12 20:09:11 +01:00
|
|
|
msgdata,dualopend_got_rbf_offer,funding_feerate_per_kw,u32,
|
|
|
|
msgdata,dualopend_got_rbf_offer,locktime,u32,
|
2022-10-04 04:18:31 +02:00
|
|
|
msgdata,dualopend_got_rbf_offer,requested_lease,?amount_sat,
|
2023-12-13 23:59:50 +01:00
|
|
|
msgdata,dualopend_got_rbf_offer,require_confirmed_inputs,bool,
|
2021-01-12 20:09:11 +01:00
|
|
|
|
|
|
|
# master->dualopend: reply back with our funding info/contribs
|
|
|
|
msgtype,dualopend_got_rbf_offer_reply,7505
|
2021-01-14 02:54:14 +01:00
|
|
|
msgdata,dualopend_got_rbf_offer_reply,our_funding,amount_sat,
|
2021-01-12 20:09:11 +01:00
|
|
|
msgdata,dualopend_got_rbf_offer_reply,psbt,wally_psbt,
|
|
|
|
|
2023-12-13 23:59:50 +01:00
|
|
|
# dualopend->master: update to require_confirmed_inputs preference
|
|
|
|
msgtype,dualopend_update_require_confirmed,7511
|
|
|
|
msgdata,dualopend_update_require_confirmed,require_confirmed_inputs,bool,
|
|
|
|
|
2021-01-13 03:40:37 +01:00
|
|
|
# dualopend->master: is this a valid RBF candidate transaction?
|
|
|
|
msgtype,dualopend_rbf_validate,7506
|
|
|
|
msgdata,dualopend_rbf_validate,proposed_funding_psbt,wally_psbt,
|
|
|
|
|
|
|
|
# master->dualopend: this is a valid RBF candidate transaction
|
|
|
|
msgtype,dualopend_rbf_valid,7507
|
|
|
|
|
2021-01-25 19:37:42 +01:00
|
|
|
# master->dualopend: attempt an RBF
|
|
|
|
msgtype,dualopend_rbf_init,7509
|
|
|
|
msgdata,dualopend_rbf_init,our_funding,amount_sat,
|
2021-07-09 21:13:20 +02:00
|
|
|
msgdata,dualopend_rbf_init,funding_feerate_perkw,u32,
|
2021-01-25 19:37:42 +01:00
|
|
|
msgdata,dualopend_rbf_init,psbt,wally_psbt,
|
|
|
|
|
2023-10-26 18:42:42 +02:00
|
|
|
# dualopend->master: about to send first commitment_signed
|
|
|
|
msgtype,dualopend_commit_ready,7009
|
|
|
|
msgdata,dualopend_commit_ready,their_config,channel_config,
|
|
|
|
msgdata,dualopend_commit_ready,psbt,wally_psbt,
|
|
|
|
msgdata,dualopend_commit_ready,revocation_basepoint,pubkey,
|
|
|
|
msgdata,dualopend_commit_ready,payment_basepoint,pubkey,
|
|
|
|
msgdata,dualopend_commit_ready,htlc_basepoint,pubkey,
|
|
|
|
msgdata,dualopend_commit_ready,delayed_payment_basepoint,pubkey,
|
|
|
|
msgdata,dualopend_commit_ready,their_per_commit_point,pubkey,
|
|
|
|
msgdata,dualopend_commit_ready,remote_fundingkey,pubkey,
|
|
|
|
msgdata,dualopend_commit_ready,funding,bitcoin_outpoint,
|
|
|
|
msgdata,dualopend_commit_ready,funding_satoshis,amount_sat,
|
|
|
|
msgdata,dualopend_commit_ready,our_funding_sats,amount_sat,
|
|
|
|
msgdata,dualopend_commit_ready,channel_flags,u8,
|
|
|
|
msgdata,dualopend_commit_ready,feerate_per_kw_funding,u32,
|
|
|
|
msgdata,dualopend_commit_ready,feerate_per_kw_commitment,u32,
|
|
|
|
msgdata,dualopend_commit_ready,local_shutdown_len,u16,
|
|
|
|
msgdata,dualopend_commit_ready,local_shutdown_scriptpubkey,u8,local_shutdown_len
|
|
|
|
msgdata,dualopend_commit_ready,remote_shutdown_len,u16,
|
|
|
|
msgdata,dualopend_commit_ready,remote_shutdown_scriptpubkey,u8,remote_shutdown_len
|
|
|
|
msgdata,dualopend_commit_ready,lease_amt,amount_sat,
|
|
|
|
msgdata,dualopend_commit_ready,lease_start_blockheight,u32,
|
|
|
|
msgdata,dualopend_commit_ready,lease_expiry,u32,
|
|
|
|
msgdata,dualopend_commit_ready,lease_fee,amount_sat,
|
|
|
|
msgdata,dualopend_commit_ready,lease_commit_sig,?secp256k1_ecdsa_signature,
|
|
|
|
msgdata,dualopend_commit_ready,lease_chan_max_msat,u32,
|
|
|
|
msgdata,dualopend_commit_ready,lease_chan_max_ppt,u16,
|
|
|
|
msgdata,dualopend_commit_ready,channel_type,channel_type,
|
|
|
|
|
|
|
|
# master->dualopend: channel saved to disk
|
|
|
|
msgtype,dualopend_commit_send_ack,7109
|
|
|
|
|
|
|
|
# dualopend->master: received commitment signed from peer,
|
2020-09-09 12:10:25 +02:00
|
|
|
# get some signatures for the funding_tx.
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_commit_rcvd,7007
|
|
|
|
msgdata,dualopend_commit_rcvd,remote_first_commit,bitcoin_tx,
|
|
|
|
msgdata,dualopend_commit_rcvd,first_commit_sig,bitcoin_signature,
|
2023-10-26 18:42:42 +02:00
|
|
|
msgdata,dualopend_commit_rcvd,pbase,?penalty_base,
|
2020-09-09 12:10:25 +02:00
|
|
|
|
|
|
|
# dualopend->master: peer updated the psbt
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_psbt_changed,7107
|
|
|
|
msgdata,dualopend_psbt_changed,channel_id,channel_id,
|
2023-01-10 22:03:44 +01:00
|
|
|
msgdata,dualopend_psbt_changed,requires_confirmed_inputs,bool,
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_psbt_changed,funding_serial,u64,
|
|
|
|
msgdata,dualopend_psbt_changed,psbt,wally_psbt,
|
2024-01-29 00:36:16 +01:00
|
|
|
msgdata,dualopend_psbt_changed,channel_type,channel_type,
|
2020-09-09 12:10:25 +02:00
|
|
|
|
2020-09-17 21:46:59 +02:00
|
|
|
# master->dualopend: we updated the psbt
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_psbt_updated,7108
|
|
|
|
msgdata,dualopend_psbt_updated,psbt,wally_psbt,
|
2020-09-17 21:46:59 +02:00
|
|
|
|
2020-09-09 12:10:25 +02:00
|
|
|
# master->dualopend: fail this channel open
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_fail,7003
|
|
|
|
msgdata,dualopend_fail,reason,wirestring,
|
2020-09-09 12:10:25 +02:00
|
|
|
|
2020-09-03 20:01:45 +02:00
|
|
|
# master->dualopend: hello, I'd like to start a channel open
|
2020-11-03 17:50:52 +01:00
|
|
|
msgtype,dualopend_opener_init,7200
|
|
|
|
msgdata,dualopend_opener_init,psbt,wally_psbt,
|
|
|
|
msgdata,dualopend_opener_init,funding_amount,amount_sat,
|
|
|
|
msgdata,dualopend_opener_init,local_shutdown_len,u16,
|
|
|
|
msgdata,dualopend_opener_init,local_shutdown_scriptpubkey,u8,local_shutdown_len
|
2021-11-04 18:48:43 +01:00
|
|
|
msgdata,dualopend_opener_init,local_shutdown_wallet_index,?u32,
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_opener_init,feerate_per_kw,u32,
|
2023-06-26 01:12:21 +02:00
|
|
|
msgdata,dualopend_opener_init,anchor_feerate_per_kw,u32,
|
2020-11-03 17:50:52 +01:00
|
|
|
msgdata,dualopend_opener_init,feerate_per_kw_funding,u32,
|
|
|
|
msgdata,dualopend_opener_init,channel_flags,u8,
|
2022-10-04 04:18:31 +02:00
|
|
|
msgdata,dualopend_opener_init,requested_sats,?amount_sat,
|
2021-06-08 23:50:41 +02:00
|
|
|
msgdata,dualopend_opener_init,blockheight,u32,
|
2021-06-11 23:32:27 +02:00
|
|
|
msgdata,dualopend_opener_init,dry_run,bool,
|
2024-01-29 00:34:17 +01:00
|
|
|
msgdata,dualopend_opener_init,channel_type,?channel_type,
|
2021-07-02 23:19:47 +02:00
|
|
|
# must go last because embedded tu32
|
|
|
|
msgdata,dualopend_opener_init,expected_rates,?lease_rates,
|
2020-09-03 20:01:45 +02:00
|
|
|
|
2020-11-03 20:43:48 +01:00
|
|
|
# dualopend->master received tx_sigs from peer
|
|
|
|
msgtype,dualopend_funding_sigs,7010
|
|
|
|
msgdata,dualopend_funding_sigs,signed_psbt,wally_psbt,
|
|
|
|
|
|
|
|
# master->dualopend send our tx_sigs to peer
|
|
|
|
msgtype,dualopend_send_tx_sigs,7011
|
|
|
|
msgdata,dualopend_send_tx_sigs,signed_psbt,wally_psbt,
|
|
|
|
|
2020-11-24 22:10:19 +01:00
|
|
|
# dualopend->master tx sigs transmitted to peer
|
|
|
|
msgtype,dualopend_tx_sigs_sent,7012
|
|
|
|
|
2020-12-10 21:25:54 +01:00
|
|
|
# dualopend->peer peer locked channel
|
|
|
|
msgtype,dualopend_peer_locked,7018
|
|
|
|
msgdata,dualopend_peer_locked,remote_per_commit,pubkey,
|
2024-01-31 04:16:17 +01:00
|
|
|
msgdata,dualopend_peer_locked,remote_alias,?short_channel_id,
|
2020-12-10 21:25:54 +01:00
|
|
|
|
2020-11-24 22:10:19 +01:00
|
|
|
# dualopend->master this channel has been locked
|
|
|
|
msgtype,dualopend_channel_locked,7019
|
|
|
|
|
|
|
|
# master->dualopend funding reached depth; tell peer
|
|
|
|
msgtype,dualopend_depth_reached,7020
|
|
|
|
msgdata,dualopend_depth_reached,depth,u32,
|
|
|
|
|
2020-12-01 21:55:05 +01:00
|
|
|
# Tell peer to shut down channel.
|
|
|
|
msgtype,dualopend_send_shutdown,7023
|
|
|
|
msgdata,dualopend_send_shutdown,shutdown_scriptpubkey_len,u16,
|
|
|
|
msgdata,dualopend_send_shutdown,shutdown_scriptpubkey,u8,shutdown_scriptpubkey_len
|
|
|
|
|
|
|
|
# Peer told us that channel is shutting down
|
|
|
|
msgtype,dualopend_got_shutdown,7024
|
|
|
|
msgdata,dualopend_got_shutdown,scriptpubkey_len,u16,
|
|
|
|
msgdata,dualopend_got_shutdown,scriptpubkey,u8,scriptpubkey_len
|
|
|
|
|
2020-12-10 21:25:54 +01:00
|
|
|
# Peer presented proof it was from the future.
|
|
|
|
msgtype,dualopend_fail_fallen_behind,1028
|
|
|
|
|
2020-12-01 21:55:05 +01:00
|
|
|
# Shutdown is complete, ready for closing negotiation. + peer_fd & gossip_fd.
|
|
|
|
msgtype,dualopend_shutdown_complete,7025
|
|
|
|
|
2022-03-08 01:31:26 +01:00
|
|
|
# master -> dualopend: do you have a memleak?
|
|
|
|
msgtype,dualopend_dev_memleak,7033
|
|
|
|
|
|
|
|
msgtype,dualopend_dev_memleak_reply,7133
|
|
|
|
msgdata,dualopend_dev_memleak_reply,leak,bool,
|
|
|
|
|
2021-06-11 23:32:27 +02:00
|
|
|
# dualopend -> master: this was a dry run, here's some info about this open
|
|
|
|
msgtype,dualopend_dry_run,7026
|
|
|
|
msgdata,dualopend_dry_run,channel_id,channel_id,
|
|
|
|
msgdata,dualopend_dry_run,our_funding,amount_sat,
|
|
|
|
msgdata,dualopend_dry_run,their_funding,amount_sat,
|
2023-01-10 22:06:25 +01:00
|
|
|
msgdata,dualopend_dry_run,requires_confirmed_inputs,bool,
|
2021-07-02 23:19:47 +02:00
|
|
|
# must go last because of embedded tu32
|
2021-06-11 23:32:27 +02:00
|
|
|
msgdata,dualopend_dry_run,lease_rates,?lease_rates,
|
2021-06-14 21:22:46 +02:00
|
|
|
|
2023-01-10 22:04:54 +01:00
|
|
|
# dualopend -> master: are inputs in this psbt confirmed?
|
|
|
|
msgtype,dualopend_validate_inputs,7029
|
|
|
|
msgdata,dualopend_validate_inputs,psbt,wally_psbt,
|
|
|
|
msgdata,dualopend_validate_inputs,side,enum tx_role,
|
|
|
|
|
|
|
|
# master -> dualopend: confirms inputs are valid
|
|
|
|
msgtype,dualopend_validate_inputs_reply,7030
|
|
|
|
|
2021-06-14 21:22:46 +02:00
|
|
|
# dualopend -> master: validate liqudity offer sig
|
|
|
|
msgtype,dualopend_validate_lease,7027
|
|
|
|
msgdata,dualopend_validate_lease,sig,secp256k1_ecdsa_signature,
|
|
|
|
msgdata,dualopend_validate_lease,lease_expiry,u32,
|
|
|
|
msgdata,dualopend_validate_lease,chan_fee_max_base_msat,u32,
|
|
|
|
msgdata,dualopend_validate_lease,chan_fee_max_ppt,u16,
|
|
|
|
msgdata,dualopend_validate_lease,their_pubkey,pubkey,
|
|
|
|
|
|
|
|
msgtype,dualopend_validate_lease_reply,7127
|
|
|
|
msgdata,dualopend_validate_lease_reply,err_msg,?wirestring,
|