make sure Version is always set in loadNodeConfig()
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
81b0a7b29f
commit
98c861cfe2
|
@ -349,6 +349,10 @@ func (b *StatusBackend) loadNodeConfig() (*params.NodeConfig, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// NodeConfig.Version should be taken from params.Version
|
||||
// which is set at the compile time.
|
||||
// What's cached is usually outdated so we overwrite it here.
|
||||
conf.Version = params.Version
|
||||
return &conf, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package params
|
||||
|
||||
// Version is defined in VERSION file.
|
||||
// We set it in loadNodeConfig() in api/backend.go.
|
||||
var Version string
|
||||
|
||||
// GitCommit is a commit hash.
|
||||
|
|
Loading…
Reference in New Issue