@@ -513,7 +513,7 @@ impl<'a, 'b, 'c> Node<'a, 'b, 'c> {
513513 /// Toggles this node's signer to be available for the given signer operation.
514514 /// This is useful for testing behavior for restoring an async signer that previously
515515 /// could not return a signature immediately.
516- pub fn enable_channel_signer_op ( & self , peer_id : & PublicKey , chan_id : & ChannelId , signer_op : SignerOp ) {
516+ pub fn enable_channel_signer_op ( & self , peer_id : & PublicKey , chan_id : & ChannelId , signer_op : SignerOp ) {
517517 self . set_channel_signer_ops ( peer_id, chan_id, signer_op, true ) ;
518518 }
519519
@@ -532,7 +532,7 @@ impl<'a, 'b, 'c> Node<'a, 'b, 'c> {
532532 /// will behave normally, returning `Ok`. When set to `false`, and the channel signer will
533533 /// act like an off-line remote signer, returning `Err`. This applies to the signer in all
534534 /// relevant places, i.e. the channel manager, chain monitor, and the keys manager.
535- fn set_channel_signer_ops ( & self , peer_id : & PublicKey , chan_id : & ChannelId , signer_op : SignerOp , available : bool ) {
535+ fn set_channel_signer_ops ( & self , peer_id : & PublicKey , chan_id : & ChannelId , signer_op : SignerOp , available : bool ) {
536536 use crate :: sign:: ChannelSigner ;
537537 log_debug ! ( self . logger, "Setting channel signer for {} as available={}" , chan_id, available) ;
538538
@@ -2549,11 +2549,12 @@ pub fn expect_payment_failed_conditions_event<'a, 'b, 'c, 'd, 'e>(
25492549 if conditions. expected_mpp_parts_remain { assert_eq ! ( payment_failed_events. len( ) , 1 ) ; } else { assert_eq ! ( payment_failed_events. len( ) , 2 ) ; }
25502550 let expected_payment_id = match & payment_failed_events[ 0 ] {
25512551 Event :: PaymentPathFailed { payment_hash, payment_failed_permanently, payment_id, failure,
2552- error_code,
2553- error_data, .. } => {
2552+ error_code,
2553+ error_data, ..
2554+ } => {
25542555 assert_eq ! ( * payment_hash, expected_payment_hash, "unexpected payment_hash" ) ;
25552556 assert_eq ! ( * payment_failed_permanently, expected_payment_failed_permanently, "unexpected payment_failed_permanently value" ) ;
2556- {
2557+ {
25572558 assert ! ( error_code. is_some( ) , "expected error_code.is_some() = true" ) ;
25582559 assert ! ( error_data. is_some( ) , "expected error_data.is_some() = true" ) ;
25592560 if let Some ( ( code, data) ) = conditions. expected_htlc_error_data {
0 commit comments