mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
Merge pull request #1622 from cfromknecht/hide-hodl-config-production
Hide hodl config production
This commit is contained in:
commit
098cd940e3
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
// +build debug
|
||||
|
||||
package hodl
|
||||
|
||||
// Config is a struct enumerating the possible command line flags that are used
|
11
htlcswitch/hodl/config_production.go
Normal file
11
htlcswitch/hodl/config_production.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
// +build !debug
|
||||
|
||||
package hodl
|
||||
|
||||
// Config is an empty struct disabling command line hodl flags in production.
|
||||
type Config struct{}
|
||||
|
||||
// Mask in production always returns MaskNone.
|
||||
func (c *Config) Mask() Mask {
|
||||
return MaskNone
|
||||
}
|
Loading…
Add table
Reference in a new issue