update Cargo.toml

This commit is contained in:
Weiliang Li 2019-11-07 11:06:44 +09:00 committed by Andreas Fackler
parent 2f12266526
commit 7c213fed71
3 changed files with 19 additions and 19 deletions

View File

@ -21,30 +21,30 @@ edition = "2018"
travis-ci = { repository = "poanetwork/hbbft" } travis-ci = { repository = "poanetwork/hbbft" }
[dependencies] [dependencies]
bincode = "1.1.2" bincode = "1.2.0"
byteorder = "1.3.1" byteorder = "1.3.2"
derivative = "1.0.2" derivative = "1.0.3"
env_logger = "0.6.1" env_logger = "0.7.1"
failure = "0.1.5" failure = "0.1.6"
hex_fmt = "0.3" hex_fmt = "0.3"
init_with = "1.1.0" init_with = "1.1.0"
log = "0.4.6" log = "0.4.8"
rand = "0.6.5" rand = "0.6.5"
rand_derive = "0.5.0" rand_derive = "0.5.0"
reed-solomon-erasure = "3.1.1" reed-solomon-erasure = "3.1.1"
serde = { version = "1.0.89", features = ["derive", "rc"] } serde = { version = "1.0.102", features = ["derive", "rc"] }
threshold_crypto = "0.3.1" threshold_crypto = { git = "https://github.com/kigawas/threshold_crypto", branch = "cleanup-and-codec"}
tiny-keccak = "1.4" tiny-keccak = "1.5.0"
[dev-dependencies] [dev-dependencies]
colored = "1.7" colored = "1.8.0"
crossbeam = "0.7.1" crossbeam = "0.7.3"
crossbeam-channel = "0.3" crossbeam-channel = "0.4.0"
docopt = "1.0" docopt = "1.1.0"
hbbft_testing = { path = "hbbft_testing", features = ["use-insecure-test-only-mock-crypto"] } hbbft_testing = { path = "hbbft_testing", features = ["use-insecure-test-only-mock-crypto"] }
itertools = "0.8.0" itertools = "0.8.1"
signifix = "0.10.0" signifix = "0.10.0"
proptest = "0.9.2" proptest = "0.9.4"
[[example]] [[example]]
name = "consensus-node" name = "consensus-node"

View File

@ -22,13 +22,13 @@ edition = "2018"
travis-ci = { repository = "poanetwork/hbbft" } travis-ci = { repository = "poanetwork/hbbft" }
[dependencies] [dependencies]
failure = "0.1.5" failure = "0.1.6"
hbbft = { path = ".." } hbbft = { path = ".." }
integer-sqrt = "0.1.2" integer-sqrt = "0.1.2"
proptest = "0.9.2" proptest = "0.9.4"
rand = "0.6.5" rand = "0.6.5"
rand_xorshift = "0.1.1" rand_xorshift = "0.1.1"
threshold_crypto = "0.3.1" threshold_crypto = { git = "https://github.com/kigawas/threshold_crypto", branch = "cleanup-and-codec"}
[features] [features]
use-insecure-test-only-mock-crypto = ["hbbft/use-insecure-test-only-mock-crypto"] use-insecure-test-only-mock-crypto = ["hbbft/use-insecure-test-only-mock-crypto"]

View File

@ -17,7 +17,7 @@ impl<C, N: NodeIdT> Batch<C, N> {
where where
&'a C: IntoIterator, &'a C: IntoIterator,
{ {
self.contributions.values().flat_map(|item| item) self.contributions.values().flatten()
} }
/// Returns an iterator over all transactions included in the batch. Consumes the batch. /// Returns an iterator over all transactions included in the batch. Consumes the batch.