@@ -52,7 +52,7 @@ use lightning::ln::channelmanager::{
5252 RecipientOnionFields ,
5353} ;
5454use lightning:: ln:: functional_test_utils:: * ;
55- use lightning:: ln:: funding:: { FundingTxInput , SpliceContribution } ;
55+ use lightning:: ln:: funding:: SpliceContribution ;
5656use lightning:: ln:: inbound_payment:: ExpandedKey ;
5757use lightning:: ln:: msgs:: {
5858 BaseMessageHandler , ChannelMessageHandler , CommitmentUpdate , Init , MessageSendEvent ,
@@ -1859,16 +1859,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
18591859 } ,
18601860
18611861 0xa0 => {
1862- let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 0 ) . unwrap ( ) ;
1863- let contribution =
1864- SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
1865- let funding_feerate_sat_per_kw = fee_est_a. ret_val . load ( atomic:: Ordering :: Acquire ) ;
1862+ let contribution = SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , None ) ;
18661863 if let Err ( e) = nodes[ 0 ] . splice_channel (
18671864 & chan_a_id,
18681865 & nodes[ 1 ] . get_our_node_id ( ) ,
18691866 contribution,
1870- funding_feerate_sat_per_kw,
1871- None ,
18721867 ) {
18731868 assert ! (
18741869 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -1878,16 +1873,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
18781873 }
18791874 } ,
18801875 0xa1 => {
1881- let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 1 ) . unwrap ( ) ;
1882- let contribution =
1883- SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
1884- let funding_feerate_sat_per_kw = fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
1876+ let contribution = SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , None ) ;
18851877 if let Err ( e) = nodes[ 1 ] . splice_channel (
18861878 & chan_a_id,
18871879 & nodes[ 0 ] . get_our_node_id ( ) ,
18881880 contribution,
1889- funding_feerate_sat_per_kw,
1890- None ,
18911881 ) {
18921882 assert ! (
18931883 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -1897,16 +1887,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
18971887 }
18981888 } ,
18991889 0xa2 => {
1900- let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 0 ) . unwrap ( ) ;
1901- let contribution =
1902- SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
1903- let funding_feerate_sat_per_kw = fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
1890+ let contribution = SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , None ) ;
19041891 if let Err ( e) = nodes[ 1 ] . splice_channel (
19051892 & chan_b_id,
19061893 & nodes[ 2 ] . get_our_node_id ( ) ,
19071894 contribution,
1908- funding_feerate_sat_per_kw,
1909- None ,
19101895 ) {
19111896 assert ! (
19121897 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -1916,16 +1901,11 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19161901 }
19171902 } ,
19181903 0xa3 => {
1919- let input = FundingTxInput :: new_p2wpkh ( coinbase_tx. clone ( ) , 1 ) . unwrap ( ) ;
1920- let contribution =
1921- SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , vec ! [ input] , None ) ;
1922- let funding_feerate_sat_per_kw = fee_est_c. ret_val . load ( atomic:: Ordering :: Acquire ) ;
1904+ let contribution = SpliceContribution :: splice_in ( Amount :: from_sat ( 10_000 ) , None ) ;
19231905 if let Err ( e) = nodes[ 2 ] . splice_channel (
19241906 & chan_b_id,
19251907 & nodes[ 1 ] . get_our_node_id ( ) ,
19261908 contribution,
1927- funding_feerate_sat_per_kw,
1928- None ,
19291909 ) {
19301910 assert ! (
19311911 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -1950,14 +1930,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19501930 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
19511931 script_pubkey: coinbase_tx. output[ 0 ] . script_pubkey. clone( ) ,
19521932 } ] ) ;
1953- let funding_feerate_sat_per_kw =
1954- fee_est_a. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19551933 if let Err ( e) = nodes[ 0 ] . splice_channel (
19561934 & chan_a_id,
19571935 & nodes[ 1 ] . get_our_node_id ( ) ,
19581936 contribution,
1959- funding_feerate_sat_per_kw,
1960- None ,
19611937 ) {
19621938 assert ! (
19631939 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -1979,14 +1955,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
19791955 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
19801956 script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
19811957 } ] ) ;
1982- let funding_feerate_sat_per_kw =
1983- fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
19841958 if let Err ( e) = nodes[ 1 ] . splice_channel (
19851959 & chan_a_id,
19861960 & nodes[ 0 ] . get_our_node_id ( ) ,
19871961 contribution,
1988- funding_feerate_sat_per_kw,
1989- None ,
19901962 ) {
19911963 assert ! (
19921964 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -2008,14 +1980,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
20081980 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
20091981 script_pubkey: coinbase_tx. output[ 1 ] . script_pubkey. clone( ) ,
20101982 } ] ) ;
2011- let funding_feerate_sat_per_kw =
2012- fee_est_b. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20131983 if let Err ( e) = nodes[ 1 ] . splice_channel (
20141984 & chan_b_id,
20151985 & nodes[ 2 ] . get_our_node_id ( ) ,
20161986 contribution,
2017- funding_feerate_sat_per_kw,
2018- None ,
20191987 ) {
20201988 assert ! (
20211989 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
@@ -2037,14 +2005,10 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
20372005 value: Amount :: from_sat( MAX_STD_OUTPUT_DUST_LIMIT_SATOSHIS ) ,
20382006 script_pubkey: coinbase_tx. output[ 2 ] . script_pubkey. clone( ) ,
20392007 } ] ) ;
2040- let funding_feerate_sat_per_kw =
2041- fee_est_c. ret_val . load ( atomic:: Ordering :: Acquire ) ;
20422008 if let Err ( e) = nodes[ 2 ] . splice_channel (
20432009 & chan_b_id,
20442010 & nodes[ 1 ] . get_our_node_id ( ) ,
20452011 contribution,
2046- funding_feerate_sat_per_kw,
2047- None ,
20482012 ) {
20492013 assert ! (
20502014 matches!( e, APIError :: APIMisuseError { ref err } if err. contains( "splice pending" ) ) ,
0 commit comments