cumulus-client-consensus-aura 0.35.0
“AURA consensus algorithm for parachains”
Basename is uppercase README.mdContains an unbounded block loop
SHA-256b11756b668557897ca26d4605cdb84c88e3546b5d39d956b9e8ac3febf31e685
MaleculeH₂(DbF)Md₂(In₃Pa)
Evidence
1:3… Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
4
5// Cumulus is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at you …
23:34… Ra, the Substrate crate should be checked.
24
25use codec::Encode;
26use cumulus_primitives_core::{relay_chain::HeadData, PersistedValidationData};
27use polkadot_node_primitives::PoV;
28use polkadot_primitives::{BlockNumber as RBlockNumber, Hash as RHash};
29use sp_runtime::traits::{Block as BlockT, NumberFor};
30use std::{fs, fs::File, path::PathBuf};
31
32mod import_queue;
33
34pub use import_queue::{build_verifier, import_queue, BuildVerifierParams, ImportQueueParams};
35pub use sc_consensus_aura::{
36 slot_duration, standalone::slot_duration_at, AuraVerifier, BuildAuraWorkerParams,
37 SlotProportion,
38};
39pub use sc_consensus_slots::InherentDataProviderExt;
40
41pub mod collator;
⋯4 lines
64:85… ate PoV export directory");
65 return;
66 }
67
68 let mut file = match File::create(path.join(format!("{block_hash:?}_{block_number}.pov"))) {
69 Ok(f) => f,
70 Err(error) => {
71 tracing::error!(target: LOG_TARGET …
8:31… version.
9
10// Cumulus is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14
15// You should have received a copy of the GNU General Public License
16// along with Cumulus. If not, see <https://www.gnu.org/licenses/>.
17
18use super::CollatorMessage;
19use crate::{
20 collator::{self as collator_util, BuildBlockAndImportParams, Collator, SlotClaim},
21 collators::{
22 check_validation_code_or_log,
23 slot_based::{
24 relay_chain_data_cache::RelayChainDataCache,
25 scheduling::SchedulingInfo,
26 slot_timer::{SlotInfo, SlotTimer},
27 },
28 BackingGroupConnectionHelper, RelayHash, RelayParentData,
29 },
30 LOG_TARGET,
31};
32use codec::{Codec, Encode};
33use cumulus_client_collator::service::ServiceInterface as CollatorServiceInterface;
34use cumulus_client_consensus_common::{
35 self as consensus_common, get_relay_slot, ParachainBlockImportMarker,
36};
37use cumulus_client_proof_size_recording::prepare_proof_size_recording_aux_data;
38use cumulus_primitives_aura::{AuraUnincludedSegmentApi, Slot};
39use cumulus_primitives_core::{
40 BlockBundleInfo, ClaimQueueOffset, CoreInfo, CoreSelector, CumulusDigestItem,
41 PersistedValidationData, RelayParentOffsetApi, SchedulingProof, SchedulingV3EnabledApi,
42 TargetBlockRate,
43};
44use cumulus_relay_chain_interface::RelayChainInterface;
45use futures::prelude::*;
46use polkadot_primitives::{Block as RelayBlock, CoreIndex, Header as RelayHeader, Id as ParaId};
47use sc_client_api::{backend::AuxStore, BlockBackend, BlockOf, UsageProvider};
48use sc_consensus::BlockImport;
49use sc_consensus_aura::SlotDuration;
50use sc_network_types::PeerId;
51use sp_api::{ApiExt, ProofRecorder, ProvideRuntimeApi, StorageProof};
52use sp_application_crypto::AppPublic;
53use sp_block_builder::BlockBuilder;
54use sp_blockchain::HeaderBackend;
55use sp_consensus::Environment;
232:9… imer.set_offset_by_scheduling_version(v3_enabled, slot_offset);
233
234 loop {
235 let _ = scheduling_info
236 .ensure_initialized(&relay_client, &mut relay_chain_data_cache)
⋯3 lines
Showing the top 5 files — 2 more files (25 regions) not shown.
No evidence locations were recorded for this file. Raw result