What happens if R is not revealed by one of Lightning Network nodes? (Payment cancelation)Lightning network and lightweight clientsHow do “trustless third-party watchers” work in Lightning Network?How come the lightning network creators believe the fees will be zero?When running a Lightning Network hub, who pays the fees when a transaction has to be broadcast to the blockchain?Who pays the miner fees for the closing transaction of a payment channel?Routing in Bitcoin Lightning NetworkHow to “cash out” of the Lightning Network without closing channels?Can someone please explain how Lightning paths are working and what effect large centralized hubs have?Required conditions to be selected as intermediary node (Payment Service Provider) in Lightning Network?BOLT #3: Shouldn't timeout be included in the script of “Offered HTLC Outputs” for the local node?

Difference between commands `setminus` and `backslash`

Why would oxygen be stored as a super critical fluid?

Is anyone against the rational teachings of Maimonides?

Where does the upgrade to macOS Catalina move root "/" directory files?

How to give a rationality-inducing drug to an entire software company?

Which culture used no personal names?

How can a "proper" function have a vertical slope?

Is there a push, in the United States, to use gender-neutral language and gender pronouns (when they are given)?

Dice? = Is that so?

Why does Sonny say they call Michael "Giogali"?

What power does the UK parliament hold over a Prime Minister whom they refuse to remove from power?

Usefulness of Nash embedding theorem

How does Firefox know my ISP login page?

Is it possible to have 2 ports open on SSH with 2 different authentication schemes?

Are Snap and Flatpack apps safe to install? Are they "official", approved or tested for a particular distro version?

Why does b+=(4,) work and b = b + (4,) doesn't work when b is a list?

I am often given, occasionally stolen, rarely sold, and never borrowed

Does my protagonist need to be the most important character?

Why exactly does maximum power transfer happen at 50 ohms (matched impedance)?

Code Golf Measurer © 2019

'Pound' meaning in this context

What could possibly power an Alcubierre drive?

Adjusting Table in Latex tabularx environment

Does a restocking fee still qualify as a business expense?



What happens if R is not revealed by one of Lightning Network nodes? (Payment cancelation)


Lightning network and lightweight clientsHow do “trustless third-party watchers” work in Lightning Network?How come the lightning network creators believe the fees will be zero?When running a Lightning Network hub, who pays the fees when a transaction has to be broadcast to the blockchain?Who pays the miner fees for the closing transaction of a payment channel?Routing in Bitcoin Lightning NetworkHow to “cash out” of the Lightning Network without closing channels?Can someone please explain how Lightning paths are working and what effect large centralized hubs have?Required conditions to be selected as intermediary node (Payment Service Provider) in Lightning Network?BOLT #3: Shouldn't timeout be included in the script of “Offered HTLC Outputs” for the local node?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise payment because he don't know secret of hashlock.



I know that there is timelock, so most probably node B will need to start closing channel procedure (channel B -> C).



But what is happening with payment? Is it accepted/rejected/hanging? What is happening with A->B and C->D channels? Will they be hanging until situation with B->C is resolved? Or there is some kind of payment cancelation protocol?










share|improve this question
































    1

















    Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise payment because he don't know secret of hashlock.



    I know that there is timelock, so most probably node B will need to start closing channel procedure (channel B -> C).



    But what is happening with payment? Is it accepted/rejected/hanging? What is happening with A->B and C->D channels? Will they be hanging until situation with B->C is resolved? Or there is some kind of payment cancelation protocol?










    share|improve this question




























      1












      1








      1


      1






      Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise payment because he don't know secret of hashlock.



      I know that there is timelock, so most probably node B will need to start closing channel procedure (channel B -> C).



      But what is happening with payment? Is it accepted/rejected/hanging? What is happening with A->B and C->D channels? Will they be hanging until situation with B->C is resolved? Or there is some kind of payment cancelation protocol?










      share|improve this question














      Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise payment because he don't know secret of hashlock.



      I know that there is timelock, so most probably node B will need to start closing channel procedure (channel B -> C).



      But what is happening with payment? Is it accepted/rejected/hanging? What is happening with A->B and C->D channels? Will they be hanging until situation with B->C is resolved? Or there is some kind of payment cancelation protocol?







      lightning-network






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question



      share|improve this question










      asked 8 hours ago









      JaroJaro

      1063 bronze badges




      1063 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          3


















          The situation is less worse than you seem to assume. If node C disappears the channel A,B won't be affected. Also there is no direct need to affect the channel B, C and C, D. So most channels will stay open.



          The payment process is a two stage process and it depends during which stage of the process node C disappears to see what happens and how nodes react.



          First stage: setting up htlcs from A to D. If C disappears before the htlcs have reached C the onion /payment is cancelled. No channel will be closed. Otherwise the resolution of the second stage takes place.



          Second stage: preimage is propagated. Node D might force close the channel to settle the htlc on chain. In that case B could also see the preimage on chain an settle off chain. C has time to come back and claim money from B. If C is away too long C will have lost money sich B will have won. If D has settled before C disappears C will not be incentivesed to disappear as C could not get Reimbursed by B.



          So we see the only channel that might break in such a situation is the C,D channel. But in any cases only C can loose money / funds by disappearing. This C is Incentivised to stay online and be responsive






          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "308"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbitcoin.stackexchange.com%2fquestions%2f90862%2fwhat-happens-if-r-is-not-revealed-by-one-of-lightning-network-nodes-payment-ca%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3


















            The situation is less worse than you seem to assume. If node C disappears the channel A,B won't be affected. Also there is no direct need to affect the channel B, C and C, D. So most channels will stay open.



            The payment process is a two stage process and it depends during which stage of the process node C disappears to see what happens and how nodes react.



            First stage: setting up htlcs from A to D. If C disappears before the htlcs have reached C the onion /payment is cancelled. No channel will be closed. Otherwise the resolution of the second stage takes place.



            Second stage: preimage is propagated. Node D might force close the channel to settle the htlc on chain. In that case B could also see the preimage on chain an settle off chain. C has time to come back and claim money from B. If C is away too long C will have lost money sich B will have won. If D has settled before C disappears C will not be incentivesed to disappear as C could not get Reimbursed by B.



            So we see the only channel that might break in such a situation is the C,D channel. But in any cases only C can loose money / funds by disappearing. This C is Incentivised to stay online and be responsive






            share|improve this answer






























              3


















              The situation is less worse than you seem to assume. If node C disappears the channel A,B won't be affected. Also there is no direct need to affect the channel B, C and C, D. So most channels will stay open.



              The payment process is a two stage process and it depends during which stage of the process node C disappears to see what happens and how nodes react.



              First stage: setting up htlcs from A to D. If C disappears before the htlcs have reached C the onion /payment is cancelled. No channel will be closed. Otherwise the resolution of the second stage takes place.



              Second stage: preimage is propagated. Node D might force close the channel to settle the htlc on chain. In that case B could also see the preimage on chain an settle off chain. C has time to come back and claim money from B. If C is away too long C will have lost money sich B will have won. If D has settled before C disappears C will not be incentivesed to disappear as C could not get Reimbursed by B.



              So we see the only channel that might break in such a situation is the C,D channel. But in any cases only C can loose money / funds by disappearing. This C is Incentivised to stay online and be responsive






              share|improve this answer




























                3














                3










                3









                The situation is less worse than you seem to assume. If node C disappears the channel A,B won't be affected. Also there is no direct need to affect the channel B, C and C, D. So most channels will stay open.



                The payment process is a two stage process and it depends during which stage of the process node C disappears to see what happens and how nodes react.



                First stage: setting up htlcs from A to D. If C disappears before the htlcs have reached C the onion /payment is cancelled. No channel will be closed. Otherwise the resolution of the second stage takes place.



                Second stage: preimage is propagated. Node D might force close the channel to settle the htlc on chain. In that case B could also see the preimage on chain an settle off chain. C has time to come back and claim money from B. If C is away too long C will have lost money sich B will have won. If D has settled before C disappears C will not be incentivesed to disappear as C could not get Reimbursed by B.



                So we see the only channel that might break in such a situation is the C,D channel. But in any cases only C can loose money / funds by disappearing. This C is Incentivised to stay online and be responsive






                share|improve this answer














                The situation is less worse than you seem to assume. If node C disappears the channel A,B won't be affected. Also there is no direct need to affect the channel B, C and C, D. So most channels will stay open.



                The payment process is a two stage process and it depends during which stage of the process node C disappears to see what happens and how nodes react.



                First stage: setting up htlcs from A to D. If C disappears before the htlcs have reached C the onion /payment is cancelled. No channel will be closed. Otherwise the resolution of the second stage takes place.



                Second stage: preimage is propagated. Node D might force close the channel to settle the htlc on chain. In that case B could also see the preimage on chain an settle off chain. C has time to come back and claim money from B. If C is away too long C will have lost money sich B will have won. If D has settled before C disappears C will not be incentivesed to disappear as C could not get Reimbursed by B.



                So we see the only channel that might break in such a situation is the C,D channel. But in any cases only C can loose money / funds by disappearing. This C is Incentivised to stay online and be responsive







                share|improve this answer













                share|improve this answer




                share|improve this answer



                share|improve this answer










                answered 7 hours ago









                Rene PickhardtRene Pickhardt

                5,5582 silver badges19 bronze badges




                5,5582 silver badges19 bronze badges































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Bitcoin Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbitcoin.stackexchange.com%2fquestions%2f90862%2fwhat-happens-if-r-is-not-revealed-by-one-of-lightning-network-nodes-payment-ca%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單