-
Notifications
You must be signed in to change notification settings - Fork 1.6k
add parachains pallets to Polkadot runtime #3815
Conversation
runtime/polkadot/src/lib.rs
Outdated
@@ -1130,48 +1277,63 @@ pub type Executive = frame_executive::Executive< | |||
frame_system::ChainContext<Runtime>, | |||
Runtime, | |||
AllPallets, | |||
TechnicalMembershipStoragePrefixMigration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did I remove this prematurely or was it good to remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the current Polkadot network (9090), this migration has NOT happened yet.
Will these changes go into v0.9.10? If so, then yeah, we should have both in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this back for now
hrmp_max_parachain_inbound_channels: 10, | ||
hrmp_max_parathread_inbound_channels: 0, | ||
hrmp_channel_max_message_size: 102_400, | ||
code_retention_period: EPOCH_DURATION_IN_SLOTS * 6, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the rationale for this number?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK Code needs to be available for the entire dispute period, which is 6 epochs.
hrmp_sender_deposit: deposit(1004, 100 * 1024), | ||
hrmp_recipient_deposit: deposit(1004, 100 * 1024), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a massive deposit. 20,000 DOT at least (1004 * 20 * DOLLARS), then we also have to add cost of bytes.
How was this determined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's a TODO - it's the same as the Kusama values which are themselves too large.
/benchmark runtime polkadot runtime_common::crowdloan |
Benchmark Runtime Polkadot Pallet for branch "rh-add-polkadot-parachains-pallets" with command cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_crowdloan.rs Results
|
…k --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_crowdloan.rs
/benchmark runtime polkadot runtime_common::crowdloan |
Benchmark Runtime Polkadot Pallet for branch "rh-add-polkadot-parachains-pallets" with command cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_crowdloan.rs Results
|
…rh-add-polkadot-parachains-pallets
…k --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_crowdloan.rs
…om/paritytech/polkadot into rh-add-polkadot-parachains-pallets
/benchmark runtime polkadot runtime_common::paras_registrar |
Benchmark Runtime Polkadot Pallet for branch "rh-add-polkadot-parachains-pallets" with command cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_paras_registrar.rs Results
|
…rh-add-polkadot-parachains-pallets
…k --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_paras_registrar.rs
/benchmark runtime polkadot runtime_common::slots |
Benchmark Runtime Polkadot Pallet for branch "rh-add-polkadot-parachains-pallets" with command cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_slots.rs Results
ERROR: Unable to push ./runtime/polkadot/src/weights/runtime_common_slots.rs |
/benchmark runtime polkadot runtime_common::auctions |
Benchmark Runtime Polkadot Pallet for branch "rh-add-polkadot-parachains-pallets" with command cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_auctions.rs Results
ERROR: Unable to commit file ./runtime/polkadot/src/weights/runtime_common_auctions.rs |
* master: (24 commits) Added multisig in Rococo (#3873) Fix bin-substrate toml (#3939) Bump tracing from 0.1.27 to 0.1.28 (#3937) XCM Benchmarks for Asset Transactor w/ Fungible Asset (#3818) Bump libc from 0.2.101 to 0.2.102 (#3933) Do not compile `wasm_api` module when not needed. (#3934) Bump syn from 1.0.76 to 1.0.77 (#3932) Fix spelling (#3845) Bump tokio from 1.11.0 to 1.12.0 (#3910) Ignore `generate-bags` by dependabot (#3930) Update logging in paras_inherent (#3927) Bump libsecp256k1 from 0.6.0 to 0.7.0 (#3909) Remove BEEFY repo dependency (#3923) Substrate Companion for rust 1.54 (#3807) Fix broken links (#3919) update BaseXcmWegiht to match Kusama (#3911) add parachains pallets to Polkadot runtime (#3815) Add a `force_unfreeze` extrinsic to the disputes module (#3906) Add new rococo chainspec (#3905) Ensure all parachain configuration extrinsics are operational (#3912) ...
There are still some TODOs w.r.t. crowdloan deposits, but that can be changed later.