2018-10-23 12:05:48 +02:00
|
|
|
package sweep
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
2023-07-26 11:04:04 +02:00
|
|
|
|
|
|
|
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
|
2018-10-23 12:05:48 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// DefaultBatchWindowDuration specifies duration of the sweep batch
|
|
|
|
// window. The sweep is held back during the batch window to allow more
|
|
|
|
// inputs to be added and thereby lower the fee per input.
|
|
|
|
DefaultBatchWindowDuration = 30 * time.Second
|
2023-07-26 11:04:04 +02:00
|
|
|
|
|
|
|
// DefaultMaxFeeRate is the default maximum fee rate allowed within the
|
|
|
|
// UtxoSweeper. The current value is equivalent to a fee rate of 1,000
|
|
|
|
// sat/vbyte.
|
|
|
|
DefaultMaxFeeRate chainfee.SatPerVByte = 1e3
|
2018-10-23 12:05:48 +02:00
|
|
|
)
|