Skip to content

Commit

Permalink
Make it inclusive to have coding ratio 10 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Nov 14, 2023
1 parent 0adbe17 commit 998f329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type BlobRequestHeader struct {

func (h *BlobRequestHeader) Validate() error {
for _, quorum := range h.SecurityParams {
if quorum.AdversaryThreshold+10 >= quorum.QuorumThreshold {
if quorum.QuorumThreshold < quorum.AdversaryThreshold+10 {
return errors.New("invalid request: quorum threshold must be >= 10 + adversary threshold")
}
if quorum.QuorumThreshold > 100 {
Expand Down

0 comments on commit 998f329

Please sign in to comment.