Skip to content

Commit a58b8aa

Browse files
committed
f Account for HTLCHandlingFailureType
1 parent 8995d42 commit a58b8aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,9 @@ where
10431043
LdkEvent::PaymentPathFailed { .. } => {},
10441044
LdkEvent::ProbeSuccessful { .. } => {},
10451045
LdkEvent::ProbeFailed { .. } => {},
1046-
LdkEvent::HTLCHandlingFailed { failed_next_destination, .. } => {
1046+
LdkEvent::HTLCHandlingFailed { failure_type, .. } => {
10471047
if let Some(liquidity_source) = self.liquidity_source.as_ref() {
1048-
liquidity_source.handle_htlc_handling_failed(failed_next_destination);
1048+
liquidity_source.handle_htlc_handling_failed(failure_type);
10491049
}
10501050
},
10511051
LdkEvent::PendingHTLCsForwardable { time_forwardable } => {

src/liquidity.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::runtime::Runtime;
1414
use crate::types::{ChannelManager, KeysManager, LiquidityManager, PeerManager, Wallet};
1515
use crate::{total_anchor_channels_reserve_sats, Config, Error};
1616

17-
use lightning::events::HTLCDestination;
17+
use lightning::events::HTLCHandlingFailureType;
1818
use lightning::ln::channelmanager::{InterceptId, MIN_FINAL_CLTV_EXPIRY_DELTA};
1919
use lightning::ln::msgs::SocketAddress;
2020
use lightning::ln::types::ChannelId;
@@ -1280,9 +1280,9 @@ where
12801280
}
12811281
}
12821282

1283-
pub(crate) fn handle_htlc_handling_failed(&self, failed_next_destination: HTLCDestination) {
1283+
pub(crate) fn handle_htlc_handling_failed(&self, failure_type: HTLCHandlingFailureType) {
12841284
if let Some(lsps2_service_handler) = self.liquidity_manager.lsps2_service_handler() {
1285-
if let Err(e) = lsps2_service_handler.htlc_handling_failed(failed_next_destination) {
1285+
if let Err(e) = lsps2_service_handler.htlc_handling_failed(failure_type) {
12861286
log_error!(
12871287
self.logger,
12881288
"LSPS2 service failed to handle HTLCHandlingFailed event: {:?}",

0 commit comments

Comments
 (0)