mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-23 08:11:48 +02:00
sweep: make sweeper aware of unconfirmed parent transactions.
Extend the fee estimator to take into account parent transactions with their weights and fees. Do not try to cpfp parent transactions that have a higher fee rate than the sweep tx fee rate.
This commit is contained in:
@@ -99,6 +99,7 @@ func (c *anchorResolver) Resolve() (ContractResolver, error) {
|
||||
input.CommitmentAnchor,
|
||||
&c.anchorSignDescriptor,
|
||||
c.broadcastHeight,
|
||||
nil,
|
||||
)
|
||||
|
||||
resultChan, err := c.Sweeper.SweepInput(
|
||||
|
@@ -1073,6 +1073,7 @@ func (c *ChannelArbitrator) sweepAnchors(anchors []*lnwallet.AnchorResolution,
|
||||
input.CommitmentAnchor,
|
||||
&anchor.AnchorSignDescriptor,
|
||||
heightHint,
|
||||
nil,
|
||||
)
|
||||
|
||||
// Sweep anchor output with the minimum fee rate. This usually
|
||||
|
Reference in New Issue
Block a user