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

This commit is contained in:
Janos Guljas
2018-02-09 12:23:30 +01:00
487 changed files with 178047 additions and 8088 deletions

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)
}