Skip to content

Commit f0484f7

Browse files
committed
fix swap_payment bool usage
1 parent 501479a commit f0484f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3476,13 +3476,13 @@ where
34763476
let path = if rgb_payment_info_hash_path_outbound.exists() {
34773477
let rgb_payment_info = parse_rgb_payment_info(&rgb_payment_info_hash_path_outbound);
34783478
if rgb_payment_info.swap_payment {
3479+
path.clone()
3480+
} else {
34793481
let mut path = path.clone();
34803482
for hop in &mut path.hops {
34813483
hop.rgb_amount = Some(rgb_payment_info.amount);
34823484
}
34833485
path
3484-
} else {
3485-
path.clone()
34863486
}
34873487
} else {
34883488
path.clone()

lightning/src/rgb_utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub(crate) fn color_commitment<SP: Deref>(channel_context: &ChannelContext<SP>,
208208
amount: htlc_amount_rgb,
209209
local_rgb_amount: rgb_info.local_rgb_amount,
210210
remote_rgb_amount: rgb_info.remote_rgb_amount,
211-
swap_payment: false,
211+
swap_payment: true,
212212
inbound,
213213
};
214214
let serialized_info = serde_json::to_string(&rgb_payment_info).expect("valid rgb payment info");

0 commit comments

Comments
 (0)