Merge pull request #15693 from zsfelfoldi/wait_nopeers

contracts/release: do not print error log if les backend has no peers
This commit is contained in:
Péter Szilágyi 2017-12-19 10:45:02 +02:00 committed by GitHub
commit 7f9d94fe9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ func (r *ReleaseService) checkVersion() {
if err != nil { if err != nil {
if err == bind.ErrNoCode { if err == bind.ErrNoCode {
log.Debug("Release oracle not found", "contract", r.config.Oracle) log.Debug("Release oracle not found", "contract", r.config.Oracle)
} else { } else if err != les.ErrNoPeers {
log.Error("Failed to retrieve current release", "err", err) log.Error("Failed to retrieve current release", "err", err)
} }
return return

View File

@ -151,7 +151,7 @@ func (t *odrTrie) do(key []byte, fn func() error) error {
} }
r := &TrieRequest{Id: t.id, Key: key} r := &TrieRequest{Id: t.id, Key: key}
if err := t.db.backend.Retrieve(t.db.ctx, r); err != nil { if err := t.db.backend.Retrieve(t.db.ctx, r); err != nil {
return fmt.Errorf("can't fetch trie key %x: %v", key, err) return err
} }
} }
} }