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 -1
View File
@@ -6,7 +6,7 @@ edition = "2018"
[dependencies]
primitives = { package = "polkadot-primitives", path = "../primitives" }
novelpoly = { package = "reed-solomon-novelpoly", version = "=0.0.1" }
novelpoly = { package = "reed-solomon-novelpoly", version = "=0.0.3" }
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["std", "derive"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
trie = { package = "sp-trie", git = "https://github.com/paritytech/substrate", branch = "master" }
+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,