Skip to content

Commit

Permalink
Release v6.9.0 (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Jan 17, 2025
1 parent fb0e6d9 commit 874c745
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 22 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"
homepage = "https://darwinia.network"
license = "GPL-3.0"
repository = "https://github.com/darwinia-network/darwinia"
version = "6.8.1"
version = "6.9.0"

[workspace.dependencies]
# crates.io
Expand Down
18 changes: 16 additions & 2 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ where
{
let d = env::current_exe().unwrap().parent().unwrap().to_path_buf();
let p = d.join(name);

if !p.is_file() {
let download = || {
println!("Downloading `{name}` to `{}`", d.display());

thread::spawn(move || {
Expand All @@ -156,6 +155,21 @@ where
})
.join()
.unwrap();
};

if !p.is_file() {
download();
} else if let Ok(metadata) = p.metadata() {
// Fetch the latest spec every 14 days.
if let Ok(date) = metadata.modified() {
if let Ok(elapsed) = date.elapsed() {
if elapsed.as_secs() > 60 * 60 * 24 * 14 {
if fs::remove_file(p.clone()).is_ok() {
download();
}
}
}
}
}

println!("Loading genesis from `{}`", p.display());
Expand Down
2 changes: 1 addition & 1 deletion pallet/account-migration/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Darwinia2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_8_1_0,
spec_version: 6_9_0_0,
impl_version: 0,
apis: sp_version::create_apis_vec!([]),
transaction_version: 0,
Expand Down
2 changes: 1 addition & 1 deletion runtime/crab/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Crab2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_8_1_0,
spec_version: 6_9_0_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Darwinia2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_8_1_0,
spec_version: 6_9_0_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
2 changes: 1 addition & 1 deletion runtime/koi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Darwinia Koi"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_8_1_1,
spec_version: 6_9_0_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down

0 comments on commit 874c745

Please sign in to comment.