remove http request
This commit is contained in:
@@ -2,7 +2,6 @@ package types
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"regexp"
|
||||
|
||||
@@ -50,12 +49,6 @@ func (msg MsgStoreCode) ValidateBasic() sdk.Error {
|
||||
if !u.IsAbs() {
|
||||
return sdk.ErrInternal("source should be an absolute url")
|
||||
}
|
||||
|
||||
// check if the source is reachable
|
||||
resp, err := http.Get(msg.Source)
|
||||
if err != nil || resp.StatusCode != 200 {
|
||||
return sdk.ErrInternal("source url is not reachable")
|
||||
}
|
||||
}
|
||||
|
||||
if msg.Builder != "" {
|
||||
|
||||
Reference in New Issue
Block a user