@@ -513,7 +513,7 @@ impl<'a, 'b, 'c> Node<'a, 'b, 'c> {
513
513
/// Toggles this node's signer to be available for the given signer operation.
514
514
/// This is useful for testing behavior for restoring an async signer that previously
515
515
/// 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 ) {
517
517
self . set_channel_signer_ops ( peer_id, chan_id, signer_op, true ) ;
518
518
}
519
519
@@ -532,7 +532,7 @@ impl<'a, 'b, 'c> Node<'a, 'b, 'c> {
532
532
/// will behave normally, returning `Ok`. When set to `false`, and the channel signer will
533
533
/// act like an off-line remote signer, returning `Err`. This applies to the signer in all
534
534
/// 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 ) {
536
536
use crate :: sign:: ChannelSigner ;
537
537
log_debug ! ( self . logger, "Setting channel signer for {} as available={}" , chan_id, available) ;
538
538
@@ -2549,11 +2549,12 @@ pub fn expect_payment_failed_conditions_event<'a, 'b, 'c, 'd, 'e>(
2549
2549
if conditions. expected_mpp_parts_remain { assert_eq ! ( payment_failed_events. len( ) , 1 ) ; } else { assert_eq ! ( payment_failed_events. len( ) , 2 ) ; }
2550
2550
let expected_payment_id = match & payment_failed_events[ 0 ] {
2551
2551
Event :: PaymentPathFailed { payment_hash, payment_failed_permanently, payment_id, failure,
2552
- error_code,
2553
- error_data, .. } => {
2552
+ error_code,
2553
+ error_data, ..
2554
+ } => {
2554
2555
assert_eq ! ( * payment_hash, expected_payment_hash, "unexpected payment_hash" ) ;
2555
2556
assert_eq ! ( * payment_failed_permanently, expected_payment_failed_permanently, "unexpected payment_failed_permanently value" ) ;
2556
- {
2557
+ {
2557
2558
assert ! ( error_code. is_some( ) , "expected error_code.is_some() = true" ) ;
2558
2559
assert ! ( error_data. is_some( ) , "expected error_data.is_some() = true" ) ;
2559
2560
if let Some ( ( code, data) ) = conditions. expected_htlc_error_data {
0 commit comments