Skip to content

Commit

Permalink
keyconf documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Feb 15, 2022
1 parent e1d66cb commit e21f3bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/services/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ type Config struct {
// as reliable to fetch headers at any moment.
TrustedPeer string

// TODO @renaynay: document
// KeyConf contains configuration details for construction of the keyring.Signer
// that will be used to manage the node's account.
KeyConf KeyConfig
}

Expand All @@ -31,6 +32,7 @@ func DefaultConfig() Config {
return Config{
TrustedHash: "",
TrustedPeer: "",
KeyConf: DefaultKeyConfig(),
}
}

Expand All @@ -55,6 +57,8 @@ func (cfg *Config) trustedHash() (tmbytes.HexBytes, error) {
return hex.DecodeString(cfg.TrustedHash)
}

// KeyConfig contains configuration details for construction of the keyring.Signer
// that will be used to manage the node's account.
type KeyConfig struct {
KeyringAccName string
}
Expand Down

0 comments on commit e21f3bc

Please sign in to comment.