mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-18 03:21:45 +02:00
sweep: don't give up an input based on number of attempts
This commit removes the logic where we remove an input when it's been published more than 10 times. This is needed as in our future fee bumper, we might start with a low fee and rebroadcast the same input for hundred of blocks.
This commit is contained in:
@@ -145,17 +145,6 @@ func (c *anchorResolver) Resolve() (ContractResolver, error) {
|
||||
c.log.Warnf("our anchor spent by someone else")
|
||||
outcome = channeldb.ResolverOutcomeUnclaimed
|
||||
|
||||
// The sweeper gave up on sweeping the anchor. This happens
|
||||
// after the maximum number of sweep attempts has been reached.
|
||||
// See sweep.DefaultMaxSweepAttempts. Sweep attempts are
|
||||
// interspaced with random delays picked from a range that
|
||||
// increases exponentially.
|
||||
//
|
||||
// We consider the anchor as being lost.
|
||||
case sweep.ErrTooManyAttempts:
|
||||
c.log.Warnf("anchor sweep abandoned")
|
||||
outcome = channeldb.ResolverOutcomeUnclaimed
|
||||
|
||||
// An unexpected error occurred.
|
||||
default:
|
||||
c.log.Errorf("unable to sweep anchor: %v", sweepRes.Err)
|
||||
|
Reference in New Issue
Block a user