Skip to content

Commit e62a832

Browse files
authored
Merge pull request #2021 from mintlayer/prepare-release-v1.2.1
Prepare release v1.2.1
2 parents 2e7394a + fc8b098 commit e62a832

30 files changed

Lines changed: 817 additions & 495 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ homepage = "https://mintlayer.org"
55
repository = "https://github.com/mintlayer/mintlayer-core"
66
readme = "README.md"
77
license = "MIT"
8-
version = "1.2.0"
8+
version = "1.2.1"
99
authors = ["Samer Afach <samer.afach@mintlayer.org>", "Ben Marsh <benjamin.marsh@mintlayer.org>", "Enrico Rubboli <enrico.rubboli@mintlayer.org>"]
1010
edition = "2021"
1111

@@ -127,7 +127,7 @@ utxo = { path = "utxo" }
127127
[workspace.package]
128128
edition = "2021"
129129
rust-version = "1.88"
130-
version = "1.2.0"
130+
version = "1.2.1"
131131
license = "MIT"
132132

133133
[workspace.dependencies]
@@ -173,14 +173,16 @@ heck = "0.5"
173173
hex = "0.4"
174174
hex-literal = "0.4"
175175
hmac = "0.12"
176+
http = "1.3"
177+
hyper = "1.7"
176178
iced = "0.13"
177179
# Note: we need this fix - https://github.com/iced-rs/iced_aw/pull/329
178180
# TODO: switch back to a released version of iced_aw once the fix is released (need version > 0.12)
179181
iced_aw = { git = "https://github.com/iced-rs/iced_aw", branch = "main" }
180182
iced_fonts = "0.1"
181183
indoc = "2.0"
182184
itertools = "0.14"
183-
jsonrpsee = { version = "0.22", default-features = false }
185+
jsonrpsee = { version = "0.26", default-features = false }
184186
lazy_static = "1.4"
185187
libtest-mimic = "0.8"
186188
log = "0.4"
@@ -207,6 +209,7 @@ reedline = "0.38"
207209
ref-cast = "1.0"
208210
regex = "1.10"
209211
replace_with = "0.1"
212+
reqwest = "0.12"
210213
rfd = { version = "0.15", default-features = false }
211214
ripemd = "0.1"
212215
rlimit = "0.10"
@@ -243,8 +246,8 @@ tokio-socks = "0.5"
243246
tokio-stream = "0.1"
244247
tokio-util = { version = "0.7", default-features = false }
245248
toml = "0.8"
246-
tower = "0.4"
247-
tower-http-axum = { package = "tower-http", version = "0.5" }
249+
tower = "0.5"
250+
tower-http = "0.5"
248251
hickory-client = "0.24"
249252
hickory-server = "0.24"
250253
zeroize = "1.5"

api-server/stack-test-suite/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async-trait.workspace = true
2525
axum.workspace = true
2626
hex.workspace = true
2727
libtest-mimic.workspace = true
28-
reqwest = "0.11"
28+
reqwest.workspace = true
2929
serde.workspace = true
3030
serde_json.workspace = true
3131
tokio = { workspace = true, features = ["full"] }

api-server/web-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ serde = { workspace = true, features = ["derive"] }
2929
serde_json.workspace = true
3030
thiserror.workspace = true
3131
tokio = { workspace = true }
32-
tower-http-axum = { workspace = true, features = ["cors"] }
32+
tower-http = { workspace = true, features = ["cors"] }

api-server/web-server/src/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use axum::{http::Method, response::IntoResponse, routing::get, Json, Router};
2727
use serde_json::json;
2828
use std::sync::Arc;
2929
use tokio::net::TcpListener;
30-
use tower_http_axum::cors::{AllowMethods, Any, CorsLayer};
30+
use tower_http::cors::{AllowMethods, Any, CorsLayer};
3131

3232
#[allow(clippy::unused_async)]
3333
async fn bad_request() -> Result<(), ApiServerWebServerError> {

build-tools/docker/example-mainnet-dns-server/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COMPOSE_PROJECT_NAME=mintlayer-mainnet-dns-server
44

55
# Dockerhub username, from which the docker images will be pulled.
66
ML_DOCKERHUB_USERNAME=mintlayer
7-
# The image tag to use, e.g. "v1.2.0" or "latest".
7+
# The image tag to use, e.g. "v1.2.1" or "latest".
88
ML_DOCKER_IMAGE_TAG=latest
99

1010
# The user and group ids that will be used to run the software.

build-tools/docker/example-mainnet/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COMPOSE_PROJECT_NAME=mintlayer-mainnet
44

55
# Dockerhub username, from which the docker images will be pulled.
66
ML_DOCKERHUB_USERNAME=mintlayer
7-
# The image tag to use, e.g. "v1.2.0" or "latest".
7+
# The image tag to use, e.g. "v1.2.1" or "latest".
88
ML_DOCKER_IMAGE_TAG=latest
99

1010
# The user and group ids that will be used to run the software.

chainstate/launcher/src/config.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@ use chainstate::ChainstateConfig;
1919

2020
/// Storage type to use
2121
#[must_use]
22-
#[derive(Debug, Clone, PartialEq, Eq)]
22+
#[derive(Debug, Clone, PartialEq, Eq, Default)]
2323
pub enum StorageBackendConfig {
24+
#[default]
2425
Lmdb,
25-
InMemory,
26-
}
2726

28-
impl Default for StorageBackendConfig {
29-
fn default() -> Self {
30-
Self::Lmdb
31-
}
27+
InMemory,
3228
}
3329

3430
impl StorageBackendConfig {

chainstate/test-framework/src/random_tx_maker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,14 +1379,14 @@ impl<'a> RandomTxMaker<'a> {
13791379
PrivateKey::new_from_rng(rng, KeyKind::Secp256k1Schnorr);
13801380

13811381
*dummy_pool_id = pool_id;
1382-
*pool_data = Box::new(StakePoolData::new(
1382+
**pool_data = StakePoolData::new(
13831383
pool_data.pledge(),
13841384
Destination::PublicKey(staker_pk),
13851385
vrf_pk,
13861386
Destination::AnyoneCanSpend,
13871387
pool_data.margin_ratio_per_thousand(),
13881388
pool_data.cost_per_block(),
1389-
));
1389+
);
13901390
let _ = pos_accounting_cache
13911391
.create_pool(pool_id, pool_data.as_ref().clone().into())
13921392
.unwrap();

common/src/address/dehexify.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ use super::hexified::HexifiedAddress;
2222

2323
#[allow(clippy::let_and_return)]
2424
pub fn dehexify_all_addresses(conf: &ChainConfig, input: &str) -> String {
25-
let result = HexifiedAddress::<Destination>::replace_with_address(conf, input).to_string();
26-
let result = HexifiedAddress::<PoolId>::replace_with_address(conf, &result).to_string();
27-
let result = HexifiedAddress::<DelegationId>::replace_with_address(conf, &result).to_string();
28-
let result = HexifiedAddress::<TokenId>::replace_with_address(conf, &result).to_string();
29-
let result = HexifiedAddress::<OrderId>::replace_with_address(conf, &result).to_string();
30-
let result = HexifiedAddress::<VRFPublicKey>::replace_with_address(conf, &result).to_string();
25+
let result = HexifiedAddress::<Destination>::replace_with_address(conf, input).clone();
26+
let result = HexifiedAddress::<PoolId>::replace_with_address(conf, &result).clone();
27+
let result = HexifiedAddress::<DelegationId>::replace_with_address(conf, &result).clone();
28+
let result = HexifiedAddress::<TokenId>::replace_with_address(conf, &result).clone();
29+
let result = HexifiedAddress::<OrderId>::replace_with_address(conf, &result).clone();
30+
let result = HexifiedAddress::<VRFPublicKey>::replace_with_address(conf, &result).clone();
3131

3232
result
3333
}

0 commit comments

Comments
 (0)