mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
lncfg: add IsLocalNetwork helper
It returns true for Signet and Regtest networks.
This commit is contained in:
@@ -52,3 +52,9 @@ func (c *Chain) Validate(minTimeLockDelta uint32, minDelay uint16) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// IsLocalNetwork returns true if the chain is a local network, such as
|
||||
// simnet or regtest.
|
||||
func (c *Chain) IsLocalNetwork() bool {
|
||||
return c.SimNet || c.RegTest
|
||||
}
|
||||
|
Reference in New Issue
Block a user