Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
fix: suppress error message for keyless DKG start (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejfitzgerald authored Feb 11, 2021
1 parent e24aa75 commit 9baaa5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions beacon/entropy_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,12 @@ func (entropyGenerator *EntropyGenerator) SetNextAeonDetails(aeon *aeonDetails)
} else if numNextAeons > 0 {
previousAeon = entropyGenerator.nextAeons[numNextAeons-1]
}

if previousAeon != nil && previousAeon.End > aeon.End {
entropyGenerator.Logger.Error(fmt.Sprintf("SetNextAeonsDetails: received aeon end %v less than aeon end from last element in queue %v",
aeon.End, previousAeon.End))
if !aeon.IsKeyless() {
entropyGenerator.Logger.Error(fmt.Sprintf("SetNextAeonsDetails: received aeon end %v less than aeon end from last element in queue %v",
aeon.End, previousAeon.End))
}
return
}

Expand Down
2 changes: 1 addition & 1 deletion rpc/jsonrpc/client/http_json_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func TestHTTPClientMakeHTTPDialer(t *testing.T) {
remote := []string{"https://foo-bar.com:80", "http://foo-bar.net:80", "https://user:pass@foo-bar.net:80"}
remote := []string{"https://google.com:80"}

for _, f := range remote {
u, err := newParsedURL(f)
Expand Down

0 comments on commit 9baaa5e

Please sign in to comment.