Update dependencies ahead of next release (#8015)

Updates dependencies:
parity-db 0.2.2
paste
prometheus 0.11
cfg-if 1.0
strum 0.20
env_logger 0.8
pin-project
prost
nix
platforms
quickcheck 1.0
This commit is contained in:
Benjamin Kampmann
2021-02-04 19:17:42 +01:00
committed by GitHub
parent e5ef38330d
commit 8e36d87ca8
25 changed files with 670 additions and 617 deletions
+2 -2
View File
@@ -35,14 +35,14 @@ sp-trie = { version = "2.0.0", path = "../../primitives/trie" }
sp-consensus = { version = "0.8.0", path = "../../primitives/consensus/common" }
sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" }
sp-database = { version = "2.0.0", path = "../../primitives/database" }
parity-db = { version = "0.1.2", optional = true }
parity-db = { version = "0.2.2", optional = true }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.8.0", path = "../../utils/prometheus" }
[dev-dependencies]
sp-keyring = { version = "2.0.0", path = "../../primitives/keyring" }
sp-tracing = { version = "2.0.0", path = "../../primitives/tracing" }
substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" }
quickcheck = "0.9"
quickcheck = "1.0.3"
kvdb-rocksdb = "0.11.0"
tempfile = "3"
+14 -18
View File
@@ -1471,50 +1471,46 @@ mod qc {
}
impl Arbitrary for Action {
fn arbitrary<G: quickcheck::Gen>(gen: &mut G) -> Self {
let path = gen.next_u32() as u8;
let mut buf = [0u8; 32];
fn arbitrary(gen: &mut quickcheck::Gen) -> Self {
let path = u8::arbitrary(gen);
let buf = (0..32).map(|_| u8::arbitrary(gen)).collect::<Vec<_>>();
match path {
0..=175 => {
gen.fill_bytes(&mut buf[..]);
Action::Next {
hash: H256::from(&buf),
hash: H256::from_slice(&buf[..]),
changes: {
let mut set = Vec::new();
for _ in 0..gen.next_u32()/(64*256*256*256) {
set.push((vec![gen.next_u32() as u8], Some(vec![gen.next_u32() as u8])));
for _ in 0..<u32>::arbitrary(gen)/(64*256*256*256) {
set.push((vec![u8::arbitrary(gen)], Some(vec![u8::arbitrary(gen)])));
}
set
}
}
},
176..=220 => {
gen.fill_bytes(&mut buf[..]);
Action::Fork {
hash: H256::from(&buf),
depth: ((gen.next_u32() as u8) / 32) as usize,
hash: H256::from_slice(&buf[..]),
depth: ((u8::arbitrary(gen)) / 32) as usize,
changes: {
let mut set = Vec::new();
for _ in 0..gen.next_u32()/(64*256*256*256) {
set.push((vec![gen.next_u32() as u8], Some(vec![gen.next_u32() as u8])));
for _ in 0..<u32>::arbitrary(gen)/(64*256*256*256) {
set.push((vec![u8::arbitrary(gen)], Some(vec![u8::arbitrary(gen)])));
}
set
}
}
},
221..=240 => {
gen.fill_bytes(&mut buf[..]);
Action::ReorgWithImport {
hash: H256::from(&buf),
depth: ((gen.next_u32() as u8) / 32) as usize, // 0-7
hash: H256::from_slice(&buf[..]),
depth: ((u8::arbitrary(gen)) / 32) as usize, // 0-7
}
},
_ => {
gen.fill_bytes(&mut buf[..]);
Action::FinalizationReorg {
fork_depth: ((gen.next_u32() as u8) / 32) as usize, // 0-7
depth: ((gen.next_u32() as u8) / 64) as usize, // 0-3
fork_depth: ((u8::arbitrary(gen)) / 32) as usize, // 0-7
depth: ((u8::arbitrary(gen)) / 64) as usize, // 0-3
}
},
}