mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
4b558c3af5
When waiting for the peer to send us FundingLocked, we check whether we've received this message periodically. This commit changes the checking interval from 1s to 10ms in itest, which allows us to still stop the CPU spike while responding to the message quickly.
12 lines
230 B
Go
12 lines
230 B
Go
//go:build rpctest
|
|
|
|
package funding
|
|
|
|
import "time"
|
|
|
|
func init() {
|
|
// For itest, we will use a much shorter checking interval here as
|
|
// local communications are very fast.
|
|
checkPeerFundingLockInterval = 10 * time.Millisecond
|
|
}
|