You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// because the update is bogus, ultimately the error that's returned
150
150
// should be a PermanentFailure.
151
151
ifletChannelMonitorUpdateStatus::PermanentFailure = chain_mon.chain_monitor.update_channel(outpoint,&update){}else{panic!("Expected monitor error to be permanent");}
152
-
logger.assert_log_regex("lightning::chain::chainmonitor".to_string(), regex::Regex::new("Persistence of ChannelMonitorUpdate for channel [0-9a-f]* in progress").unwrap(),1);
152
+
logger.assert_log_regex("lightning::chain::chainmonitor", regex::Regex::new("Persistence of ChannelMonitorUpdate for channel [0-9a-f]* in progress").unwrap(),1);
assert!(regex::Regex::new(r"Payment secret is required for multi-path payments").unwrap().is_match(err))},
8269
+
assert!(regex::Regex::new(r"Payment secret is required for multi-path payments").unwrap().is_match(err))
8270
+
},
8270
8271
_ => panic!("unexpected error")
8271
8272
}
8272
8273
}
@@ -8326,7 +8327,7 @@ mod tests {
8326
8327
match inbound_payment::verify(bad_payment_hash,&payment_data, nodes[0].node.highest_seen_timestamp.load(Ordering::Acquire)asu64,&nodes[0].node.inbound_payment_key,&nodes[0].logger){
8327
8328
Ok(_) => panic!("Unexpected ok"),
8328
8329
Err(()) => {
8329
-
nodes[0].logger.assert_log_contains("lightning::ln::inbound_payment".to_string(),"Failing HTLC with user-generated payment_hash".to_string(),1);
8330
+
nodes[0].logger.assert_log_contains("lightning::ln::inbound_payment","Failing HTLC with user-generated payment_hash",1);
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager".to_string(),"Cannot send value that would put our balance under counterparty-announced channel reserve value".to_string(),1);
1349
+
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager","Cannot send value that would put our balance under counterparty-announced channel reserve value",1);
assert!(regex::Regex::new(r"Cannot send value that would put us over the max HTLC value in flight our peer will accept \(\d+\)").unwrap().is_match(err)));
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager".to_string(),"Cannot send value that would put us over the max HTLC value in flight our peer will accept".to_string(),1);
1814
+
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager","Cannot send value that would put us over the max HTLC value in flight our peer will accept",1);
1815
1815
}
1816
1816
1817
1817
// channel reserve is bigger than their_max_htlc_value_in_flight_msat so loop to deplete
assert!(regex::Regex::new(r"Cannot send value that would put our balance under counterparty-announced channel reserve value \(\d+\)").unwrap().is_match(err)));
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager".to_string(),"Cannot send value that would put our balance under counterparty-announced channel reserve value".to_string(),2);
1909
+
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager","Cannot send value that would put our balance under counterparty-announced channel reserve value",2);
assert!(regex::Regex::new(r"Cannot send value that would put us over the max HTLC value in flight our peer will accept \(\d+\)").unwrap().is_match(err)));
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager".to_string(),"Cannot send value that would put us over the max HTLC value in flight our peer will accept".to_string(),1);
6115
+
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager","Cannot send value that would put us over the max HTLC value in flight our peer will accept",1);
nodes[0].logger.assert_log_contains("lightning::ln::channel".to_string(),"Cannot afford to send new feerate at 2530 without infringing max dust htlc exposure".to_string(),1);
9505
+
nodes[0].logger.assert_log_contains("lightning::ln::channel","Cannot afford to send new feerate at 2530 without infringing max dust htlc exposure",1);
9506
9506
}
9507
9507
9508
9508
let _ = nodes[0].node.get_and_clear_pending_msg_events();
nodes[1].logger.assert_log_regex("lightning::ln::channelmanager".to_string(), regex::Regex::new(r"Refusing to forward over real channel SCID as our counterparty requested").unwrap(),1);
426
+
nodes[1].logger.assert_log_regex("lightning::ln::channelmanager", regex::Regex::new(r"Refusing to forward over real channel SCID as our counterparty requested").unwrap(),1);
0 commit comments