Skip to content

Commit bd98d17

Browse files
Yeastplumeaglkm
andauthored
[current/v5.3.x] 5.3.x Version of Rust 1.80 updates (#3797)
* Update grin_secp to 0.7.14 (#3788) * Update versioning on master to 5.4.0-alpha.0 * Update versioning on master to 5.4.0-alpha.0 (#3789) * Remove Merkle Proof Generation from Foreign API `get_outputs` (#3792) * Update versioning on master to 5.4.0-alpha.0 * Remove merkle proof generation from foreign API * Rust 1.80+ fixes & accumulated warning cleanup (#3796) * Update versioning on master to 5.4.0-alpha.0 * updates for 1.80 and other accumulated warnings * further warning cleanups * move dead code tag to function defn rather than module * Chain type field (#3790) * Adding chain type field into get_status rpc * formatting * update version for next build --------- Co-authored-by: aglkm <39521015+aglkm@users.noreply.github.com>
1 parent 7f7d063 commit bd98d17

File tree

28 files changed

+682
-569
lines changed

28 files changed

+682
-569
lines changed
File renamed without changes.

Cargo.lock

Lines changed: 579 additions & 435 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin"
3-
version = "5.3.2"
3+
version = "5.3.3"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "Simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -24,31 +24,31 @@ blake2-rfc = "0.2"
2424
chrono = "0.4.11"
2525
clap = { version = "2.33", features = ["yaml"] }
2626
ctrlc = { version = "3.1", features = ["termination"] }
27-
cursive_table_view = "0.14.0"
27+
cursive_table_view = "0.15.0"
2828
humansize = "1.1.0"
2929
serde = "1"
3030
futures = "0.3.19"
3131
serde_json = "1"
3232
log = "0.4"
3333
term = "0.6"
3434

35-
grin_api = { path = "./api", version = "5.3.2" }
36-
grin_config = { path = "./config", version = "5.3.2" }
37-
grin_chain = { path = "./chain", version = "5.3.2" }
38-
grin_core = { path = "./core", version = "5.3.2" }
39-
grin_keychain = { path = "./keychain", version = "5.3.2" }
40-
grin_p2p = { path = "./p2p", version = "5.3.2" }
41-
grin_servers = { path = "./servers", version = "5.3.2" }
42-
grin_util = { path = "./util", version = "5.3.2" }
35+
grin_api = { path = "./api", version = "5.3.3" }
36+
grin_config = { path = "./config", version = "5.3.3" }
37+
grin_chain = { path = "./chain", version = "5.3.3" }
38+
grin_core = { path = "./core", version = "5.3.3" }
39+
grin_keychain = { path = "./keychain", version = "5.3.3" }
40+
grin_p2p = { path = "./p2p", version = "5.3.3" }
41+
grin_servers = { path = "./servers", version = "5.3.3" }
42+
grin_util = { path = "./util", version = "5.3.3" }
4343

4444
[dependencies.cursive]
45-
version = "0.20"
45+
version = "0.21"
4646
default-features = false
4747
features = ["pancurses-backend"]
4848

4949
[build-dependencies]
50-
built = { version = "0.4", features = ["git2"]}
50+
built = { version = "0.7", features = ["git2"]}
5151

5252
[dev-dependencies]
53-
grin_chain = { path = "./chain", version = "5.3.2" }
54-
grin_store = { path = "./store", version = "5.3.2" }
53+
grin_chain = { path = "./chain", version = "5.3.3" }
54+
grin_store = { path = "./store", version = "5.3.3" }

api/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin_api"
3-
version = "5.3.2"
3+
version = "5.3.3"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "APIs for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -30,9 +30,9 @@ rustls = "0.17"
3030
url = "2.1"
3131
bytes = "0.5"
3232

33-
grin_core = { path = "../core", version = "5.3.2" }
34-
grin_chain = { path = "../chain", version = "5.3.2" }
35-
grin_p2p = { path = "../p2p", version = "5.3.2" }
36-
grin_pool = { path = "../pool", version = "5.3.2" }
37-
grin_store = { path = "../store", version = "5.3.2" }
38-
grin_util = { path = "../util", version = "5.3.2" }
33+
grin_core = { path = "../core", version = "5.3.3" }
34+
grin_chain = { path = "../chain", version = "5.3.3" }
35+
grin_p2p = { path = "../p2p", version = "5.3.3" }
36+
grin_pool = { path = "../pool", version = "5.3.3" }
37+
grin_store = { path = "../store", version = "5.3.3" }
38+
grin_util = { path = "../util", version = "5.3.3" }

api/src/owner_rpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub trait OwnerRpc: Sync + Send {
4949
"jsonrpc": "2.0",
5050
"result": {
5151
"Ok": {
52+
"chain": "main",
5253
"protocol_version": "2",
5354
"user_agent": "MW/Grin 2.x.x",
5455
"connections": "8",

api/src/types.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::chain;
1616
use crate::core::core::hash::Hashed;
1717
use crate::core::core::merkle_proof::MerkleProof;
1818
use crate::core::core::{FeeFields, KernelFeatures, TxKernel};
19-
use crate::core::{core, ser};
19+
use crate::core::{core, global, ser};
2020
use crate::p2p;
2121
use crate::util::secp::pedersen;
2222
use crate::util::{self, ToHex};
@@ -68,6 +68,8 @@ impl Tip {
6868
/// Status page containing different server information
6969
#[derive(Serialize, Deserialize, Debug, Clone)]
7070
pub struct Status {
71+
// The chain type
72+
pub chain: String,
7173
// The protocol version
7274
pub protocol_version: u32,
7375
// The user user agent
@@ -91,6 +93,7 @@ impl Status {
9193
sync_info: Option<serde_json::Value>,
9294
) -> Status {
9395
Status {
96+
chain: global::get_chain_type().shortname(),
9497
protocol_version: ser::ProtocolVersion::local().into(),
9598
user_agent: p2p::msg::USER_AGENT.to_string(),
9699
connections: connections,

chain/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin_chain"
3-
version = "5.3.2"
3+
version = "5.3.3"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -23,10 +23,10 @@ chrono = "0.4.11"
2323
lru-cache = "0.1"
2424
lazy_static = "1"
2525

26-
grin_core = { path = "../core", version = "5.3.2" }
27-
grin_keychain = { path = "../keychain", version = "5.3.2" }
28-
grin_store = { path = "../store", version = "5.3.2" }
29-
grin_util = { path = "../util", version = "5.3.2" }
26+
grin_core = { path = "../core", version = "5.3.3" }
27+
grin_keychain = { path = "../keychain", version = "5.3.3" }
28+
grin_store = { path = "../store", version = "5.3.3" }
29+
grin_util = { path = "../util", version = "5.3.3" }
3030

3131
[dev-dependencies]
3232
env_logger = "0.7"

chain/tests/chain_test_helper.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ use grin_keychain as keychain;
2929
use std::fs;
3030
use std::sync::Arc;
3131

32+
#[allow(dead_code)]
33+
#[cfg(test)]
3234
pub fn clean_output_dir(dir_name: &str) {
3335
let _ = fs::remove_dir_all(dir_name);
3436
}

config/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin_config"
3-
version = "5.3.2"
3+
version = "5.3.3"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "Configuration for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -16,10 +16,10 @@ serde_derive = "1"
1616
toml = "0.5"
1717
dirs = "2.0"
1818

19-
grin_core = { path = "../core", version = "5.3.2" }
20-
grin_servers = { path = "../servers", version = "5.3.2" }
21-
grin_p2p = { path = "../p2p", version = "5.3.2" }
22-
grin_util = { path = "../util", version = "5.3.2" }
19+
grin_core = { path = "../core", version = "5.3.3" }
20+
grin_servers = { path = "../servers", version = "5.3.3" }
21+
grin_p2p = { path = "../p2p", version = "5.3.3" }
22+
grin_util = { path = "../util", version = "5.3.3" }
2323

2424
[dev-dependencies]
2525
pretty_assertions = "0.6.1"

core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grin_core"
3-
version = "5.3.2"
3+
version = "5.3.3"
44
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
55
description = "Chain implementation for grin, a simple, private and scalable cryptocurrency implementation based on the Mimblewimble chain format."
66
license = "Apache-2.0"
@@ -28,8 +28,8 @@ chrono = { version = "0.4.11", features = ["serde"] }
2828
zeroize = { version = "1.1", features =["zeroize_derive"] }
2929
bytes = "0.5"
3030

31-
keychain = { package = "grin_keychain", path = "../keychain", version = "5.3.2" }
32-
util = { package = "grin_util", path = "../util", version = "5.3.2" }
31+
keychain = { package = "grin_keychain", path = "../keychain", version = "5.3.3" }
32+
util = { package = "grin_util", path = "../util", version = "5.3.3" }
3333

3434
[dev-dependencies]
3535
serde_json = "1"

0 commit comments

Comments
 (0)