lnd/lntest/wait/timeouts_remote_db.go

40 lines
1.2 KiB
Go
Raw Normal View History

//go:build kvdb_etcd || kvdb_postgres
2021-06-14 16:24:02 +02:00
// +build kvdb_etcd kvdb_postgres
2020-10-26 19:28:04 +01:00
package wait
2020-10-26 19:28:04 +01:00
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.
2022-10-29 00:51:54 +08:00
ChannelCloseTimeout = time.Second * 30
2020-10-26 19:28:04 +01:00
// 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.
2022-10-29 00:51:54 +08:00
AsyncBenchmarkTimeout = time.Minute * 2
// NodeStartTimeout is the timeout value when waiting for a node to
// become fully started.
2022-10-29 00:51:54 +08:00
NodeStartTimeout = time.Minute * 2
// SqliteBusyTimeout is the maximum time that a call to the sqlite db
// will wait for the connection to become available.
SqliteBusyTimeout = time.Second * 10
// PaymentTimeout is the timeout used when sending payments.
PaymentTimeout = time.Second * 60
2020-10-26 19:28:04 +01:00
)