Coder Social home page Coder Social logo

Comments (9)

vincenzopalazzo avatar vincenzopalazzo commented on August 14, 2024

Sorry to be late here, what is the sequence of commands that you follow to do CPFP?

from lightning.

Lagrang3 avatar Lagrang3 commented on August 14, 2024

It's a force close, by the message in the listpeers command. The outputs are Segwit scripts (P2WSH) that's why the address doesn't show in your wallet.

from lightning.

guybrushino avatar guybrushino commented on August 14, 2024

Sorry to be late here, what is the sequence of commands that you follow to do CPFP?

As in this case here, I simply spent my output at a higher fee with lightning-cli withdraw
https://mempool.space/tx/452fd94859200ecc5da3ab5508cd70daf665e5ada603824f720f9fa762cfc354

But in the case of a force close, whose peer has disappeared (i think forever) and whose fees have been too low for more than 4 months, what can be done?

from lightning.

vincenzopalazzo avatar vincenzopalazzo commented on August 14, 2024

Ah good point @Lagrang3

I ingore the json output, I assume that this is a pre-anchor channel, and I need to think a bit about how it is possible to replace this TX, when I will be back to my desk at the end of the week, but maybe @Lagrang3 has some idea

from lightning.

Lagrang3 avatar Lagrang3 commented on August 14, 2024

This is precisely why we needed the anchors. If you broadcasted the force close tx, your lightning node cannot spend your output before the relative timelock, with respect to the blockheight when the transaction was confirmed, but since it has not been confirmed, the "time" is frozen. The counterparty (your peer) doesn't have the timelock in his output, he is the one who can CPFP.

from lightning.

guybrushino avatar guybrushino commented on August 14, 2024

Ok, I think I understand that nothing can be done, except hoping that the mempool returns to 2 sat/vbyte 🙂
(or paying a miner to mine my commitment tx)

from lightning.

Lagrang3 avatar Lagrang3 commented on August 14, 2024

Yes, either:

  1. you pay out-of-band, or
  2. transations fees return to 2 sat/vbyte, or
  3. your peer recovers his node and bumps the tx to confirm this 0.01 BTC he has available there, or

what if your peer completely lost his node's database and hdwallet?
and your node has not deleted old commitment transactions.
Maybe, there's an older commitment tx with a higher feerate.
You could risk broadcasting that tx, which will effectively RBF the current tx.

In the worst case your peer will wake up and punish you taking all the funds which where anyways mostly on his side.
And if he doesn't it probably means that he lost his data and he wasn't unable anyways to recover the funds.

from lightning.

guybrushino avatar guybrushino commented on August 14, 2024

Interesting!
Is it possible that I find an old commitment transactions in the CoreLn database?
Or every time it is renegotiated, the previous transaction is deleted?

from lightning.

guybrushino avatar guybrushino commented on August 14, 2024

Ok, I understand from this answer by @cdecker (https://bitcoin.stackexchange.com/a/96886) from 2020 that Core Lightning purposely doesn't keep old commitment transactions.

So I can't do much about it.

"Core Lightning doesn't store old versions of the commitment transaction, in order to avoid accidentally cheating."

from lightning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.