@@ -1326,7 +1326,7 @@ mod tests {
13261326				&& key == CHANNEL_MANAGER_PERSISTENCE_KEY 
13271327			{ 
13281328				if  let  Some ( ( error,  message) )  = self . manager_error  { 
1329- 					return  Err ( std:: io:: Error :: new ( error,  message) ) ; 
1329+ 					return  Err ( std:: io:: Error :: new ( error,  message) . into ( ) ) ; 
13301330				} 
13311331			} 
13321332
@@ -1344,7 +1344,7 @@ mod tests {
13441344				} ; 
13451345
13461346				if  let  Some ( ( error,  message) )  = self . graph_error  { 
1347- 					return  Err ( std:: io:: Error :: new ( error,  message) ) ; 
1347+ 					return  Err ( std:: io:: Error :: new ( error,  message) . into ( ) ) ; 
13481348				} 
13491349			} 
13501350
@@ -1353,7 +1353,7 @@ mod tests {
13531353				&& key == SCORER_PERSISTENCE_KEY 
13541354			{ 
13551355				if  let  Some ( ( error,  message) )  = self . scorer_error  { 
1356- 					return  Err ( std:: io:: Error :: new ( error,  message) ) ; 
1356+ 					return  Err ( std:: io:: Error :: new ( error,  message) . into ( ) ) ; 
13571357				} 
13581358			} 
13591359
@@ -1866,7 +1866,10 @@ mod tests {
18661866		nodes[ 0 ] 
18671867			. node 
18681868			. force_close_broadcasting_latest_txn ( 
1869- 				& ChannelId :: v1_from_funding_outpoint ( OutPoint  {  txid :  tx. txid ( ) ,  index :  0  } ) , 
1869+ 				& ChannelId :: v1_from_funding_outpoint ( OutPoint  { 
1870+ 					txid :  tx. compute_txid ( ) , 
1871+ 					index :  0 , 
1872+ 				} ) , 
18701873				& nodes[ 1 ] . node . get_our_node_id ( ) , 
18711874				error_message. to_string ( ) , 
18721875			) 
@@ -2002,7 +2005,7 @@ mod tests {
20022005		match  bp_future. await  { 
20032006			Ok ( _)  => panic ! ( "Expected error persisting manager" ) , 
20042007			Err ( e)  => { 
2005- 				assert_eq ! ( e. kind( ) ,  std :: io:: ErrorKind :: Other ) ; 
2008+ 				assert_eq ! ( e. kind( ) ,  lightning :: io:: ErrorKind :: Other ) ; 
20062009				assert_eq ! ( e. get_ref( ) . unwrap( ) . to_string( ) ,  "test" ) ; 
20072010			} , 
20082011		} 
@@ -2134,7 +2137,7 @@ mod tests {
21342137			get_event_msg ! ( nodes[ 1 ] ,  MessageSendEvent :: SendChannelUpdate ,  node_0_id) ; 
21352138		let  broadcast_funding =
21362139			nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . pop ( ) . unwrap ( ) ; 
2137- 		assert_eq ! ( broadcast_funding. txid ( ) ,  funding_tx. txid ( ) ) ; 
2140+ 		assert_eq ! ( broadcast_funding. compute_txid ( ) ,  funding_tx. compute_txid ( ) ) ; 
21382141		assert ! ( nodes[ 0 ] . tx_broadcaster. txn_broadcasted. lock( ) . unwrap( ) . is_empty( ) ) ; 
21392142
21402143		if  !std:: thread:: panicking ( )  { 
@@ -2212,7 +2215,7 @@ mod tests {
22122215		let  sweep_tx_0 = nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . pop ( ) . unwrap ( ) ; 
22132216		match  tracked_output. status  { 
22142217			OutputSpendStatus :: PendingFirstConfirmation  {  latest_spending_tx,  .. }  => { 
2215- 				assert_eq ! ( sweep_tx_0. txid ( ) ,  latest_spending_tx. txid ( ) ) ; 
2218+ 				assert_eq ! ( sweep_tx_0. compute_txid ( ) ,  latest_spending_tx. compute_txid ( ) ) ; 
22162219			} , 
22172220			_ => panic ! ( "Unexpected status" ) , 
22182221		} 
@@ -2224,7 +2227,7 @@ mod tests {
22242227		let  sweep_tx_1 = nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . pop ( ) . unwrap ( ) ; 
22252228		match  tracked_output. status  { 
22262229			OutputSpendStatus :: PendingFirstConfirmation  {  latest_spending_tx,  .. }  => { 
2227- 				assert_eq ! ( sweep_tx_1. txid ( ) ,  latest_spending_tx. txid ( ) ) ; 
2230+ 				assert_eq ! ( sweep_tx_1. compute_txid ( ) ,  latest_spending_tx. compute_txid ( ) ) ; 
22282231			} , 
22292232			_ => panic ! ( "Unexpected status" ) , 
22302233		} 
@@ -2236,7 +2239,7 @@ mod tests {
22362239		let  sweep_tx_2 = nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . pop ( ) . unwrap ( ) ; 
22372240		match  tracked_output. status  { 
22382241			OutputSpendStatus :: PendingFirstConfirmation  {  latest_spending_tx,  .. }  => { 
2239- 				assert_eq ! ( sweep_tx_2. txid ( ) ,  latest_spending_tx. txid ( ) ) ; 
2242+ 				assert_eq ! ( sweep_tx_2. compute_txid ( ) ,  latest_spending_tx. compute_txid ( ) ) ; 
22402243			} , 
22412244			_ => panic ! ( "Unexpected status" ) , 
22422245		} 
@@ -2249,7 +2252,7 @@ mod tests {
22492252		let  tracked_output = nodes[ 0 ] . sweeper . tracked_spendable_outputs ( ) . first ( ) . unwrap ( ) . clone ( ) ; 
22502253		match  tracked_output. status  { 
22512254			OutputSpendStatus :: PendingThresholdConfirmations  {  latest_spending_tx,  .. }  => { 
2252- 				assert_eq ! ( sweep_tx_2. txid ( ) ,  latest_spending_tx. txid ( ) ) ; 
2255+ 				assert_eq ! ( sweep_tx_2. compute_txid ( ) ,  latest_spending_tx. compute_txid ( ) ) ; 
22532256			} , 
22542257			_ => panic ! ( "Unexpected status" ) , 
22552258		} 
@@ -2264,7 +2267,7 @@ mod tests {
22642267		let  tracked_output = nodes[ 0 ] . sweeper . tracked_spendable_outputs ( ) . first ( ) . unwrap ( ) . clone ( ) ; 
22652268		match  tracked_output. status  { 
22662269			OutputSpendStatus :: PendingThresholdConfirmations  {  latest_spending_tx,  .. }  => { 
2267- 				assert_eq ! ( sweep_tx_2. txid ( ) ,  latest_spending_tx. txid ( ) ) ; 
2270+ 				assert_eq ! ( sweep_tx_2. compute_txid ( ) ,  latest_spending_tx. compute_txid ( ) ) ; 
22682271			} , 
22692272			_ => panic ! ( "Unexpected status" ) , 
22702273		} 
0 commit comments