bump reed-solomon-novelpoly to v0.0.3 (#2650)

This commit is contained in:
Bernhard Schuster
2021-03-19 18:05:06 +01:00
committed by GitHub
parent ea6294fa79
commit df3fef3fd9
3 changed files with 36 additions and 3 deletions
+1
View File
@@ -216,6 +216,7 @@ fn reconstruct<'a, I: 'a, T: Decode>(n_validators: usize, chunks: I) -> Result<T
novelpoly::Error::WantedShardCountTooHigh(_) => return Err(Error::TooManyValidators),
novelpoly::Error::WantedShardCountTooLow(_) => return Err(Error::NotEnoughValidators),
novelpoly::Error::PayloadSizeIsZero { .. } => return Err(Error::BadPayload),
novelpoly::Error::InconsistentShardLengths { .. } => return Err(Error::NonUniformChunks),
_ => return Err(Error::UnknownReconstruction),
}
Ok(payload_bytes) => payload_bytes,