Skip to content

Commit

Permalink
Merge pull request lightningdevkit#3126 from TheBlueMatt/2024-06-prei…
Browse files Browse the repository at this point in the history
…mage-removal-blocked-by-claim-event

(Very) marginally expand `test_monitor_update_fail_claim`
  • Loading branch information
G8XSU authored Jun 18, 2024
2 parents c39ff87 + 68af6d0 commit 87fc324
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning/src/ln/chanmon_update_fail_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,10 @@ fn test_monitor_update_fail_claim() {
let (payment_preimage_1, payment_hash_1, ..) = route_payment(&nodes[0], &[&nodes[1]], 1_000_000);

chanmon_cfgs[1].persister.set_update_ret(ChannelMonitorUpdateStatus::InProgress);
// As long as the preimage isn't on-chain, we shouldn't expose the `PaymentClaimed` event to
// users nor send the preimage to peers in the new commitment update.
nodes[1].node.claim_funds(payment_preimage_1);
assert!(nodes[1].node.get_and_clear_pending_events().is_empty());
assert!(nodes[1].node.get_and_clear_pending_msg_events().is_empty());
check_added_monitors!(nodes[1], 1);

Expand Down

0 comments on commit 87fc324

Please sign in to comment.