ptarmigan
ptarmigan copied to clipboard
HTLC close at timeout
update_fail_htlc
を、update_add_htlc
の転送ができない場合だけ使っているが、timeoutなどに使っていない。
-
https://github.com/lightningnetwork/lightning-rfc/blob/master/02-peer-protocol.md#removing-an-htlc-update_fulfill_htlc-update_fail_htlc-and-update_fail_malformed_htlc
-
update_fulfill_htlc
を戻す先がない場合は route-failed とは異なると思われるが、どう処理すべきか。
ptarm-->lnd-->........-->yall's という送金を行っているが、lndから送金するチャネルにamountが無い。 その場合、lndはfailを即座に返さずに待ち状態になった。 想像するに、相手からの着金があればそのamountで送金できるため、ギリギリまで待っているのか。
amountがなければ即座にfailと想定していたが、BOLTとしてはどうなのだろうか?
↑ pending_htlc
という項目として残っていたので、検索した。
https://www.reddit.com/r/lightningnetwork/comments/9hqctx/what_does_pending_htlcs_mean/
しかし、regtestで実行したところ、すぐにtemporary_channel_failureでupdate_fail_htlc
が返ってきた。
何か条件があるのだろうか。