Skip to content

Commit

Permalink
Add trusted cidr support in the config (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Sep 26, 2024
1 parent ccccb5e commit 43503e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ type FullNodeConfig struct {
TrustedPeers map[string]string `yaml:"trusted_peers" json:"trusted_peers"`
SSL SSLConfig `yaml:"ssl" json:"ssl"`
UseChiaLoopPolicy bool `yaml:"use_chia_loop_policy" json:"use_chia_loop_policy"`
// trusted_cidrs allows marking certain nodes as "trusted" in the full node and wallet
// Not in the initial config anywhere, since it's a more advanced option
TrustedCIDRs []string `yaml:"trusted_cidrs,omitempty" json:"trusted_cidrs,omitempty"`
}

// UIConfig settings for the UI
Expand Down Expand Up @@ -390,6 +393,9 @@ type WalletConfig struct {
// PuzzleDecorators
AutoClaim AutoClaim `yaml:"auto_claim" json:"auto_claim"`
AutoSignTxs *bool `yaml:"auto_sign_txs,omitempty" json:"auto_sign_txs,omitempty"`
// trusted_cidrs allows marking certain nodes as "trusted" in the full node and wallet
// Not in the initial config anywhere, since it's a more advanced option
TrustedCIDRs []string `yaml:"trusted_cidrs,omitempty" json:"trusted_cidrs,omitempty"`
}

// AutoClaim settings for auto claim in wallet
Expand Down

0 comments on commit 43503e6

Please sign in to comment.