Skip to content

Commit abee659

Browse files
committed
Fix nits from lightningdevkit#3016
1 parent df68774 commit abee659

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4670,7 +4670,6 @@ where
46704670
///
46714671
/// LDK will not automatically retry this payment, though it may be manually re-sent after an
46724672
/// [`Event::PaymentFailed`] is generated.
4673-
#[cfg(any(test, feature = "_test_utils"))]
46744673
pub fn send_payment_with_route(
46754674
&self, mut route: Route, payment_hash: PaymentHash, recipient_onion: RecipientOnionFields,
46764675
payment_id: PaymentId

lightning/src/ln/functional_test_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -2549,8 +2549,8 @@ 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, .. } => {
25542554
assert_eq!(*payment_hash, expected_payment_hash, "unexpected payment_hash");
25552555
assert_eq!(*payment_failed_permanently, expected_payment_failed_permanently, "unexpected payment_failed_permanently value");
25562556
{

lightning/src/ln/functional_tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use crate::ln::chan_utils::CommitmentTransaction;
6666
use super::channel::UNFUNDED_CHANNEL_AGE_LIMIT_TICKS;
6767

6868
#[xtest(feature = "_externalize_tests")]
69-
fn test_channel_resumption_fail_post_funding() {
69+
pub fn test_channel_resumption_fail_post_funding() {
7070
// If we fail to exchange funding with a peer prior to it disconnecting we'll resume the
7171
// channel open on reconnect, however if we do exchange funding we do not currently support
7272
// replaying it and here test that the channel closes.
@@ -2899,7 +2899,7 @@ pub fn claim_htlc_outputs() {
28992899
//
29002900
// This is a regression test for https://github.com/lightningdevkit/rust-lightning/issues/3537.
29012901
#[xtest(feature = "_externalize_tests")]
2902-
fn test_multiple_package_conflicts() {
2902+
pub fn test_multiple_package_conflicts() {
29032903
let chanmon_cfgs = create_chanmon_cfgs(3);
29042904
let node_cfgs = create_node_cfgs(3, &chanmon_cfgs);
29052905
let mut user_cfg = test_default_channel_config();
@@ -5047,7 +5047,7 @@ pub fn test_static_spendable_outputs_timeout_tx() {
50475047
check_spends!(spend_txn[2], node_txn[0], commitment_tx[0]); // All outputs
50485048
}
50495049

5050-
pub fn do_test_static_spendable_outputs_justice_tx_revoked_commitment_tx(split_tx: bool) {
5050+
fn do_test_static_spendable_outputs_justice_tx_revoked_commitment_tx(split_tx: bool) {
50515051
let chanmon_cfgs = create_chanmon_cfgs(2);
50525052
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
50535053
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
@@ -10603,7 +10603,7 @@ pub fn test_max_dust_htlc_exposure() {
1060310603
}
1060410604

1060510605
#[xtest(feature = "_externalize_tests")]
10606-
fn test_nondust_htlc_excess_fees_are_dust() {
10606+
pub fn test_nondust_htlc_excess_fees_are_dust() {
1060710607
// Test that the excess transaction fees paid in nondust HTLCs count towards our dust limit
1060810608
const DEFAULT_FEERATE: u32 = 253;
1060910609
const HIGH_FEERATE: u32 = 275;
@@ -11943,7 +11943,7 @@ pub fn test_manual_funding_abandon() {
1194311943
}
1194411944

1194511945
#[xtest(feature = "_externalize_tests")]
11946-
fn test_funding_signed_event() {
11946+
pub fn test_funding_signed_event() {
1194711947
let mut cfg = UserConfig::default();
1194811948
cfg.channel_handshake_config.minimum_depth = 1;
1194911949
let chanmon_cfgs = create_chanmon_cfgs(2);

0 commit comments

Comments
 (0)