Skip to content

Commit 8d81ad0

Browse files
committed
remove redundant check
1 parent f67f457 commit 8d81ad0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/verifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bool CheckProofOfTimeNWesolowski(integer D, const uint8_t* x_s, const uint8_t* p
4646
int form_size = BQFC_FORM_SIZE;
4747
int segment_len = 8 + B_bytes + form_size;
4848
// Enforce all invariants and bounds before the loop
49-
if (form_size <= 0 || (size_t)form_size > SIZE_MAX) return false;
49+
if (form_size <= 0) return false;
5050
if (depth < 0 || proof_blob_len != 2 * form_size + depth * segment_len)
5151
return false;
5252
if (x_s == nullptr || proof_blob == nullptr)

0 commit comments

Comments
 (0)