Comments (10)
1-Level-HTLCs resulting from STATIC_REMOTE_KEY channels cannot be bumped because their signature is static and negotiated during the building up of the htlc. For anchor channels thats not the case, HTLCs have actually zero-fees, and are only provided with sufficient feerate when they are swept.
from lnd.
Yes theoretically, but the peer has not incentives to do so if the channel is already closed. But yeah it's possible and that's why anchors-zero-fee-htlc-tx
were introduced I think.
Closing this issue, because thats the general downside of STATIC_REMOTE_KEY channels. No way to bump the fee of the commitment transaction nor the htlc sweeps.
from lnd.
Hi @ppppso, thanks for the report.
It could be that the second stage htlc output values are too low to be swept, e.g. their value is less than what the sweep fee would be, so lnd isn't sweeping until the mempool fees decrease.
If it doesn't majorly impact your operations, could you restart your node and grep for the outpoint of the channel thats closing and see what lnd reports for it?
from lnd.
Thanks for your reply.
It could be that the second stage htlc output values are too low to be swept, e.g. their value is less than what the sweep fee would be, so lnd isn't sweeping until the mempool fees decrease.
The unconfirmed tx is the one that spends directly from the force closing tx. My understanding is that this is the first stage and the sweeper can only sweep the second stage, correct?
If it doesn't majorly impact your operations, could you restart your node and grep for the outpoint of the channel thats closing and see what lnd reports for it?
I'm unable to restart the node at the moment. It's a business critical node and due to its size it takes a long time to start. This is the only occurrence I see right now:
[INF] NTFN: Found input xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:x, spent in yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
from lnd.
The unconfirmed tx is the one that spends directly from the force closing tx. My understanding is that this is the first stage and the sweeper can only sweep the second stage, correct?
Yes that's also my understanding. Once the second stage tx is confirmed and enough blocks are mined for the to_self_delay to be expired the htlc output should be swept by the sweeper(if its economical).
Would it be possible to send the related channel output of lncli pendingchannels
to hieblmi (a)(t) lightning.engineering
so that we can further investigate?
from lnd.
I'll see if I can do that.
In any case, can you confirm that a pending HTLC in stage one cannot be bumped? The commitment type is STATIC_REMOTE_KEY
. I saw in channel.go
a comment saying that if it's an anchor commitment then the tx can be resigned (and presumably bumped?), but it's not clear to me what happens if it's not.
Thank you.
from lnd.
Yes I can confirm in that case. Since the second stage htlc tx is tied to spending only the commitment tx(no other inputs can be attached) and the channel doesn't have an anchor this closure can't be fee bumped and has to confirm once the mempool calms. Another way would be to use a fee accelerator to get it confirmed quicker.
Theoretically I think the peers could however sign a new htlc tx with updated fee rate, but afaik that's not implemented yet. But in general new channels should be opened with commitment type 'anchors'.
from lnd.
Is it correct that the fee could theoretically be updated if the htlc is re-signed?
from lnd.
Thanks for the replies.
What about a CPFP tx? Could it be done?
from lnd.
no that's not possible because the First-Level HTLC sends to a P2WSH which is bound to a relative timelock.
from lnd.
Related Issues (20)
- [bug]: lncli openchannel breaking change - fee preference HOT 2
- NewAddress returns duplicate addresses HOT 4
- [feature]: unify address creation behavior between `BtcWalletKeyRing.DeriveNextKey` and `BtcWalletKeyRing.DeriveKey`
- [bug]: I'm completely unable to be synced with the Lightning network. HOT 2
- [bug]: Cannot send coins with 1 sat/vB HOT 6
- [bug]: Creating a new channel
- [bug]: Regression: Missing newline in "Shutdown complete" log message HOT 11
- [bug]: sweep: data race on TxPublisher.currentHeight HOT 2
- [bug]: `ChannelRouter` cannot be shutdown while the `syncGraphWithChain` function is running. HOT 4
- [bug]: Inbound fees are not in the gossip message when using `subscribeChannelGraph` HOT 2
- [bug]: Ping time is not accurate HOT 1
- [feature]: lncli command for walletrpc.EstimateFee HOT 4
- [bug]: Unable to pay AMP invoice with `amp` flag set to true
- Add new RPCs to control the fee bumping process
- [bug]: sweep: BumpFee can cause transaction conflicts HOT 1
- [bug]: contractcourt: max budget used immediately for anchor sweeps HOT 3
- [bug]: sweep: LinearFeeFunction off by one HOT 6
- [feature]: sweep: eliminate change address reuse HOT 2
- [bug]: sweep: AddWalletInputs modifies BudgetInputSet when error occurs
- [feature]: sweep: implement alternative fee functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lnd.