Skip to content

Commit

Permalink
Revert unintentional changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley committed Nov 19, 2024
1 parent 6325f0c commit 5f853e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type SecurityParam struct {
AdversaryThreshold uint8
// ConfirmationThreshold is the amount of stake that must sign a message for it to be considered valid as a percentage of the total stake in the quorum
ConfirmationThreshold uint8
// Rate Limit. This is a temporary measure until the node can derive rates on its own using rollup auth. This is used
// Rate Limit. This is a temporary measure until the node can derive rates on its own using rollup authentication. This is used
// for restricting the rate at which retrievers are able to download data from the DA node to a multiple of the rate at which the
// data was posted to the DA node.
QuorumRate common.RateParam
Expand Down
2 changes: 1 addition & 1 deletion disperser/apiserver/disperse_blob_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (s *DispersalServerV2) validateDispersalRequest(req *pb.DisperseBlobRequest
return api.NewErrorInvalidArg(fmt.Sprintf("invalid blob header: %s", err.Error()))
}
if err = s.authenticator.AuthenticateBlobRequest(blobHeader); err != nil {
return api.NewErrorInvalidArg(fmt.Sprintf("auth failed: %s", err.Error()))
return api.NewErrorInvalidArg(fmt.Sprintf("authentication failed: %s", err.Error()))
}

// TODO(ian-shim): validate commitment, length is power of 2 and less than maxNumSymbolsPerBlob, payment metadata
Expand Down
2 changes: 1 addition & 1 deletion disperser/apiserver/server_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestV2DisperseBlobRequestValidation(t *testing.T) {
Data: data,
BlobHeader: invalidReqProto,
})
assert.ErrorContains(t, err, "auth failed")
assert.ErrorContains(t, err, "authentication failed")
}

func TestV2GetBlobStatus(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion disperser/dataapi/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ const docTemplate = `{
"type": "integer"
},
"quorumRate": {
"description": "Rate Limit. This is a temporary measure until the node can derive rates on its own using rollup auth. This is used\nfor restricting the rate at which retrievers are able to download data from the DA node to a multiple of the rate at which the\ndata was posted to the DA node.",
"description": "Rate Limit. This is a temporary measure until the node can derive rates on its own using rollup authentication. This is used\nfor restricting the rate at which retrievers are able to download data from the DA node to a multiple of the rate at which the\ndata was posted to the DA node.",
"type": "integer"
}
}
Expand Down

0 comments on commit 5f853e0

Please sign in to comment.