Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polkadot-v0.9.32 #172

Closed
wants to merge 19 commits into from
Closed

polkadot-v0.9.32 #172

wants to merge 19 commits into from

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb commented Dec 16, 2022

Todo:

  • test if chain produces blocks in a local setup
  • double-check some settings

Subwasm fails to load the metadata. Reasons unknown. Updating subwasm to 0.18.0 did not help. See this discussion for more information: integritee-network/integritee-node#159 (comment)

@@ -201,53 +206,31 @@ parameter_types! {
}

impl frame_system::Config for Runtime {
/// The identifier used to distinguish between accounts.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the bad documentation and re-order the definitions to be the same as the upstream statemine runtime.

Comment on lines +395 to +396
pub UnvestedFundsAllowedWithdrawReasons: WithdrawReasons =
WithdrawReasons::except(WithdrawReasons::TRANSFER | WithdrawReasons::RESERVE);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: double-check this config. It is taken from integritee-network/integritee-node#159

Comment on lines +680 to +681
type MaxDeposits = ConstU32<100>;
type MaxBlacklisted = ConstU32<100>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taken from statemine.

@@ -699,6 +698,7 @@ construct_runtime! {
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 2,
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
Preimage: pallet_preimage = 5,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: double check if we have never used index 5 to be sure that we don't have a storage hash collision.

Comment on lines +916 to +931
impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, RuntimeCall>
for Runtime
{
fn query_call_info(
call: RuntimeCall,
len: u32,
) -> pallet_transaction_payment::RuntimeDispatchInfo<Balance> {
TransactionPayment::query_call_info(call, len)
}
fn query_call_fee_details(
call: RuntimeCall,
len: u32,
) -> pallet_transaction_payment::FeeDetails<Balance> {
TransactionPayment::query_call_fee_details(call, len)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: check why we never had this, it does not make sense for me.

Comment on lines +939 to +940
#[cfg(feature = "try-runtime")]
impl frame_try_runtime::TryRuntime<Block> for Runtime {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful testing feature to perform a runtime upgrade in cargo test. We should finally use this feature!

@@ -45,18 +45,6 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().writes(1))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the weight files are copied and pasted from the kusama runtime. We need to run the benchmarks again before deployment.

@@ -20,7 +20,7 @@ use std::path::PathBuf;
#[derive(Debug, clap::Subcommand)]
pub enum Subcommand {
/// Key management CLI utilities
#[clap(subcommand)]
#[command(subcommand)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to clap dependency update

@@ -314,15 +308,15 @@ parameter_types! {

pub struct XcmConfig;
Copy link
Contributor Author

@clangenb clangenb Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember we need to update the XCM config for the slot swap as the current settings do not allow the shell runtime to send xcm messages: #160

@clangenb clangenb marked this pull request as draft December 23, 2022 14:10
@clangenb
Copy link
Contributor Author

Closing in favor of #176

@clangenb clangenb closed this Dec 23, 2022
@clangenb clangenb deleted the cl/polkadot-v0.9.32 branch January 7, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant