contracts/release: do not print error log if les backend has no peers

release/1.8
Zsolt Felfoldi 7 years ago
parent c6069a627c
commit 48648bc2f8
  1. 2
      contracts/release/release.go
  2. 2
      light/trie.go

@ -137,7 +137,7 @@ func (r *ReleaseService) checkVersion() {
if err != nil {
if err == bind.ErrNoCode {
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)
}
return

@ -151,7 +151,7 @@ func (t *odrTrie) do(key []byte, fn func() error) error {
}
r := &TrieRequest{Id: t.id, Key: key}
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
}
}
}

Loading…
Cancel
Save