You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic!("Called claim_funds with a preimage for an outgoing payment. There is nothing we can do with this, and something is seriously wrong if you knew this...");
@@ -1016,13 +1027,20 @@ impl ChannelManager {
1016
1027
let(node_id, fulfill_msgs) = {
1017
1028
let chan_id = match channel_state.short_to_id.get(&source_short_channel_id){
1018
1029
Some(chan_id) => chan_id.clone(),
1019
-
None => returnfalse
1030
+
None => {
1031
+
// TODO: There is probably a channel manager somewhere that needs to
1032
+
// learn the preimage as the channel already hit the chain and that's
1033
+
// why its missing.
1034
+
returnfalse
1035
+
}
1020
1036
};
1021
1037
1022
1038
let chan = channel_state.by_id.get_mut(&chan_id).unwrap();
1023
1039
match chan.get_update_fulfill_htlc_and_commit(payment_preimage){
1024
1040
Ok(msg) => (chan.get_their_node_id(), msg),
1025
1041
Err(_e) => {
1042
+
// TODO: There is probably a channel manager somewhere that needs to
1043
+
// learn the preimage as the channel may be about to hit the chain.
1026
1044
//TODO: Do something with e?
1027
1045
returnfalse;
1028
1046
},
@@ -1571,7 +1589,7 @@ impl ChannelMessageHandler for ChannelManager {
0 commit comments