diff --git a/.github/patches/postage_api.patch b/.github/patches/postage_api.patch index 6d85af4ae66..fac356e9721 100644 --- a/.github/patches/postage_api.patch +++ b/.github/patches/postage_api.patch @@ -1,4 +1,4 @@ 80c80 -< Depth uint8 `map:"depth" validate:"required,min=24"` +< Depth uint8 `map:"depth" validate:"required,min=17"` --- > Depth uint8 `map:"depth" validate:"required"` diff --git a/pkg/api/postage.go b/pkg/api/postage.go index c9c97b98bf3..c66857ee02d 100644 --- a/pkg/api/postage.go +++ b/pkg/api/postage.go @@ -77,7 +77,7 @@ func (s *Service) postageCreateHandler(w http.ResponseWriter, r *http.Request) { paths := struct { Amount *big.Int `map:"amount" validate:"required"` - Depth uint8 `map:"depth" validate:"required,min=24"` + Depth uint8 `map:"depth" validate:"required,min=17"` }{} if response := s.mapStructure(mux.Vars(r), &paths); response != nil { response("invalid path params", logger, w) diff --git a/pkg/api/postage_test.go b/pkg/api/postage_test.go index 5f35c73fe45..61511b3fdd4 100644 --- a/pkg/api/postage_test.go +++ b/pkg/api/postage_test.go @@ -143,7 +143,7 @@ func TestPostageCreateStamp(t *testing.T) { Reasons: []jsonhttp.Reason{ { Field: "depth", - Error: "want min:24", + Error: "want min:17", }, }, }),