mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Parachains inclusion.rs to Frame V2 (#3440)
* frame v2 * migrate runtimes * migrate more * comments * docs * cleanup * Adjust visibility on storage items Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
@@ -137,7 +137,7 @@ decl_module! {
|
||||
.map(|(_, c)| *c)
|
||||
.collect();
|
||||
|
||||
<inclusion::Module<T>>::collect_disputed(current_session_disputes)
|
||||
<inclusion::Pallet<T>>::collect_disputed(current_session_disputes)
|
||||
.into_iter()
|
||||
.map(|core| (core, FreedReason::Concluded))
|
||||
.collect()
|
||||
@@ -149,7 +149,7 @@ decl_module! {
|
||||
// Process new availability bitfields, yielding any availability cores whose
|
||||
// work has now concluded.
|
||||
let expected_bits = <scheduler::Module<T>>::availability_cores().len();
|
||||
let freed_concluded = <inclusion::Module<T>>::process_bitfields(
|
||||
let freed_concluded = <inclusion::Pallet<T>>::process_bitfields(
|
||||
expected_bits,
|
||||
signed_bitfields,
|
||||
<scheduler::Module<T>>::core_para,
|
||||
@@ -164,7 +164,7 @@ decl_module! {
|
||||
// Handle timeouts for any availability core work.
|
||||
let availability_pred = <scheduler::Module<T>>::availability_timeout_predicate();
|
||||
let freed_timeout = if let Some(pred) = availability_pred {
|
||||
<inclusion::Module<T>>::collect_pending(pred)
|
||||
<inclusion::Pallet<T>>::collect_pending(pred)
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
@@ -199,7 +199,7 @@ decl_module! {
|
||||
|
||||
// Process backed candidates according to scheduled cores.
|
||||
let parent_storage_root = parent_header.state_root().clone();
|
||||
let occupied = <inclusion::Module<T>>::process_candidates(
|
||||
let occupied = <inclusion::Pallet<T>>::process_candidates(
|
||||
parent_storage_root,
|
||||
backed_candidates,
|
||||
<scheduler::Module<T>>::scheduled(),
|
||||
|
||||
Reference in New Issue
Block a user