Fix test
This commit is contained in:
parent
5709bc99e3
commit
e34d298b8e
@ -213,7 +213,7 @@ func validateSpaceStorageCreatePayload(payload spacestorage.SpaceStorageCreatePa
|
|||||||
func ValidateSpaceHeader(rawHeaderWithId *spacesyncproto.RawSpaceHeaderWithId, identity crypto.PubKey) (err error) {
|
func ValidateSpaceHeader(rawHeaderWithId *spacesyncproto.RawSpaceHeaderWithId, identity crypto.PubKey) (err error) {
|
||||||
sepIdx := strings.Index(rawHeaderWithId.Id, ".")
|
sepIdx := strings.Index(rawHeaderWithId.Id, ".")
|
||||||
if sepIdx == -1 {
|
if sepIdx == -1 {
|
||||||
err = objecttree.ErrIncorrectCid
|
err = spacestorage.ErrIncorrectSpaceHeader
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !cidutil.VerifyCid(rawHeaderWithId.RawHeader, rawHeaderWithId.Id[:sepIdx]) {
|
if !cidutil.VerifyCid(rawHeaderWithId.RawHeader, rawHeaderWithId.Id[:sepIdx]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user