@@ -1860,11 +1860,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
18601860
18611861 0xa0 => {
18621862 let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 0 ) . unwrap ( ) ;
1863- let contribution = SpliceContribution :: SpliceIn {
1864- value : Amount :: from_sat ( 10_000 ) ,
1865- inputs : vec ! [ input] ,
1866- change_script : None ,
1867- } ;
1863+ let contribution = SpliceContribution :: splice_in (
1864+ Amount :: from_sat ( 10_000 ) ,
1865+ vec ! [ input] ,
1866+ None ,
1867+ ) ;
18681868 let funding_feerate_sat_per_kw = fee_est_a. ret_val . load ( atomic:: Ordering :: Acquire ) ;
18691869 if let Err ( e) = nodes[ 0 ] . splice_channel (
18701870 & chan_a_id,
@@ -1882,11 +1882,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
18821882 } ,
18831883 0xa1 => {
18841884 let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 1 ) . unwrap ( ) ;
1885- let contribution = SpliceContribution :: SpliceIn {
1886- value : Amount :: from_sat ( 10_000 ) ,
1887- inputs : vec ! [ input] ,
1888- change_script : None ,
1889- } ;
1885+ let contribution = SpliceContribution :: splice_in (
1886+ Amount :: from_sat ( 10_000 ) ,
1887+ vec ! [ input] ,
1888+ None ,
1889+ ) ;
18901890 let funding_feerate_sat_per_kw = fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
18911891 if let Err ( e) = nodes[ 1 ] . splice_channel (
18921892 & chan_a_id,
@@ -1904,11 +1904,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19041904 } ,
19051905 0xa2 => {
19061906 let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 0 ) . unwrap ( ) ;
1907- let contribution = SpliceContribution :: SpliceIn {
1908- value : Amount :: from_sat ( 10_000 ) ,
1909- inputs : vec ! [ input] ,
1910- change_script : None ,
1911- } ;
1907+ let contribution = SpliceContribution :: splice_in (
1908+ Amount :: from_sat ( 10_000 ) ,
1909+ vec ! [ input] ,
1910+ None ,
1911+ ) ;
19121912 let funding_feerate_sat_per_kw = fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19131913 if let Err ( e) = nodes[ 1 ] . splice_channel (
19141914 & chan_b_id,
@@ -1926,11 +1926,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19261926 } ,
19271927 0xa3 => {
19281928 let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 1 ) . unwrap ( ) ;
1929- let contribution = SpliceContribution :: SpliceIn {
1930- value : Amount :: from_sat ( 10_000 ) ,
1931- inputs : vec ! [ input] ,
1932- change_script : None ,
1933- } ;
1929+ let contribution = SpliceContribution :: splice_in (
1930+ Amount :: from_sat ( 10_000 ) ,
1931+ vec ! [ input] ,
1932+ None ,
1933+ ) ;
19341934 let funding_feerate_sat_per_kw = fee_est_c. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19351935 if let Err ( e) = nodes[ 2 ] . splice_channel (
19361936 & chan_b_id,
@@ -1958,12 +1958,12 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19581958 . map ( |chan| chan. outbound_capacity_msat )
19591959 . unwrap ( ) ;
19601960 if outbound_capacity_msat >= 20_000_000 {
1961- let contribution = SpliceContribution :: SpliceOut {
1962- outputs : vec ! [ TxOut {
1961+ let contribution = SpliceContribution :: splice_out (
1962+ vec ! [ TxOut {
19631963 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
19641964 script_pubkey: coinbase_tx. output[ 0 ] . script_pubkey. clone( ) ,
19651965 } ] ,
1966- } ;
1966+ ) ;
19671967 let funding_feerate_sat_per_kw =
19681968 fee_est_a. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19691969 if let Err ( e) = nodes[ 0 ] . splice_channel (
@@ -1989,12 +1989,12 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19891989 . map ( |chan| chan. outbound_capacity_msat )
19901990 . unwrap ( ) ;
19911991 if outbound_capacity_msat >= 20_000_000 {
1992- let contribution = SpliceContribution :: SpliceOut {
1993- outputs : vec ! [ TxOut {
1992+ let contribution = SpliceContribution :: splice_out (
1993+ vec ! [ TxOut {
19941994 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
19951995 script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
19961996 } ] ,
1997- } ;
1997+ ) ;
19981998 let funding_feerate_sat_per_kw =
19991999 fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20002000 if let Err ( e) = nodes[ 1 ] . splice_channel (
@@ -2020,12 +2020,12 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
20202020 . map ( |chan| chan. outbound_capacity_msat )
20212021 . unwrap ( ) ;
20222022 if outbound_capacity_msat >= 20_000_000 {
2023- let contribution = SpliceContribution :: SpliceOut {
2024- outputs : vec ! [ TxOut {
2023+ let contribution = SpliceContribution :: splice_out (
2024+ vec ! [ TxOut {
20252025 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
20262026 script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
20272027 } ] ,
2028- } ;
2028+ ) ;
20292029 let funding_feerate_sat_per_kw =
20302030 fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20312031 if let Err ( e) = nodes[ 1 ] . splice_channel (
@@ -2051,12 +2051,12 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
20512051 . map ( |chan| chan. outbound_capacity_msat )
20522052 . unwrap ( ) ;
20532053 if outbound_capacity_msat >= 20_000_000 {
2054- let contribution = SpliceContribution :: SpliceOut {
2055- outputs : vec ! [ TxOut {
2054+ let contribution = SpliceContribution :: splice_out (
2055+ vec ! [ TxOut {
20562056 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
20572057 script_pubkey: coinbase_tx. output[ 2 ] . script_pubkey. clone( ) ,
20582058 } ] ,
2059- } ;
2059+ ) ;
20602060 let funding_feerate_sat_per_kw =
20612061 fee_est_c. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20622062 if let Err ( e) = nodes[ 2 ] . splice_channel (
0 commit comments