Skip to content

Commit 30e69be

Browse files
committed
f Account for HTLCHandlingFailureType
1 parent 1d76c69 commit 30e69be

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
@@ -1040,9 +1040,9 @@ where
10401040
LdkEvent::PaymentPathFailed { .. } => {},
10411041
LdkEvent::ProbeSuccessful { .. } => {},
10421042
LdkEvent::ProbeFailed { .. } => {},
1043-
LdkEvent::HTLCHandlingFailed { failed_next_destination, .. } => {
1043+
LdkEvent::HTLCHandlingFailed { failure_type, .. } => {
10441044
if let Some(liquidity_source) = self.liquidity_source.as_ref() {
1045-
liquidity_source.handle_htlc_handling_failed(failed_next_destination);
1045+
liquidity_source.handle_htlc_handling_failed(failure_type);
10461046
}
10471047
},
10481048
LdkEvent::PendingHTLCsForwardable { time_forwardable } => {

src/liquidity.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::logger::{log_debug, log_error, log_info, LdkLogger, Logger};
1313
use crate::types::{ChannelManager, KeysManager, LiquidityManager, PeerManager, Wallet};
1414
use crate::{total_anchor_channels_reserve_sats, Config, Error};
1515

16-
use lightning::events::HTLCDestination;
16+
use lightning::events::HTLCHandlingFailureType;
1717
use lightning::ln::channelmanager::{InterceptId, MIN_FINAL_CLTV_EXPIRY_DELTA};
1818
use lightning::ln::msgs::SocketAddress;
1919
use lightning::ln::types::ChannelId;
@@ -1255,9 +1255,9 @@ where
12551255
}
12561256
}
12571257

1258-
pub(crate) fn handle_htlc_handling_failed(&self, failed_next_destination: HTLCDestination) {
1258+
pub(crate) fn handle_htlc_handling_failed(&self, failure_type: HTLCHandlingFailureType) {
12591259
if let Some(lsps2_service_handler) = self.liquidity_manager.lsps2_service_handler() {
1260-
if let Err(e) = lsps2_service_handler.htlc_handling_failed(failed_next_destination) {
1260+
if let Err(e) = lsps2_service_handler.htlc_handling_failed(failure_type) {
12611261
log_error!(
12621262
self.logger,
12631263
"LSPS2 service failed to handle HTLCHandlingFailed event: {:?}",

0 commit comments

Comments
 (0)