Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
eb31aeb
Trivial: use full path in test macros
valentinewallace Feb 6, 2026
07b3def
Split method to reconstruct pending HTLCs into two
valentinewallace Feb 9, 2026
d3e9cd0
Dedup data in InboundUpdateAdd::Forwarded::hop_data
valentinewallace Feb 9, 2026
3246010
Trivial: ChannelManager::read var rename prefactor
valentinewallace Feb 12, 2026
70ae54f
Trivial: user_channel_id in pending_claims_to_replay
valentinewallace Feb 12, 2026
b3b59e6
Persist outbound channel info in inbound HTLCs
valentinewallace Feb 10, 2026
48010cb
Fix PaymentForwarded fields on restart claim
valentinewallace Feb 10, 2026
0d6dcc9
Fix missing user_channel_id in PaymentForwarded
valentinewallace Feb 10, 2026
5daf51c
Test restart-claim of two MPP holding cell HTLCs
valentinewallace Feb 11, 2026
ab0ba65
Update RECONSTRUCT_HTLCS_FROM_CHANS_VERSION 5 -> 2
valentinewallace Feb 12, 2026
a088338
Update upgrade tests: 0.2- to 0.5 doesn't work
valentinewallace Feb 6, 2026
0e8b3a4
Elide legacy manager pending HTLC maps on read/write
valentinewallace Jan 16, 2026
f2c8f0e
Remove now-unused reconstruct_manager test arg
valentinewallace Feb 3, 2026
c5395b8
Pass logger into FundedChannel::read
valentinewallace Jan 6, 2026
4c3e14b
Remove deprecated InboundHTLCResolution::Resolved variant
valentinewallace Jan 6, 2026
c700ac9
Simplify InboundHTLCStates' htlc resolution type
valentinewallace Jan 6, 2026
620f211
Remove now-unused InboundUpdateAdd::Legacy
valentinewallace Jan 28, 2026
25ab31d
Remove now-unused param from monitor_updating_paused
valentinewallace Jan 6, 2026
fe90cd8
Delete now-unused ChannelContext::monitor_pending_forwards
valentinewallace Jan 6, 2026
bf32829
Delete now-unused MonitorRestoreUpdates::accepted_htlcs
valentinewallace Jan 6, 2026
eb547f2
Delete now-unused PendingHTLCStatus
valentinewallace Jan 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lightning-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ lightning-types = { path = "../lightning-types", features = ["_test_utils"] }
lightning-invoice = { path = "../lightning-invoice", default-features = false }
lightning-macros = { path = "../lightning-macros" }
lightning = { path = "../lightning", features = ["_test_utils"] }
lightning_0_3 = { package = "lightning", git = "https://github.com/valentinewallace/rust-lightning", branch = "2026-02-dedup-htlc-fwd-data", features = ["_test_utils"] }
lightning_0_2 = { package = "lightning", version = "0.2.0", features = ["_test_utils"] }
lightning_0_1 = { package = "lightning", version = "0.1.7", features = ["_test_utils"] }
lightning_0_0_125 = { package = "lightning", version = "0.0.125", features = ["_test_utils"] }
Expand Down
1 change: 0 additions & 1 deletion lightning-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[cfg_attr(test, macro_use)]
extern crate lightning;

#[cfg(all(test, not(taproot)))]
Expand Down
904 changes: 814 additions & 90 deletions lightning-tests/src/upgrade_downgrade_tests.rs

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions lightning/src/ln/chanmon_update_fail_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3519,8 +3519,9 @@ fn do_test_blocked_chan_preimage_release(completion_mode: BlockedUpdateComplMode
.node
.handle_commitment_signed_batch_test(node_a_id, &as_htlc_fulfill.commitment_signed);
check_added_monitors(&nodes[1], 1);
let (a, raa) = do_main_commitment_signed_dance(&nodes[1], &nodes[0], false);
let (a, raa, holding_cell) = do_main_commitment_signed_dance(&nodes[1], &nodes[0], false);
assert!(a.is_none());
assert!(holding_cell.is_empty());

nodes[1].node.handle_revoke_and_ack(node_a_id, &raa);
check_added_monitors(&nodes[1], 1);
Expand Down Expand Up @@ -3938,7 +3939,12 @@ fn do_test_durable_preimages_on_closed_channel(
let evs = nodes[1].node.get_and_clear_pending_events();
assert_eq!(evs.len(), if close_chans_before_reload { 2 } else { 1 });
for ev in evs {
if let Event::PaymentForwarded { .. } = ev {
if let Event::PaymentForwarded { claim_from_onchain_tx, next_user_channel_id, .. } = ev {
if !claim_from_onchain_tx {
// If the outbound channel is still open, the `next_user_channel_id` should be available.
// This was previously broken.
assert!(next_user_channel_id.is_some())
}
} else {
panic!();
}
Expand Down
Loading