diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-12-19 16:45:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 16:45:02 +0800 |
commit | 7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e (patch) | |
tree | e8443de656aa2c59c55216461b1e741910001d9a | |
parent | fe070ab5c32702033489f1b9d1655ea1b894c29e (diff) | |
parent | 48648bc2f8396984a775ead38ead77155c291f67 (diff) | |
download | dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.tar dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.tar.gz dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.tar.bz2 dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.tar.lz dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.tar.xz dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.tar.zst dexon-7f9d94fe9aacd4122f12f1fa75223ac9f8c9380e.zip |
Merge pull request #15693 from zsfelfoldi/wait_nopeers
contracts/release: do not print error log if les backend has no peers
-rw-r--r-- | contracts/release/release.go | 2 | ||||
-rw-r--r-- | light/trie.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contracts/release/release.go b/contracts/release/release.go index 28a35381d..4442ce3e0 100644 --- a/contracts/release/release.go +++ b/contracts/release/release.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 diff --git a/light/trie.go b/light/trie.go index 7502b6e5d..7a9c86b98 100644 --- a/light/trie.go +++ b/light/trie.go @@ -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 } } } |