mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
updats to warnings, cargo.lock, version number (#3739)
This commit is contained in:
parent
34d23f5235
commit
684f0a387a
16 changed files with 462 additions and 302 deletions
621
Cargo.lock
generated
621
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
22
Cargo.toml
22
Cargo.toml
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -32,14 +32,14 @@ serde_json = "1"
|
|||
log = "0.4"
|
||||
term = "0.6"
|
||||
|
||||
grin_api = { path = "./api", version = "5.2.0-alpha.1" }
|
||||
grin_config = { path = "./config", version = "5.2.0-alpha.1" }
|
||||
grin_chain = { path = "./chain", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "./core", version = "5.2.0-alpha.1" }
|
||||
grin_keychain = { path = "./keychain", version = "5.2.0-alpha.1" }
|
||||
grin_p2p = { path = "./p2p", version = "5.2.0-alpha.1" }
|
||||
grin_servers = { path = "./servers", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "./util", version = "5.2.0-alpha.1" }
|
||||
grin_api = { path = "./api", version = "5.2.0-alpha.2" }
|
||||
grin_config = { path = "./config", version = "5.2.0-alpha.2" }
|
||||
grin_chain = { path = "./chain", version = "5.2.0-alpha.2" }
|
||||
grin_core = { path = "./core", version = "5.2.0-alpha.2" }
|
||||
grin_keychain = { path = "./keychain", version = "5.2.0-alpha.2" }
|
||||
grin_p2p = { path = "./p2p", version = "5.2.0-alpha.2" }
|
||||
grin_servers = { path = "./servers", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "./util", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dependencies.cursive]
|
||||
version = "0.16"
|
||||
|
@ -50,5 +50,5 @@ features = ["pancurses-backend"]
|
|||
built = { version = "0.4", features = ["git2"]}
|
||||
|
||||
[dev-dependencies]
|
||||
grin_chain = { path = "./chain", version = "5.2.0-alpha.1" }
|
||||
grin_store = { path = "./store", version = "5.2.0-alpha.1" }
|
||||
grin_chain = { path = "./chain", version = "5.2.0-alpha.2" }
|
||||
grin_store = { path = "./store", version = "5.2.0-alpha.2" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_api"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "APIs for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -30,9 +30,9 @@ rustls = "0.17"
|
|||
url = "2.1"
|
||||
bytes = "0.5"
|
||||
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.1" }
|
||||
grin_p2p = { path = "../p2p", version = "5.2.0-alpha.1" }
|
||||
grin_pool = { path = "../pool", version = "5.2.0-alpha.1" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.2" }
|
||||
grin_p2p = { path = "../p2p", version = "5.2.0-alpha.2" }
|
||||
grin_pool = { path = "../pool", version = "5.2.0-alpha.2" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_chain"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -23,10 +23,10 @@ chrono = "0.4.11"
|
|||
lru-cache = "0.1"
|
||||
lazy_static = "1"
|
||||
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_keychain = { path = "../keychain", version = "5.2.0-alpha.1" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_keychain = { path = "../keychain", version = "5.2.0-alpha.2" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.7"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_config"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Configuration for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -16,10 +16,10 @@ serde_derive = "1"
|
|||
toml = "0.5"
|
||||
dirs = "2.0"
|
||||
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_servers = { path = "../servers", version = "5.2.0-alpha.1" }
|
||||
grin_p2p = { path = "../p2p", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_servers = { path = "../servers", version = "5.2.0-alpha.2" }
|
||||
grin_p2p = { path = "../p2p", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "0.6.1"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_core"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -28,8 +28,8 @@ chrono = { version = "0.4.11", features = ["serde"] }
|
|||
zeroize = { version = "1.1", features =["zeroize_derive"] }
|
||||
bytes = "0.5"
|
||||
|
||||
keychain = { package = "grin_keychain", path = "../keychain", version = "5.2.0-alpha.1" }
|
||||
util = { package = "grin_util", path = "../util", version = "5.2.0-alpha.1" }
|
||||
keychain = { package = "grin_keychain", path = "../keychain", version = "5.2.0-alpha.2" }
|
||||
util = { package = "grin_util", path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json = "1"
|
||||
|
|
6
core/fuzz/Cargo.lock
generated
6
core/fuzz/Cargo.lock
generated
|
@ -388,7 +388,7 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
|||
|
||||
[[package]]
|
||||
name = "grin_core"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"byteorder",
|
||||
|
@ -422,7 +422,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_keychain"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"byteorder",
|
||||
|
@ -459,7 +459,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_util"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"backtrace",
|
||||
"base64",
|
||||
|
|
|
@ -27,7 +27,6 @@ use crate::pow::{verify_size, Difficulty, Proof, ProofOfWork};
|
|||
use crate::ser::{
|
||||
self, deserialize_default, serialize_default, PMMRable, Readable, Reader, Writeable, Writer,
|
||||
};
|
||||
use chrono::naive::{MAX_DATE, MIN_DATE};
|
||||
use chrono::prelude::{DateTime, NaiveDateTime, Utc};
|
||||
use chrono::Duration;
|
||||
use keychain::{self, BlindingFactor};
|
||||
|
@ -289,8 +288,8 @@ fn read_block_header<R: Reader>(reader: &mut R) -> Result<BlockHeader, ser::Erro
|
|||
let (output_mmr_size, kernel_mmr_size) = ser_multiread!(reader, read_u64, read_u64);
|
||||
let pow = ProofOfWork::read(reader)?;
|
||||
|
||||
if timestamp > MAX_DATE.and_hms(0, 0, 0).timestamp()
|
||||
|| timestamp < MIN_DATE.and_hms(0, 0, 0).timestamp()
|
||||
if timestamp > chrono::NaiveDate::MAX.and_hms(0, 0, 0).timestamp()
|
||||
|| timestamp < chrono::NaiveDate::MIN.and_hms(0, 0, 0).timestamp()
|
||||
{
|
||||
return Err(ser::Error::CorruptedData);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_keychain"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -26,4 +26,4 @@ ripemd160 = "0.9"
|
|||
sha2 = "0.9"
|
||||
pbkdf2 = "0.8"
|
||||
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_p2p"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -22,10 +22,10 @@ log = "0.4"
|
|||
chrono = { version = "0.4.11", features = ["serde"] }
|
||||
bytes = "0.5"
|
||||
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
grin_pool = { path = "../pool", version = "5.2.0-alpha.1" }
|
||||
grin_pool = { path = "../pool", version = "5.2.0-alpha.2" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_pool"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -18,9 +18,9 @@ thiserror = "1"
|
|||
log = "0.4"
|
||||
chrono = "0.4.11"
|
||||
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_keychain = { path = "../keychain", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_keychain = { path = "../keychain", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.1" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.2" }
|
||||
|
|
12
pool/fuzz/Cargo.lock
generated
12
pool/fuzz/Cargo.lock
generated
|
@ -419,7 +419,7 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
|||
|
||||
[[package]]
|
||||
name = "grin_chain"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"bit-vec",
|
||||
"bitflags 1.2.1",
|
||||
|
@ -441,7 +441,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_core"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"byteorder",
|
||||
|
@ -466,7 +466,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_keychain"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"byteorder",
|
||||
|
@ -487,7 +487,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_pool"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"blake2-rfc",
|
||||
"chrono",
|
||||
|
@ -532,7 +532,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_store"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"croaring",
|
||||
|
@ -550,7 +550,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "grin_util"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
dependencies = [
|
||||
"backtrace",
|
||||
"base64",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_servers"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -26,11 +26,11 @@ tokio = {version = "0.2", features = ["full"] }
|
|||
tokio-util = { version = "0.2", features = ["codec"] }
|
||||
walkdir = "2.3.1"
|
||||
|
||||
grin_api = { path = "../api", version = "5.2.0-alpha.1" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_keychain = { path = "../keychain", version = "5.2.0-alpha.1" }
|
||||
grin_p2p = { path = "../p2p", version = "5.2.0-alpha.1" }
|
||||
grin_pool = { path = "../pool", version = "5.2.0-alpha.1" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_api = { path = "../api", version = "5.2.0-alpha.2" }
|
||||
grin_chain = { path = "../chain", version = "5.2.0-alpha.2" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_keychain = { path = "../keychain", version = "5.2.0-alpha.2" }
|
||||
grin_p2p = { path = "../p2p", version = "5.2.0-alpha.2" }
|
||||
grin_pool = { path = "../pool", version = "5.2.0-alpha.2" }
|
||||
grin_store = { path = "../store", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
//! list of DNS records (the default).
|
||||
|
||||
use chrono::prelude::{DateTime, Utc};
|
||||
use chrono::{Duration, MIN_DATE};
|
||||
use chrono::Duration;
|
||||
use p2p::{msg::PeerAddrs, P2PConfig};
|
||||
use rand::prelude::*;
|
||||
use std::collections::HashMap;
|
||||
|
@ -69,8 +69,8 @@ pub fn connect_and_monitor(
|
|||
// check seeds first
|
||||
connect_to_seeds_and_peers(peers.clone(), tx.clone(), seed_list, config);
|
||||
|
||||
let mut prev = MIN_DATE.and_hms(0, 0, 0);
|
||||
let mut prev_expire_check = MIN_DATE.and_hms(0, 0, 0);
|
||||
let mut prev = chrono::Date::<Utc>::MIN_UTC.and_hms(0, 0, 0);
|
||||
let mut prev_expire_check = chrono::Date::<Utc>::MIN_UTC.and_hms(0, 0, 0);
|
||||
let mut prev_ping = Utc::now();
|
||||
let mut start_attempt = 0;
|
||||
let mut connecting_history: HashMap<PeerAddr, DateTime<Utc>> = HashMap::new();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_store"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
@ -21,8 +21,8 @@ serde_derive = "1"
|
|||
thiserror = "1"
|
||||
log = "0.4"
|
||||
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.1" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.1" }
|
||||
grin_core = { path = "../core", version = "5.2.0-alpha.2" }
|
||||
grin_util = { path = "../util", version = "5.2.0-alpha.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
chrono = "0.4.11"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "grin_util"
|
||||
version = "5.2.0-alpha.1"
|
||||
version = "5.2.0-alpha.2"
|
||||
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
|
||||
description = "Simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
|
||||
license = "Apache-2.0"
|
||||
|
|
Loading…
Reference in a new issue