File tree Expand file tree Collapse file tree 10 files changed +900
-768
lines changed
length-fee-adjustment/src Expand file tree Collapse file tree 10 files changed +900
-768
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ pub enum Subcommand {
3333 #[ allow( missing_docs) ]
3434 ExportGenesisMetadata ( export_genesis_metadata:: ExportGenesisMetadataCmd ) ,
3535
36- /// Export the genesis state of the parachain.
37- ExportGenesisState ( cumulus_client_cli:: ExportGenesisStateCommand ) ,
36+ /// Export the genesis head-data of the parachain.
37+ ExportGenesisHead ( cumulus_client_cli:: ExportGenesisHeadCommand ) ,
3838
3939 /// Export the genesis wasm of the parachain.
4040 ExportGenesisWasm ( cumulus_client_cli:: ExportGenesisWasmCommand ) ,
Original file line number Diff line number Diff line change @@ -177,12 +177,12 @@ pub fn run() -> Result<()> {
177177 Ok ( ( ) )
178178 } )
179179 } ,
180- Some ( Subcommand :: ExportGenesisState ( cmd) ) => {
180+ Some ( Subcommand :: ExportGenesisHead ( cmd) ) => {
181181 let runner = cli. create_runner ( cmd) ?;
182182 runner. sync_run ( |config| {
183183 let partials = new_partial ( & config) ?;
184184
185- cmd. run ( & * config . chain_spec , & * partials. client )
185+ cmd. run ( partials. client )
186186 } )
187187 } ,
188188 Some ( Subcommand :: ExportGenesisWasm ( cmd) ) => {
Original file line number Diff line number Diff line change 1010//!
1111//! If any of these conditions are met, then the block is authored.
1212
13- use anyhow:: anyhow;
1413use parity_scale_codec:: Decode ;
1514
1615use sc_client_api:: backend:: StorageProvider ;
7170 inherent_digests : Digest ,
7271 max_duration : Duration ,
7372 block_size_limit : Option < usize > ,
74- ) -> Result < Proposal < Block , StorageProof > , ProposerError > {
73+ ) -> Result < Option < Proposal < Block , StorageProof > > , ProposerError > {
7574 let has_downward_message = !paras_inherent_data. downward_messages . is_empty ( ) ;
7675 let has_transactions = self . transaction_pool . status ( ) . ready > 0 ;
7776 let has_go_ahead = {
@@ -148,9 +147,7 @@ where
148147 )
149148 . await
150149 } else {
151- Err ( ProposerError :: proposing ( anyhow ! (
152- "no need to create a block"
153- ) ) )
150+ Ok ( None )
154151 }
155152 }
156153}
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ impl frame_system::Config for Test {
3131 type DbWeight = ( ) ;
3232 type RuntimeOrigin = RuntimeOrigin ;
3333 type RuntimeCall = RuntimeCall ;
34+ type RuntimeTask = RuntimeTask ;
3435 type Nonce = u64 ;
3536 type Hash = H256 ;
3637 type Hashing = BlakeTwo256 ;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ impl frame_system::Config for Test {
3535 type DbWeight = ( ) ;
3636 type RuntimeOrigin = RuntimeOrigin ;
3737 type RuntimeCall = RuntimeCall ;
38+ type RuntimeTask = RuntimeTask ;
3839 type Nonce = u64 ;
3940 type Hash = H256 ;
4041 type Hashing = BlakeTwo256 ;
Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ impl frame_system::Config for Runtime {
189189 type AccountId = AccountId ;
190190 /// The aggregated dispatch type that is available for extrinsics.
191191 type RuntimeCall = RuntimeCall ;
192+ /// The overarching task type.
193+ type RuntimeTask = RuntimeTask ;
192194 /// The lookup mechanism to get account ID from whatever is passed in dispatchers.
193195 type Lookup = AccountIdLookup < AccountId , ( ) > ;
194196 /// The index type for storing how many extrinsics an account has signed.
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ parachain-info = { workspace = true }
7878parachains-common = { workspace = true }
7979
8080[dev-dependencies ]
81- sp-io = { git = " https://github.com/paritytech/polkadot-sdk " , branch = " release-polkadot-v1.4.0 " }
81+ sp-io = { workspace = true }
8282
8383[features ]
8484default = [ " std" ]
Original file line number Diff line number Diff line change @@ -256,6 +256,8 @@ impl frame_system::Config for Runtime {
256256 type AccountId = AccountId ;
257257 /// The aggregated dispatch type that is available for extrinsics.
258258 type RuntimeCall = RuntimeCall ;
259+ /// The overarching task type.
260+ type RuntimeTask = RuntimeTask ;
259261 /// The lookup mechanism to get account ID from whatever is passed in dispatchers.
260262 type Lookup = AccountIdLookup < AccountId , ( ) > ;
261263 /// The index type for storing how many extrinsics an account has signed.
You can’t perform that action at this time.
0 commit comments