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;
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
add a comment
|
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
add a comment
|
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
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
lightning-network
asked 8 hours ago
JaroJaro
1063 bronze badges
1063 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment
|
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
add a comment
|
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
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
answered 7 hours ago
Rene PickhardtRene Pickhardt
5,5582 silver badges19 bronze badges
5,5582 silver badges19 bronze badges
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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