Compare commits

...

1 Commits

Author SHA1 Message Date
Jim McDonald
4d5660ccbb Fix crash in attester/duties and inclusion.
A recent change for a return value going from an array to a map caused a
bad indexing in to the returned data.  This ensures that the value is
read directly from the map rather than using a hard-coded offset.
2021-02-13 22:25:26 +00:00
4 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
1.8.1
- fix issue where 'attester duties' and 'attester inclusion' could crash
1.8.0
- add "chain time"
- add "validator keycheck"

View File

@@ -66,7 +66,10 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {
if len(validators) == 0 {
return nil, errors.New("validator is not known")
}
validator := validators[0]
var validator *api.Validator
for _, v := range validators {
validator = v
}
results := &dataOut{
debug: data.debug,

View File

@@ -66,7 +66,10 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {
if len(validators) == 0 {
return nil, errors.New("validator is not known")
}
validator := validators[0]
var validator *api.Validator
for _, v := range validators {
validator = v
}
results := &dataOut{
debug: data.debug,

View File

@@ -24,7 +24,7 @@ import (
// ReleaseVersion is the release version of the codebase.
// Usually overrideen by tag names when building binaries.
var ReleaseVersion = "local build (latest release 1.8.0)"
var ReleaseVersion = "local build (latest release 1.8.1)"
// versionCmd represents the version command
var versionCmd = &cobra.Command{