@@ -1860,11 +1860,8 @@ 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 =
1864+ SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
18681865 let funding_feerate_sat_per_kw = fee_est_a. ret_val . load ( atomic:: Ordering :: Acquire ) ;
18691866 if let Err ( e) = nodes[ 0 ] . splice_channel (
18701867 & chan_a_id,
@@ -1882,11 +1879,8 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
18821879 } ,
18831880 0xa1 => {
18841881 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- } ;
1882+ let contribution =
1883+ SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
18901884 let funding_feerate_sat_per_kw = fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
18911885 if let Err ( e) = nodes[ 1 ] . splice_channel (
18921886 & chan_a_id,
@@ -1904,11 +1898,8 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19041898 } ,
19051899 0xa2 => {
19061900 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- } ;
1901+ let contribution =
1902+ SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
19121903 let funding_feerate_sat_per_kw = fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19131904 if let Err ( e) = nodes[ 1 ] . splice_channel (
19141905 & chan_b_id,
@@ -1926,11 +1917,8 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19261917 } ,
19271918 0xa3 => {
19281919 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- } ;
1920+ let contribution =
1921+ SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
19341922 let funding_feerate_sat_per_kw = fee_est_c. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19351923 if let Err ( e) = nodes[ 2 ] . splice_channel (
19361924 & chan_b_id,
@@ -1958,12 +1946,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19581946 . map ( |chan| chan. outbound_capacity_msat )
19591947 . unwrap ( ) ;
19601948 if outbound_capacity_msat >= 20_000_000 {
1961- let contribution = SpliceContribution :: SpliceOut {
1962- outputs : vec ! [ TxOut {
1963- value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
1964- script_pubkey: coinbase_tx. output[ 0 ] . script_pubkey. clone( ) ,
1965- } ] ,
1966- } ;
1949+ let contribution = SpliceContribution :: splice_out ( vec ! [ TxOut {
1950+ value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
1951+ script_pubkey: coinbase_tx. output[ 0 ] . script_pubkey. clone( ) ,
1952+ } ] ) ;
19671953 let funding_feerate_sat_per_kw =
19681954 fee_est_a. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19691955 if let Err ( e) = nodes[ 0 ] . splice_channel (
@@ -1989,12 +1975,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19891975 . map ( |chan| chan. outbound_capacity_msat )
19901976 . unwrap ( ) ;
19911977 if outbound_capacity_msat >= 20_000_000 {
1992- let contribution = SpliceContribution :: SpliceOut {
1993- outputs : vec ! [ TxOut {
1994- value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
1995- script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
1996- } ] ,
1997- } ;
1978+ let contribution = SpliceContribution :: splice_out ( vec ! [ TxOut {
1979+ value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
1980+ script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
1981+ } ] ) ;
19981982 let funding_feerate_sat_per_kw =
19991983 fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20001984 if let Err ( e) = nodes[ 1 ] . splice_channel (
@@ -2020,12 +2004,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
20202004 . map ( |chan| chan. outbound_capacity_msat )
20212005 . unwrap ( ) ;
20222006 if outbound_capacity_msat >= 20_000_000 {
2023- let contribution = SpliceContribution :: SpliceOut {
2024- outputs : vec ! [ TxOut {
2025- value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
2026- script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
2027- } ] ,
2028- } ;
2007+ let contribution = SpliceContribution :: splice_out ( vec ! [ TxOut {
2008+ value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
2009+ script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
2010+ } ] ) ;
20292011 let funding_feerate_sat_per_kw =
20302012 fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20312013 if let Err ( e) = nodes[ 1 ] . splice_channel (
@@ -2051,12 +2033,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
20512033 . map ( |chan| chan. outbound_capacity_msat )
20522034 . unwrap ( ) ;
20532035 if outbound_capacity_msat >= 20_000_000 {
2054- let contribution = SpliceContribution :: SpliceOut {
2055- outputs : vec ! [ TxOut {
2056- value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
2057- script_pubkey: coinbase_tx. output[ 2 ] . script_pubkey. clone( ) ,
2058- } ] ,
2059- } ;
2036+ let contribution = SpliceContribution :: splice_out ( vec ! [ TxOut {
2037+ value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
2038+ script_pubkey: coinbase_tx. output[ 2 ] . script_pubkey. clone( ) ,
2039+ } ] ) ;
20602040 let funding_feerate_sat_per_kw =
20612041 fee_est_c. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20622042 if let Err ( e) = nodes[ 2 ] . splice_channel (
0 commit comments