lncfg+lnd: add new dev config unsafeconnect

This flag is added so we can use it in the itest to mimic racing inbound
and outbound connections.
This commit is contained in:
yyforyongyu
2025-05-31 01:39:09 +08:00
committed by Olaoluwa Osuntokun
parent 7981b3b4de
commit 5dfc5f4b42
3 changed files with 17 additions and 1 deletions

View File

@@ -52,3 +52,9 @@ func (d *DevConfig) GetZombieSweeperInterval() time.Duration {
func (d *DevConfig) GetMaxWaitNumBlocksFundingConf() uint32 {
return DefaultMaxWaitNumBlocksFundingConf
}
// GetUnsafeConnect returns the config value `UnsafeConnect`, which is always
// false for production build.
func (d *DevConfig) GetUnsafeConnect() bool {
return false
}