mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
Change Fixed to WeightInfoBounds for Polkadot (#7077)
* Add polkadot XCM benchmarks * Add temp * ".git/.scripts/commands/bench/bench.sh" xcm polkadot pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench/bench.sh" xcm polkadot pallet_xcm_benchmarks::generic * Add weights to XCM on Polkadot * Make CI fail on old files Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update template Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add reserve_asset_deposited benchmark * ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::generic * Update weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Change initiate_reserve_deposit in runtime weights * Update weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Remove trusted reserves from runtimes * Fix pallet-xcm-benchmarks mock * Fix test * Change pallet xcm weigher in kusama * Fix * Remove merge conflict artifact * Remove initiate_reserve_withdraw from generic benchmarks * Add missing implementation to XCM benchmark * Fix failing karura test * Remove dbg! Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> * Fix fmt * Revert "Fix fmt" This reverts commit 676f2d8db07d7427750c79f95494d4988d06fda5. * Fix fmt * Remove duplicated template code * Add back part of the template * ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible * Don't skip reserve asset deposited benchmark * Remove call to non-generated benchmark yet * Underscore unused parameter * Skip not supported benchmarks and hardcode value * Remove ReserveAssetDeposited benchmark * ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible * Add back ReserveAssetDeposited * ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible * Use default benchmark for ReserveAssetDeposited * Add missing parameter * Revert reserve asset deposited benchmark * ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm kusama pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm westend pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::fungible * Add 'real' benchmarks * Add TrustedReserve to actual XcmConfig * Add TrustedReserve to actual XcmConfig (fix) * Whitelist from benchmarking XCM storage keys read each block (#6871) * Whitelist from benchmarking XCM storage keys read each block * ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm * ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm * ".git/.scripts/commands/bench/bench.sh" runtime westend pallet_xcm * ".git/.scripts/commands/bench/bench.sh" runtime rococo pallet_xcm * Remove XcmPallet SupportedVersion from the benchmark whitelist * ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm * ".git/.scripts/commands/bench/bench.sh" runtime kusama pallet_xcm * ".git/.scripts/commands/bench/bench.sh" runtime westend pallet_xcm * ".git/.scripts/commands/bench/bench.sh" runtime rococo pallet_xcm * WIP * Add necessary traits, remove unnecessary whitelisted keys * Fix tests * Remove unused file * Remove unused import --------- Co-authored-by: command-bot <> * ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::fungible * ".git/.scripts/commands/bench/bench.sh" xcm westend pallet_xcm_benchmarks::fungible * Fix spellchecker issues * Remove unused migration code --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c63b557e50
commit
cc9f8129af
@@ -25,7 +25,7 @@
|
||||
//! * Determine if the para is scheduled on any core by fetching the `availability_cores` Runtime API.
|
||||
//! * Use the Runtime API subsystem to fetch the full validation data.
|
||||
//! * Invoke the `collator`, and use its outputs to produce a [`CandidateReceipt`], signed with the configuration's `key`.
|
||||
//! * Dispatch a [`CollatorProtocolMessage::DistributeCollation`](receipt, pov)`.
|
||||
//! * Dispatch a [`CollatorProtocolMessage::DistributeCollation`]`(receipt, pov)`.
|
||||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ pub struct InitialData {
|
||||
pub(crate) struct Initialized {
|
||||
keystore: Arc<LocalKeystore>,
|
||||
runtime_info: RuntimeInfo,
|
||||
/// This is the highest `SessionIndex` seen via `ActiveLeavesUpdate`. It doen't matter if it was
|
||||
/// This is the highest `SessionIndex` seen via `ActiveLeavesUpdate`. It doesn't matter if it was
|
||||
/// cached successfully or not. It is used to detect ancient disputes.
|
||||
highest_session_seen: SessionIndex,
|
||||
/// Will be set to `true` if an error occured during the last caching attempt
|
||||
|
||||
@@ -123,14 +123,14 @@ impl Metrics {
|
||||
.map(|metrics| metrics.participation_pipeline_durations.start_timer())
|
||||
}
|
||||
|
||||
/// Set the priority_queue_size metric
|
||||
/// Set the `priority_queue_size` metric
|
||||
pub fn report_priority_queue_size(&self, size: u64) {
|
||||
if let Some(metrics) = &self.0 {
|
||||
metrics.participation_priority_queue_size.set(size);
|
||||
}
|
||||
}
|
||||
|
||||
/// Set the best_effort_queue_size metric
|
||||
/// Set the `best_effort_queue_size` metric
|
||||
pub fn report_best_effort_queue_size(&self, size: u64) {
|
||||
if let Some(metrics) = &self.0 {
|
||||
metrics.participation_best_effort_queue_size.set(size);
|
||||
|
||||
@@ -38,9 +38,9 @@ fn make_dummy_comparator(
|
||||
CandidateComparator::new_dummy(relay_parent, *req.candidate_hash())
|
||||
}
|
||||
|
||||
/// Make a partial clone of the given ParticipationRequest, just missing
|
||||
/// the request_timer field. We prefer this helper to implementing Clone
|
||||
/// for ParticipationRequest, since we only clone requests in tests.
|
||||
/// Make a partial clone of the given `ParticipationRequest`, just missing
|
||||
/// the `request_timer` field. We prefer this helper to implementing Clone
|
||||
/// for `ParticipationRequest`, since we only clone requests in tests.
|
||||
fn clone_request(request: &ParticipationRequest) -> ParticipationRequest {
|
||||
ParticipationRequest {
|
||||
candidate_receipt: request.candidate_receipt.clone(),
|
||||
|
||||
@@ -57,13 +57,13 @@ const LRU_OBSERVED_BLOCKS_CAPACITY: NonZeroUsize = match NonZeroUsize::new(20) {
|
||||
None => panic!("Observed blocks cache size must be non-zero"),
|
||||
};
|
||||
|
||||
/// ScrapedUpdates
|
||||
/// `ScrapedUpdates`
|
||||
///
|
||||
/// Updates to on_chain_votes and included receipts for new active leaf and its unprocessed
|
||||
/// Updates to `on_chain_votes` and included receipts for new active leaf and its unprocessed
|
||||
/// ancestors.
|
||||
///
|
||||
/// on_chain_votes: New votes as seen on chain
|
||||
/// included_receipts: Newly included parachain block candidate receipts as seen on chain
|
||||
/// `on_chain_votes`: New votes as seen on chain
|
||||
/// `included_receipts`: Newly included parachain block candidate receipts as seen on chain
|
||||
pub struct ScrapedUpdates {
|
||||
pub on_chain_votes: Vec<ScrapedOnChainVotes>,
|
||||
pub included_receipts: Vec<CandidateReceipt>,
|
||||
|
||||
@@ -178,7 +178,7 @@ pub fn stringify_panic_payload(payload: Box<dyn Any + Send + 'static>) -> String
|
||||
|
||||
/// In case of node and worker version mismatch (as a result of in-place upgrade), send `SIGTERM`
|
||||
/// to the node to tear it down and prevent it from raising disputes on valid candidates. Node
|
||||
/// restart should be handled by the node owner. As node exits, unix sockets opened to workers
|
||||
/// restart should be handled by the node owner. As node exits, Unix sockets opened to workers
|
||||
/// get closed by the OS and other workers receive error on socket read and also exit. Preparation
|
||||
/// jobs are written to the temporary files that are renamed to real artifacts on the node side, so
|
||||
/// no leftover artifacts are possible.
|
||||
|
||||
@@ -94,7 +94,7 @@ pub mod landlock {
|
||||
}
|
||||
}
|
||||
|
||||
/// Basaed on the given `status`, returns a single bool indicating whether the given landlock
|
||||
/// Based on the given `status`, returns a single bool indicating whether the given landlock
|
||||
/// ABI is fully enabled on the current Linux environment.
|
||||
pub fn status_is_fully_enabled(
|
||||
status: &Result<RulesetStatus, Box<dyn std::error::Error>>,
|
||||
|
||||
@@ -186,7 +186,7 @@ struct State {
|
||||
/// Config for aggression.
|
||||
aggression_config: AggressionConfig,
|
||||
|
||||
/// HashMap from active leaves to spans
|
||||
/// `HashMap` from active leaves to spans
|
||||
spans: HashMap<Hash, jaeger::PerLeafSpan>,
|
||||
|
||||
/// Current approval checking finality lag.
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//! Provides "fake" runtime api implementations
|
||||
//! Provides "fake" runtime API implementations
|
||||
//!
|
||||
//! These are used to provide a type that implements these runtime apis without requiring to import the native runtimes.
|
||||
//! These are used to provide a type that implements these runtime APIs without requiring to import the native runtimes.
|
||||
|
||||
use beefy_primitives::crypto::{AuthorityId as BeefyId, Signature as BeefySignature};
|
||||
use grandpa_primitives::AuthorityId as GrandpaId;
|
||||
@@ -40,7 +40,7 @@ use sp_weights::Weight;
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
sp_api::decl_runtime_apis! {
|
||||
/// This runtime api is only implemented for the test runtime!
|
||||
/// This runtime API is only implemented for the test runtime!
|
||||
pub trait GetLastTimestamp {
|
||||
/// Returns the last timestamp of a runtime.
|
||||
fn get_last_timestamp() -> u64;
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
//! this approach to put back pressure on only a single source (as all are the same). If a module
|
||||
//! has a task that requires this, it indeed has to spawn a long running task which can do the
|
||||
//! back-pressure on that message source or we make it its own subsystem. This is just one of the
|
||||
//! situations that justifies the complexity of asynchronism.
|
||||
//! situations that justifies the complexity of asynchrony.
|
||||
|
||||
use std::{convert::identity, sync::Arc};
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ impl Default for ReputationAggregator {
|
||||
}
|
||||
|
||||
impl ReputationAggregator {
|
||||
/// New ReputationAggregator
|
||||
/// New `ReputationAggregator`
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user