Skip to content

Commit

Permalink
Release testnets (#1170)
Browse files Browse the repository at this point in the history
* Release testnets

* Recache
  • Loading branch information
AurevoirXavier authored Jun 5, 2023
1 parent 877801c commit 78e93ed
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
CARGO_INCREMENTAL: 1
CARGO_TERM_COLOR: always

GITHUB_CACHE_VERSION: 4
GITHUB_CACHE_VERSION: 0

RUST_BACKTRACE: full

Expand Down
23 changes: 0 additions & 23 deletions pallet/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,29 +277,6 @@ pub mod pallet {

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
#[pallet::hooks]
impl<T: Config> Hooks<T::BlockNumber> for Pallet<T> {
fn on_runtime_upgrade() -> Weight {
let mut count = 0;

<Exposures<T>>::iter().for_each(|(k, v)| {
<NextExposures<T>>::insert(k, v);

count += 1;
});

T::DbWeight::get().reads_writes(count, count)
}

#[cfg(feature = "try-runtime")]
fn post_upgrade(_state: Vec<u8>) -> Result<(), &'static str> {
<Exposures<T>>::iter().zip(<NextExposures<T>>::iter()).for_each(|(e1, e2)| {
assert_eq!(e1, e2);
});

Ok(())
}
}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Add stakes to the staking pool.
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 @@ -86,7 +86,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_3_0_0,
spec_version: 6_3_1_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 @@ -86,7 +86,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_3_0_0,
spec_version: 6_3_1_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Pangolin2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_3_0_0,
spec_version: 6_3_1_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangoro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Pangoro2"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_3_0_0,
spec_version: 6_3_1_0,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down

0 comments on commit 78e93ed

Please sign in to comment.