mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
parachain-system (#296)
* rename parachain-{upgrade -> system}
* Merge message-broker into parachain-system
* Remove message-broker and clean up
* Update docs
* Test upward messages sending
And also update the relay-sproof-builder so that it allows to set the
relay dispatch queue size for the given parachain.
* Test horizontal message sending
* Remove old inherent definitions
This commit is contained in:
+12
-28
@@ -18,7 +18,7 @@
|
||||
|
||||
use cumulus_network::WaitToAnnounce;
|
||||
use cumulus_primitives::{
|
||||
inherents::{self, VALIDATION_DATA_IDENTIFIER},
|
||||
inherents,
|
||||
well_known_keys, InboundDownwardMessage, InboundHrmpMessage, OutboundHrmpMessage,
|
||||
PersistedValidationData, relay_chain,
|
||||
};
|
||||
@@ -286,45 +286,29 @@ where
|
||||
})
|
||||
.ok()?;
|
||||
|
||||
let validation_data = {
|
||||
let system_inherent_data = {
|
||||
let relay_chain_state = self.collect_relay_storage_proof(relay_parent)?;
|
||||
inherents::ValidationDataType {
|
||||
let downward_messages = self.retrieve_dmq_contents(relay_parent)?;
|
||||
let horizontal_messages =
|
||||
self.retrieve_all_inbound_hrmp_channel_contents(relay_parent)?;
|
||||
|
||||
inherents::SystemInherentData {
|
||||
downward_messages,
|
||||
horizontal_messages,
|
||||
validation_data: validation_data.clone(),
|
||||
relay_chain_state,
|
||||
}
|
||||
};
|
||||
|
||||
inherent_data
|
||||
.put_data(VALIDATION_DATA_IDENTIFIER, &validation_data)
|
||||
.map_err(|e| {
|
||||
error!(
|
||||
target: "cumulus-collator",
|
||||
"Failed to put validation function params into inherent data: {:?}",
|
||||
e,
|
||||
)
|
||||
})
|
||||
.ok()?;
|
||||
|
||||
let message_ingestion_data = {
|
||||
let downward_messages = self.retrieve_dmq_contents(relay_parent)?;
|
||||
let horizontal_messages =
|
||||
self.retrieve_all_inbound_hrmp_channel_contents(relay_parent)?;
|
||||
|
||||
inherents::MessageIngestionType {
|
||||
downward_messages,
|
||||
horizontal_messages,
|
||||
}
|
||||
};
|
||||
|
||||
inherent_data
|
||||
.put_data(
|
||||
inherents::MESSAGE_INGESTION_IDENTIFIER,
|
||||
&message_ingestion_data,
|
||||
inherents::SYSTEM_INHERENT_IDENTIFIER,
|
||||
&system_inherent_data,
|
||||
)
|
||||
.map_err(|e| {
|
||||
error!(
|
||||
target: "cumulus-collator",
|
||||
"Failed to put downward messages into inherent data: {:?}",
|
||||
"Failed to put the system inherent into inherent data: {:?}",
|
||||
e,
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user