mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
0b4e03f5fc
With go 1.17 a change to the build flags was implemented: https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md The formatter now automatically adds the forward-compatible build tag format and the linter checks for them, so we need to include them in our code.
33 lines
970 B
Go
33 lines
970 B
Go
//go:build kvdb_etcd || kvdb_postgres
|
|
// +build kvdb_etcd kvdb_postgres
|
|
|
|
package lntest
|
|
|
|
import "time"
|
|
|
|
const (
|
|
// MinerMempoolTimeout is the max time we will wait for a transaction
|
|
// to propagate to the mining node's mempool.
|
|
MinerMempoolTimeout = time.Minute
|
|
|
|
// ChannelOpenTimeout is the max time we will wait before a channel to
|
|
// be considered opened.
|
|
ChannelOpenTimeout = time.Second * 30
|
|
|
|
// ChannelCloseTimeout is the max time we will wait before a channel is
|
|
// considered closed.
|
|
ChannelCloseTimeout = time.Second * 120
|
|
|
|
// DefaultTimeout is a timeout that will be used for various wait
|
|
// scenarios where no custom timeout value is defined.
|
|
DefaultTimeout = time.Second * 30
|
|
|
|
// AsyncBenchmarkTimeout is the timeout used when running the async
|
|
// payments benchmark.
|
|
AsyncBenchmarkTimeout = 3 * time.Minute
|
|
|
|
// NodeStartTimeout is the timeout value when waiting for a node to
|
|
// become fully started.
|
|
NodeStartTimeout = time.Second * 60
|
|
)
|