erasure-coding: do not panic on 1 validator (#2022)

* erasure-coding: do not panic on 1 validator

* tabify fuzz tests

* remove num_validators length check

* remove unused import

* move erasure_coding_fuzzer to fuzzer

* change the authors to admit (at) parity.io

* Apply suggestions from code review

Co-authored-by: Sergei Shulepov <sergei@parity.io>

Co-authored-by: Sergei Shulepov <sergei@parity.io>
This commit is contained in:
Andronik Ordian
2020-11-27 22:49:00 +01:00
committed by GitHub
parent 700b40679c
commit f8181fa1f2
7 changed files with 72 additions and 70 deletions
+20
View File
@@ -0,0 +1,20 @@
[package]
name = "erasure_coding_fuzzer"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
polkadot-erasure-coding = { path = ".." }
honggfuzz = "0.5"
primitives = { package = "polkadot-primitives", path = "../../primitives/" }
[[bin]]
name = "reconstruct_fuzzer"
path = "src/reconstruct.rs"
[[bin]]
name = "round_trip"
path = "src/round_trip.rs"
[workspace]