mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
@@ -32,8 +32,8 @@ use polkadot_node_subsystem::{
|
||||
messages::{
|
||||
AvailabilityStoreMessage, BitfieldDistributionMessage, RuntimeApiMessage, RuntimeApiRequest,
|
||||
},
|
||||
overseer, ActivatedLeaf, FromOrchestra, LeafStatus, OverseerSignal, PerLeafSpan,
|
||||
SpawnedSubsystem, SubsystemError, SubsystemResult, SubsystemSender,
|
||||
overseer, ActivatedLeaf, FromOrchestra, OverseerSignal, PerLeafSpan, SpawnedSubsystem,
|
||||
SubsystemError, SubsystemResult, SubsystemSender,
|
||||
};
|
||||
use polkadot_node_subsystem_util::{self as util, Validator};
|
||||
use polkadot_primitives::{AvailabilityBitfield, CoreState, Hash, ValidatorIndex};
|
||||
@@ -257,16 +257,6 @@ async fn handle_active_leaves_update<Sender>(
|
||||
where
|
||||
Sender: overseer::BitfieldSigningSenderTrait,
|
||||
{
|
||||
if let LeafStatus::Stale = leaf.status {
|
||||
gum::debug!(
|
||||
target: LOG_TARGET,
|
||||
relay_parent = ?leaf.hash,
|
||||
block_number = ?leaf.number,
|
||||
"Skip bitfield signing for stale leaf"
|
||||
);
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
let span = PerLeafSpan::new(leaf.span, "bitfield-signing");
|
||||
let span_delay = span.child("delay");
|
||||
let wait_until = Instant::now() + SPAWNED_TASK_DELAY;
|
||||
|
||||
@@ -31,8 +31,8 @@ use polkadot_node_subsystem::{
|
||||
CandidateBackingMessage, ChainApiMessage, ProspectiveParachainsMessage, ProvisionableData,
|
||||
ProvisionerInherentData, ProvisionerMessage, RuntimeApiMessage, RuntimeApiRequest,
|
||||
},
|
||||
overseer, ActivatedLeaf, ActiveLeavesUpdate, FromOrchestra, LeafStatus, OverseerSignal,
|
||||
PerLeafSpan, RuntimeApiError, SpawnedSubsystem, SubsystemError,
|
||||
overseer, ActivatedLeaf, ActiveLeavesUpdate, FromOrchestra, OverseerSignal, PerLeafSpan,
|
||||
RuntimeApiError, SpawnedSubsystem, SubsystemError,
|
||||
};
|
||||
use polkadot_node_subsystem_util::{
|
||||
request_availability_cores, request_persisted_validation_data,
|
||||
@@ -421,13 +421,7 @@ async fn send_inherent_data(
|
||||
"Selected disputes"
|
||||
);
|
||||
|
||||
// Only include bitfields on fresh leaves. On chain reversions, we want to make sure that
|
||||
// there will be at least one block, which cannot get disputed, so the chain can make progress.
|
||||
let bitfields = match leaf.status {
|
||||
LeafStatus::Fresh =>
|
||||
select_availability_bitfields(&availability_cores, bitfields, &leaf.hash),
|
||||
LeafStatus::Stale => Vec::new(),
|
||||
};
|
||||
let bitfields = select_availability_bitfields(&availability_cores, bitfields, &leaf.hash);
|
||||
|
||||
gum::trace!(
|
||||
target: LOG_TARGET,
|
||||
|
||||
Reference in New Issue
Block a user