Skip to content

Commit b5cbc4e

Browse files
committed
Split Event, move MessageSendEvent push() inside channel_state lock
1 parent 71d666e commit b5cbc4e

File tree

6 files changed

+316
-400
lines changed

6 files changed

+316
-400
lines changed

fuzz/fuzz_targets/full_stack_target.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ pub fn do_test(data: &[u8], logger: &Arc<Logger>) {
413413
_ => return,
414414
}
415415
loss_detector.handler.process_events();
416-
for event in loss_detector.handler.get_and_clear_pending_events() {
416+
for event in loss_detector.manager.get_and_clear_pending_events() {
417417
match event {
418418
Event::FundingGenerationReady { temporary_channel_id, channel_value_satoshis, output_script, .. } => {
419419
pending_funding_generation.push((temporary_channel_id, channel_value_satoshis, output_script));
@@ -430,7 +430,6 @@ pub fn do_test(data: &[u8], logger: &Arc<Logger>) {
430430
Event::PendingHTLCsForwardable {..} => {
431431
should_forward = true;
432432
},
433-
_ => panic!("Unknown event"),
434433
}
435434
}
436435
}

0 commit comments

Comments
 (0)