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
In case of channel force-closure, access to local commitment
transactions and its dependent HTLCs is needed. Instead of using
broadcast_by_local_state which registers outpoint to claim and
outputs to watch which are going to be discarded in this case,
we simply ask OnchainTxHandler to build and sign HTLC transactions
through new API.
if !htlc.0.offered && preimage.is_none(){returnNone;};// If we don't have preimage for HTLC-Success, don't try to generate
883
+
let htlc_secret = if !htlc.0.offered{ preimage }else{None};// If we have a preimage for a HTLC-Timeout, don't use it that's likely a duplicate HTLC hash
0 commit comments