Re: [Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread Subhra Mazumdar
Hi ZmnSCPxj, Thank you for the explanation. So I went through BOLT 04 specification and quoting a few error possibilities: An *intermediate hop* MUST NOT, but the *final node*: - if the payment_secret doesn't match the expected value for that payment_hash, or the payment_secret is req

Re: [Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread ZmnSCPxj via Lightning-dev
Good morning Subhra, > Another question related to the paper https://arxiv.org/abs/2003.3. Over > here, it is stated in page 13, "Surge of unresolved HTLCs while probing: > Recalling steps 5-7 in Figure 4, each probe sets up a chain of irredeemable > HTLCs (since a matching preimage would h

Re: [Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread ZmnSCPxj via Lightning-dev
Good morning Subhra, > Thanks ZmnSCPxj. Just a clarification on the idea proposed so that means here > B needs to delay the HTLC acceptance?  Pardon my knowledge on c-lightning, > but what exactly happens upon htlc_acceptance? Release of preimage or just an > acknowledgment by B reaching to the

Re: [Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread Subhra Mazumdar
Another question related to the paper https://arxiv.org/abs/2003.3. Over here, it is stated in page 13, "Surge of unresolved HTLCs while probing: Recalling steps 5-7 in Figure 4, each probe sets up a chain of irredeemable HTLCs (since a matching preimage would have to be brute-forced). Eventual

Re: [Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread Subhra Mazumdar
Thanks ZmnSCPxj. Just a clarification on the idea proposed so that means here B needs to delay the HTLC acceptance? Pardon my knowledge on c-lightning, but what exactly happens upon htlc_acceptance? Release of preimage or just an acknowledgment by B reaching to the point of irrevocably committed?

Re: [Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread ZmnSCPxj via Lightning-dev
Good morning Subhra, > Hi, >     I was just playing around with LND and established a channel between 2 > parties A and B. When sending a payment to B via HTLC, B adds an invoice and > over here I used a different payment hash for A for sendpayment with a delta > of 144 blocks. The error I got

[Lightning-dev] Difference between ignoring htlc request due to wrong payment hash vs refusing to release preimage in LND

2020-03-24 Thread Subhra Mazumdar
Hi, I was just playing around with LND and established a channel between 2 parties A and B. When sending a payment to B via HTLC, B adds an invoice and over here I used a different payment hash for A for sendpayment with a delta of 144 blocks. The error I got on initiating send payment is "inco