mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
01e64afd56
In this commit, the sweep package is extended from just tx generation to an active sweeper that collects sweep inputs and autonomously proceeds to publish the sweep tx after the batch window time interval has passed without new inputs being added.
15 lines
312 B
Go
15 lines
312 B
Go
// +build !rpctest
|
|
|
|
package sweep
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
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
|
|
)
|