Research/Bitcoin Dev Archive / lightning-dev list
Unilateral closing during fee increase.
5 messages, Jan 14 to 16, 2018. Started by Jonathan Underwood.
Jonathan Underwood, Peter Todd, Richard, ZmnSCPxj, Johan Torås Halseth
Hey everybody.
Say that the last time we updated channel state, we assumed 40 satoshi/byte was enough to get confirmed, then I leave the channel for a few weeks, come back to find my partner fell off the face of the internet.
I perform unilateral close with my output on CSV timelock... but it turns out there’s 500 MB of txes at around 100 satoshi/byte and lets say my transaction will never get confirmed at 40 sat/byte.
What course of action can I take?
1. to_local output can't be redeemed until the commitment transaction (which will "never confirm") is confirmed + the CSV timeout. 2. to_remote output probably won't be redeemed as the other person is offline.
The only remedy I can think of is hope that the other person comes back online and CPFPs your to_remote output for you... but at that point it would be better for them to just amicably close with normal outputs... so basically your only hope is wait for other person to come online.
Since CSV will cause script verification to fail, a CPFP transaction will not be propagated. If we can't CPFP, the CSV timer won't start (it starts once the CSV containing output is confirmed).
Seems like a problem.
Anyone have any solutions?
Thanks, Jon
On Sun, Jan 14, 2018 at 10:30:28AM +0900, Jonathan Underwood wrote:
Quoted text (30 lines)
> Hey everybody. > > Say that the last time we updated channel state, we assumed 40 satoshi/byte > was enough to get confirmed, then I leave the channel for a few weeks, come > back to find my partner fell off the face of the internet. > > I perform unilateral close with my output on CSV timelock... but it turns > out there’s 500 MB of txes at around 100 satoshi/byte and lets say my > transaction will never get confirmed at 40 sat/byte. > > What course of action can I take? > > 1. to_local output can't be redeemed until the commitment transaction > (which will "never confirm") is confirmed + the CSV timeout. > 2. to_remote output probably won't be redeemed as the other person is > offline. > > The only remedy I can think of is hope that the other person comes back > online and CPFPs your to_remote output for you... but at that point it > would be better for them to just amicably close with normal outputs... so > basically your only hope is wait for other person to come online. > > Since CSV will cause script verification to fail, a CPFP transaction will > not be propagated. > If we can't CPFP, the CSV timer won't start (it starts once the CSV > containing output is confirmed). > > Seems like a problem. > > Anyone have any solutions?
While not ideal, you can use out-of-band fee payment mechanisms such as https://confirmtx.com and https://pushtx.btc.com to get the transaction mined without an on-blockchain payment. For that matter, you could use a Lightning transaction to pay for that service more cheaply than on-chain payments those existing accelerators currently use.
Complete n00b question here: if one side of the channel have 100% of the funds, can the last message give that user complete controll over the channel (to close it "unilateral" without any interaction from the other side?
And that way change the fee size when that part want's to close the channel?
Or give the other side the complete controll over a channel if the funds on one side is less than what is currently needed to close a channel?
Richard
søn. 14. jan. 2018 kl. 13:32 skrev Peter Todd <pete at petertodd.org>:
Quoted text (50 lines)
> On Sun, Jan 14, 2018 at 10:30:28AM +0900, Jonathan Underwood wrote: > > Hey everybody. > > > > Say that the last time we updated channel state, we assumed 40 > satoshi/byte > > was enough to get confirmed, then I leave the channel for a few weeks, > come > > back to find my partner fell off the face of the internet. > > > > I perform unilateral close with my output on CSV timelock... but it turns > > out there’s 500 MB of txes at around 100 satoshi/byte and lets say my > > transaction will never get confirmed at 40 sat/byte. > > > > What course of action can I take? > > > > 1. to_local output can't be redeemed until the commitment transaction > > (which will "never confirm") is confirmed + the CSV timeout. > > 2. to_remote output probably won't be redeemed as the other person is > > offline. > > > > The only remedy I can think of is hope that the other person comes back > > online and CPFPs your to_remote output for you... but at that point it > > would be better for them to just amicably close with normal outputs... so > > basically your only hope is wait for other person to come online. > > > > Since CSV will cause script verification to fail, a CPFP transaction will > > not be propagated. > > If we can't CPFP, the CSV timer won't start (it starts once the CSV > > containing output is confirmed). > > > > Seems like a problem. > > > > Anyone have any solutions? > > While not ideal, you can use out-of-band fee payment mechanisms such as > https://confirmtx.com and https://pushtx.btc.com to get the transaction > mined > without an on-blockchain payment. For that matter, you could use a > Lightning > transaction to pay for that service more cheaply than on-chain payments > those > existing accelerators currently use. > > -- > https://petertodd.org 'peter'[:-1]@petertodd.org > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev >
Good Morning Richard,
Quoted text (9 lines)
> -------- Original Message -------- > Subject: Re: [Lightning-dev] [Question] Unilateral closing during fee increase. > Local Time: January 14, 2018 8:37 PM > UTC Time: January 14, 2018 12:37 PM > From: richard.hagen at gmail.com > To: Peter Todd <pete at petertodd.org> > lightning-dev at lists.linuxfoundation.org, Jonathan Underwood <junderwood at bitcoinbank.co.jp> > > Complete n00b question here: if one side of the channel have 100% of the funds, can the last message give that user complete controll over the channel (to close it "unilateral" without any interaction from the other side?
The only trustless way to transfer control of the funds from one-sided back to both of them would be an on-chain transaction. So it is equivalent to closing the channel, then reopening it when the other side returns to be connected.
Quoted text (3 lines)
> And that way change the fee size when that part want's to close the channel? > > Or give the other side the complete controll over a channel if the funds on one side is less than what is currently needed to close a channel?
This puts trust into the system. If you are going to trust anyway,then you can probably trust that the other side will gracefully inform you of pending shutdown on their side and cooperatively close.
Regards, ZmnSCPxj
Hi Jonathan, This is definitely a problem! I have a mainnet channel I force closed 2 weeks ago that is still not mined :( With current spec I guess it is not much that can be done other than crossing fingers. For future specs maybe someone could come up with some SIGHASH flag magic to either (1) allow adding an extra input that could go to fees, or (2) add both a new input and output, where the difference goes to fees. I believe this would change the TXID of the commitment transaction, but not sure if that’s a problem? (Watchtowers comes to mind). If keeping the TXID intact is important, one solution would be to always add a small (1 satoshi?) output to every commitment transaction, that anyone can spend. So if the commitment transaction has a fee too low, you could do CPFP on this small output, making it confirm. You could even make a batch sweep of many such outputs, and they would be (un)fairly cheap since they don’t need a signature. Do you think this would work? - Johan
On Sun, Jan 14, 2018 at 2:30, Jonathan Underwood <junderwood at bitcoinbank.co.jp> wrote: Hey everybody. Say that the last time we updated channel state, we assumed 40 satoshi/byte was enough to get confirmed, then I leave the channel for a few weeks, come back to find my partner fell off the face of the internet. I perform unilateral close with my output on CSV timelock... but it turns out there’s 500 MB of txes at around 100 satoshi/byte and lets say my transaction will never get confirmed at 40 sat/byte. What course of action can I take? 1. to_local output can't be redeemed until the commitment transaction (which will "never confirm") is confirmed + the CSV timeout. 2. to_remote output probably won't be redeemed as the other person is offline. The only remedy I can think of is hope that the other person comes back online and CPFPs your to_remote output for you... but at that point it would be better for them to just amicably close with normal outputs... so basically your only hope is wait for other person to come online.
Since CSV will cause script verification to fail, a CPFP transaction will not be propagated. If we can't CPFP, the CSV timer won't start (it starts once the CSV containing output is confirmed). Seems like a problem. Anyone have any solutions? Thanks, Jon