chore: add hint to remove after migration to hw

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2024-09-30 10:49:27 +02:00
parent 3c879b1610
commit de73ca67a3
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -26,6 +26,7 @@ issuer-host = "{{ .PlmntConfig.IssuerHost }}"
certs-path = "{{ .PlmntConfig.CertsPath }}" certs-path = "{{ .PlmntConfig.CertsPath }}"
` `
// ValAddr to be reomved see: https://github.com/planetmint/planetmint-go/issues/454
const ValAddr = "VALIDATOR_ADDRESS" const ValAddr = "VALIDATOR_ADDRESS"
// Config defines Planetmint's top level configuration // Config defines Planetmint's top level configuration
@ -81,6 +82,7 @@ func (config *Config) SetPlanetmintConfig(planetmintconfig interface{}) {
} }
func (config *Config) GetValidatorAddress() string { func (config *Config) GetValidatorAddress() string {
// TODO: to be reomved see: https://github.com/planetmint/planetmint-go/issues/454
if os.Getenv(ValAddr) != "" { if os.Getenv(ValAddr) != "" {
return os.Getenv(ValAddr) return os.Getenv(ValAddr)
} }