Skip to content

Commit a245a15

Browse files
fixup! f generalize new variant and fix ser
1 parent 62d86f7 commit a245a15

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10742,17 +10742,6 @@ where
1074210742
}
1074310743
}
1074410744

10745-
if !forward_htlcs.is_empty() || pending_outbounds.needs_abandon() {
10746-
// If we have pending HTLCs to forward, assume we either dropped a
10747-
// `PendingHTLCsForwardable` or the user received it but never processed it as they
10748-
// shut down before the timer hit. Either way, set the time_forwardable to a small
10749-
// constant as enough time has likely passed that we should simply handle the forwards
10750-
// now, or at least after the user gets a chance to reconnect to our peers.
10751-
pending_events_read.push_back((events::Event::PendingHTLCsForwardable {
10752-
time_forwardable: Duration::from_secs(2),
10753-
}, None));
10754-
}
10755-
1075610745
let inbound_pmt_key_material = args.node_signer.get_inbound_payment_key_material();
1075710746
let expanded_inbound_key = inbound_payment::ExpandedKey::new(&inbound_pmt_key_material);
1075810747

@@ -10966,6 +10955,17 @@ where
1096610955
.push(HTLCForwardInfo::FailMalformedHTLC { htlc_id, failure_code, sha256_of_onion });
1096710956
}
1096810957

10958+
if !forward_htlcs.is_empty() || pending_outbounds.needs_abandon() {
10959+
// If we have pending HTLCs to forward, assume we either dropped a
10960+
// `PendingHTLCsForwardable` or the user received it but never processed it as they
10961+
// shut down before the timer hit. Either way, set the time_forwardable to a small
10962+
// constant as enough time has likely passed that we should simply handle the forwards
10963+
// now, or at least after the user gets a chance to reconnect to our peers.
10964+
pending_events_read.push_back((events::Event::PendingHTLCsForwardable {
10965+
time_forwardable: Duration::from_secs(2),
10966+
}, None));
10967+
}
10968+
1096910969
let channel_manager = ChannelManager {
1097010970
chain_hash,
1097110971
fee_estimator: bounded_fee_estimator,

0 commit comments

Comments
 (0)