Skip to content

Commit

Permalink
Fix record encoding for some sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Sep 7, 2024
1 parent f73c757 commit 820cedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/subspace-farmer-components/src/plotting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ fn record_encoding<PosTable>(
.drain(..)
.zip(encoded_chunks_used.iter_mut())
.filter_map(|(maybe_encoded_chunk, mut encoded_chunk_used)| {
// Last byte's bits all set to 1 represents missing proof, see above
if maybe_encoded_chunk[31] == u8::MAX {
// All bits set means no proof, see above
if maybe_encoded_chunk == [u8::MAX; Scalar::FULL_BYTES] {
None
} else {
*encoded_chunk_used = true;
Expand Down

0 comments on commit 820cedf

Please sign in to comment.