Skip to content

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)

}

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.

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!

// Standard Error: 0
.saturating_add(Weight::from_ref_time(6_000).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(2))
.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.

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

pub const MaxInstructions: u32 = 100;
}

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.

2 participants