swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpoints

This commit is contained in:
Janos Guljas
2018-02-22 14:23:17 +01:00
487 changed files with 178046 additions and 8087 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ func (self *Api) Resolve(uri *URI) (storage.Key, error) {
// if the URI is immutable, check if the address is a hash
isHash := hashMatcher.MatchString(uri.Addr)
if uri.Immutable() {
if uri.Immutable() || uri.DeprecatedImmutable() {
if !isHash {
return nil, fmt.Errorf("immutable address not a content hash: %q", uri.Addr)
}