Skip to content

Commit

Permalink
core/: Update libsecp256k1 from 0.6 to 0.7 (#2306)
Browse files Browse the repository at this point in the history
Signed-off-by: koushiro <[email protected]>
  • Loading branch information
koushiro committed Oct 22, 2021
1 parent 0f0e510 commit 831efba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ fnv = "1.0"
futures = { version = "0.3.1", features = ["executor", "thread-pool"] }
futures-timer = "3"
lazy_static = "1.2"
libsecp256k1 = { version = "0.6.0", optional = true }
libsecp256k1 = { version = "0.7.0", optional = true }
log = "0.4"
multiaddr = { version = "0.13.0" }
multihash = { version = "0.14", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multistream-select = { version = "0.10", path = "../misc/multistream-select" }
parking_lot = "0.11.0"
pin-project = "1.0.0"
prost = "0.9"
rand = "0.7"
rand = "0.8"
rw-stream-sink = "0.2.0"
sha2 = "0.9.1"
smallvec = "1.6.1"
Expand All @@ -47,6 +47,7 @@ libp2p-noise = { path = "../transports/noise" }
libp2p-tcp = { path = "../transports/tcp" }
multihash = { version = "0.14", default-features = false, features = ["arb"] }
quickcheck = "0.9.0"
rand07 = { package = "rand", version = "0.7" }
wasm-timer = "0.2"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion core/src/identity/rsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl DerDecodable<'_> for Asn1SubjectPublicKeyInfo {
mod tests {
use super::*;
use quickcheck::*;
use rand::seq::SliceRandom;
use rand07::seq::SliceRandom;
use std::fmt;

const KEY1: &'static [u8] = include_bytes!("test/rsa-2048.pk8");
Expand Down
2 changes: 1 addition & 1 deletion core/tests/concurrent_dialing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use libp2p_core::{
ConnectedPoint,
};
use quickcheck::*;
use rand::Rng;
use rand07::Rng;
use std::num::NonZeroU8;
use std::task::Poll;
use util::{test_network, TestHandler};
Expand Down
7 changes: 5 additions & 2 deletions core/tests/connection_limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ use libp2p_core::{
PeerId,
};
use quickcheck::*;
use rand::Rng;
use std::task::Poll;
use util::{test_network, TestHandler};

#[test]
fn max_outgoing() {
let outgoing_limit = rand::thread_rng().gen_range(1, 10);
use rand::Rng;

let outgoing_limit = rand::thread_rng().gen_range(1..10);

let limits = ConnectionLimits::default().with_max_pending_outgoing(Some(outgoing_limit));
let cfg = NetworkConfig::default().with_connection_limits(limits);
Expand Down Expand Up @@ -89,6 +90,8 @@ fn max_outgoing() {

#[test]
fn max_established_incoming() {
use rand07::Rng;

#[derive(Debug, Clone)]
struct Limit(u32);

Expand Down

0 comments on commit 831efba

Please sign in to comment.