mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Bump to latest Substrate (#898)
* Flag to force kusama runtime * Chainspecs for kusama * Polkadot config for westend Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * network/src/legacy/gossip: Wrap GossipEngine in Arc Mutex & lock it on use `GossipEngine` in itself has no need to be Send and Sync, given that it does not rely on separately spawned background tasks anymore. `RegisteredMessageValidator` needs to be `Send` and `Sync` due to the inherited trait bounds from implementing `GossipService`. In addition `RegisteredMessageValidator` derives `Clone`. Thereby `GossipEngine` needs to be wrapped in an `Arc` and `Mutex` to keep the status quo. * Needed fixes. * Fixes * Fixed build * Fixed build w benchmarking CLI * Fixed building tests * Added --dev shortcut Co-authored-by: arkpar <arkady.paronyan@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@@ -164,9 +164,11 @@ pub fn validate_candidate_internal<E: Externalities + 'static>(
|
||||
Some(1024),
|
||||
HostFunctions::host_functions(),
|
||||
false,
|
||||
8
|
||||
);
|
||||
let res = executor.call_in_wasm(
|
||||
validation_code,
|
||||
None,
|
||||
"validate_block",
|
||||
encoded_call_data,
|
||||
&mut ext,
|
||||
@@ -192,22 +194,6 @@ impl sp_externalities::Externalities for ValidationExternalities {
|
||||
panic!("child_storage_hash: unsupported feature for parachain validation")
|
||||
}
|
||||
|
||||
fn original_storage(&self, _: &[u8]) -> Option<Vec<u8>> {
|
||||
panic!("original_sorage: unsupported feature for parachain validation")
|
||||
}
|
||||
|
||||
fn original_child_storage(&self, _: ChildStorageKey, _: ChildInfo, _: &[u8]) -> Option<Vec<u8>> {
|
||||
panic!("original_child_storage: unsupported feature for parachain validation")
|
||||
}
|
||||
|
||||
fn original_storage_hash(&self, _: &[u8]) -> Option<Vec<u8>> {
|
||||
panic!("original_storage_hash: unsupported feature for parachain validation")
|
||||
}
|
||||
|
||||
fn original_child_storage_hash(&self, _: ChildStorageKey, _: ChildInfo, _: &[u8]) -> Option<Vec<u8>> {
|
||||
panic!("original_child_storage_hash: unsupported feature for parachain validation")
|
||||
}
|
||||
|
||||
fn child_storage(&self, _: ChildStorageKey, _: ChildInfo, _: &[u8]) -> Option<Vec<u8>> {
|
||||
panic!("child_storage: unsupported feature for parachain validation")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user