diff --git a/domain_block_preprocessor/inherents/struct.CreateInherentDataProvider.html b/domain_block_preprocessor/inherents/struct.CreateInherentDataProvider.html index 93e36fe4c1..64d91604d9 100644 --- a/domain_block_preprocessor/inherents/struct.CreateInherentDataProvider.html +++ b/domain_block_preprocessor/inherents/struct.CreateInherentDataProvider.html @@ -6,7 +6,7 @@ Block: BlockT, CBlock: BlockT, CClient: ProvideRuntimeApi<CBlock> + HeaderBackend<CBlock>, - CClient::Api: DomainsApi<CBlock, Block::Header>,
§

type InherentDataProviders = (InherentDataProvider, InherentDataProvider)

The inherent data providers that will be created.
source§

fn create_inherent_data_providers<'life0, 'async_trait>( + CClient::Api: DomainsApi<CBlock, Block::Header>,

§

type InherentDataProviders = (InherentDataProvider, InherentDataProvider)

The inherent data providers that will be created.
source§

fn create_inherent_data_providers<'life0, 'async_trait>( &'life0 self, _parent: Block::Hash, _extra_args: () diff --git a/domain_pallet_executive/struct.Pallet.html b/domain_pallet_executive/struct.Pallet.html index 074286e851..c685a477f9 100644 --- a/domain_pallet_executive/struct.Pallet.html +++ b/domain_pallet_executive/struct.Pallet.html @@ -7,7 +7,7 @@ [Hooks::on_finalize]). Read more

§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( data: &InherentData ) -> Result<Option<Self::Error>, Self::Error>

Determines whether this inherent is required in this block. Read more
source§

fn check_inherent( call: &Self::Call, diff --git a/domain_pallet_executive/type.Module.html b/domain_pallet_executive/type.Module.html index 85452a7f41..a27b893750 100644 --- a/domain_pallet_executive/type.Module.html +++ b/domain_pallet_executive/type.Module.html @@ -7,7 +7,7 @@ [Hooks::on_finalize]). Read more

§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( data: &InherentData ) -> Result<Option<Self::Error>, Self::Error>

Determines whether this inherent is required in this block. Read more
source§

fn check_inherent( call: &Self::Call, diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index ed69679500..a398c445a2 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -16,7 +16,7 @@ "pallet_subspace":[["impl<T: Config> From<Error<T>> for &'static str"],["impl<T: Config> From<Event<T>> for ()"],["impl<T: Config> From<Error<T>> for DispatchError"]], "pallet_transaction_fees":[["impl<T: Config> From<Event<T>> for ()"]], "pallet_transporter":[["impl<T: Config> From<Error<T>> for DispatchError"],["impl<T: Config> From<Error<T>> for &'static str"],["impl<T: Config> From<Event<T>> for ()"]], -"sc_consensus_subspace":[["impl<Header: HeaderT> From<ApiError> for Error<Header>"],["impl<Header: HeaderT> From<Error> for Error<Header>"],["impl<Header: HeaderT> From<Error> for Error<Header>"],["impl<Header: HeaderT> From<Error> for Error<Header>"],["impl<Header> From<Error<Header>> for Stringwhere\n Header: HeaderT,"],["impl<Header> From<VerificationError<Header>> for Error<Header>where\n Header: HeaderT,"]], +"sc_consensus_subspace":[["impl<Header: HeaderT> From<ApiError> for Error<Header>"],["impl<Header: HeaderT> From<Error> for Error<Header>"],["impl<Header: HeaderT> From<Error> for Error<Header>"],["impl<Header: HeaderT> From<Error> for Error<Header>"],["impl<Header> From<Error<Header>> for Stringwhere\n Header: HeaderT,"],["impl<Header> From<VerificationError<Header>> for Error<Header>where\n Header: HeaderT,"]], "sc_subspace_block_relay":[["impl From<Error> for BlockRelayConfigurationError"]], "sp_consensus_subspace":[["impl From<Box<dyn Fn([u8; 32], u64, PotOutput, bool) -> bool + Send + Sync, Global>> for PotExtension"],["impl From<PosTableType> for PosExtension"],["impl<RewardAddress> From<&Solution<Public, RewardAddress>> for WrappedSolution"],["impl From<PotOutput> for WrappedPotOutput"],["impl<'a> From<&'a VerifySolutionParams> for WrappedVerifySolutionParams<'a>"],["impl From<Kzg> for KzgExtension"],["impl From<SubspaceJustification> for Justification"],["impl From<Error> for String"]], "sp_domains":[["impl From<DomainId> for u32"],["impl From<u32> for DomainId"]], diff --git a/implementors/core/marker/trait.Sync.js b/implementors/core/marker/trait.Sync.js index fdb3e07ef4..4c87d50ea0 100644 --- a/implementors/core/marker/trait.Sync.js +++ b/implementors/core/marker/trait.Sync.js @@ -41,7 +41,7 @@ "subspace_core_primitives":[["impl<T> Sync for Blake3Checksummed<T>where\n T: Sync,",1,["subspace_core_primitives::checksum::Blake3Checksummed"]],["impl Sync for Polynomial",1,["subspace_core_primitives::crypto::kzg::Polynomial"]],["impl Sync for Commitment",1,["subspace_core_primitives::crypto::kzg::Commitment"]],["impl Sync for Witness",1,["subspace_core_primitives::crypto::kzg::Witness"]],["impl Sync for Kzg",1,["subspace_core_primitives::crypto::kzg::Kzg"]],["impl Sync for Scalar",1,["subspace_core_primitives::crypto::Scalar"]],["impl Sync for BlockObject",1,["subspace_core_primitives::objects::BlockObject"]],["impl Sync for BlockObjectMapping",1,["subspace_core_primitives::objects::BlockObjectMapping"]],["impl Sync for PieceObject",1,["subspace_core_primitives::objects::PieceObject"]],["impl Sync for PieceObjectMapping",1,["subspace_core_primitives::objects::PieceObjectMapping"]],["impl Sync for GlobalObject",1,["subspace_core_primitives::objects::GlobalObject"]],["impl Sync for SBucket",1,["subspace_core_primitives::pieces::SBucket"]],["impl Sync for PieceIndex",1,["subspace_core_primitives::pieces::PieceIndex"]],["impl Sync for PieceOffset",1,["subspace_core_primitives::pieces::PieceOffset"]],["impl Sync for RawRecord",1,["subspace_core_primitives::pieces::RawRecord"]],["impl Sync for Record",1,["subspace_core_primitives::pieces::Record"]],["impl Sync for RecordCommitment",1,["subspace_core_primitives::pieces::RecordCommitment"]],["impl Sync for RecordWitness",1,["subspace_core_primitives::pieces::RecordWitness"]],["impl Sync for ChunkWitness",1,["subspace_core_primitives::pieces::ChunkWitness"]],["impl Sync for Piece",1,["subspace_core_primitives::pieces::Piece"]],["impl Sync for PieceArray",1,["subspace_core_primitives::pieces::PieceArray"]],["impl Sync for FlatPieces",1,["subspace_core_primitives::pieces::FlatPieces"]],["impl Sync for SegmentIndex",1,["subspace_core_primitives::segments::SegmentIndex"]],["impl Sync for SegmentCommitment",1,["subspace_core_primitives::segments::SegmentCommitment"]],["impl Sync for HistorySize",1,["subspace_core_primitives::segments::HistorySize"]],["impl Sync for RecordedHistorySegment",1,["subspace_core_primitives::segments::RecordedHistorySegment"]],["impl Sync for ArchivedHistorySegment",1,["subspace_core_primitives::segments::ArchivedHistorySegment"]],["impl Sync for Randomness",1,["subspace_core_primitives::Randomness"]],["impl Sync for PosSeed",1,["subspace_core_primitives::PosSeed"]],["impl Sync for PosProof",1,["subspace_core_primitives::PosProof"]],["impl Sync for PotKey",1,["subspace_core_primitives::PotKey"]],["impl Sync for PotSeed",1,["subspace_core_primitives::PotSeed"]],["impl Sync for PotOutput",1,["subspace_core_primitives::PotOutput"]],["impl Sync for PotCheckpoints",1,["subspace_core_primitives::PotCheckpoints"]],["impl Sync for PublicKey",1,["subspace_core_primitives::PublicKey"]],["impl Sync for RewardSignature",1,["subspace_core_primitives::RewardSignature"]],["impl Sync for ArchivedBlockProgress",1,["subspace_core_primitives::ArchivedBlockProgress"]],["impl Sync for LastArchivedBlock",1,["subspace_core_primitives::LastArchivedBlock"]],["impl Sync for SegmentHeader",1,["subspace_core_primitives::SegmentHeader"]],["impl<PublicKey, RewardAddress> Sync for Solution<PublicKey, RewardAddress>where\n PublicKey: Sync,\n RewardAddress: Sync,",1,["subspace_core_primitives::Solution"]],["impl Sync for U256",1,["subspace_core_primitives::U256"]],["impl Sync for SectorSlotChallenge",1,["subspace_core_primitives::SectorSlotChallenge"]],["impl Sync for SectorId",1,["subspace_core_primitives::SectorId"]],["impl<T> Sync for NonEmptyVec<T>where\n T: Sync,",1,["subspace_core_primitives::NonEmptyVec"]],["impl Sync for NonEmptyVecErr",1,["subspace_core_primitives::NonEmptyVecErr"]]], "subspace_erasure_coding":[["impl Sync for ErasureCoding",1,["subspace_erasure_coding::ErasureCoding"]]], "subspace_farmer":[["impl Sync for Identity",1,["subspace_farmer::identity::Identity"]],["impl Sync for NodeRpcClient",1,["subspace_farmer::node_client::node_rpc_client::NodeRpcClient"]],["impl<NC> Sync for CacheWorker<NC>where\n NC: Sync,",1,["subspace_farmer::piece_cache::CacheWorker"]],["impl Sync for PieceCache",1,["subspace_farmer::piece_cache::PieceCache"]],["impl Sync for RayonFiles",1,["subspace_farmer::single_disk_farm::farming::rayon_files::RayonFiles"]],["impl Sync for FarmingError",1,["subspace_farmer::single_disk_farm::farming::FarmingError"]],["impl<'a, PosTable> Sync for PlotAuditOptions<'a, PosTable>",1,["subspace_farmer::single_disk_farm::farming::PlotAuditOptions"]],["impl<Plot> Sync for PlotAudit<Plot>",1,["subspace_farmer::single_disk_farm::farming::PlotAudit"]],["impl Sync for DiskPieceCacheError",1,["subspace_farmer::single_disk_farm::piece_cache::DiskPieceCacheError"]],["impl Sync for Offset",1,["subspace_farmer::single_disk_farm::piece_cache::Offset"]],["impl Sync for DiskPieceCache",1,["subspace_farmer::single_disk_farm::piece_cache::DiskPieceCache"]],["impl Sync for PieceReader",1,["subspace_farmer::single_disk_farm::piece_reader::PieceReader"]],["impl Sync for PlottingError",1,["subspace_farmer::single_disk_farm::plotting::PlottingError"]],["impl Sync for SingleDiskFarmId",1,["subspace_farmer::single_disk_farm::SingleDiskFarmId"]],["impl Sync for SingleDiskFarmInfoLock",1,["subspace_farmer::single_disk_farm::SingleDiskFarmInfoLock"]],["impl Sync for SingleDiskFarmInfo",1,["subspace_farmer::single_disk_farm::SingleDiskFarmInfo"]],["impl Sync for SingleDiskFarmSummary",1,["subspace_farmer::single_disk_farm::SingleDiskFarmSummary"]],["impl<NC, PG> Sync for SingleDiskFarmOptions<NC, PG>where\n NC: Sync,\n PG: Sync,",1,["subspace_farmer::single_disk_farm::SingleDiskFarmOptions"]],["impl Sync for SingleDiskFarmError",1,["subspace_farmer::single_disk_farm::SingleDiskFarmError"]],["impl Sync for SingleDiskFarmScrubError",1,["subspace_farmer::single_disk_farm::SingleDiskFarmScrubError"]],["impl Sync for BackgroundTaskError",1,["subspace_farmer::single_disk_farm::BackgroundTaskError"]],["impl Sync for SectorPlottingDetails",1,["subspace_farmer::single_disk_farm::SectorPlottingDetails"]],["impl !Sync for SingleDiskFarm",1,["subspace_farmer::single_disk_farm::SingleDiskFarm"]],["impl<PV, NC> Sync for FarmerPieceGetter<PV, NC>where\n NC: Sync,\n PV: Sync,",1,["subspace_farmer::utils::farmer_piece_getter::FarmerPieceGetter"]],["impl<NC> Sync for SegmentCommitmentPieceValidator<NC>where\n NC: Sync,",1,["subspace_farmer::utils::piece_validator::SegmentCommitmentPieceValidator"]],["impl Sync for ReadersAndPieces",1,["subspace_farmer::utils::readers_and_pieces::ReadersAndPieces"]],["impl Sync for Ss58ParsingError",1,["subspace_farmer::utils::ss58::Ss58ParsingError"]],["impl<T> Sync for AsyncJoinOnDrop<T>where\n T: Send,",1,["subspace_farmer::utils::AsyncJoinOnDrop"]]], -"subspace_farmer_components":[["impl<'a, Sector> Sync for AuditResult<'a, Sector>where\n Sector: Sync,",1,["subspace_farmer_components::auditing::AuditResult"]],["impl Sync for PieceGetterRetryPolicy",1,["subspace_farmer_components::plotting::PieceGetterRetryPolicy"]],["impl Sync for PlottedSector",1,["subspace_farmer_components::plotting::PlottedSector"]],["impl Sync for PlottingError",1,["subspace_farmer_components::plotting::PlottingError"]],["impl<'a, PosTable, PG> Sync for PlotSectorOptions<'a, PosTable, PG>where\n PG: Sync,\n <PosTable as Table>::Generator: Sync,",1,["subspace_farmer_components::plotting::PlotSectorOptions"]],["impl Sync for DownloadedSector",1,["subspace_farmer_components::plotting::DownloadedSector"]],["impl<'a, PG> Sync for DownloadSectorOptions<'a, PG>where\n PG: Sync,",1,["subspace_farmer_components::plotting::DownloadSectorOptions"]],["impl<'a, PosTable> Sync for EncodeSectorOptions<'a, PosTable>where\n <PosTable as Table>::Generator: Sync,",1,["subspace_farmer_components::plotting::EncodeSectorOptions"]],["impl Sync for ProvingError",1,["subspace_farmer_components::proving::ProvingError"]],["impl<'a, Sector> Sync for SolutionCandidates<'a, Sector>where\n Sector: Sync,",1,["subspace_farmer_components::proving::SolutionCandidates"]],["impl Sync for ReadingError",1,["subspace_farmer_components::reading::ReadingError"]],["impl Sync for PlotRecord",1,["subspace_farmer_components::reading::PlotRecord"]],["impl Sync for SectorMetadata",1,["subspace_farmer_components::sector::SectorMetadata"]],["impl Sync for SectorMetadataChecksummed",1,["subspace_farmer_components::sector::SectorMetadataChecksummed"]],["impl<'a> Sync for EncodedChunksUsed<'a>",1,["subspace_farmer_components::sector::EncodedChunksUsed"]],["impl Sync for SectorContentsMapFromBytesError",1,["subspace_farmer_components::sector::SectorContentsMapFromBytesError"]],["impl Sync for SectorContentsMapEncodeIntoError",1,["subspace_farmer_components::sector::SectorContentsMapEncodeIntoError"]],["impl Sync for SectorContentsMapIterationError",1,["subspace_farmer_components::sector::SectorContentsMapIterationError"]],["impl Sync for SectorContentsMap",1,["subspace_farmer_components::sector::SectorContentsMap"]],["impl<S, A> Sync for ReadAt<S, A>where\n A: Sync,",1,["subspace_farmer_components::ReadAt"]],["impl<B> Sync for AsyncReadBytes<B>where\n B: Sync,",1,["subspace_farmer_components::AsyncReadBytes"]],["impl<'a, T> Sync for ReadAtOffset<'a, T>where\n T: Sync,",1,["subspace_farmer_components::ReadAtOffset"]],["impl Sync for FarmerProtocolInfo",1,["subspace_farmer_components::FarmerProtocolInfo"]]], +"subspace_farmer_components":[["impl<'a, Sector> Sync for AuditResult<'a, Sector>where\n Sector: Sync,",1,["subspace_farmer_components::auditing::AuditResult"]],["impl Sync for PieceGetterRetryPolicy",1,["subspace_farmer_components::plotting::PieceGetterRetryPolicy"]],["impl Sync for PlottedSector",1,["subspace_farmer_components::plotting::PlottedSector"]],["impl Sync for PlottingError",1,["subspace_farmer_components::plotting::PlottingError"]],["impl<'a, PosTable, PG> Sync for PlotSectorOptions<'a, PosTable, PG>where\n PG: Sync,\n <PosTable as Table>::Generator: Sync,",1,["subspace_farmer_components::plotting::PlotSectorOptions"]],["impl Sync for DownloadedSector",1,["subspace_farmer_components::plotting::DownloadedSector"]],["impl<'a, PG> Sync for DownloadSectorOptions<'a, PG>where\n PG: Sync,",1,["subspace_farmer_components::plotting::DownloadSectorOptions"]],["impl<'a, PosTable> Sync for EncodeSectorOptions<'a, PosTable>where\n <PosTable as Table>::Generator: Sync,",1,["subspace_farmer_components::plotting::EncodeSectorOptions"]],["impl Sync for ProvingError",1,["subspace_farmer_components::proving::ProvingError"]],["impl<'a, Sector> Sync for SolutionCandidates<'a, Sector>where\n Sector: Sync,",1,["subspace_farmer_components::proving::SolutionCandidates"]],["impl Sync for ReadingError",1,["subspace_farmer_components::reading::ReadingError"]],["impl Sync for PlotRecord",1,["subspace_farmer_components::reading::PlotRecord"]],["impl Sync for SectorMetadata",1,["subspace_farmer_components::sector::SectorMetadata"]],["impl Sync for SectorMetadataChecksummed",1,["subspace_farmer_components::sector::SectorMetadataChecksummed"]],["impl<'a> Sync for EncodedChunksUsed<'a>",1,["subspace_farmer_components::sector::EncodedChunksUsed"]],["impl Sync for SectorContentsMapFromBytesError",1,["subspace_farmer_components::sector::SectorContentsMapFromBytesError"]],["impl Sync for SectorContentsMapEncodeIntoError",1,["subspace_farmer_components::sector::SectorContentsMapEncodeIntoError"]],["impl Sync for SectorContentsMapIterationError",1,["subspace_farmer_components::sector::SectorContentsMapIterationError"]],["impl Sync for SectorContentsMap",1,["subspace_farmer_components::sector::SectorContentsMap"]],["impl<S, A> Sync for ReadAt<S, A>where\n A: Sync,",1,["subspace_farmer_components::ReadAt"]],["impl<B> Sync for AsyncReadBytes<B>where\n B: Sync,",1,["subspace_farmer_components::AsyncReadBytes"]],["impl<'a, T> Sync for ReadAtOffset<'a, T>where\n T: Sync,",1,["subspace_farmer_components::ReadAtOffset"]],["impl Sync for FarmerProtocolInfo",1,["subspace_farmer_components::FarmerProtocolInfo"]]], "subspace_malicious_operator":[["impl<CNetwork> Sync for DomainInstanceStarter<CNetwork>where\n CNetwork: Send + Sync,",1,["subspace_malicious_operator::malicious_domain_instance_starter::DomainInstanceStarter"]]], "subspace_metrics":[["impl Sync for RegistryAdapter",1,["subspace_metrics::RegistryAdapter"]],["impl Sync for metrics",1,["subspace_metrics::metrics"]]], "subspace_networking":[["impl Sync for PeerAddressRemovedEvent",1,["subspace_networking::behavior::persistent_parameters::PeerAddressRemovedEvent"]],["impl Sync for KnownPeersManagerConfig",1,["subspace_networking::behavior::persistent_parameters::KnownPeersManagerConfig"]],["impl Sync for KnownPeersManagerPersistenceError",1,["subspace_networking::behavior::persistent_parameters::KnownPeersManagerPersistenceError"]],["impl Sync for KnownPeersManager",1,["subspace_networking::behavior::persistent_parameters::KnownPeersManager"]],["impl Sync for KademliaMode",1,["subspace_networking::constructor::KademliaMode"]],["impl<LocalRecordProvider> !Sync for Config<LocalRecordProvider>",1,["subspace_networking::constructor::Config"]],["impl Sync for CreationError",1,["subspace_networking::constructor::CreationError"]],["impl Sync for TopicSubscription",1,["subspace_networking::node::TopicSubscription"]],["impl Sync for GetClosestPeersError",1,["subspace_networking::node::GetClosestPeersError"]],["impl Sync for SubscribeError",1,["subspace_networking::node::SubscribeError"]],["impl Sync for SendRequestError",1,["subspace_networking::node::SendRequestError"]],["impl Sync for Node",1,["subspace_networking::node::Node"]],["impl<LocalRecordProvider> !Sync for NodeRunner<LocalRecordProvider>",1,["subspace_networking::node_runner::NodeRunner"]],["impl<Request> Sync for GenericRequestHandler<Request>",1,["subspace_networking::protocols::request_response::handlers::generic_request_handler::GenericRequestHandler"]],["impl Sync for PieceByIndexRequest",1,["subspace_networking::protocols::request_response::handlers::piece_by_index::PieceByIndexRequest"]],["impl Sync for PieceByIndexResponse",1,["subspace_networking::protocols::request_response::handlers::piece_by_index::PieceByIndexResponse"]],["impl Sync for SegmentHeaderRequest",1,["subspace_networking::protocols::request_response::handlers::segment_header::SegmentHeaderRequest"]],["impl Sync for SegmentHeaderResponse",1,["subspace_networking::protocols::request_response::handlers::segment_header::SegmentHeaderResponse"]],["impl Sync for PeerDiscovered",1,["subspace_networking::shared::PeerDiscovered"]],["impl Sync for MultihashCode",1,["subspace_networking::utils::multihash::MultihashCode"]],["impl Sync for NoPieceValidator",1,["subspace_networking::utils::piece_provider::NoPieceValidator"]],["impl Sync for RetryPolicy",1,["subspace_networking::utils::piece_provider::RetryPolicy"]],["impl<PV> Sync for PieceProvider<PV>where\n PV: Sync,",1,["subspace_networking::utils::piece_provider::PieceProvider"]],["impl<T> Sync for KeyWrapper<T>where\n T: Sync,",1,["subspace_networking::utils::unique_record_binary_heap::KeyWrapper"]],["impl<K> Sync for UniqueRecordBinaryHeap<K>where\n K: Sync,",1,["subspace_networking::utils::unique_record_binary_heap::UniqueRecordBinaryHeap"]],["impl Sync for SubspaceMetrics",1,["subspace_networking::utils::SubspaceMetrics"]]], diff --git a/implementors/sc_consensus/block_import/trait.BlockImport.js b/implementors/sc_consensus/block_import/trait.BlockImport.js index 9fa80c26cc..78e7cc6cbd 100644 --- a/implementors/sc_consensus/block_import/trait.BlockImport.js +++ b/implementors/sc_consensus/block_import/trait.BlockImport.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"sc_consensus_subspace":[["impl<PosTable, Block, Client, Inner, CIDP, AS> BlockImport<Block> for SubspaceBlockImport<PosTable, Block, Client, Inner, CIDP, AS>where\n PosTable: Table,\n Block: BlockT,\n Inner: BlockImport<Block, Error = Error> + Send + Sync,\n Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + AuxStore + Send + Sync,\n Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey> + ApiExt<Block>,\n CIDP: CreateInherentDataProviders<Block, SubspaceLink<Block>> + Send + Sync + 'static,\n AS: AuxStore + Send + Sync + 'static,\n BlockNumber: From<<<Block as BlockT>::Header as HeaderT>::Number>,"]] +"sc_consensus_subspace":[["impl<PosTable, Block, Client, Inner, CIDP, AS> BlockImport<Block> for SubspaceBlockImport<PosTable, Block, Client, Inner, CIDP, AS>where\n PosTable: Table,\n Block: BlockT,\n Inner: BlockImport<Block, Error = Error> + Send + Sync,\n Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + AuxStore + Send + Sync,\n Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey> + ApiExt<Block>,\n CIDP: CreateInherentDataProviders<Block, SubspaceLink<Block>> + Send + Sync + 'static,\n AS: AuxStore + Send + Sync + 'static,\n BlockNumber: From<<<Block as BlockT>::Header as HeaderT>::Number>,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sc_consensus/import_queue/trait.Verifier.js b/implementors/sc_consensus/import_queue/trait.Verifier.js index 1eeeb7be8f..2371490b34 100644 --- a/implementors/sc_consensus/import_queue/trait.Verifier.js +++ b/implementors/sc_consensus/import_queue/trait.Verifier.js @@ -1,4 +1,4 @@ (function() {var implementors = { "domain_client_consensus_relay_chain":[["impl<Block> Verifier<Block> for Verifier<Block>where\n Block: BlockT,"]], -"sc_consensus_subspace":[["impl<PosTable, Block, Client, SelectChain> Verifier<Block> for SubspaceVerifier<PosTable, Block, Client, SelectChain>where\n PosTable: Table,\n Block: BlockT,\n BlockNumber: From<NumberFor<Block>>,\n Client: HeaderBackend<Block> + ProvideRuntimeApi<Block> + Send + Sync + AuxStore,\n Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey>,\n SelectChain: SelectChain<Block>,"]] +"sc_consensus_subspace":[["impl<PosTable, Block, Client, SelectChain> Verifier<Block> for SubspaceVerifier<PosTable, Block, Client, SelectChain>where\n PosTable: Table,\n Block: BlockT,\n BlockNumber: From<NumberFor<Block>>,\n Client: HeaderBackend<Block> + ProvideRuntimeApi<Block> + Send + Sync + AuxStore,\n Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey>,\n SelectChain: SelectChain<Block>,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sc_consensus_slots/trait.SimpleSlotWorker.js b/implementors/sc_consensus_slots/trait.SimpleSlotWorker.js index 732a8574f9..882c8c265b 100644 --- a/implementors/sc_consensus_slots/trait.SimpleSlotWorker.js +++ b/implementors/sc_consensus_slots/trait.SimpleSlotWorker.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"sc_consensus_subspace":[["impl<PosTable, Block, Client, E, Error, SO, L, BS, AS> SimpleSlotWorker<Block> for SubspaceSlotWorker<PosTable, Block, Client, E, SO, L, BS, AS>where\n PosTable: Table,\n Block: BlockT,\n Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + AuxStore + 'static,\n Client::Api: SubspaceApi<Block, FarmerPublicKey>,\n E: Environment<Block, Error = Error> + Send + Sync,\n E::Proposer: Proposer<Block, Error = Error>,\n SO: SyncOracle + Send + Sync,\n L: JustificationSyncLink<Block>,\n BS: BackoffAuthoringBlocksStrategy<NumberFor<Block>> + Send + Sync,\n Error: Error + Send + From<Error> + 'static,\n AS: AuxStore + Send + Sync + 'static,\n BlockNumber: From<<<Block as BlockT>::Header as Header>::Number>,"]] +"sc_consensus_subspace":[["impl<PosTable, Block, Client, E, Error, SO, L, BS, AS> SimpleSlotWorker<Block> for SubspaceSlotWorker<PosTable, Block, Client, E, SO, L, BS, AS>where\n PosTable: Table,\n Block: BlockT,\n Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + AuxStore + 'static,\n Client::Api: SubspaceApi<Block, FarmerPublicKey>,\n E: Environment<Block, Error = Error> + Send + Sync,\n E::Proposer: Proposer<Block, Error = Error>,\n SO: SyncOracle + Send + Sync,\n L: JustificationSyncLink<Block>,\n BS: BackoffAuthoringBlocksStrategy<NumberFor<Block>> + Send + Sync,\n Error: Error + Send + From<Error> + 'static,\n AS: AuxStore + Send + Sync + 'static,\n BlockNumber: From<<<Block as BlockT>::Header as Header>::Number>,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sc_proof_of_time/trait.PotSlotWorker.js b/implementors/sc_proof_of_time/trait.PotSlotWorker.js index e426ab5ff5..477dad34ca 100644 --- a/implementors/sc_proof_of_time/trait.PotSlotWorker.js +++ b/implementors/sc_proof_of_time/trait.PotSlotWorker.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"sc_consensus_subspace":[["impl<PosTable, Block, Client, E, SO, L, BS, AS> PotSlotWorker<Block> for SubspaceSlotWorker<PosTable, Block, Client, E, SO, L, BS, AS>where\n Block: BlockT,\n Client: HeaderBackend<Block> + ProvideRuntimeApi<Block>,\n Client::Api: SubspaceApi<Block, FarmerPublicKey>,\n SO: SyncOracle + Send + Sync,"]] +"sc_consensus_subspace":[["impl<PosTable, Block, Client, E, SO, L, BS, AS> PotSlotWorker<Block> for SubspaceSlotWorker<PosTable, Block, Client, E, SO, L, BS, AS>where\n Block: BlockT,\n Client: HeaderBackend<Block> + ProvideRuntimeApi<Block>,\n Client::Api: SubspaceApi<Block, FarmerPublicKey>,\n SO: SyncOracle + Send + Sync,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sc_transaction_pool/graph/pool/trait.ChainApi.js b/implementors/sc_transaction_pool/graph/pool/trait.ChainApi.js index c3f31c71d1..ca545fc19f 100644 --- a/implementors/sc_transaction_pool/graph/pool/trait.ChainApi.js +++ b/implementors/sc_transaction_pool/graph/pool/trait.ChainApi.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"subspace_service":[["impl<Client, Block, DomainHeader> ChainApi for FullChainApiWrapper<Client, Block, DomainHeader>where\n Block: BlockT,\n <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug,\n Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static,\n DomainHeader: Header,\n Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, DomainHeader>,"]] +"subspace_service":[["impl<Client, Block, DomainHeader> ChainApi for FullChainApiWrapper<Client, Block, DomainHeader>where\n Block: BlockT,\n <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug,\n Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static,\n DomainHeader: Header,\n Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, DomainHeader>,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sc_transaction_pool_api/trait.LocalTransactionPool.js b/implementors/sc_transaction_pool_api/trait.LocalTransactionPool.js index ec45eae3e0..4bc4dbb333 100644 --- a/implementors/sc_transaction_pool_api/trait.LocalTransactionPool.js +++ b/implementors/sc_transaction_pool_api/trait.LocalTransactionPool.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"subspace_service":[["impl<Block, Client, DomainHeader> LocalTransactionPool for BasicPoolWrapper<Block, FullChainApiWrapper<Client, Block, DomainHeader>>where\n Block: BlockT,\n <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug,\n DomainHeader: HeaderT,\n Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static,\n Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,"]] +"subspace_service":[["impl<Block, Client, DomainHeader> LocalTransactionPool for BasicPoolWrapper<Block, FullChainApiWrapper<Client, Block, DomainHeader>>where\n Block: BlockT,\n <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug,\n DomainHeader: HeaderT,\n Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static,\n Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/scale_info/trait.TypeInfo.js b/implementors/scale_info/trait.TypeInfo.js index 8a901d1cf1..47e5282fd3 100644 --- a/implementors/scale_info/trait.TypeInfo.js +++ b/implementors/scale_info/trait.TypeInfo.js @@ -14,7 +14,7 @@ "pallet_operator_rewards":[["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n T: Config + 'static,"]], "pallet_rewards":[["impl<T> TypeInfo for Event<T>where\n T::AccountId: TypeInfo + 'static,\n <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,"],["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n T: Config + 'static,"]], "pallet_runtime_configs":[["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n T: Config + 'static,"]], -"pallet_subspace":[["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n Box<EquivocationProof<HeaderFor<T>>>: TypeInfo + 'static,\n Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>: TypeInfo + 'static,\n Option<BlockNumberFor<T>>: TypeInfo + 'static,\n T: Config + 'static,"],["impl TypeInfo for AllowAuthoringBy"],["impl<T> TypeInfo for Error<T>where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,"],["impl<T> TypeInfo for Event<T>where\n T::AccountId: TypeInfo + 'static,\n BlockNumberFor<T>: TypeInfo + 'static,\n T::Hash: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,"],["impl TypeInfo for SolutionRangeOverride"]], +"pallet_subspace":[["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n Box<EquivocationProof<HeaderFor<T>>>: TypeInfo + 'static,\n Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>: TypeInfo + 'static,\n Option<BlockNumberFor<T>>: TypeInfo + 'static,\n T: Config + 'static,"],["impl TypeInfo for AllowAuthoringBy"],["impl<T> TypeInfo for Error<T>where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,"],["impl<T> TypeInfo for Event<T>where\n T::AccountId: TypeInfo + 'static,\n BlockNumberFor<T>: TypeInfo + 'static,\n T::Hash: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,"],["impl TypeInfo for SolutionRangeOverride"]], "pallet_transaction_fees":[["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n T: Config + 'static,"],["impl<T> TypeInfo for Event<T>where\n <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n T::AccountId: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,"]], "pallet_transporter":[["impl<T> TypeInfo for Error<T>where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,"],["impl<T> TypeInfo for Call<T>where\n PhantomData<(T,)>: TypeInfo + 'static,\n <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n T: Config + 'static,"],["impl<T> TypeInfo for Event<T>where\n <<T as Config>::Sender as Sender<<T as Config>::AccountId>>::MessageId: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,"],["impl TypeInfo for Location"],["impl<Balance> TypeInfo for Transfer<Balance>where\n Balance: TypeInfo + 'static,"]], "sp_consensus_subspace":[["impl<Offender> TypeInfo for OffenceDetails<Offender>where\n Offender: TypeInfo + 'static,"],["impl TypeInfo for SolutionRanges"],["impl<Number, Hash, RewardAddress> TypeInfo for Vote<Number, Hash, RewardAddress>where\n Number: TypeInfo + 'static,\n Hash: TypeInfo + 'static,\n Solution<FarmerPublicKey, RewardAddress>: TypeInfo + 'static,\n RewardAddress: TypeInfo + 'static,"],["impl TypeInfo for PotNextSlotInput"],["impl TypeInfo for SubspaceJustification"],["impl TypeInfo for PotParametersChange"],["impl<Number, Hash, RewardAddress> TypeInfo for SignedVote<Number, Hash, RewardAddress>where\n Vote<Number, Hash, RewardAddress>: TypeInfo + 'static,\n Number: TypeInfo + 'static,\n Hash: TypeInfo + 'static,\n RewardAddress: TypeInfo + 'static,"],["impl TypeInfo for ChainConstants"],["impl TypeInfo for PotParameters"]], diff --git a/implementors/sp_consensus_subspace/offence/trait.Offence.js b/implementors/sp_consensus_subspace/offence/trait.Offence.js index ec439417d0..ca837a6ab0 100644 --- a/implementors/sp_consensus_subspace/offence/trait.Offence.js +++ b/implementors/sp_consensus_subspace/offence/trait.Offence.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"pallet_subspace":[["impl<PublicKey: Clone> Offence<PublicKey> for SubspaceEquivocationOffence<PublicKey>"]] +"pallet_subspace":[["impl<PublicKey: Clone> Offence<PublicKey> for SubspaceEquivocationOffence<PublicKey>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sp_consensus_subspace/offence/trait.OnOffenceHandler.js b/implementors/sp_consensus_subspace/offence/trait.OnOffenceHandler.js index fe05c51981..ed90c1b6f4 100644 --- a/implementors/sp_consensus_subspace/offence/trait.OnOffenceHandler.js +++ b/implementors/sp_consensus_subspace/offence/trait.OnOffenceHandler.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"pallet_subspace":[["impl<T: Config> OnOffenceHandler<Public> for Pallet<T>"]], +"pallet_subspace":[["impl<T: Config> OnOffenceHandler<Public> for Pallet<T>"]], "sp_consensus_subspace":[] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sp_consensus_subspace/offence/trait.ReportOffence.js b/implementors/sp_consensus_subspace/offence/trait.ReportOffence.js index e2fc4adfb7..a7743a91c4 100644 --- a/implementors/sp_consensus_subspace/offence/trait.ReportOffence.js +++ b/implementors/sp_consensus_subspace/offence/trait.ReportOffence.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"pallet_offences_subspace":[["impl<T: Config, O: Offence<FarmerPublicKey>> ReportOffence<Public, O> for Pallet<T>"]], +"pallet_offences_subspace":[["impl<T: Config, O: Offence<FarmerPublicKey>> ReportOffence<Public, O> for Pallet<T>"]], "sp_consensus_subspace":[] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pallet_offences_subspace/enum.Event.html b/pallet_offences_subspace/enum.Event.html index 63584fdcbe..0e2acace25 100644 --- a/pallet_offences_subspace/enum.Event.html +++ b/pallet_offences_subspace/enum.Event.html @@ -1,10 +1,10 @@ Event in pallet_offences_subspace - Rust
pub enum Event {
     Offence {
-        kind: Kind,
+        kind: Kind,
         timeslot: Vec<u8>,
     },
 }
Expand description

Events type.

-

Variants§

§

Offence

Fields

§kind: Kind
§timeslot: Vec<u8>

There is an offence reported of the given kind happened at the session_index and +

Variants§

§

Offence

Fields

§kind: Kind
§timeslot: Vec<u8>

There is an offence reported of the given kind happened at the session_index and (kind-specific) time slot. This event is not deposited for duplicate slashes. [kind, timeslot].

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for Event

source§

fn decode<__CodecInputEdqy: Input>( diff --git a/pallet_offences_subspace/struct.Pallet.html b/pallet_offences_subspace/struct.Pallet.html index 9669dce3c9..435c4a8d95 100644 --- a/pallet_offences_subspace/struct.Pallet.html +++ b/pallet_offences_subspace/struct.Pallet.html @@ -1,14 +1,14 @@ Pallet in pallet_offences_subspace - Rust
pub struct Pallet<T>(/* private fields */);
Expand description

The Pallet struct, the main type that implements traits and standalone functions within the pallet.

-

Implementations§

source§

impl<T: Config> Pallet<T>

source

pub fn reports<KArg>(k: KArg) -> Option<OffenceDetails<FarmerPublicKey>>where +

Implementations§

source§

impl<T: Config> Pallet<T>

source

pub fn reports<KArg>(k: KArg) -> Option<OffenceDetails<FarmerPublicKey>>where KArg: EncodeLike<<T as Config>::Hash>,

An auto-generated getter for Reports.

Trait Implementations§

source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = NoStorageVersionSet

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

§

fn on_initialize(_n: BlockNumber) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
§

fn on_finalize(_n: BlockNumber)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before [Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<T: Config, O: Offence<FarmerPublicKey>> ReportOffence<Public, O> for Pallet<T>

source§

fn report_offence(offence: O) -> Result<(), OffenceError>

Report an offence and reward given reporters.
source§

fn is_known_offence( - offenders: &[FarmerPublicKey], - time_slot: &O::TimeSlot +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config, O: Offence<FarmerPublicKey>> ReportOffence<Public, O> for Pallet<T>

source§

fn report_offence(offence: O) -> Result<(), OffenceError>

Report an offence and reward given reporters.
source§

fn is_known_offence( + offenders: &[FarmerPublicKey], + time_slot: &O::TimeSlot ) -> bool

Returns true iff all of the given offenders have been previously reported at the given time slot. This function is useful to prevent the sending of duplicate offence reports.
source§

impl<T: Config> StorageInfoTrait for Pallet<T>

source§

fn storage_info() -> Vec<StorageInfo>

source§

impl<T: Config> WhitelistedStorageKeys for Pallet<T>

source§

fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>

Returns a Vec<TrackedStorageKey> indicating the storage keys that diff --git a/pallet_offences_subspace/trait.Config.html b/pallet_offences_subspace/trait.Config.html index b63490f23a..f26ce81831 100644 --- a/pallet_offences_subspace/trait.Config.html +++ b/pallet_offences_subspace/trait.Config.html @@ -1,6 +1,6 @@ Config in pallet_offences_subspace - Rust
pub trait Config: Config {
     type RuntimeEvent: From<Event> + IsType<<Self as Config>::RuntimeEvent>;
-    type OnOffenceHandler: OnOffenceHandler<FarmerPublicKey>;
+    type OnOffenceHandler: OnOffenceHandler<FarmerPublicKey>;
 }
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be @@ -8,5 +8,5 @@

Consequently, a runtime that wants to include this pallet must implement this trait. The pallet’s config trait.

Required Associated Types§

source

type RuntimeEvent: From<Event> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

-
source

type OnOffenceHandler: OnOffenceHandler<FarmerPublicKey>

A handler called for every offence report.

+
source

type OnOffenceHandler: OnOffenceHandler<FarmerPublicKey>

A handler called for every offence report.

Implementors§

\ No newline at end of file diff --git a/pallet_offences_subspace/type.ConcurrentReportsIndex.html b/pallet_offences_subspace/type.ConcurrentReportsIndex.html index d1f1725c63..71693ca477 100644 --- a/pallet_offences_subspace/type.ConcurrentReportsIndex.html +++ b/pallet_offences_subspace/type.ConcurrentReportsIndex.html @@ -1,3 +1,3 @@ -ConcurrentReportsIndex in pallet_offences_subspace - Rust
pub type ConcurrentReportsIndex<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageConcurrentReportsIndex<T>, Twox64Concat, Kind, Twox64Concat, Vec<u8>, Vec<<T as Config>::Hash>, ValueQuery>;
Expand description

A vector of reports of the same kind that happened at the same time slot.

+ConcurrentReportsIndex in pallet_offences_subspace - Rust
pub type ConcurrentReportsIndex<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageConcurrentReportsIndex<T>, Twox64Concat, Kind, Twox64Concat, Vec<u8>, Vec<<T as Config>::Hash>, ValueQuery>;
Expand description

A vector of reports of the same kind that happened at the same time slot.

Storage type is [StorageDoubleMap] with key1 type Kind, key2 type OpaqueTimeSlot and value type Vec < ReportIdOf < T > >.

Aliased Type§

struct ConcurrentReportsIndex<T: Config>(/* private fields */);
\ No newline at end of file diff --git a/pallet_offences_subspace/type.Module.html b/pallet_offences_subspace/type.Module.html index 4aaa52bd23..93bf9e87e4 100644 --- a/pallet_offences_subspace/type.Module.html +++ b/pallet_offences_subspace/type.Module.html @@ -1,14 +1,14 @@ Module in pallet_offences_subspace - Rust
pub type Module<T> = Pallet<T>;
👎Deprecated: use Pallet instead
Expand description

Type alias to Pallet, to be used by construct_runtime.

Generated by pallet attribute macro.

-

Aliased Type§

struct Module<T>(/* private fields */);

Implementations§

source§

impl<T: Config> Pallet<T>

source

pub fn reports<KArg>(k: KArg) -> Option<OffenceDetails<FarmerPublicKey>>where +

Aliased Type§

struct Module<T>(/* private fields */);

Implementations§

source§

impl<T: Config> Pallet<T>

source

pub fn reports<KArg>(k: KArg) -> Option<OffenceDetails<FarmerPublicKey>>where KArg: EncodeLike<<T as Config>::Hash>,

An auto-generated getter for Reports.

Trait Implementations§

source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = NoStorageVersionSet

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

§

fn on_initialize(_n: BlockNumber) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
§

fn on_finalize(_n: BlockNumber)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before [Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<T: Config, O: Offence<FarmerPublicKey>> ReportOffence<Public, O> for Pallet<T>

source§

fn report_offence(offence: O) -> Result<(), OffenceError>

Report an offence and reward given reporters.
source§

fn is_known_offence( - offenders: &[FarmerPublicKey], - time_slot: &O::TimeSlot +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config, O: Offence<FarmerPublicKey>> ReportOffence<Public, O> for Pallet<T>

source§

fn report_offence(offence: O) -> Result<(), OffenceError>

Report an offence and reward given reporters.
source§

fn is_known_offence( + offenders: &[FarmerPublicKey], + time_slot: &O::TimeSlot ) -> bool

Returns true iff all of the given offenders have been previously reported at the given time slot. This function is useful to prevent the sending of duplicate offence reports.
source§

impl<T: Config> StorageInfoTrait for Pallet<T>

source§

fn storage_info() -> Vec<StorageInfo>

source§

impl<T: Config> WhitelistedStorageKeys for Pallet<T>

source§

fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>

Returns a Vec<TrackedStorageKey> indicating the storage keys that diff --git a/pallet_offences_subspace/type.Reports.html b/pallet_offences_subspace/type.Reports.html index aba59a4e51..0d823dd207 100644 --- a/pallet_offences_subspace/type.Reports.html +++ b/pallet_offences_subspace/type.Reports.html @@ -1,3 +1,3 @@ -Reports in pallet_offences_subspace - Rust
pub type Reports<T: Config> = StorageMap<_GeneratedPrefixForStorageReports<T>, Twox64Concat, <T as Config>::Hash, OffenceDetails<FarmerPublicKey>>;
Expand description

The primary structure that holds all offence records keyed by report identifiers.

+Reports in pallet_offences_subspace - Rust
pub type Reports<T: Config> = StorageMap<_GeneratedPrefixForStorageReports<T>, Twox64Concat, <T as Config>::Hash, OffenceDetails<FarmerPublicKey>>;
Expand description

The primary structure that holds all offence records keyed by report identifiers.

Storage type is [StorageMap] with key type ReportIdOf < T > and value type OffenceDetails < FarmerPublicKey >.

Aliased Type§

struct Reports<T: Config>(/* private fields */);
\ No newline at end of file diff --git a/pallet_offences_subspace/type.ReportsByKindIndex.html b/pallet_offences_subspace/type.ReportsByKindIndex.html index 436b31526e..7470258358 100644 --- a/pallet_offences_subspace/type.ReportsByKindIndex.html +++ b/pallet_offences_subspace/type.ReportsByKindIndex.html @@ -1,4 +1,4 @@ -ReportsByKindIndex in pallet_offences_subspace - Rust
pub type ReportsByKindIndex<T> = StorageMap<_GeneratedPrefixForStorageReportsByKindIndex<T>, Twox64Concat, Kind, Vec<u8>, ValueQuery>;
Expand description

Enumerates all reports of a kind along with the time they happened.

+ReportsByKindIndex in pallet_offences_subspace - Rust
pub type ReportsByKindIndex<T> = StorageMap<_GeneratedPrefixForStorageReportsByKindIndex<T>, Twox64Concat, Kind, Vec<u8>, ValueQuery>;
Expand description

Enumerates all reports of a kind along with the time they happened.

All reports are sorted by the time of offence.

Note that the actual type of this mapping is Vec<u8>, this is because values of different types are not supported at the moment so we are doing the manual serialization.

diff --git a/pallet_subspace/equivocation/struct.EquivocationHandler.html b/pallet_subspace/equivocation/struct.EquivocationHandler.html index 0d5a3e6ca0..c1a4f99de6 100644 --- a/pallet_subspace/equivocation/struct.EquivocationHandler.html +++ b/pallet_subspace/equivocation/struct.EquivocationHandler.html @@ -4,12 +4,12 @@ subsystems together.

Trait Implementations§

source§

impl<R, L> Default for EquivocationHandler<R, L>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T, R, L> HandleEquivocation<T> for EquivocationHandler<R, L>where T: Config + SendTransactionTypes<Call<T>>, - R: ReportOffence<FarmerPublicKey, SubspaceEquivocationOffence<FarmerPublicKey>>, + R: ReportOffence<FarmerPublicKey, SubspaceEquivocationOffence<FarmerPublicKey>>, L: Get<u64>,

§

type ReportLongevity = L

The longevity, in blocks, that the equivocation report is valid for. When using the staking pallet this should be equal to the bonding duration (in blocks, not eras).
source§

fn report_offence( - offence: SubspaceEquivocationOffence<FarmerPublicKey> -) -> Result<(), OffenceError>

Report an offence proved by the given reporters.
source§

fn is_known_offence(offenders: &[FarmerPublicKey], time_slot: &Slot) -> bool

Returns true if all of the offenders at the given time slot have already been reported.
source§

fn submit_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + offence: SubspaceEquivocationOffence<FarmerPublicKey> +) -> Result<(), OffenceError>

Report an offence proved by the given reporters.
source§

fn is_known_offence(offenders: &[FarmerPublicKey], time_slot: &Slot) -> bool

Returns true if all of the offenders at the given time slot have already been reported.
source§

fn submit_equivocation_report( + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> DispatchResult

Create and dispatch an equivocation report extrinsic.

Auto Trait Implementations§

§

impl<R, L> RefUnwindSafe for EquivocationHandler<R, L>where L: RefUnwindSafe, R: RefUnwindSafe,

§

impl<R, L> Send for EquivocationHandler<R, L>where diff --git a/pallet_subspace/equivocation/struct.SubspaceEquivocationOffence.html b/pallet_subspace/equivocation/struct.SubspaceEquivocationOffence.html index 12986b7470..d1ef849246 100644 --- a/pallet_subspace/equivocation/struct.SubspaceEquivocationOffence.html +++ b/pallet_subspace/equivocation/struct.SubspaceEquivocationOffence.html @@ -5,7 +5,7 @@

When a farmer released two or more solutions at the same slot.

Fields§

§slot: Slot

A Subspace slot in which this incident happened.

§offender: PublicKey

Identity of the farmer that produced the equivocation.

-

Trait Implementations§

source§

impl<PublicKey: Debug> Debug for SubspaceEquivocationOffence<PublicKey>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<PublicKey: Clone> Offence<PublicKey> for SubspaceEquivocationOffence<PublicKey>

source§

const ID: Kind = _

Identifier which is unique for this kind of an offence.
§

type TimeSlot = Slot

A type that represents a point in time on an abstract timescale. Read more
source§

fn offenders(&self) -> Vec<PublicKey>

The list of all offenders involved in this incident. Read more
source§

fn time_slot(&self) -> Self::TimeSlot

A point in time when this offence happened. Read more
source§

impl<PublicKey: PartialEq> PartialEq<SubspaceEquivocationOffence<PublicKey>> for SubspaceEquivocationOffence<PublicKey>

source§

fn eq(&self, other: &SubspaceEquivocationOffence<PublicKey>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl<PublicKey: Debug> Debug for SubspaceEquivocationOffence<PublicKey>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<PublicKey: Clone> Offence<PublicKey> for SubspaceEquivocationOffence<PublicKey>

source§

const ID: Kind = _

Identifier which is unique for this kind of an offence.
§

type TimeSlot = Slot

A type that represents a point in time on an abstract timescale. Read more
source§

fn offenders(&self) -> Vec<PublicKey>

The list of all offenders involved in this incident. Read more
source§

fn time_slot(&self) -> Self::TimeSlot

A point in time when this offence happened. Read more
source§

impl<PublicKey: PartialEq> PartialEq<SubspaceEquivocationOffence<PublicKey>> for SubspaceEquivocationOffence<PublicKey>

source§

fn eq(&self, other: &SubspaceEquivocationOffence<PublicKey>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<PublicKey: Eq> Eq for SubspaceEquivocationOffence<PublicKey>

source§

impl<PublicKey> StructuralEq for SubspaceEquivocationOffence<PublicKey>

source§

impl<PublicKey> StructuralPartialEq for SubspaceEquivocationOffence<PublicKey>

Auto Trait Implementations§

§

impl<PublicKey> RefUnwindSafe for SubspaceEquivocationOffence<PublicKey>where PublicKey: RefUnwindSafe,

§

impl<PublicKey> Send for SubspaceEquivocationOffence<PublicKey>where diff --git a/pallet_subspace/equivocation/trait.HandleEquivocation.html b/pallet_subspace/equivocation/trait.HandleEquivocation.html index f3846f0b07..82eedb6d53 100644 --- a/pallet_subspace/equivocation/trait.HandleEquivocation.html +++ b/pallet_subspace/equivocation/trait.HandleEquivocation.html @@ -3,11 +3,11 @@ // Required methods fn report_offence( - offence: SubspaceEquivocationOffence<FarmerPublicKey> - ) -> Result<(), OffenceError>; - fn is_known_offence(offenders: &[FarmerPublicKey], time_slot: &Slot) -> bool; + offence: SubspaceEquivocationOffence<FarmerPublicKey> + ) -> Result<(), OffenceError>; + fn is_known_offence(offenders: &[FarmerPublicKey], time_slot: &Slot) -> bool; fn submit_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> DispatchResult; }
Expand description

A trait with utility methods for handling equivocation reports in Subspace. The trait provides methods for reporting an offence triggered by a valid equivocation report, checking the current @@ -16,17 +16,17 @@

Required Associated Types§

source

type ReportLongevity: Get<u64>

The longevity, in blocks, that the equivocation report is valid for. When using the staking pallet this should be equal to the bonding duration (in blocks, not eras).

Required Methods§

source

fn report_offence( - offence: SubspaceEquivocationOffence<FarmerPublicKey> -) -> Result<(), OffenceError>

Report an offence proved by the given reporters.

-
source

fn is_known_offence(offenders: &[FarmerPublicKey], time_slot: &Slot) -> bool

Returns true if all of the offenders at the given time slot have already been reported.

+ offence: SubspaceEquivocationOffence<FarmerPublicKey> +) -> Result<(), OffenceError>

Report an offence proved by the given reporters.

+
source

fn is_known_offence(offenders: &[FarmerPublicKey], time_slot: &Slot) -> bool

Returns true if all of the offenders at the given time slot have already been reported.

source

fn submit_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> DispatchResult

Create and dispatch an equivocation report extrinsic.

Implementations on Foreign Types§

source§

impl<T: Config> HandleEquivocation<T> for ()

§

type ReportLongevity = ()

source§

fn report_offence( - _offence: SubspaceEquivocationOffence<FarmerPublicKey> -) -> Result<(), OffenceError>

source§

fn is_known_offence(_offenders: &[FarmerPublicKey], _time_slot: &Slot) -> bool

source§

fn submit_equivocation_report( - _equivocation_proof: EquivocationProof<HeaderFor<T>> + _offence: SubspaceEquivocationOffence<FarmerPublicKey> +) -> Result<(), OffenceError>

source§

fn is_known_offence(_offenders: &[FarmerPublicKey], _time_slot: &Slot) -> bool

source§

fn submit_equivocation_report( + _equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> DispatchResult

Implementors§

source§

impl<T, R, L> HandleEquivocation<T> for EquivocationHandler<R, L>where T: Config + SendTransactionTypes<Call<T>>, - R: ReportOffence<FarmerPublicKey, SubspaceEquivocationOffence<FarmerPublicKey>>, + R: ReportOffence<FarmerPublicKey, SubspaceEquivocationOffence<FarmerPublicKey>>, L: Get<u64>,

\ No newline at end of file diff --git a/pallet_subspace/pallet/dispatchables/fn.report_equivocation.html b/pallet_subspace/pallet/dispatchables/fn.report_equivocation.html index 408bdd1663..94fc9f77b2 100644 --- a/pallet_subspace/pallet/dispatchables/fn.report_equivocation.html +++ b/pallet_subspace/pallet/dispatchables/fn.report_equivocation.html @@ -1,5 +1,5 @@ report_equivocation in pallet_subspace::pallet::dispatchables - Rust
pub fn report_equivocation<T: Config>(
-    equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>
+    equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>
 )
Expand description

Report farmer equivocation/misbehavior. This method will verify the equivocation proof. If valid, the offence will be reported.

This extrinsic must be called unsigned and it is expected that only block authors will diff --git a/pallet_subspace/pallet/dispatchables/fn.vote.html b/pallet_subspace/pallet/dispatchables/fn.vote.html index c29e912834..13184f6a2a 100644 --- a/pallet_subspace/pallet/dispatchables/fn.vote.html +++ b/pallet_subspace/pallet/dispatchables/fn.vote.html @@ -1,5 +1,5 @@ vote in pallet_subspace::pallet::dispatchables - Rust

pub fn vote<T: Config>(
-    signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>
+    signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>
 )
Expand description

Farmer vote, currently only used for extra rewards to farmers.

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable diff --git a/pallet_subspace/pallet/enum.AllowAuthoringBy.html b/pallet_subspace/pallet/enum.AllowAuthoringBy.html index 7309992c8c..6d2cd08bab 100644 --- a/pallet_subspace/pallet/enum.AllowAuthoringBy.html +++ b/pallet_subspace/pallet/enum.AllowAuthoringBy.html @@ -1,11 +1,11 @@ AllowAuthoringBy in pallet_subspace::pallet - Rust

pub enum AllowAuthoringBy {
     Anyone,
     FirstFarmer,
-    RootFarmer(FarmerPublicKey),
+    RootFarmer(FarmerPublicKey),
 }

Variants§

§

Anyone

Anyone can author new blocks at genesis.

§

FirstFarmer

Author of the first block will be able to author blocks going forward unless unlocked for everyone.

-
§

RootFarmer(FarmerPublicKey)

Specified root farmer is allowed to author blocks unless unlocked for everyone.

+
§

RootFarmer(FarmerPublicKey)

Specified root farmer is allowed to author blocks unless unlocked for everyone.

Trait Implementations§

source§

impl Debug for AllowAuthoringBy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for AllowAuthoringBy

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( diff --git a/pallet_subspace/pallet/enum.Call.html b/pallet_subspace/pallet/enum.Call.html index ff59545976..c4ecd9f7db 100644 --- a/pallet_subspace/pallet/enum.Call.html +++ b/pallet_subspace/pallet/enum.Call.html @@ -1,6 +1,6 @@ Call in pallet_subspace::pallet - Rust
pub enum Call<T: Config> {
     report_equivocation {
-        equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>,
+        equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>,
     },
     store_segment_headers {
         segment_headers: Vec<SegmentHeader>,
@@ -10,7 +10,7 @@
         voting_solution_range_override: Option<u64>,
     },
     vote {
-        signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>,
+        signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>,
     },
     enable_rewards {
         height: Option<BlockNumberFor<T>>,
@@ -19,15 +19,15 @@
     enable_authoring_by_anyone {},
     // some variants omitted
 }
Expand description

Contains a variant per dispatchable extrinsic that this pallet has.

-

Variants§

§

report_equivocation

Fields

§equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>

Variants§

§

report_equivocation

Fields

§equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>
§

store_segment_headers

Fields

§segment_headers: Vec<SegmentHeader>
§

enable_solution_range_adjustment

Fields

§solution_range_override: Option<u64>
§voting_solution_range_override: Option<u64>
§

vote

Fields

§signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>
§

vote

Fields

§signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>
§

enable_rewards

Fields

§height: Option<BlockNumberFor<T>>
§

enable_storage_access

Fields

§

enable_authoring_by_anyone

Fields

Implementations§

source§

impl<T: Config> Call<T>

source

pub fn new_call_variant_report_equivocation( - equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> + equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> ) -> Self

Create a call with the variant report_equivocation.

source

pub fn new_call_variant_store_segment_headers( segment_headers: Vec<SegmentHeader> @@ -37,7 +37,7 @@ voting_solution_range_override: Option<u64> ) -> Self

Create a call with the variant enable_solution_range_adjustment.

source

pub fn new_call_variant_vote( - signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>> + signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>> ) -> Self

Create a call with the variant vote.

source

pub fn new_call_variant_enable_rewards( height: Option<BlockNumberFor<T>> @@ -59,8 +59,8 @@ by ==.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> TypeInfo for Call<T>where PhantomData<(T,)>: TypeInfo + 'static, - Box<EquivocationProof<HeaderFor<T>>>: TypeInfo + 'static, - Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>: TypeInfo + 'static, + Box<EquivocationProof<HeaderFor<T>>>: TypeInfo + 'static, + Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>>: TypeInfo + 'static, Option<BlockNumberFor<T>>: TypeInfo + 'static, T: Config + 'static,

§

type Identity = Call<T>

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl<T: Config> UnfilteredDispatchable for Call<T>

§

type RuntimeOrigin = <T as Config>::RuntimeOrigin

The origin type of the runtime, (i.e. frame_system::Config::RuntimeOrigin).
source§

fn dispatch_bypass_filter( self, diff --git a/pallet_subspace/pallet/enum.Event.html b/pallet_subspace/pallet/enum.Event.html index a8b1edf719..e6ea6a9178 100644 --- a/pallet_subspace/pallet/enum.Event.html +++ b/pallet_subspace/pallet/enum.Event.html @@ -3,7 +3,7 @@ segment_header: SegmentHeader, }, FarmerVote { - public_key: FarmerPublicKey, + public_key: FarmerPublicKey, reward_address: T::AccountId, height: BlockNumberFor<T>, parent_hash: T::Hash, @@ -11,7 +11,7 @@ // some variants omitted }
Expand description

Events type.

Variants§

§

SegmentHeaderStored

Fields

§segment_header: SegmentHeader

Segment header was stored in blockchain history.

-
§

FarmerVote

Fields

§public_key: FarmerPublicKey
§reward_address: T::AccountId
§height: BlockNumberFor<T>
§parent_hash: T::Hash

Farmer vote.

+
§

FarmerVote

Fields

§public_key: FarmerPublicKey
§reward_address: T::AccountId
§height: BlockNumberFor<T>
§parent_hash: T::Hash

Farmer vote.

Trait Implementations§

source§

impl<T: Config> Clone for Event<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Config> Debug for Event<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Config> Decode for Event<T>where T::AccountId: Decode, BlockNumberFor<T>: Decode, diff --git a/pallet_subspace/pallet/struct.Pallet.html b/pallet_subspace/pallet/struct.Pallet.html index ac968c1586..c8b2036c54 100644 --- a/pallet_subspace/pallet/struct.Pallet.html +++ b/pallet_subspace/pallet/struct.Pallet.html @@ -5,12 +5,12 @@ equivocation reports.

source

pub fn validate_equivocation_report( source: TransactionSource, - equivocation_proof: &EquivocationProof<HeaderFor<T>> + equivocation_proof: &EquivocationProof<HeaderFor<T>> ) -> TransactionValidity

source

pub fn pre_dispatch_equivocation_report( - equivocation_proof: &EquivocationProof<HeaderFor<T>> + equivocation_proof: &EquivocationProof<HeaderFor<T>> ) -> Result<(), TransactionValidityError>

source§

impl<T: Config> Pallet<T>

source

pub fn report_equivocation( origin: OriginFor<T>, - equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> + equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> ) -> DispatchResultWithPostInfo

Report farmer equivocation/misbehavior. This method will verify the equivocation proof. If valid, the offence will be reported.

This extrinsic must be called unsigned and it is expected that only block authors will @@ -29,7 +29,7 @@ Note: No effect on the solution range for the current era

source

pub fn vote( origin: OriginFor<T>, - signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>> + signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>> ) -> DispatchResult

Farmer vote, currently only used for extra rewards to farmers.

source

pub fn enable_rewards( origin: OriginFor<T>, @@ -39,34 +39,34 @@

source

pub fn enable_authoring_by_anyone(origin: OriginFor<T>) -> DispatchResult

Enable storage access for all users.

source§

impl<T: Config> Pallet<T>

source

pub fn genesis_slot() -> Slot

An auto-generated getter for GenesisSlot.

source§

impl<T: Config> Pallet<T>

source

pub fn current_slot() -> Slot

An auto-generated getter for CurrentSlot.

-
source§

impl<T: Config> Pallet<T>

source

pub fn solution_ranges() -> SolutionRanges

An auto-generated getter for SolutionRanges.

+
source§

impl<T: Config> Pallet<T>

source

pub fn solution_ranges() -> SolutionRanges

An auto-generated getter for SolutionRanges.

source§

impl<T: Config> Pallet<T>

source

pub fn should_adjust_solution_range() -> bool

An auto-generated getter for ShouldAdjustSolutionRange.

source§

impl<T: Config> Pallet<T>

source

pub fn segment_commitment<KArg>(k: KArg) -> Option<SegmentCommitment>where KArg: EncodeLike<SegmentIndex>,

An auto-generated getter for SegmentCommitment.

source§

impl<T: Config> Pallet<T>

source

pub fn is_storage_access_enabled() -> bool

An auto-generated getter for IsStorageAccessEnabled.

-
source§

impl<T: Config> Pallet<T>

source

pub fn root_plot_public_key() -> Option<FarmerPublicKey>

An auto-generated getter for RootPlotPublicKey.

+
source§

impl<T: Config> Pallet<T>

source

pub fn root_plot_public_key() -> Option<FarmerPublicKey>

An auto-generated getter for RootPlotPublicKey.

source§

impl<T: Config> Pallet<T>

source

pub fn history_size() -> HistorySize

Total number of pieces in the blockchain

source

pub fn submit_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> Option<()>

Submits an extrinsic to report an equivocation. This method will create an unsigned extrinsic with a call to report_equivocation and will push the transaction to the pool. Only useful in an offchain context.

source

pub fn submit_test_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> Option<()>

Just stores offender from equivocation report in block list, only used for tests.

-
source

pub fn pot_parameters() -> PotParameters

Proof of time parameters

-
source

pub fn is_in_block_list(farmer_public_key: &FarmerPublicKey) -> bool

Check if farmer_public_key is in block list (due to equivocation)

+
source

pub fn pot_parameters() -> PotParameters

Proof of time parameters

+
source

pub fn is_in_block_list(farmer_public_key: &FarmerPublicKey) -> bool

Check if farmer_public_key is in block list (due to equivocation)

source

pub fn archived_history_size() -> u64

Size of the archived history of the blockchain in bytes

source§

impl<T> Pallet<T>where T: Config + SendTransactionTypes<Call<T>>,

source

pub fn submit_vote( - signed_vote: SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId> + signed_vote: SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId> )

Submit farmer vote vote that is essentially a header with bigger solution range than acceptable for block authoring.

Trait Implementations§

source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Config> FindBlockRewardAddress<<T as Config>::AccountId> for Pallet<T>

source§

fn find_block_reward_address() -> Option<T::AccountId>

Find the address for a block rewards based on the pre-runtime digests.
source§

impl<T: Config> FindVotingRewardAddresses<<T as Config>::AccountId> for Pallet<T>

source§

fn find_voting_reward_addresses() -> Vec<T::AccountId>

Find the addresses for voting rewards based on transactions found in the block.
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = NoStorageVersionSet

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(block_number: BlockNumberFor<T>) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
source§

fn on_finalize(block_number: BlockNumberFor<T>)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before [Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are -dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnOffenceHandler<Public> for Pallet<T>

source§

fn on_offence(offenders: &[OffenceDetails<FarmerPublicKey>])

A handler for an offence of a particular kind. Read more
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used +dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnOffenceHandler<Public> for Pallet<T>

source§

fn on_offence(offenders: &[OffenceDetails<FarmerPublicKey>])

A handler for an offence of a particular kind. Read more
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( data: &InherentData ) -> Result<Option<Self::Error>, Self::Error>

Determines whether this inherent is required in this block. Read more
source§

fn check_inherent( call: &Self::Call, diff --git a/pallet_subspace/pallet/type.Module.html b/pallet_subspace/pallet/type.Module.html index 4561060388..c63599cf93 100644 --- a/pallet_subspace/pallet/type.Module.html +++ b/pallet_subspace/pallet/type.Module.html @@ -6,12 +6,12 @@ equivocation reports.

source

pub fn validate_equivocation_report( source: TransactionSource, - equivocation_proof: &EquivocationProof<HeaderFor<T>> + equivocation_proof: &EquivocationProof<HeaderFor<T>> ) -> TransactionValidity

source

pub fn pre_dispatch_equivocation_report( - equivocation_proof: &EquivocationProof<HeaderFor<T>> + equivocation_proof: &EquivocationProof<HeaderFor<T>> ) -> Result<(), TransactionValidityError>

source§

impl<T: Config> Pallet<T>

source

pub fn report_equivocation( origin: OriginFor<T>, - equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> + equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> ) -> DispatchResultWithPostInfo

Report farmer equivocation/misbehavior. This method will verify the equivocation proof. If valid, the offence will be reported.

This extrinsic must be called unsigned and it is expected that only block authors will @@ -30,7 +30,7 @@ Note: No effect on the solution range for the current era

source

pub fn vote( origin: OriginFor<T>, - signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>> + signed_vote: Box<SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId>> ) -> DispatchResult

Farmer vote, currently only used for extra rewards to farmers.

source

pub fn enable_rewards( origin: OriginFor<T>, @@ -40,34 +40,34 @@

source

pub fn enable_authoring_by_anyone(origin: OriginFor<T>) -> DispatchResult

Enable storage access for all users.

source§

impl<T: Config> Pallet<T>

source

pub fn genesis_slot() -> Slot

An auto-generated getter for GenesisSlot.

source§

impl<T: Config> Pallet<T>

source

pub fn current_slot() -> Slot

An auto-generated getter for CurrentSlot.

-
source§

impl<T: Config> Pallet<T>

source

pub fn solution_ranges() -> SolutionRanges

An auto-generated getter for SolutionRanges.

+
source§

impl<T: Config> Pallet<T>

source

pub fn solution_ranges() -> SolutionRanges

An auto-generated getter for SolutionRanges.

source§

impl<T: Config> Pallet<T>

source

pub fn should_adjust_solution_range() -> bool

An auto-generated getter for ShouldAdjustSolutionRange.

source§

impl<T: Config> Pallet<T>

source

pub fn segment_commitment<KArg>(k: KArg) -> Option<SegmentCommitment>where KArg: EncodeLike<SegmentIndex>,

An auto-generated getter for SegmentCommitment.

source§

impl<T: Config> Pallet<T>

source

pub fn is_storage_access_enabled() -> bool

An auto-generated getter for IsStorageAccessEnabled.

-
source§

impl<T: Config> Pallet<T>

source

pub fn root_plot_public_key() -> Option<FarmerPublicKey>

An auto-generated getter for RootPlotPublicKey.

+
source§

impl<T: Config> Pallet<T>

source

pub fn root_plot_public_key() -> Option<FarmerPublicKey>

An auto-generated getter for RootPlotPublicKey.

source§

impl<T: Config> Pallet<T>

source

pub fn history_size() -> HistorySize

Total number of pieces in the blockchain

source

pub fn submit_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> Option<()>

Submits an extrinsic to report an equivocation. This method will create an unsigned extrinsic with a call to report_equivocation and will push the transaction to the pool. Only useful in an offchain context.

source

pub fn submit_test_equivocation_report( - equivocation_proof: EquivocationProof<HeaderFor<T>> + equivocation_proof: EquivocationProof<HeaderFor<T>> ) -> Option<()>

Just stores offender from equivocation report in block list, only used for tests.

-
source

pub fn pot_parameters() -> PotParameters

Proof of time parameters

-
source

pub fn is_in_block_list(farmer_public_key: &FarmerPublicKey) -> bool

Check if farmer_public_key is in block list (due to equivocation)

+
source

pub fn pot_parameters() -> PotParameters

Proof of time parameters

+
source

pub fn is_in_block_list(farmer_public_key: &FarmerPublicKey) -> bool

Check if farmer_public_key is in block list (due to equivocation)

source

pub fn archived_history_size() -> u64

Size of the archived history of the blockchain in bytes

source§

impl<T> Pallet<T>where T: Config + SendTransactionTypes<Call<T>>,

source

pub fn submit_vote( - signed_vote: SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId> + signed_vote: SignedVote<BlockNumberFor<T>, T::Hash, T::AccountId> )

Submit farmer vote vote that is essentially a header with bigger solution range than acceptable for block authoring.

Trait Implementations§

source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Config> FindBlockRewardAddress<<T as Config>::AccountId> for Pallet<T>

source§

fn find_block_reward_address() -> Option<T::AccountId>

Find the address for a block rewards based on the pre-runtime digests.
source§

impl<T: Config> FindVotingRewardAddresses<<T as Config>::AccountId> for Pallet<T>

source§

fn find_voting_reward_addresses() -> Vec<T::AccountId>

Find the addresses for voting rewards based on transactions found in the block.
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = NoStorageVersionSet

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(block_number: BlockNumberFor<T>) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
source§

fn on_finalize(block_number: BlockNumberFor<T>)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before [Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are -dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnOffenceHandler<Public> for Pallet<T>

source§

fn on_offence(offenders: &[OffenceDetails<FarmerPublicKey>])

A handler for an offence of a particular kind. Read more
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used +dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnOffenceHandler<Public> for Pallet<T>

source§

fn on_offence(offenders: &[OffenceDetails<FarmerPublicKey>])

A handler for an offence of a particular kind. Read more
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent_required( data: &InherentData ) -> Result<Option<Self::Error>, Self::Error>

Determines whether this inherent is required in this block. Read more
source§

fn check_inherent( call: &Self::Call, diff --git a/sc_consensus_subspace/archiver/fn.create_subspace_archiver.html b/sc_consensus_subspace/archiver/fn.create_subspace_archiver.html index b2d0b6ddde..80f9d5ba34 100644 --- a/sc_consensus_subspace/archiver/fn.create_subspace_archiver.html +++ b/sc_consensus_subspace/archiver/fn.create_subspace_archiver.html @@ -8,7 +8,7 @@ Block: BlockT, Backend: BackendT<Block>, Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + LockImportRun<Block, Backend> + Finalizer<Block, Backend> + AuxStore + Send + Sync + 'static, - Client::Api: SubspaceApi<Block, FarmerPublicKey> + ObjectsApi<Block>, + Client::Api: SubspaceApi<Block, FarmerPublicKey> + ObjectsApi<Block>, AS: AuxStore + Send + Sync + 'static, SO: SyncOracle + Send + Sync + 'static,
Expand description

Crate an archiver task that will listen for importing blocks and archive blocks at K depth, producing pieces and segment headers (segment headers are then added back to the blockchain as diff --git a/sc_consensus_subspace/archiver/fn.recreate_genesis_segment.html b/sc_consensus_subspace/archiver/fn.recreate_genesis_segment.html index 0f76936898..c441b5808f 100644 --- a/sc_consensus_subspace/archiver/fn.recreate_genesis_segment.html +++ b/sc_consensus_subspace/archiver/fn.recreate_genesis_segment.html @@ -4,5 +4,5 @@ ) -> Result<Option<NewArchivedSegment>, Box<dyn Error>>where Block: BlockT, Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block>, - Client::Api: ObjectsApi<Block>,

Expand description

Derive genesis segment on demand, returns Ok(None) in case genesis block was already pruned

+ Client::Api: ObjectsApi<Block>,
Expand description

Derive genesis segment on demand, returns Ok(None) in case genesis block was already pruned

\ No newline at end of file diff --git a/sc_consensus_subspace/block_import/enum.Error.html b/sc_consensus_subspace/block_import/enum.Error.html index 027af512a1..338ed281b3 100644 --- a/sc_consensus_subspace/block_import/enum.Error.html +++ b/sc_consensus_subspace/block_import/enum.Error.html @@ -1,6 +1,6 @@ Error in sc_consensus_subspace::block_import - Rust
pub enum Error<Header: HeaderT> {
 
Show 35 variants InnerBlockImportError(Error), - DigestItemError(Error), + DigestItemError(Error), ParentUnavailable(Header::Hash, Header::Hash), GenesisUnavailable, SlotMustIncrease(Slot, Slot), @@ -31,7 +31,7 @@ SegmentHeadersExtrinsicNotFound(Vec<SegmentHeader>), SegmentHeaderNotFound(SegmentIndex), DifferentSegmentCommitment(SegmentIndex), - FarmerInBlockList(FarmerPublicKey), + FarmerInBlockList(FarmerPublicKey), NoBlockWeight(Header::Hash), SegmentCommitmentNotFound(SegmentIndex), SectorExpired { @@ -47,7 +47,7 @@ RuntimeApi(ApiError),
}
Expand description

Errors encountered by the Subspace authorship task.

Variants§

§

InnerBlockImportError(Error)

Inner block import error

-
§

DigestItemError(Error)

Error during digest item extraction

+
§

DigestItemError(Error)

Error during digest item extraction

§

ParentUnavailable(Header::Hash, Header::Hash)

Parent unavailable. Cannot import

§

GenesisUnavailable

Genesis block unavailable. Cannot import

§

SlotMustIncrease(Slot, Slot)

Slot number must increase

@@ -76,7 +76,7 @@
§

SegmentHeadersExtrinsicNotFound(Vec<SegmentHeader>)

Stored segment header extrinsic was not found

§

SegmentHeaderNotFound(SegmentIndex)

Segment header not found

§

DifferentSegmentCommitment(SegmentIndex)

Different segment commitment found

-
§

FarmerInBlockList(FarmerPublicKey)

Farmer in block list

+
§

FarmerInBlockList(FarmerPublicKey)

Farmer in block list

§

NoBlockWeight(Header::Hash)

No block weight for parent header

§

SegmentCommitmentNotFound(SegmentIndex)

Segment commitment not found

§

SectorExpired

Fields

§expiration_history_size: HistorySize

Expiration history size

@@ -92,7 +92,7 @@

Trait Implementations§

source§

impl<Header: Debug + HeaderT> Debug for Error<Header>where Header::Hash: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Header: HeaderT> Display for Error<Header>

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Header: HeaderT> Error for Error<Header>where Self: Debug + Display,

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<Header: HeaderT> From<ApiError> for Error<Header>

source§

fn from(source: ApiError) -> Self

Converts to this type from the input type.
source§

impl<Header> From<Error<Header>> for Stringwhere - Header: HeaderT,

source§

fn from(error: Error<Header>) -> String

Converts to this type from the input type.
source§

impl<Header: HeaderT> From<Error> for Error<Header>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<Header: HeaderT> From<Error> for Error<Header>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<Header: HeaderT> From<Error> for Error<Header>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<Header> From<VerificationError<Header>> for Error<Header>where + Header: HeaderT,

source§

fn from(error: Error<Header>) -> String

Converts to this type from the input type.
source§

impl<Header: HeaderT> From<Error> for Error<Header>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<Header: HeaderT> From<Error> for Error<Header>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<Header: HeaderT> From<Error> for Error<Header>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<Header> From<VerificationError<Header>> for Error<Header>where Header: HeaderT,

source§

fn from(error: VerificationError<Header>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<Header> !RefUnwindSafe for Error<Header>

§

impl<Header> Send for Error<Header>

§

impl<Header> Sync for Error<Header>

§

impl<Header> Unpin for Error<Header>where <Header as Header>::Hash: Unpin,

§

impl<Header> !UnwindSafe for Error<Header>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for Twhere diff --git a/sc_consensus_subspace/block_import/struct.SubspaceBlockImport.html b/sc_consensus_subspace/block_import/struct.SubspaceBlockImport.html index f58a5f04e3..d07896671c 100644 --- a/sc_consensus_subspace/block_import/struct.SubspaceBlockImport.html +++ b/sc_consensus_subspace/block_import/struct.SubspaceBlockImport.html @@ -4,7 +4,7 @@ PosTable: Table, Block: BlockT, Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + AuxStore, - Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey> + ApiExt<Block>, + Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey> + ApiExt<Block>, CIDP: CreateInherentDataProviders<Block, SubspaceLink<Block>> + Send + Sync + 'static, AS: AuxStore + Send + Sync + 'static, BlockNumber: From<<<Block as BlockT>::Header as HeaderT>::Number>,

source

pub fn new( @@ -20,7 +20,7 @@ Block: BlockT, Inner: BlockImport<Block, Error = Error> + Send + Sync, Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + AuxStore + Send + Sync, - Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey> + ApiExt<Block>, + Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey> + ApiExt<Block>, CIDP: CreateInherentDataProviders<Block, SubspaceLink<Block>> + Send + Sync + 'static, AS: AuxStore + Send + Sync + 'static, BlockNumber: From<<<Block as BlockT>::Header as HeaderT>::Number>,

§

type Error = Error<<Block as Block>::Header>

The error type.
source§

fn import_block<'life0, 'async_trait>( diff --git a/sc_consensus_subspace/slot_worker/struct.NewSlotNotification.html b/sc_consensus_subspace/slot_worker/struct.NewSlotNotification.html index 4a189d1df9..59d156b8c7 100644 --- a/sc_consensus_subspace/slot_worker/struct.NewSlotNotification.html +++ b/sc_consensus_subspace/slot_worker/struct.NewSlotNotification.html @@ -1,9 +1,9 @@ NewSlotNotification in sc_consensus_subspace::slot_worker - Rust
pub struct NewSlotNotification {
     pub new_slot_info: NewSlotInfo,
-    pub solution_sender: Sender<Solution<FarmerPublicKey, FarmerPublicKey>>,
+    pub solution_sender: Sender<Solution<FarmerPublicKey, FarmerPublicKey>>,
 }
Expand description

New slot notification with slot information and sender for solution for the slot.

Fields§

§new_slot_info: NewSlotInfo

New slot information.

-
§solution_sender: Sender<Solution<FarmerPublicKey, FarmerPublicKey>>

Sender that can be used to send solutions for the slot.

+
§solution_sender: Sender<Solution<FarmerPublicKey, FarmerPublicKey>>

Sender that can be used to send solutions for the slot.

Trait Implementations§

source§

impl Clone for NewSlotNotification

source§

fn clone(&self) -> NewSlotNotification

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NewSlotNotification

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

§

fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for Twhere diff --git a/sc_consensus_subspace/slot_worker/struct.RewardSigningNotification.html b/sc_consensus_subspace/slot_worker/struct.RewardSigningNotification.html index 6b5380c4ff..4391b363ca 100644 --- a/sc_consensus_subspace/slot_worker/struct.RewardSigningNotification.html +++ b/sc_consensus_subspace/slot_worker/struct.RewardSigningNotification.html @@ -1,11 +1,11 @@ RewardSigningNotification in sc_consensus_subspace::slot_worker - Rust
pub struct RewardSigningNotification {
     pub hash: H256,
-    pub public_key: FarmerPublicKey,
-    pub signature_sender: TracingUnboundedSender<FarmerSignature>,
+    pub public_key: FarmerPublicKey,
+    pub signature_sender: TracingUnboundedSender<FarmerSignature>,
 }
Expand description

Notification with a hash that needs to be signed to receive reward and sender for signature.

Fields§

§hash: H256

Hash to be signed.

-
§public_key: FarmerPublicKey

Public key of the plot identity that should create signature.

-
§signature_sender: TracingUnboundedSender<FarmerSignature>

Sender that can be used to send signature for the header.

+
§public_key: FarmerPublicKey

Public key of the plot identity that should create signature.

+
§signature_sender: TracingUnboundedSender<FarmerSignature>

Sender that can be used to send signature for the header.

Trait Implementations§

source§

impl Clone for RewardSigningNotification

source§

fn clone(&self) -> RewardSigningNotification

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RewardSigningNotification

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

§

fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for Twhere diff --git a/sc_consensus_subspace/slot_worker/struct.SubspaceSlotWorker.html b/sc_consensus_subspace/slot_worker/struct.SubspaceSlotWorker.html index 9015d9427f..1f1b9a532e 100644 --- a/sc_consensus_subspace/slot_worker/struct.SubspaceSlotWorker.html +++ b/sc_consensus_subspace/slot_worker/struct.SubspaceSlotWorker.html @@ -5,7 +5,7 @@ PosTable: Table, Block: BlockT, Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + AuxStore + 'static, - Client::Api: SubspaceApi<Block, FarmerPublicKey>, + Client::Api: SubspaceApi<Block, FarmerPublicKey>, E: Environment<Block, Error = Error> + Send + Sync, E::Proposer: Proposer<Block, Error = Error>, SO: SyncOracle + Send + Sync, @@ -19,12 +19,12 @@

Trait Implementations§

source§

impl<PosTable, Block, Client, E, SO, L, BS, AS> PotSlotWorker<Block> for SubspaceSlotWorker<PosTable, Block, Client, E, SO, L, BS, AS>where Block: BlockT, Client: HeaderBackend<Block> + ProvideRuntimeApi<Block>, - Client::Api: SubspaceApi<Block, FarmerPublicKey>, + Client::Api: SubspaceApi<Block, FarmerPublicKey>, SO: SyncOracle + Send + Sync,

source§

fn on_proof(&mut self, slot: Slot, checkpoints: PotCheckpoints)

Called when new proof of time is available for slot. Read more
source§

impl<PosTable, Block, Client, E, Error, SO, L, BS, AS> SimpleSlotWorker<Block> for SubspaceSlotWorker<PosTable, Block, Client, E, SO, L, BS, AS>where PosTable: Table, Block: BlockT, Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + AuxStore + 'static, - Client::Api: SubspaceApi<Block, FarmerPublicKey>, + Client::Api: SubspaceApi<Block, FarmerPublicKey>, E: Environment<Block, Error = Error> + Send + Sync, E::Proposer: Proposer<Block, Error = Error>, SO: SyncOracle + Send + Sync, @@ -33,7 +33,7 @@ Error: Error + Send + From<Error> + 'static, AS: AuxStore + Send + Sync + 'static, BlockNumber: From<<<Block as BlockT>::Header as Header>::Number>,

§

type BlockImport = SharedBlockImport<Block>

A handle to a BlockImport.
§

type SyncOracle = SubspaceSyncOracle<SO>

A handle to a SyncOracle.
A handle to a JustificationSyncLink, allows hooking into the sync module to control the -justification sync process.
§

type CreateProposer = Pin<Box<dyn Future<Output = Result<<E as Environment<Block>>::Proposer, Error>> + Send, Global>>

The type of future resolving to the proposer.
§

type Proposer = <E as Environment<Block>>::Proposer

The type of proposer to use to build blocks.
§

type Claim = (PreDigest<Public, Public>, SubspaceJustification)

Data associated with a slot claim.
§

type AuxData = ()

Auxiliary data necessary for authoring.
source§

fn logging_target(&self) -> &'static str

The logging target to use when logging messages.
source§

fn block_import(&mut self) -> &mut Self::BlockImport

A handle to a BlockImport.
source§

fn aux_data( +justification sync process.

§

type CreateProposer = Pin<Box<dyn Future<Output = Result<<E as Environment<Block>>::Proposer, Error>> + Send, Global>>

The type of future resolving to the proposer.
§

type Proposer = <E as Environment<Block>>::Proposer

The type of proposer to use to build blocks.
§

type Claim = (PreDigest<Public, Public>, SubspaceJustification)

Data associated with a slot claim.
§

type AuxData = ()

Auxiliary data necessary for authoring.
source§

fn logging_target(&self) -> &'static str

The logging target to use when logging messages.
source§

fn block_import(&mut self) -> &mut Self::BlockImport

A handle to a BlockImport.
source§

fn aux_data( &self, _parent: &Block::Header, _slot: Slot diff --git a/sc_consensus_subspace/struct.SubspaceLink.html b/sc_consensus_subspace/struct.SubspaceLink.html index 5fd306cfd1..6688e72202 100644 --- a/sc_consensus_subspace/struct.SubspaceLink.html +++ b/sc_consensus_subspace/struct.SubspaceLink.html @@ -1,5 +1,5 @@ SubspaceLink in sc_consensus_subspace - Rust
pub struct SubspaceLink<Block: BlockT> { /* private fields */ }
Expand description

State that must be shared between the import queue and the authoring logic.

-

Implementations§

source§

impl<Block: BlockT> SubspaceLink<Block>

source

pub fn new(chain_constants: ChainConstants, kzg: Kzg) -> Self

Create new instance.

+

Implementations§

source§

impl<Block: BlockT> SubspaceLink<Block>

source

pub fn new(chain_constants: ChainConstants, kzg: Kzg) -> Self

Create new instance.

source

pub fn new_slot_notification_stream( &self ) -> SubspaceNotificationStream<NewSlotNotification>

Get stream with notifications about new slot arrival with ability to send solution back.

@@ -20,7 +20,7 @@ &self, block_number: NumberFor<Block> ) -> Vec<SegmentHeader>

Get blocks that are expected to be included at specified block number.

-
source

pub fn chain_constants(&self) -> &ChainConstants

Subspace chain constants.

+
source

pub fn chain_constants(&self) -> &ChainConstants

Subspace chain constants.

source

pub fn kzg(&self) -> &Kzg

Access KZG instance

Trait Implementations§

source§

impl<Block: Clone + BlockT> Clone for SubspaceLink<Block>

source§

fn clone(&self) -> SubspaceLink<Block>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<Block> !RefUnwindSafe for SubspaceLink<Block>

§

impl<Block> Send for SubspaceLink<Block>

§

impl<Block> Sync for SubspaceLink<Block>

§

impl<Block> Unpin for SubspaceLink<Block>

§

impl<Block> !UnwindSafe for SubspaceLink<Block>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for Twhere diff --git a/sc_consensus_subspace/verifier/struct.SubspaceVerifier.html b/sc_consensus_subspace/verifier/struct.SubspaceVerifier.html index 629da39ddb..ec06e5d448 100644 --- a/sc_consensus_subspace/verifier/struct.SubspaceVerifier.html +++ b/sc_consensus_subspace/verifier/struct.SubspaceVerifier.html @@ -5,14 +5,14 @@ Block: BlockT, BlockNumber: From<NumberFor<Block>>, Client: AuxStore + HeaderBackend<Block> + ProvideRuntimeApi<Block>, - Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey>, + Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey>, SelectChain: SelectChain<Block>,

source

pub fn new(options: SubspaceVerifierOptions<Block, Client, SelectChain>) -> Self

Create new instance

Trait Implementations§

source§

impl<PosTable, Block, Client, SelectChain> Verifier<Block> for SubspaceVerifier<PosTable, Block, Client, SelectChain>where PosTable: Table, Block: BlockT, BlockNumber: From<NumberFor<Block>>, Client: HeaderBackend<Block> + ProvideRuntimeApi<Block> + Send + Sync + AuxStore, - Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey>, + Client::Api: BlockBuilderApi<Block> + SubspaceApi<Block, FarmerPublicKey>, SelectChain: SelectChain<Block>,

source§

fn verification_concurrency(&self) -> NonZeroUsize

How many blocks can be verified concurrently. Read more
source§

fn verify<'life0, 'async_trait>( &'life0 self, block: BlockImportParams<Block> diff --git a/sc_consensus_subspace/verifier/struct.SubspaceVerifierOptions.html b/sc_consensus_subspace/verifier/struct.SubspaceVerifierOptions.html index ba754f50e3..1f8f6fc205 100644 --- a/sc_consensus_subspace/verifier/struct.SubspaceVerifierOptions.html +++ b/sc_consensus_subspace/verifier/struct.SubspaceVerifierOptions.html @@ -1,7 +1,7 @@ SubspaceVerifierOptions in sc_consensus_subspace::verifier - Rust
pub struct SubspaceVerifierOptions<Block, Client, SelectChain>where
     Block: BlockT,{
     pub client: Arc<Client>,
-    pub chain_constants: ChainConstants,
+    pub chain_constants: ChainConstants,
     pub kzg: Kzg,
     pub select_chain: SelectChain,
     pub telemetry: Option<TelemetryHandle>,
@@ -12,7 +12,7 @@
     pub pot_verifier: PotVerifier,
 }
Expand description

Options for Subspace block verifier

Fields§

§client: Arc<Client>

Substrate client

-
§chain_constants: ChainConstants

Subspace chain constants

+
§chain_constants: ChainConstants

Subspace chain constants

§kzg: Kzg

Kzg instance

§select_chain: SelectChain

Chain selection rule

§telemetry: Option<TelemetryHandle>

Telemetry

diff --git a/sc_consensus_subspace_rpc/struct.SubspaceRpc.html b/sc_consensus_subspace_rpc/struct.SubspaceRpc.html index 677e5bc34b..b9011e3a9a 100644 --- a/sc_consensus_subspace_rpc/struct.SubspaceRpc.html +++ b/sc_consensus_subspace_rpc/struct.SubspaceRpc.html @@ -4,7 +4,7 @@

Implementations§

source§

impl<Block, Client, SO, AS> SubspaceRpc<Block, Client, SO, AS>where Block: BlockT, Client: ProvideRuntimeApi<Block> + HeaderBackend<Block>, - Client::Api: SubspaceRuntimeApi<Block, FarmerPublicKey>, + Client::Api: SubspaceRuntimeApi<Block, FarmerPublicKey>, SO: SyncOracle + Send + Sync + Clone + 'static, AS: AuxStore + Send + Sync + 'static,

SubspaceRpc is used for notifying subscribers about arrival of new slots and for submission of solutions (or lack thereof).

@@ -16,7 +16,7 @@

Trait Implementations§

source§

impl<Block, Client, SO, AS> SubspaceRpcApiServer for SubspaceRpc<Block, Client, SO, AS>where Block: BlockT, Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBackend<Block> + Send + Sync + 'static, - Client::Api: SubspaceRuntimeApi<Block, FarmerPublicKey> + ObjectsApi<Block>, + Client::Api: SubspaceRuntimeApi<Block, FarmerPublicKey> + ObjectsApi<Block>, SO: SyncOracle + Send + Sync + Clone + 'static, AS: AuxStore + Send + Sync + 'static,

source§

fn get_farmer_app_info(&self) -> RpcResult<FarmerAppInfo>

Ger metadata necessary for farmer operation
source§

fn submit_solution_response( &self, diff --git a/sc_consensus_subspace_rpc/trait.SubspaceRpcApiServer.html b/sc_consensus_subspace_rpc/trait.SubspaceRpcApiServer.html index 321a18dba7..1f56e3df6c 100644 --- a/sc_consensus_subspace_rpc/trait.SubspaceRpcApiServer.html +++ b/sc_consensus_subspace_rpc/trait.SubspaceRpcApiServer.html @@ -90,6 +90,6 @@

Implementors§

source§

impl<Block, Client, SO, AS> SubspaceRpcApiServer for SubspaceRpc<Block, Client, SO, AS>where Block: BlockT, Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBackend<Block> + Send + Sync + 'static, - Client::Api: SubspaceRuntimeApi<Block, FarmerPublicKey> + ObjectsApi<Block>, + Client::Api: SubspaceRuntimeApi<Block, FarmerPublicKey> + ObjectsApi<Block>, SO: SyncOracle + Send + Sync + Clone + 'static, AS: AuxStore + Send + Sync + 'static,

\ No newline at end of file diff --git a/subspace_archiving/archiver/enum.ArchiverInstantiationError.html b/subspace_archiving/archiver/enum.ArchiverInstantiationError.html index d60ca16052..d71b657d0d 100644 --- a/subspace_archiving/archiver/enum.ArchiverInstantiationError.html +++ b/subspace_archiving/archiver/enum.ArchiverInstantiationError.html @@ -1,13 +1,13 @@ ArchiverInstantiationError in subspace_archiving::archiver - Rust
pub enum ArchiverInstantiationError {
     FailedToInitializeErasureCoding(String),
-    InvalidLastArchivedBlock(BlockNumber),
+    InvalidLastArchivedBlock(BlockNumber),
     InvalidBlockSmallSize {
         block_bytes: u32,
         archived_block_bytes: u32,
     },
 }
Expand description

Archiver instantiation error

Variants§

§

FailedToInitializeErasureCoding(String)

Failed to initialize erasure coding

-
§

InvalidLastArchivedBlock(BlockNumber)

Invalid last archived block, its size is the same as encoded block

+
§

InvalidLastArchivedBlock(BlockNumber)

Invalid last archived block, its size is the same as encoded block

§

InvalidBlockSmallSize

Fields

§block_bytes: u32

Full block size

§archived_block_bytes: u32

Already archived portion of the block

Invalid block, its size is smaller than already archived number of bytes

diff --git a/subspace_archiving/archiver/enum.SegmentItem.html b/subspace_archiving/archiver/enum.SegmentItem.html index 852ad914c1..da76de1c26 100644 --- a/subspace_archiving/archiver/enum.SegmentItem.html +++ b/subspace_archiving/archiver/enum.SegmentItem.html @@ -12,7 +12,7 @@ bytes: Vec<u8>, /* private fields */ }, - ParentSegmentHeader(SegmentHeader), + ParentSegmentHeader(SegmentHeader), }
Expand description

Kinds of items that are contained within a segment

Variants§

§

Padding

Special dummy enum variant only used as an implementation detail for padding purposes

§

Block

Fields

§bytes: Vec<u8>

Block bytes

@@ -21,7 +21,7 @@

Contains the beginning of the block inside, remainder will be found in subsequent segments

§

BlockContinuation

Fields

§bytes: Vec<u8>

Block bytes

Continuation of the partial block spilled over into the next segment

-
§

ParentSegmentHeader(SegmentHeader)

Segment header of the parent

+
§

ParentSegmentHeader(SegmentHeader)

Segment header of the parent

Trait Implementations§

source§

impl Clone for SegmentItem

source§

fn clone(&self) -> SegmentItem

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SegmentItem

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for SegmentItem

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( diff --git a/subspace_archiving/archiver/fn.is_piece_valid.html b/subspace_archiving/archiver/fn.is_piece_valid.html index bccd60ad8a..bf9949321f 100644 --- a/subspace_archiving/archiver/fn.is_piece_valid.html +++ b/subspace_archiving/archiver/fn.is_piece_valid.html @@ -1,7 +1,7 @@ is_piece_valid in subspace_archiving::archiver - Rust
pub fn is_piece_valid(
-    kzg: &Kzg,
-    piece: &PieceArray,
-    segment_commitment: &SegmentCommitment,
+    kzg: &Kzg,
+    piece: &PieceArray,
+    segment_commitment: &SegmentCommitment,
     position: u32
 ) -> bool
Expand description

Validate witness embedded within a piece produced by archiver

\ No newline at end of file diff --git a/subspace_archiving/archiver/fn.is_record_commitment_hash_valid.html b/subspace_archiving/archiver/fn.is_record_commitment_hash_valid.html index 707711c861..4dd33bf6f8 100644 --- a/subspace_archiving/archiver/fn.is_record_commitment_hash_valid.html +++ b/subspace_archiving/archiver/fn.is_record_commitment_hash_valid.html @@ -1,8 +1,8 @@ is_record_commitment_hash_valid in subspace_archiving::archiver - Rust
pub fn is_record_commitment_hash_valid(
-    kzg: &Kzg,
-    record_commitment_hash: &Scalar,
-    commitment: &SegmentCommitment,
-    witness: &RecordWitness,
+    kzg: &Kzg,
+    record_commitment_hash: &Scalar,
+    commitment: &SegmentCommitment,
+    witness: &RecordWitness,
     position: u32
 ) -> bool
Expand description

Validate witness for record commitment hash produced by archiver

\ No newline at end of file diff --git a/subspace_archiving/archiver/struct.Archiver.html b/subspace_archiving/archiver/struct.Archiver.html index 2f6e1855a9..51f9c2a594 100644 --- a/subspace_archiving/archiver/struct.Archiver.html +++ b/subspace_archiving/archiver/struct.Archiver.html @@ -1,27 +1,27 @@ Archiver in subspace_archiving::archiver - Rust
pub struct Archiver { /* private fields */ }
Expand description

Block archiver for Subspace blockchain.

It takes new confirmed (at K depth) blocks and concatenates them into a buffer, buffer is -sliced into segments of RecordedHistorySegment::SIZE size, segments are sliced into source -records of RawRecord::SIZE, records are erasure coded, committed to with Kzg, then +sliced into segments of [RecordedHistorySegment::SIZE] size, segments are sliced into source +records of [RawRecord::SIZE], records are erasure coded, committed to with [Kzg], then commitments with witnesses are appended and records become pieces that are returned alongside corresponding segment header header.

Panics

Panics when operating on blocks, whose length doesn’t fit into u32 (should never be the case in blockchain context anyway).

-

Implementations§

source§

impl Archiver

source

pub fn new(kzg: Kzg) -> Result<Self, ArchiverInstantiationError>

Create a new instance with specified record size and recorded history segment size.

+

Implementations§

source§

impl Archiver

source

pub fn new(kzg: Kzg) -> Result<Self, ArchiverInstantiationError>

Create a new instance with specified record size and recorded history segment size.

Note: this is the only way to instantiate object archiver, while block archiver can be instantiated with BlockArchiver::with_initial_state() in case of restarts.

source

pub fn with_initial_state( - kzg: Kzg, - segment_header: SegmentHeader, + kzg: Kzg, + segment_header: SegmentHeader, encoded_block: &[u8], - object_mapping: BlockObjectMapping + object_mapping: BlockObjectMapping ) -> Result<Self, ArchiverInstantiationError>

Create a new instance of the archiver with initial state in case of restart.

block corresponds to last_archived_block and will be processed accordingly to its state.

-
source

pub fn last_archived_block_number(&self) -> Option<BlockNumber>

Get last archived block if there was any

+
source

pub fn last_archived_block_number(&self) -> Option<BlockNumber>

Get last archived block if there was any

source

pub fn add_block( &mut self, bytes: Vec<u8>, - object_mapping: BlockObjectMapping, + object_mapping: BlockObjectMapping, incremental: bool ) -> Vec<NewArchivedSegment>

Adds new block to internal buffer, potentially producing pieces and segment header headers.

Incremental archiving can be enabled if amortized block addition cost is preferred over diff --git a/subspace_archiving/archiver/struct.NewArchivedSegment.html b/subspace_archiving/archiver/struct.NewArchivedSegment.html index 3c92a39f06..26e7d30216 100644 --- a/subspace_archiving/archiver/struct.NewArchivedSegment.html +++ b/subspace_archiving/archiver/struct.NewArchivedSegment.html @@ -1,12 +1,12 @@ NewArchivedSegment in subspace_archiving::archiver - Rust

pub struct NewArchivedSegment {
-    pub segment_header: SegmentHeader,
-    pub pieces: ArchivedHistorySegment,
-    pub object_mapping: Vec<PieceObjectMapping>,
+    pub segment_header: SegmentHeader,
+    pub pieces: ArchivedHistorySegment,
+    pub object_mapping: Vec<PieceObjectMapping>,
 }
Expand description

Newly archived segment as a combination of segment header hash, segment index and corresponding archived history segment containing pieces

-

Fields§

§segment_header: SegmentHeader

Segment header

-
§pieces: ArchivedHistorySegment

Segment of archived history containing pieces

-
§object_mapping: Vec<PieceObjectMapping>

Mappings for objects stored in corresponding pieces.

+

Fields§

§segment_header: SegmentHeader

Segment header

+
§pieces: ArchivedHistorySegment

Segment of archived history containing pieces

+
§object_mapping: Vec<PieceObjectMapping>

Mappings for objects stored in corresponding pieces.

NOTE: Only half (source pieces) will have corresponding mapping item in this Vec.

Trait Implementations§

source§

impl Clone for NewArchivedSegment

source§

fn clone(&self) -> NewArchivedSegment

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NewArchivedSegment

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for NewArchivedSegment

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy diff --git a/subspace_archiving/piece_reconstructor/struct.PiecesReconstructor.html b/subspace_archiving/piece_reconstructor/struct.PiecesReconstructor.html index 1f2cabbbe9..5d466ed107 100644 --- a/subspace_archiving/piece_reconstructor/struct.PiecesReconstructor.html +++ b/subspace_archiving/piece_reconstructor/struct.PiecesReconstructor.html @@ -1,15 +1,15 @@ PiecesReconstructor in subspace_archiving::piece_reconstructor - Rust
pub struct PiecesReconstructor { /* private fields */ }
Expand description

Reconstructor helps to retrieve blocks from archived pieces.

-

Implementations§

source§

impl PiecesReconstructor

Implementations§

source§

impl PiecesReconstructor

source

pub fn new(kzg: Kzg) -> Result<Self, ReconstructorInstantiationError>

source

pub fn reconstruct_segment( &self, - segment_pieces: &[Option<Piece>] -) -> Result<ArchivedHistorySegment, ReconstructorError>

Returns all the pieces for a segment using given set of pieces of a segment of the archived + segment_pieces: &[Option<Piece>] +) -> Result<ArchivedHistorySegment, ReconstructorError>

Returns all the pieces for a segment using given set of pieces of a segment of the archived history (any half of all pieces are required to be present, the rest will be recovered automatically due to use of erasure coding if needed).

source

pub fn reconstruct_piece( &self, - segment_pieces: &[Option<Piece>], + segment_pieces: &[Option<Piece>], piece_position: usize -) -> Result<Piece, ReconstructorError>

Returns the missing piece for a segment using given set of pieces of a segment of the archived +) -> Result<Piece, ReconstructorError>

Returns the missing piece for a segment using given set of pieces of a segment of the archived history (any half of all pieces are required to be present).

Trait Implementations§

source§

impl Clone for PiecesReconstructor

source§

fn clone(&self) -> PiecesReconstructor

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PiecesReconstructor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/subspace_archiving/reconstructor/enum.ReconstructorError.html b/subspace_archiving/reconstructor/enum.ReconstructorError.html index 370d1cdd7c..682675c45a 100644 --- a/subspace_archiving/reconstructor/enum.ReconstructorError.html +++ b/subspace_archiving/reconstructor/enum.ReconstructorError.html @@ -2,13 +2,13 @@ DataShardsReconstruction(String), SegmentDecoding(Error), IncorrectSegmentOrder { - expected_segment_index: SegmentIndex, - actual_segment_index: SegmentIndex, + expected_segment_index: SegmentIndex, + actual_segment_index: SegmentIndex, }, }
Expand description

Reconstructor-related instantiation error

Variants§

§

DataShardsReconstruction(String)

Error during data shards reconstruction

§

SegmentDecoding(Error)

Segment size is not bigger than record size

-
§

IncorrectSegmentOrder

Fields

§expected_segment_index: SegmentIndex
§actual_segment_index: SegmentIndex

Incorrect segment order, each next segment must have monotonically increasing segment index

+
§

IncorrectSegmentOrder

Fields

§expected_segment_index: SegmentIndex
§actual_segment_index: SegmentIndex

Incorrect segment order, each next segment must have monotonically increasing segment index

Trait Implementations§

source§

impl Clone for ReconstructorError

source§

fn clone(&self) -> ReconstructorError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReconstructorError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ReconstructorError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for ReconstructorError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq<ReconstructorError> for ReconstructorError

source§

fn eq(&self, other: &ReconstructorError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ReconstructorError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/subspace_archiving/reconstructor/struct.ReconstructedContents.html b/subspace_archiving/reconstructor/struct.ReconstructedContents.html index 6c2eacc964..eeebaf7d1b 100644 --- a/subspace_archiving/reconstructor/struct.ReconstructedContents.html +++ b/subspace_archiving/reconstructor/struct.ReconstructedContents.html @@ -1,10 +1,10 @@ ReconstructedContents in subspace_archiving::reconstructor - Rust
pub struct ReconstructedContents {
-    pub segment_header: Option<SegmentHeader>,
-    pub blocks: Vec<(BlockNumber, Vec<u8>)>,
+    pub segment_header: Option<SegmentHeader>,
+    pub blocks: Vec<(BlockNumber, Vec<u8>)>,
 }
Expand description

Data structure that contains information reconstructed from given segment (potentially using information from segments that were added previously)

-

Fields§

§segment_header: Option<SegmentHeader>

Segment header stored in a segment

-
§blocks: Vec<(BlockNumber, Vec<u8>)>

Reconstructed encoded blocks with their block numbers

+

Fields§

§segment_header: Option<SegmentHeader>

Segment header stored in a segment

+
§blocks: Vec<(BlockNumber, Vec<u8>)>

Reconstructed encoded blocks with their block numbers

Trait Implementations§

source§

impl Clone for ReconstructedContents

source§

fn clone(&self) -> ReconstructedContents

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReconstructedContents

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ReconstructedContents

source§

fn default() -> ReconstructedContents

Returns the “default value” for a type. Read more
source§

impl PartialEq<ReconstructedContents> for ReconstructedContents

source§

fn eq(&self, other: &ReconstructedContents) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for ReconstructedContents

source§

impl StructuralEq for ReconstructedContents

source§

impl StructuralPartialEq for ReconstructedContents

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/subspace_archiving/reconstructor/struct.Reconstructor.html b/subspace_archiving/reconstructor/struct.Reconstructor.html index fa8678c50e..2a3b106ce2 100644 --- a/subspace_archiving/reconstructor/struct.Reconstructor.html +++ b/subspace_archiving/reconstructor/struct.Reconstructor.html @@ -1,7 +1,7 @@ Reconstructor in subspace_archiving::reconstructor - Rust
pub struct Reconstructor { /* private fields */ }
Expand description

Reconstructor helps to retrieve blocks from archived pieces.

Implementations§

source§

impl Reconstructor

source

pub fn new() -> Result<Self, ReconstructorInstantiationError>

source

pub fn add_segment( &mut self, - segment_pieces: &[Option<Piece>] + segment_pieces: &[Option<Piece>] ) -> Result<ReconstructedContents, ReconstructorError>

Given a set of pieces of a segment of the archived history (any half of all pieces are required to be present, the rest will be recovered automatically due to use of erasure coding if needed), reconstructs and returns segment header and a list of encoded blocks with diff --git a/subspace_erasure_coding/struct.ErasureCoding.html b/subspace_erasure_coding/struct.ErasureCoding.html index ece10b5510..1809985666 100644 --- a/subspace_erasure_coding/struct.ErasureCoding.html +++ b/subspace_erasure_coding/struct.ErasureCoding.html @@ -4,28 +4,28 @@

Number of shards supported is 2^scale, half of shards are source data and the other half are parity.

source

pub fn max_shards(&self) -> usize

Max number of shards supported (both source and parity together)

-
source

pub fn extend(&self, source: &[Scalar]) -> Result<Vec<Scalar>, String>

Extend sources using erasure coding.

+
source

pub fn extend(&self, source: &[Scalar]) -> Result<Vec<Scalar>, String>

Extend sources using erasure coding.

Returns parity data.

-
source

pub fn recover(&self, shards: &[Option<Scalar>]) -> Result<Vec<Scalar>, String>

Recovery of missing shards from given shards (at least 1/2 should be Some).

+
source

pub fn recover(&self, shards: &[Option<Scalar>]) -> Result<Vec<Scalar>, String>

Recovery of missing shards from given shards (at least 1/2 should be Some).

Both in input and output source shards are interleaved with parity shards: source, parity, source, parity, …

source

pub fn recover_poly( &self, - shards: &[Option<Scalar>] -) -> Result<Polynomial, String>

Recovery of missing shards from given shards (at least 1/2 should be Some) in form of + shards: &[Option<Scalar>] +) -> Result<Polynomial, String>

Recovery of missing shards from given shards (at least 1/2 should be Some) in form of normalized polynomial (allows to not do inverse FFT afterwards if polynomial is desired).

Both in input and output source shards are interleaved with parity shards: source, parity, source, parity, …

source

pub fn recover_source( &self, - shards: &[Option<Scalar>] -) -> Result<impl ExactSizeIterator<Item = Scalar>, String>

Recovery of source shards from given shards (at least 1/2 should be Some).

+ shards: &[Option<Scalar>] +) -> Result<impl ExactSizeIterator<Item = Scalar>, String>

Recovery of source shards from given shards (at least 1/2 should be Some).

The same as ErasureCoding::recover(), but returns only source shards in form of an iterator.

source

pub fn extend_commitments( &self, - commitments: &[Commitment] -) -> Result<Vec<Commitment>, String>

Extend commitments using erasure coding.

+ commitments: &[Commitment] +) -> Result<Vec<Commitment>, String>

Extend commitments using erasure coding.

Returns both source and parity commitments interleaved.

Trait Implementations§

source§

impl Clone for ErasureCoding

source§

fn clone(&self) -> ErasureCoding

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ErasureCoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/subspace_farmer_components/auditing/fn.audit_plot_sync.html b/subspace_farmer_components/auditing/fn.audit_plot_sync.html index 38b352af68..4b12ab2acc 100644 --- a/subspace_farmer_components/auditing/fn.audit_plot_sync.html +++ b/subspace_farmer_components/auditing/fn.audit_plot_sync.html @@ -1,10 +1,10 @@ audit_plot_sync in subspace_farmer_components::auditing - Rust
pub fn audit_plot_sync<'a, Plot>(
-    public_key: &'a PublicKey,
-    global_challenge: &Blake3Hash,
-    solution_range: SolutionRange,
+    public_key: &'a PublicKey,
+    global_challenge: &Blake3Hash,
+    solution_range: SolutionRange,
     plot: &'a Plot,
     sectors_metadata: &'a [SectorMetadataChecksummed],
-    maybe_sector_being_modified: Option<SectorIndex>
+    maybe_sector_being_modified: Option<SectorIndex>
 ) -> Vec<AuditResult<'a, ReadAtOffset<'a, Plot>>>where
     Plot: ReadAtSync + 'a,
Expand description

Audit the whole plot and generate streams of solutions

\ No newline at end of file diff --git a/subspace_farmer_components/auditing/fn.audit_sector_sync.html b/subspace_farmer_components/auditing/fn.audit_sector_sync.html index 069d003913..fdf787690e 100644 --- a/subspace_farmer_components/auditing/fn.audit_sector_sync.html +++ b/subspace_farmer_components/auditing/fn.audit_sector_sync.html @@ -1,7 +1,7 @@ audit_sector_sync in subspace_farmer_components::auditing - Rust
pub fn audit_sector_sync<'a, Sector>(
-    public_key: &'a PublicKey,
-    global_challenge: &Blake3Hash,
-    solution_range: SolutionRange,
+    public_key: &'a PublicKey,
+    global_challenge: &Blake3Hash,
+    solution_range: SolutionRange,
     sector: Sector,
     sector_metadata: &'a SectorMetadataChecksummed
 ) -> Option<AuditResult<'a, Sector>>where
diff --git a/subspace_farmer_components/auditing/struct.AuditResult.html b/subspace_farmer_components/auditing/struct.AuditResult.html
index 6ca4df3980..3d7c620654 100644
--- a/subspace_farmer_components/auditing/struct.AuditResult.html
+++ b/subspace_farmer_components/auditing/struct.AuditResult.html
@@ -1,12 +1,12 @@
 AuditResult in subspace_farmer_components::auditing - Rust
pub struct AuditResult<'a, Sector>where
     Sector: 'a,{
-    pub sector_index: SectorIndex,
+    pub sector_index: SectorIndex,
     pub solution_candidates: SolutionCandidates<'a, Sector>,
-    pub best_solution_distance: SolutionRange,
+    pub best_solution_distance: SolutionRange,
 }
Expand description

Result of sector audit

-

Fields§

§sector_index: SectorIndex

Sector index

+

Fields§

§sector_index: SectorIndex

Sector index

§solution_candidates: SolutionCandidates<'a, Sector>

Solution candidates

-
§best_solution_distance: SolutionRange

Best solution distance found

+
§best_solution_distance: SolutionRange

Best solution distance found

Trait Implementations§

source§

impl<'a, Sector> Clone for AuditResult<'a, Sector>where Sector: 'a + Clone,

source§

fn clone(&self) -> AuditResult<'a, Sector>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, Sector> Debug for AuditResult<'a, Sector>where Sector: 'a + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, Sector> RefUnwindSafe for AuditResult<'a, Sector>where diff --git a/subspace_farmer_components/plotting/enum.PlottingError.html b/subspace_farmer_components/plotting/enum.PlottingError.html index 0c2df46ebf..3e0f533db3 100644 --- a/subspace_farmer_components/plotting/enum.PlottingError.html +++ b/subspace_farmer_components/plotting/enum.PlottingError.html @@ -9,13 +9,13 @@ expected: usize, }, PieceNotFound { - piece_index: PieceIndex, + piece_index: PieceIndex, }, PieceRecoveryFailed { - piece_index: PieceIndex, + piece_index: PieceIndex, }, FailedToRetrievePiece { - piece_index: PieceIndex, + piece_index: PieceIndex, error: Box<dyn Error + Send + Sync + 'static>, }, FailedToAcquirePermit { @@ -29,11 +29,11 @@

§

BadSectorMetadataOutputSize

Fields

§provided: usize

Actual size

§expected: usize

Expected size

Bad sector metadata output size

-
§

PieceNotFound

Fields

§piece_index: PieceIndex

Piece index

+
§

PieceNotFound

Fields

§piece_index: PieceIndex

Piece index

Piece not found, can’t create sector, this should never happen

-
§

PieceRecoveryFailed

Fields

§piece_index: PieceIndex

Piece index

+
§

PieceRecoveryFailed

Fields

§piece_index: PieceIndex

Piece index

Can’t recover missing piece

-
§

FailedToRetrievePiece

Fields

§piece_index: PieceIndex

Piece index

+
§

FailedToRetrievePiece

Fields

§piece_index: PieceIndex

Piece index

§error: Box<dyn Error + Send + Sync + 'static>

Lower-level error

Failed to retrieve piece

§

FailedToAcquirePermit

Fields

§error: AcquireError

Lower-level error

diff --git a/subspace_farmer_components/plotting/fn.encode_sector.html b/subspace_farmer_components/plotting/fn.encode_sector.html index aacf625683..c0dcf72a9a 100644 --- a/subspace_farmer_components/plotting/fn.encode_sector.html +++ b/subspace_farmer_components/plotting/fn.encode_sector.html @@ -2,4 +2,4 @@ downloaded_sector: DownloadedSector, encoding_options: EncodeSectorOptions<'_, PosTable> ) -> Result<PlottedSector, PlottingError>where - PosTable: Table,
\ No newline at end of file + PosTable: Table,
\ No newline at end of file diff --git a/subspace_farmer_components/plotting/fn.plot_sector.html b/subspace_farmer_components/plotting/fn.plot_sector.html index e9a7dee3e6..0420d7b753 100644 --- a/subspace_farmer_components/plotting/fn.plot_sector.html +++ b/subspace_farmer_components/plotting/fn.plot_sector.html @@ -1,7 +1,7 @@ plot_sector in subspace_farmer_components::plotting - Rust
pub async fn plot_sector<PosTable, PG>(
     options: PlotSectorOptions<'_, PosTable, PG>
 ) -> Result<PlottedSector, PlottingError>where
-    PosTable: Table,
+    PosTable: Table,
     PG: PieceGetter,
Expand description

Plot a single sector.

This is a convenient wrapper around download_sector and encode_sector functions.

NOTE: Even though this function is async, it has blocking code inside and must be running in a diff --git a/subspace_farmer_components/plotting/struct.DownloadSectorOptions.html b/subspace_farmer_components/plotting/struct.DownloadSectorOptions.html index f18b116d0f..08324ed870 100644 --- a/subspace_farmer_components/plotting/struct.DownloadSectorOptions.html +++ b/subspace_farmer_components/plotting/struct.DownloadSectorOptions.html @@ -1,19 +1,19 @@ DownloadSectorOptions in subspace_farmer_components::plotting - Rust

pub struct DownloadSectorOptions<'a, PG> {
-    pub public_key: &'a PublicKey,
-    pub sector_index: SectorIndex,
+    pub public_key: &'a PublicKey,
+    pub sector_index: SectorIndex,
     pub piece_getter: &'a PG,
     pub piece_getter_retry_policy: PieceGetterRetryPolicy,
     pub farmer_protocol_info: FarmerProtocolInfo,
-    pub kzg: &'a Kzg,
+    pub kzg: &'a Kzg,
     pub pieces_in_sector: u16,
     pub downloading_semaphore: Option<Arc<Semaphore>>,
 }
Expand description

Options for sector downloading

-

Fields§

§public_key: &'a PublicKey

Public key corresponding to sector

-
§sector_index: SectorIndex

Sector index

+

Fields§

§public_key: &'a PublicKey

Public key corresponding to sector

+
§sector_index: SectorIndex

Sector index

§piece_getter: &'a PG

Getter for pieces of archival history

§piece_getter_retry_policy: PieceGetterRetryPolicy

Retry policy for piece getter

§farmer_protocol_info: FarmerProtocolInfo

Farmer protocol info

-
§kzg: &'a Kzg

KZG instance

+
§kzg: &'a Kzg

KZG instance

§pieces_in_sector: u16

How many pieces should sector contain

§downloading_semaphore: Option<Arc<Semaphore>>

Semaphore for part of the plotting when farmer downloads new sector, allows to limit memory usage of the plotting process, permit will be held until the end of the plotting process

diff --git a/subspace_farmer_components/plotting/struct.EncodeSectorOptions.html b/subspace_farmer_components/plotting/struct.EncodeSectorOptions.html index 1bf61bc59e..7593daed0b 100644 --- a/subspace_farmer_components/plotting/struct.EncodeSectorOptions.html +++ b/subspace_farmer_components/plotting/struct.EncodeSectorOptions.html @@ -1,18 +1,18 @@ EncodeSectorOptions in subspace_farmer_components::plotting - Rust
pub struct EncodeSectorOptions<'a, PosTable>where
-    PosTable: Table,{
-    pub sector_index: SectorIndex,
-    pub erasure_coding: &'a ErasureCoding,
+    PosTable: Table,{
+    pub sector_index: SectorIndex,
+    pub erasure_coding: &'a ErasureCoding,
     pub pieces_in_sector: u16,
     pub sector_output: &'a mut Vec<u8>,
     pub sector_metadata_output: &'a mut Vec<u8>,
     pub encoding_semaphore: Option<&'a Semaphore>,
-    pub table_generator: &'a mut PosTable::Generator,
+    pub table_generator: &'a mut PosTable::Generator,
 }
Expand description

Options for encoding a sector.

Sector output and sector metadata output should be either empty (in which case they’ll be resized to correct size automatically) or correctly sized from the beginning or else error will be returned.

-

Fields§

§sector_index: SectorIndex

Sector index

-
§erasure_coding: &'a ErasureCoding

Erasure coding instance

+

Fields§

§sector_index: SectorIndex

Sector index

+
§erasure_coding: &'a ErasureCoding

Erasure coding instance

§pieces_in_sector: u16

How many pieces should sector contain

§sector_output: &'a mut Vec<u8>

Where plotted sector should be written, vector must either be empty (in which case it’ll be resized to correct size automatically) or correctly sized from the beginning

@@ -20,9 +20,9 @@ it’ll be resized to correct size automatically) or correctly sized from the beginning

§encoding_semaphore: Option<&'a Semaphore>

Semaphore for part of the plotting when farmer encodes downloaded sector, should typically allow one permit at a time for efficient CPU utilization

-
§table_generator: &'a mut PosTable::Generator

Proof of space table generator

+
§table_generator: &'a mut PosTable::Generator

Proof of space table generator

Auto Trait Implementations§

§

impl<'a, PosTable> !RefUnwindSafe for EncodeSectorOptions<'a, PosTable>

§

impl<'a, PosTable> Send for EncodeSectorOptions<'a, PosTable>

§

impl<'a, PosTable> Sync for EncodeSectorOptions<'a, PosTable>where - <PosTable as Table>::Generator: Sync,

§

impl<'a, PosTable> Unpin for EncodeSectorOptions<'a, PosTable>

§

impl<'a, PosTable> !UnwindSafe for EncodeSectorOptions<'a, PosTable>

Blanket Implementations§

source§

impl<T> Any for Twhere + <PosTable as Table>::Generator: Sync,

§

impl<'a, PosTable> Unpin for EncodeSectorOptions<'a, PosTable>

§

impl<'a, PosTable> !UnwindSafe for EncodeSectorOptions<'a, PosTable>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/subspace_farmer_components/plotting/struct.PlotSectorOptions.html b/subspace_farmer_components/plotting/struct.PlotSectorOptions.html index db84a78f75..10b7b11940 100644 --- a/subspace_farmer_components/plotting/struct.PlotSectorOptions.html +++ b/subspace_farmer_components/plotting/struct.PlotSectorOptions.html @@ -1,29 +1,29 @@ PlotSectorOptions in subspace_farmer_components::plotting - Rust
pub struct PlotSectorOptions<'a, PosTable, PG>where
-    PosTable: Table,{
Show 13 fields - pub public_key: &'a PublicKey, - pub sector_index: SectorIndex, + PosTable: Table,{
Show 13 fields + pub public_key: &'a PublicKey, + pub sector_index: SectorIndex, pub piece_getter: &'a PG, pub piece_getter_retry_policy: PieceGetterRetryPolicy, pub farmer_protocol_info: FarmerProtocolInfo, - pub kzg: &'a Kzg, - pub erasure_coding: &'a ErasureCoding, + pub kzg: &'a Kzg, + pub erasure_coding: &'a ErasureCoding, pub pieces_in_sector: u16, pub sector_output: &'a mut Vec<u8>, pub sector_metadata_output: &'a mut Vec<u8>, pub downloading_semaphore: Option<Arc<Semaphore>>, pub encoding_semaphore: Option<&'a Semaphore>, - pub table_generator: &'a mut PosTable::Generator, + pub table_generator: &'a mut PosTable::Generator,
}
Expand description

Options for plotting a sector.

Sector output and sector metadata output should be either empty (in which case they’ll be resized to correct size automatically) or correctly sized from the beginning or else error will be returned.

-

Fields§

§public_key: &'a PublicKey

Public key corresponding to sector

-
§sector_index: SectorIndex

Sector index

+

Fields§

§public_key: &'a PublicKey

Public key corresponding to sector

+
§sector_index: SectorIndex

Sector index

§piece_getter: &'a PG

Getter for pieces of archival history

§piece_getter_retry_policy: PieceGetterRetryPolicy

Retry policy for piece getter

§farmer_protocol_info: FarmerProtocolInfo

Farmer protocol info

-
§kzg: &'a Kzg

KZG instance

-
§erasure_coding: &'a ErasureCoding

Erasure coding instance

+
§kzg: &'a Kzg

KZG instance

+
§erasure_coding: &'a ErasureCoding

Erasure coding instance

§pieces_in_sector: u16

How many pieces should sector contain

§sector_output: &'a mut Vec<u8>

Where plotted sector should be written, vector must either be empty (in which case it’ll be resized to correct size automatically) or correctly sized from the beginning

@@ -33,11 +33,11 @@ usage of the plotting process, permit will be held until the end of the plotting process

§encoding_semaphore: Option<&'a Semaphore>

Semaphore for part of the plotting when farmer encodes downloaded sector, should typically allow one permit at a time for efficient CPU utilization

-
§table_generator: &'a mut PosTable::Generator

Proof of space table generator

+
§table_generator: &'a mut PosTable::Generator

Proof of space table generator

Auto Trait Implementations§

§

impl<'a, PosTable, PG> !RefUnwindSafe for PlotSectorOptions<'a, PosTable, PG>

§

impl<'a, PosTable, PG> Send for PlotSectorOptions<'a, PosTable, PG>where PG: Sync,

§

impl<'a, PosTable, PG> Sync for PlotSectorOptions<'a, PosTable, PG>where PG: Sync, - <PosTable as Table>::Generator: Sync,

§

impl<'a, PosTable, PG> Unpin for PlotSectorOptions<'a, PosTable, PG>

§

impl<'a, PosTable, PG> !UnwindSafe for PlotSectorOptions<'a, PosTable, PG>

Blanket Implementations§

source§

impl<T> Any for Twhere + <PosTable as Table>::Generator: Sync,

§

impl<'a, PosTable, PG> Unpin for PlotSectorOptions<'a, PosTable, PG>

§

impl<'a, PosTable, PG> !UnwindSafe for PlotSectorOptions<'a, PosTable, PG>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/subspace_farmer_components/plotting/struct.PlottedSector.html b/subspace_farmer_components/plotting/struct.PlottedSector.html index 5760547438..ec369cf0ba 100644 --- a/subspace_farmer_components/plotting/struct.PlottedSector.html +++ b/subspace_farmer_components/plotting/struct.PlottedSector.html @@ -1,13 +1,13 @@ PlottedSector in subspace_farmer_components::plotting - Rust
pub struct PlottedSector {
-    pub sector_id: SectorId,
-    pub sector_index: SectorIndex,
+    pub sector_id: SectorId,
+    pub sector_index: SectorIndex,
     pub sector_metadata: SectorMetadataChecksummed,
-    pub piece_indexes: Vec<PieceIndex>,
+    pub piece_indexes: Vec<PieceIndex>,
 }
Expand description

Information about sector that was plotted

-

Fields§

§sector_id: SectorId

Sector ID

-
§sector_index: SectorIndex

Sector index

+

Fields§

§sector_id: SectorId

Sector ID

+
§sector_index: SectorIndex

Sector index

§sector_metadata: SectorMetadataChecksummed

Sector metadata

-
§piece_indexes: Vec<PieceIndex>

Indexes of pieces that were plotted

+
§piece_indexes: Vec<PieceIndex>

Indexes of pieces that were plotted

Trait Implementations§

source§

impl Clone for PlottedSector

source§

fn clone(&self) -> PlottedSector

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PlottedSector

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/subspace_farmer_components/plotting/trait.PieceGetter.html b/subspace_farmer_components/plotting/trait.PieceGetter.html index 2151e3ac66..09de98b238 100644 --- a/subspace_farmer_components/plotting/trait.PieceGetter.html +++ b/subspace_farmer_components/plotting/trait.PieceGetter.html @@ -2,30 +2,30 @@ // Required method fn get_piece<'life0, 'async_trait>( &'life0 self, - piece_index: PieceIndex, + piece_index: PieceIndex, retry_policy: PieceGetterRetryPolicy - ) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>> + ) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }
Expand description

Duplicate trait for the subspace_networking::PieceReceiver. The goal of this trait is simplifying dependency graph.

Required Methods§

source

fn get_piece<'life0, 'async_trait>( &'life0 self, - piece_index: PieceIndex, + piece_index: PieceIndex, retry_policy: PieceGetterRetryPolicy -) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl<T> PieceGetter for Arc<T>where T: PieceGetter + Send + Sync,

source§

fn get_piece<'life0, 'async_trait>( &'life0 self, - piece_index: PieceIndex, + piece_index: PieceIndex, retry_policy: PieceGetterRetryPolicy -) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where Self: 'async_trait, - 'life0: 'async_trait,

source§

impl PieceGetter for ArchivedHistorySegment

source§

fn get_piece<'life0, 'async_trait>( + 'life0: 'async_trait,

source§

impl PieceGetter for ArchivedHistorySegment

source§

fn get_piece<'life0, 'async_trait>( &'life0 self, - piece_index: PieceIndex, + piece_index: PieceIndex, _retry_policy: PieceGetterRetryPolicy -) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Result<Option<Piece>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

\ No newline at end of file diff --git a/subspace_farmer_components/proving/enum.ProvingError.html b/subspace_farmer_components/proving/enum.ProvingError.html index adfc3ef11a..5d8e7b1f8d 100644 --- a/subspace_farmer_components/proving/enum.ProvingError.html +++ b/subspace_farmer_components/proving/enum.ProvingError.html @@ -1,11 +1,11 @@ ProvingError in subspace_farmer_components::proving - Rust
pub enum ProvingError {
     InvalidErasureCodingInstance,
     FailedToCreatePolynomialForRecord {
-        piece_offset: PieceOffset,
+        piece_offset: PieceOffset,
         error: String,
     },
     FailedToCreateChunkWitness {
-        piece_offset: PieceOffset,
+        piece_offset: PieceOffset,
         chunk_offset: u32,
         error: String,
     },
@@ -14,10 +14,10 @@
     RecordReadingError(ReadingError),
 }
Expand description

Errors that happen during proving

Variants§

§

InvalidErasureCodingInstance

Invalid erasure coding instance

-
§

FailedToCreatePolynomialForRecord

Fields

§piece_offset: PieceOffset

Piece offset

+
§

FailedToCreatePolynomialForRecord

Fields

§piece_offset: PieceOffset

Piece offset

§error: String

Lower-level error

Failed to create polynomial for record

-
§

FailedToCreateChunkWitness

Fields

§piece_offset: PieceOffset

Piece offset

+
§

FailedToCreateChunkWitness

Fields

§piece_offset: PieceOffset

Piece offset

§chunk_offset: u32

Chunk index

§error: String

Lower-level error

Failed to create chunk witness

diff --git a/subspace_farmer_components/proving/struct.SolutionCandidates.html b/subspace_farmer_components/proving/struct.SolutionCandidates.html index dfe98c9776..c18fe0a1a1 100644 --- a/subspace_farmer_components/proving/struct.SolutionCandidates.html +++ b/subspace_farmer_components/proving/struct.SolutionCandidates.html @@ -6,13 +6,13 @@
source

pub fn into_solutions<RewardAddress, PosTable, TableGenerator>( self, reward_address: &'a RewardAddress, - kzg: &'a Kzg, - erasure_coding: &'a ErasureCoding, + kzg: &'a Kzg, + erasure_coding: &'a ErasureCoding, table_generator: TableGenerator -) -> Result<impl ProvableSolutions<Item = Result<Solution<PublicKey, RewardAddress>, ProvingError>> + 'a, ProvingError>where +) -> Result<impl ProvableSolutions<Item = Result<Solution<PublicKey, RewardAddress>, ProvingError>> + 'a, ProvingError>where RewardAddress: Copy, - PosTable: Table, - TableGenerator: FnMut(&PosSeed) -> PosTable + 'a,

Turn solution candidates into actual solutions

+ PosTable: Table, + TableGenerator: FnMut(&PosSeed) -> PosTable + 'a,

Turn solution candidates into actual solutions

Trait Implementations§

source§

impl<'a, Sector> Clone for SolutionCandidates<'a, Sector>where Sector: Clone + 'a,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, Sector> Debug for SolutionCandidates<'a, Sector>where Sector: 'a + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, Sector> RefUnwindSafe for SolutionCandidates<'a, Sector>where diff --git a/subspace_farmer_components/proving/trait.ProvableSolutions.html b/subspace_farmer_components/proving/trait.ProvableSolutions.html index 7e2c52cba3..5f853f0472 100644 --- a/subspace_farmer_components/proving/trait.ProvableSolutions.html +++ b/subspace_farmer_components/proving/trait.ProvableSolutions.html @@ -1,6 +1,6 @@ ProvableSolutions in subspace_farmer_components::proving - Rust
pub trait ProvableSolutions: ExactSizeIterator {
     // Required method
-    fn best_solution_distance(&self) -> Option<SolutionRange>;
+    fn best_solution_distance(&self) -> Option<SolutionRange>;
 }
Expand description

Solutions that can be proven if necessary.

-

Required Methods§

source

fn best_solution_distance(&self) -> Option<SolutionRange>

Best solution distance found, None in case there are no solutions

+

Required Methods§

source

fn best_solution_distance(&self) -> Option<SolutionRange>

Best solution distance found, None in case there are no solutions

Implementors§

\ No newline at end of file diff --git a/subspace_farmer_components/reading/enum.ReadingError.html b/subspace_farmer_components/reading/enum.ReadingError.html index ef79f3e92c..ffed786354 100644 --- a/subspace_farmer_components/reading/enum.ReadingError.html +++ b/subspace_farmer_components/reading/enum.ReadingError.html @@ -4,13 +4,13 @@ error: Error, }, InvalidChunk { - s_bucket: SBucket, + s_bucket: SBucket, encoded_chunk_used: bool, chunk_location: usize, error: String, }, FailedToErasureDecodeRecord { - piece_offset: PieceOffset, + piece_offset: PieceOffset, error: String, }, WrongRecordSizeAfterDecoding { @@ -26,12 +26,12 @@

Failed to read chunk.

This is an implementation bug, most likely due to mismatch between sector contents map and other farming parameters.

-
§

InvalidChunk

Fields

§s_bucket: SBucket

S-bucket

+
§

InvalidChunk

Fields

§s_bucket: SBucket

S-bucket

§encoded_chunk_used: bool

Indicates whether chunk was encoded

§chunk_location: usize

Chunk location

§error: String

Lower-level error

Invalid chunk, possible disk corruption

-
§

FailedToErasureDecodeRecord

Fields

§piece_offset: PieceOffset

Piece offset

+
§

FailedToErasureDecodeRecord

Fields

§piece_offset: PieceOffset

Piece offset

§error: String

Lower-level error

Failed to erasure-decode record

§

WrongRecordSizeAfterDecoding

Fields

§expected: usize

Expected size in bytes

diff --git a/subspace_farmer_components/reading/fn.read_piece.html b/subspace_farmer_components/reading/fn.read_piece.html index d4802d85a2..69efba9df9 100644 --- a/subspace_farmer_components/reading/fn.read_piece.html +++ b/subspace_farmer_components/reading/fn.read_piece.html @@ -1,12 +1,12 @@ read_piece in subspace_farmer_components::reading - Rust
pub async fn read_piece<PosTable, S, A>(
-    piece_offset: PieceOffset,
-    sector_id: &SectorId,
+    piece_offset: PieceOffset,
+    sector_id: &SectorId,
     sector_metadata: &SectorMetadataChecksummed,
     sector: &ReadAt<S, A>,
-    erasure_coding: &ErasureCoding,
-    table_generator: &mut PosTable::Generator
-) -> Result<Piece, ReadingError>where
-    PosTable: Table,
+    erasure_coding: &ErasureCoding,
+    table_generator: &mut PosTable::Generator
+) -> Result<Piece, ReadingError>where
+    PosTable: Table,
     S: ReadAtSync,
     A: ReadAtAsync,
Expand description

Read piece from sector.

NOTE: Even though this function is async, proof of time table generation is expensive and should diff --git a/subspace_farmer_components/reading/fn.read_sector_record_chunks.html b/subspace_farmer_components/reading/fn.read_sector_record_chunks.html index 4fa0e1a122..35cf03adb2 100644 --- a/subspace_farmer_components/reading/fn.read_sector_record_chunks.html +++ b/subspace_farmer_components/reading/fn.read_sector_record_chunks.html @@ -1,12 +1,12 @@ read_sector_record_chunks in subspace_farmer_components::reading - Rust

pub async fn read_sector_record_chunks<PosTable, S, A>(
-    piece_offset: PieceOffset,
+    piece_offset: PieceOffset,
     pieces_in_sector: u16,
     s_bucket_offsets: &[u32; 65536],
     sector_contents_map: &SectorContentsMap,
     pos_table: &PosTable,
     sector: &ReadAt<S, A>
-) -> Result<Box<[Option<Scalar>; 65536]>, ReadingError>where
-    PosTable: Table,
+) -> Result<Box<[Option<Scalar>; 65536]>, ReadingError>where
+    PosTable: Table,
     S: ReadAtSync,
     A: ReadAtAsync,
Expand description

Read sector record chunks, only plotted s-buckets are returned (in decoded form).

NOTE: This is an async function, but it also does CPU-intensive operation internally, while it diff --git a/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html b/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html index dd3cb5fc86..a632a70556 100644 --- a/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html +++ b/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html @@ -1,6 +1,6 @@ recover_extended_record_chunks in subspace_farmer_components::reading - Rust

pub fn recover_extended_record_chunks(
-    sector_record_chunks: &[Option<Scalar>; 65536],
-    piece_offset: PieceOffset,
-    erasure_coding: &ErasureCoding
-) -> Result<Box<[Scalar; 65536]>, ReadingError>
Expand description

Given sector record chunks recover extended record chunks (both source and parity)

+ sector_record_chunks: &[Option<Scalar>; 65536], + piece_offset: PieceOffset, + erasure_coding: &ErasureCoding +) -> Result<Box<[Scalar; 65536]>, ReadingError>
Expand description

Given sector record chunks recover extended record chunks (both source and parity)

\ No newline at end of file diff --git a/subspace_farmer_components/reading/fn.recover_source_record_chunks.html b/subspace_farmer_components/reading/fn.recover_source_record_chunks.html index 222b6c9bd6..f9801c0b99 100644 --- a/subspace_farmer_components/reading/fn.recover_source_record_chunks.html +++ b/subspace_farmer_components/reading/fn.recover_source_record_chunks.html @@ -1,6 +1,6 @@ recover_source_record_chunks in subspace_farmer_components::reading - Rust
pub fn recover_source_record_chunks(
-    sector_record_chunks: &[Option<Scalar>; 65536],
-    piece_offset: PieceOffset,
-    erasure_coding: &ErasureCoding
-) -> Result<impl ExactSizeIterator<Item = Scalar>, ReadingError>
Expand description

Given sector record chunks recover source record chunks in form of an iterator.

+ sector_record_chunks: &[Option<Scalar>; 65536], + piece_offset: PieceOffset, + erasure_coding: &ErasureCoding +) -> Result<impl ExactSizeIterator<Item = Scalar>, ReadingError>
Expand description

Given sector record chunks recover source record chunks in form of an iterator.

\ No newline at end of file diff --git a/subspace_farmer_components/reading/struct.PlotRecord.html b/subspace_farmer_components/reading/struct.PlotRecord.html index 2ff3f121f9..c57e9e35ef 100644 --- a/subspace_farmer_components/reading/struct.PlotRecord.html +++ b/subspace_farmer_components/reading/struct.PlotRecord.html @@ -1,11 +1,11 @@ PlotRecord in subspace_farmer_components::reading - Rust
pub struct PlotRecord {
-    pub scalars: Box<[Scalar; 32768]>,
-    pub commitment: RecordCommitment,
-    pub witness: RecordWitness,
+    pub scalars: Box<[Scalar; 32768]>,
+    pub commitment: RecordCommitment,
+    pub witness: RecordWitness,
 }
Expand description

Record contained in the plot

-

Fields§

§scalars: Box<[Scalar; 32768]>

Record scalars

-
§commitment: RecordCommitment

Record commitment

-
§witness: RecordWitness

Record witness

+

Fields§

§scalars: Box<[Scalar; 32768]>

Record scalars

+
§commitment: RecordCommitment

Record commitment

+
§witness: RecordWitness

Record witness

Trait Implementations§

source§

impl Clone for PlotRecord

source§

fn clone(&self) -> PlotRecord

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PlotRecord

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/subspace_farmer_components/sector/struct.SectorContentsMap.html b/subspace_farmer_components/sector/struct.SectorContentsMap.html index cae3ea3f2e..8b5b03b2e0 100644 --- a/subspace_farmer_components/sector/struct.SectorContentsMap.html +++ b/subspace_farmer_components/sector/struct.SectorContentsMap.html @@ -16,7 +16,7 @@ &self, output: &mut [u8] ) -> Result<(), SectorContentsMapEncodeIntoError>

Encode internal contents into output

-
source

pub fn num_encoded_record_chunks(&self) -> &[SBucket]

Number of encoded chunks in each record

+
source

pub fn num_encoded_record_chunks(&self) -> &[SBucket]

Number of encoded chunks in each record

source

pub fn iter_record_bitfields(&self) -> &[BitArray<[u8; 8192]>]

Iterate over individual record bitfields

source

pub fn iter_record_bitfields_mut( &mut self @@ -24,14 +24,14 @@

source

pub fn s_bucket_sizes(&self) -> Box<[u16; 65536]>

Returns sizes of each s-bucket

source

pub fn iter_record_chunk_to_plot( &self, - piece_offset: PieceOffset -) -> impl Iterator<Item = (SBucket, bool, usize)> + '_

Creates an iterator of (s_bucket, encoded_chunk_used, chunk_location), where s_bucket is + piece_offset: PieceOffset +) -> impl Iterator<Item = (SBucket, bool, usize)> + '_

Creates an iterator of (s_bucket, encoded_chunk_used, chunk_location), where s_bucket is position of the chunk in the erasure coded record, encoded_chunk_used indicates whether it was encoded and chunk_location is the offset of the chunk in the plot (across all s-buckets).

source

pub fn par_iter_record_chunk_to_plot( &self, - piece_offset: PieceOffset + piece_offset: PieceOffset ) -> impl IndexedParallelIterator<Item = Option<(usize, bool)>> + '_

Creates an iterator of Option<(chunk_offset, encoded_chunk_used)>, where each entry corresponds s-bucket/position of the chunk in the erasure coded record, encoded_chunk_used indicates whether it was encoded and chunk_offset is the offset of the chunk in the @@ -40,18 +40,18 @@ all s-buckets and offsets are within corresponding s-buckets rather than the whole plot.

source

pub fn iter_s_bucket_records( &self, - s_bucket: SBucket -) -> Result<impl Iterator<Item = (PieceOffset, bool)> + '_, SectorContentsMapIterationError>

Creates an iterator of (piece_offset, encoded_chunk_used), where piece_offset + s_bucket: SBucket +) -> Result<impl Iterator<Item = (PieceOffset, bool)> + '_, SectorContentsMapIterationError>

Creates an iterator of (piece_offset, encoded_chunk_used), where piece_offset corresponds to the record to which chunk belongs and encoded_chunk_used indicates whether it was encoded.

-

Returns error if s_bucket is outside of Record::NUM_S_BUCKETS range.

+

Returns error if s_bucket is outside of [Record::NUM_S_BUCKETS] range.

source

pub fn iter_s_bucket_encoded_record_chunks_used( &self, - s_bucket: SBucket + s_bucket: SBucket ) -> Result<impl Iterator<Item = bool> + '_, SectorContentsMapIterationError>

Iterate over chunks of s-bucket indicating if encoded chunk is used at corresponding position

Panics
-

Panics if s_bucket is outside of Record::NUM_S_BUCKETS range.

+

Panics if s_bucket is outside of [Record::NUM_S_BUCKETS] range.

Trait Implementations§

source§

impl Clone for SectorContentsMap

source§

fn clone(&self) -> SectorContentsMap

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for SectorContentsMap

§

impl Send for SectorContentsMap

§

impl Sync for SectorContentsMap

§

impl Unpin for SectorContentsMap

§

impl UnwindSafe for SectorContentsMap

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/subspace_farmer_components/sector/struct.SectorMetadata.html b/subspace_farmer_components/sector/struct.SectorMetadata.html index 8dc600cf0c..6b5c455f95 100644 --- a/subspace_farmer_components/sector/struct.SectorMetadata.html +++ b/subspace_farmer_components/sector/struct.SectorMetadata.html @@ -1,13 +1,13 @@ SectorMetadata in subspace_farmer_components::sector - Rust
pub struct SectorMetadata {
-    pub sector_index: SectorIndex,
+    pub sector_index: SectorIndex,
     pub pieces_in_sector: u16,
     pub s_bucket_sizes: Box<[u16; 65536]>,
-    pub history_size: HistorySize,
+    pub history_size: HistorySize,
 }
Expand description

Metadata of the plotted sector

-

Fields§

§sector_index: SectorIndex

Sector index

+

Fields§

§sector_index: SectorIndex

Sector index

§pieces_in_sector: u16

Number of pieces stored in this sector

§s_bucket_sizes: Box<[u16; 65536]>

S-bucket sizes in a sector

-
§history_size: HistorySize

Size of the blockchain history at time of sector creation

+
§history_size: HistorySize

Size of the blockchain history at time of sector creation

Implementations§

source§

impl SectorMetadata

source

pub fn s_bucket_offsets(&self) -> Box<[u32; 65536]>

Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks)

Trait Implementations§

source§

impl Clone for SectorMetadata

source§

fn clone(&self) -> SectorMetadata

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorMetadata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for SectorMetadata

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy diff --git a/subspace_farmer_components/struct.FarmerProtocolInfo.html b/subspace_farmer_components/struct.FarmerProtocolInfo.html index 4fc90e7727..4d41f53387 100644 --- a/subspace_farmer_components/struct.FarmerProtocolInfo.html +++ b/subspace_farmer_components/struct.FarmerProtocolInfo.html @@ -1,15 +1,15 @@ FarmerProtocolInfo in subspace_farmer_components - Rust
pub struct FarmerProtocolInfo {
-    pub history_size: HistorySize,
+    pub history_size: HistorySize,
     pub max_pieces_in_sector: u16,
-    pub recent_segments: HistorySize,
-    pub recent_history_fraction: (HistorySize, HistorySize),
-    pub min_sector_lifetime: HistorySize,
+    pub recent_segments: HistorySize,
+    pub recent_history_fraction: (HistorySize, HistorySize),
+    pub min_sector_lifetime: HistorySize,
 }
Expand description

Information about the protocol necessary for farmer operation

-

Fields§

§history_size: HistorySize

Size of the blockchain history

+

Fields§

§history_size: HistorySize

Size of the blockchain history

§max_pieces_in_sector: u16

How many pieces one sector is supposed to contain (max)

-
§recent_segments: HistorySize

Number of latest archived segments that are considered “recent history”.

-
§recent_history_fraction: (HistorySize, HistorySize)

Fraction of pieces from the “recent history” (recent_segments) in each sector.

-
§min_sector_lifetime: HistorySize

Minimum lifetime of a plotted sector, measured in archived segment

+
§recent_segments: HistorySize

Number of latest archived segments that are considered “recent history”.

+
§recent_history_fraction: (HistorySize, HistorySize)

Fraction of pieces from the “recent history” (recent_segments) in each sector.

+
§min_sector_lifetime: HistorySize

Minimum lifetime of a plotted sector, measured in archived segment

Trait Implementations§

source§

impl Clone for FarmerProtocolInfo

source§

fn clone(&self) -> FarmerProtocolInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FarmerProtocolInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for FarmerProtocolInfo

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for FarmerProtocolInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for FarmerProtocolInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/subspace_proof_of_space/chia/struct.ChiaTable.html b/subspace_proof_of_space/chia/struct.ChiaTable.html index 092e768ce5..1f5e22affa 100644 --- a/subspace_proof_of_space/chia/struct.ChiaTable.html +++ b/subspace_proof_of_space/chia/struct.ChiaTable.html @@ -1,10 +1,10 @@ ChiaTable in subspace_proof_of_space::chia - Rust
pub struct ChiaTable { /* private fields */ }
Expand description

Subspace proof of space table.

Chia implementation.

-

Trait Implementations§

source§

impl Debug for ChiaTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Table for ChiaTable

source§

const TABLE_TYPE: PosTableType = PosTableType::Chia

Proof of space table type
§

type Generator = ChiaTableGenerator

Instance that can be used to generate tables with better performance
source§

fn generate(seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed using parallelism. Read more
source§

fn find_proof(&self, challenge_index: u32) -> Option<PosProof>

Try to find proof at challenge_index if it exists
source§

fn is_proof_valid( - seed: &PosSeed, +

Trait Implementations§

source§

impl Debug for ChiaTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Table for ChiaTable

source§

const TABLE_TYPE: PosTableType = PosTableType::Chia

Proof of space table type
§

type Generator = ChiaTableGenerator

Instance that can be used to generate tables with better performance
source§

fn generate(seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed using parallelism. Read more
source§

fn find_proof(&self, challenge_index: u32) -> Option<PosProof>

Try to find proof at challenge_index if it exists
source§

fn is_proof_valid( + seed: &PosSeed, challenge_index: u32, - proof: &PosProof -) -> bool

Check whether proof created earlier is valid and return quality bytes if yes
source§

fn generator() -> Self::Generator

Returns a stateful table generator with better performance
source§

impl TableGenerator<ChiaTable> for ChiaTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + proof: &PosProof +) -> bool

Check whether proof created earlier is valid and return quality bytes if yes
source§

fn generator() -> Self::Generator

Returns a stateful table generator with better performance

source§

impl TableGenerator<ChiaTable> for ChiaTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/subspace_proof_of_space/chia/struct.ChiaTableGenerator.html b/subspace_proof_of_space/chia/struct.ChiaTableGenerator.html index 108ea41e1e..e88bf41e38 100644 --- a/subspace_proof_of_space/chia/struct.ChiaTableGenerator.html +++ b/subspace_proof_of_space/chia/struct.ChiaTableGenerator.html @@ -1,6 +1,6 @@ ChiaTableGenerator in subspace_proof_of_space::chia - Rust
pub struct ChiaTableGenerator { /* private fields */ }
Expand description

Subspace proof of space table generator.

Chia implementation.

-

Trait Implementations§

source§

impl Clone for ChiaTableGenerator

source§

fn clone(&self) -> ChiaTableGenerator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ChiaTableGenerator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ChiaTableGenerator

source§

fn default() -> ChiaTableGenerator

Returns the “default value” for a type. Read more
source§

impl TableGenerator<ChiaTable> for ChiaTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Clone for ChiaTableGenerator

source§

fn clone(&self) -> ChiaTableGenerator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ChiaTableGenerator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ChiaTableGenerator

source§

fn default() -> ChiaTableGenerator

Returns the “default value” for a type. Read more
source§

impl TableGenerator<ChiaTable> for ChiaTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> ChiaTable

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/subspace_proof_of_space/shim/struct.ShimTable.html b/subspace_proof_of_space/shim/struct.ShimTable.html index 4e929b0bfa..255f1906dc 100644 --- a/subspace_proof_of_space/shim/struct.ShimTable.html +++ b/subspace_proof_of_space/shim/struct.ShimTable.html @@ -1,10 +1,10 @@ ShimTable in subspace_proof_of_space::shim - Rust
pub struct ShimTable { /* private fields */ }
Expand description

Subspace proof of space table.

Shim implementation.

-

Trait Implementations§

source§

impl Debug for ShimTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Table for ShimTable

source§

const TABLE_TYPE: PosTableType = PosTableType::Shim

Proof of space table type
§

type Generator = ShimTableGenerator

Instance that can be used to generate tables with better performance
source§

fn generate(seed: &PosSeed) -> ShimTable

Generate new table with 32 bytes seed. Read more
source§

fn find_proof(&self, challenge_index: u32) -> Option<PosProof>

Try to find proof at challenge_index if it exists
source§

fn is_proof_valid( - seed: &PosSeed, +

Trait Implementations§

source§

impl Debug for ShimTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Table for ShimTable

source§

const TABLE_TYPE: PosTableType = PosTableType::Shim

Proof of space table type
§

type Generator = ShimTableGenerator

Instance that can be used to generate tables with better performance
source§

fn generate(seed: &PosSeed) -> ShimTable

Generate new table with 32 bytes seed. Read more
source§

fn find_proof(&self, challenge_index: u32) -> Option<PosProof>

Try to find proof at challenge_index if it exists
source§

fn is_proof_valid( + seed: &PosSeed, challenge_index: u32, - proof: &PosProof -) -> bool

Check whether proof created earlier is valid and return quality bytes if yes
source§

fn generate_parallel(seed: &PosSeed) -> Self

Generate new table with 32 bytes seed using parallelism. Read more
source§

fn generator() -> Self::Generator

Returns a stateful table generator with better performance
source§

impl TableGenerator<ShimTable> for ShimTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ShimTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + proof: &PosProof +) -> bool

Check whether proof created earlier is valid and return quality bytes if yes
source§

fn generate_parallel(seed: &PosSeed) -> Self

Generate new table with 32 bytes seed using parallelism. Read more
source§

fn generator() -> Self::Generator

Returns a stateful table generator with better performance
source§

impl TableGenerator<ShimTable> for ShimTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ShimTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/subspace_proof_of_space/shim/struct.ShimTableGenerator.html b/subspace_proof_of_space/shim/struct.ShimTableGenerator.html index 5513c02b37..a4b8192c92 100644 --- a/subspace_proof_of_space/shim/struct.ShimTableGenerator.html +++ b/subspace_proof_of_space/shim/struct.ShimTableGenerator.html @@ -1,6 +1,6 @@ ShimTableGenerator in subspace_proof_of_space::shim - Rust
pub struct ShimTableGenerator;
Expand description

Subspace proof of space table generator.

Shim implementation.

-

Trait Implementations§

source§

impl Clone for ShimTableGenerator

source§

fn clone(&self) -> ShimTableGenerator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ShimTableGenerator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ShimTableGenerator

source§

fn default() -> ShimTableGenerator

Returns the “default value” for a type. Read more
source§

impl TableGenerator<ShimTable> for ShimTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ShimTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Clone for ShimTableGenerator

source§

fn clone(&self) -> ShimTableGenerator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ShimTableGenerator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ShimTableGenerator

source§

fn default() -> ShimTableGenerator

Returns the “default value” for a type. Read more
source§

impl TableGenerator<ShimTable> for ShimTableGenerator

source§

fn generate(&mut self, seed: &PosSeed) -> ShimTable

Generate new table with 32 bytes seed. Read more
source§

fn generate_parallel(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed using parallelism. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/subspace_proof_of_space/trait.Table.html b/subspace_proof_of_space/trait.Table.html index 1430eca0cd..e3811f78a4 100644 --- a/subspace_proof_of_space/trait.Table.html +++ b/subspace_proof_of_space/trait.Table.html @@ -4,29 +4,29 @@ const TABLE_TYPE: PosTableType; // Required methods - fn generate(seed: &PosSeed) -> Self; - fn find_proof(&self, challenge_index: u32) -> Option<PosProof>; + fn generate(seed: &PosSeed) -> Self; + fn find_proof(&self, challenge_index: u32) -> Option<PosProof>; fn is_proof_valid( - seed: &PosSeed, + seed: &PosSeed, challenge_index: u32, - proof: &PosProof + proof: &PosProof ) -> bool; // Provided methods - fn generate_parallel(seed: &PosSeed) -> Self { ... } + fn generate_parallel(seed: &PosSeed) -> Self { ... } fn generator() -> Self::Generator { ... } }
Expand description

Proof of space kind

Required Associated Types§

source

type Generator: TableGenerator<Self>

Instance that can be used to generate tables with better performance

Required Associated Constants§

source

const TABLE_TYPE: PosTableType

Proof of space table type

-

Required Methods§

source

fn generate(seed: &PosSeed) -> Self

Generate new table with 32 bytes seed.

+

Required Methods§

source

fn generate(seed: &PosSeed) -> Self

Generate new table with 32 bytes seed.

There is also Self::generate_parallel() that can achieve lower latency.

-
source

fn find_proof(&self, challenge_index: u32) -> Option<PosProof>

Try to find proof at challenge_index if it exists

+
source

fn find_proof(&self, challenge_index: u32) -> Option<PosProof>

Try to find proof at challenge_index if it exists

source

fn is_proof_valid( - seed: &PosSeed, + seed: &PosSeed, challenge_index: u32, - proof: &PosProof + proof: &PosProof ) -> bool

Check whether proof created earlier is valid and return quality bytes if yes

-

Provided Methods§

source

fn generate_parallel(seed: &PosSeed) -> Self

Generate new table with 32 bytes seed using parallelism.

+

Provided Methods§

source

fn generate_parallel(seed: &PosSeed) -> Self

Generate new table with 32 bytes seed using parallelism.

This implementation will trade efficiency of CPU and memory usage for lower latency, prefer Self::generate() unless lower latency is critical.

source

fn generator() -> Self::Generator

Returns a stateful table generator with better performance

diff --git a/subspace_proof_of_space/trait.TableGenerator.html b/subspace_proof_of_space/trait.TableGenerator.html index 611d34629e..eed976cc97 100644 --- a/subspace_proof_of_space/trait.TableGenerator.html +++ b/subspace_proof_of_space/trait.TableGenerator.html @@ -1,13 +1,13 @@ TableGenerator in subspace_proof_of_space - Rust
pub trait TableGenerator<T: Table>: Debug + Default + Clone + Send + Sized + 'static {
     // Required method
-    fn generate(&mut self, seed: &PosSeed) -> T;
+    fn generate(&mut self, seed: &PosSeed) -> T;
 
     // Provided method
-    fn generate_parallel(&mut self, seed: &PosSeed) -> T { ... }
+    fn generate_parallel(&mut self, seed: &PosSeed) -> T { ... }
 }
Expand description

Stateful table generator with better performance

-

Required Methods§

source

fn generate(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed.

+

Required Methods§

source

fn generate(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed.

There is also Self::generate_parallel() that can achieve lower latency.

-

Provided Methods§

source

fn generate_parallel(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed using parallelism.

+

Provided Methods§

source

fn generate_parallel(&mut self, seed: &PosSeed) -> T

Generate new table with 32 bytes seed using parallelism.

This implementation will trade efficiency of CPU and memory usage for lower latency, prefer Self::generate() unless lower latency is critical.

Implementors§

\ No newline at end of file diff --git a/subspace_proof_of_time/fn.prove.html b/subspace_proof_of_time/fn.prove.html index 361f8ddf4f..6b7fd81846 100644 --- a/subspace_proof_of_time/fn.prove.html +++ b/subspace_proof_of_time/fn.prove.html @@ -1,6 +1,6 @@ prove in subspace_proof_of_time - Rust
pub fn prove(
-    seed: PotSeed,
+    seed: PotSeed,
     iterations: NonZeroU32
-) -> Result<PotCheckpoints, PotError>
Expand description

Run PoT proving and produce checkpoints.

+) -> Result<PotCheckpoints, PotError>
Expand description

Run PoT proving and produce checkpoints.

Returns error if iterations is not a multiple of checkpoints times two.

\ No newline at end of file diff --git a/subspace_proof_of_time/fn.verify.html b/subspace_proof_of_time/fn.verify.html index 4690a143f6..b0d4eff5db 100644 --- a/subspace_proof_of_time/fn.verify.html +++ b/subspace_proof_of_time/fn.verify.html @@ -1,7 +1,7 @@ verify in subspace_proof_of_time - Rust
pub fn verify(
-    seed: PotSeed,
+    seed: PotSeed,
     iterations: NonZeroU32,
-    checkpoints: &[PotOutput]
+    checkpoints: &[PotOutput]
 ) -> Result<bool, PotError>
Expand description

Verify checkpoint, number of iterations is set across uniformly distributed checkpoints.

Returns error if iterations is not a multiple of checkpoints times two.

\ No newline at end of file diff --git a/subspace_service/fn.new_full.html b/subspace_service/fn.new_full.html index 9963c6275b..19fe3c092b 100644 --- a/subspace_service/fn.new_full.html +++ b/subspace_service/fn.new_full.html @@ -6,6 +6,6 @@ ) -> Result<NewFull<FullClient<RuntimeApi, ExecutorDispatch>>, Error>where PosTable: Table, RuntimeApi: ConstructRuntimeApi<Block, FullClient<RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static, - RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + AccountNonceApi<Block, AccountId, Nonce> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + TaggedTransactionQueue<Block> + TransactionPaymentApi<Block, Balance> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, Header> + FraudProofApi<Block, Header> + ObjectsApi<Block>, + RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + AccountNonceApi<Block, AccountId, Nonce> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + TaggedTransactionQueue<Block> + TransactionPaymentApi<Block, Balance> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, Header> + FraudProofApi<Block, Header> + ObjectsApi<Block>, ExecutorDispatch: NativeExecutionDispatch + 'static,
Expand description

Builds a new service for a full client.

\ No newline at end of file diff --git a/subspace_service/fn.new_partial.html b/subspace_service/fn.new_partial.html index d7fd88f356..6962240a1d 100644 --- a/subspace_service/fn.new_partial.html +++ b/subspace_service/fn.new_partial.html @@ -4,6 +4,6 @@ ) -> Result<PartialComponents<FullClient<RuntimeApi, ExecutorDispatch>, FullBackend, FullSelectChain, DefaultImportQueue<Block>, FullPool<FullClient<RuntimeApi, ExecutorDispatch>, Block, Header>, OtherPartialComponents<RuntimeApi, ExecutorDispatch>>, Error>where PosTable: Table, RuntimeApi: ConstructRuntimeApi<Block, FullClient<RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static, - RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, Header> + FraudProofApi<Block, Header> + BundleProducerElectionApi<Block, Balance> + ObjectsApi<Block>, + RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, Header> + FraudProofApi<Block, Header> + BundleProducerElectionApi<Block, Balance> + ObjectsApi<Block>, ExecutorDispatch: NativeExecutionDispatch + 'static,
Expand description

Creates PartialComponents for Subspace client.

\ No newline at end of file diff --git a/subspace_service/rpc/fn.create_full.html b/subspace_service/rpc/fn.create_full.html index 5d2e8516e8..29e35136c3 100644 --- a/subspace_service/rpc/fn.create_full.html +++ b/subspace_service/rpc/fn.create_full.html @@ -2,7 +2,7 @@ deps: FullDeps<C, P, SO, AS> ) -> Result<RpcModule<()>, Box<dyn Error + Send + Sync>>where C: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static, - C::Api: AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + BlockBuilder<Block> + SubspaceApi<Block, FarmerPublicKey> + ObjectsApi<Block>, + C::Api: AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + BlockBuilder<Block> + SubspaceApi<Block, FarmerPublicKey> + ObjectsApi<Block>, P: TransactionPool + 'static, SO: SyncOracle + Send + Sync + Clone + 'static, AS: AuxStore + Send + Sync + 'static,
Expand description

Instantiate all full RPC extensions.

diff --git a/subspace_service/struct.NewFull.html b/subspace_service/struct.NewFull.html index f48bba8e86..7473e4dfda 100644 --- a/subspace_service/struct.NewFull.html +++ b/subspace_service/struct.NewFull.html @@ -1,6 +1,6 @@ NewFull in subspace_service - Rust
pub struct NewFull<Client>where
     Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + 'static,
-    Client::Api: TaggedTransactionQueue<Block> + DomainsApi<Block, Header> + FraudProofApi<Block, Header> + SubspaceApi<Block, FarmerPublicKey>,{
Show 13 fields + Client::Api: TaggedTransactionQueue<Block> + DomainsApi<Block, Header> + FraudProofApi<Block, Header> + SubspaceApi<Block, FarmerPublicKey>,{
Show 13 fields pub task_manager: TaskManager, pub client: Arc<Client>, pub select_chain: FullSelectChain, diff --git a/subspace_service/transaction_pool/fn.new_full.html b/subspace_service/transaction_pool/fn.new_full.html index 644d62d116..fc8a37269c 100644 --- a/subspace_service/transaction_pool/fn.new_full.html +++ b/subspace_service/transaction_pool/fn.new_full.html @@ -8,4 +8,4 @@ <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug, Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + ExecutorProvider<Block> + UsageProvider<Block> + BlockIdTo<Block> + Send + Sync + 'static, DomainHeader: HeaderT, - Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,
\ No newline at end of file + Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,
\ No newline at end of file diff --git a/subspace_service/transaction_pool/struct.BasicPoolWrapper.html b/subspace_service/transaction_pool/struct.BasicPoolWrapper.html index 16d674aee7..31c1da9816 100644 --- a/subspace_service/transaction_pool/struct.BasicPoolWrapper.html +++ b/subspace_service/transaction_pool/struct.BasicPoolWrapper.html @@ -8,7 +8,7 @@ <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug, DomainHeader: HeaderT, Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static, - Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,
§

type Block = Block

Block type.
§

type Hash = <<FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Block as Block>::Hash

Transaction hash type.
§

type Error = <FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Error

Error type.
source§

fn submit_local( + Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,

§

type Block = Block

Block type.
§

type Hash = <<FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Block as Block>::Hash

Transaction hash type.
§

type Error = <FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Error

Error type.
source§

fn submit_local( &self, at: Block::Hash, xt: LocalTransactionFor<Self> diff --git a/subspace_service/transaction_pool/struct.FullChainApiWrapper.html b/subspace_service/transaction_pool/struct.FullChainApiWrapper.html index 8857b03c0a..8124baa791 100644 --- a/subspace_service/transaction_pool/struct.FullChainApiWrapper.html +++ b/subspace_service/transaction_pool/struct.FullChainApiWrapper.html @@ -3,7 +3,7 @@ <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug, Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static, DomainHeader: Header, - Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, DomainHeader>,

§

type Block = Block

Block type.
§

type Error = Error

Error type.
§

type ValidationFuture = Pin<Box<dyn Future<Output = Result<Result<ValidTransaction, TransactionValidityError>, Error>> + Send, Global>>

Validate transaction future.
§

type BodyFuture = Ready<Result<Option<Vec<<<FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Block as Block>::Extrinsic, Global>>, Error>>

Body future (since block body might be remote)
source§

fn validate_transaction( + Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + DomainsApi<Block, DomainHeader>,

§

type Block = Block

Block type.
§

type Error = Error

Error type.
§

type ValidationFuture = Pin<Box<dyn Future<Output = Result<Result<ValidTransaction, TransactionValidityError>, Error>> + Send, Global>>

Validate transaction future.
§

type BodyFuture = Ready<Result<Option<Vec<<<FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Block as Block>::Extrinsic, Global>>, Error>>

Body future (since block body might be remote)
source§

fn validate_transaction( &self, at: &BlockId<Self::Block>, source: TransactionSource, diff --git a/subspace_service/transaction_pool/type.FullPool.html b/subspace_service/transaction_pool/type.FullPool.html index 5f84be2560..f76f641abf 100644 --- a/subspace_service/transaction_pool/type.FullPool.html +++ b/subspace_service/transaction_pool/type.FullPool.html @@ -7,7 +7,7 @@ <<<Block as BlockT>::Header as HeaderT>::Number as TryInto<u32>>::Error: Debug, DomainHeader: HeaderT, Client: ProvideRuntimeApi<Block> + AuxStore + BlockBackend<Block> + BlockIdTo<Block> + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + Send + Sync + 'static, - Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,

§

type Block = Block

Block type.
§

type Hash = <<FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Block as Block>::Hash

Transaction hash type.
§

type Error = <FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Error

Error type.
source§

fn submit_local( + Client::Api: TaggedTransactionQueue<Block> + SubspaceApi<Block, FarmerPublicKey> + FraudProofApi<Block, DomainHeader> + DomainsApi<Block, DomainHeader>,

§

type Block = Block

Block type.
§

type Hash = <<FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Block as Block>::Hash

Transaction hash type.
§

type Error = <FullChainApiWrapper<Client, Block, DomainHeader> as ChainApi>::Error

Error type.
source§

fn submit_local( &self, at: Block::Hash, xt: LocalTransactionFor<Self> diff --git a/subspace_verification/enum.Error.html b/subspace_verification/enum.Error.html index bad3c5482b..8703a89b43 100644 --- a/subspace_verification/enum.Error.html +++ b/subspace_verification/enum.Error.html @@ -4,13 +4,13 @@ max_pieces_in_sector: u16, }, SectorExpired { - expiration_history_size: HistorySize, - current_history_size: HistorySize, + expiration_history_size: HistorySize, + current_history_size: HistorySize, }, InvalidPiece, OutsideSolutionRange { - half_solution_range: SolutionRange, - solution_distance: SolutionRange, + half_solution_range: SolutionRange, + solution_distance: SolutionRange, }, InvalidProofOfSpace, InvalidAuditChunkOffset, @@ -20,12 +20,12 @@

Variants§

§

InvalidPieceOffset

Fields

§piece_offset: u16

Index of the piece that failed verification

§max_pieces_in_sector: u16

How many pieces one sector is supposed to contain (max)

Invalid piece offset

-
§

SectorExpired

Fields

§expiration_history_size: HistorySize

Expiration history size

-
§current_history_size: HistorySize

Current history size

+
§

SectorExpired

Fields

§expiration_history_size: HistorySize

Expiration history size

+
§current_history_size: HistorySize

Current history size

Sector expired

§

InvalidPiece

Piece verification failed

-
§

OutsideSolutionRange

Fields

§half_solution_range: SolutionRange

Half of solution range

-
§solution_distance: SolutionRange

Solution distance

+
§

OutsideSolutionRange

Fields

§half_solution_range: SolutionRange

Half of solution range

+
§solution_distance: SolutionRange

Solution distance

Solution is outside of challenge range

§

InvalidProofOfSpace

Invalid proof of space

§

InvalidAuditChunkOffset

Invalid audit chunk offset

diff --git a/subspace_verification/fn.calculate_block_weight.html b/subspace_verification/fn.calculate_block_weight.html index b88d219ac4..5c908d65ab 100644 --- a/subspace_verification/fn.calculate_block_weight.html +++ b/subspace_verification/fn.calculate_block_weight.html @@ -1,2 +1,2 @@ -calculate_block_weight in subspace_verification - Rust
pub fn calculate_block_weight(solution_range: SolutionRange) -> BlockWeight
Expand description

Calculate weight derived from provided solution range

+calculate_block_weight in subspace_verification - Rust
pub fn calculate_block_weight(solution_range: SolutionRange) -> BlockWeight
Expand description

Calculate weight derived from provided solution range

\ No newline at end of file diff --git a/subspace_verification/fn.check_reward_signature.html b/subspace_verification/fn.check_reward_signature.html index 125b327c87..9933f685ec 100644 --- a/subspace_verification/fn.check_reward_signature.html +++ b/subspace_verification/fn.check_reward_signature.html @@ -1,7 +1,7 @@ check_reward_signature in subspace_verification - Rust
pub fn check_reward_signature(
     hash: &[u8],
-    signature: &RewardSignature,
-    public_key: &PublicKey,
+    signature: &RewardSignature,
+    public_key: &PublicKey,
     reward_signing_context: &SigningContext
 ) -> Result<(), SignatureError>
Expand description

Check the reward signature validity.

\ No newline at end of file diff --git a/subspace_verification/fn.derive_next_solution_range.html b/subspace_verification/fn.derive_next_solution_range.html index 7d652e1afd..75053fe602 100644 --- a/subspace_verification/fn.derive_next_solution_range.html +++ b/subspace_verification/fn.derive_next_solution_range.html @@ -1,8 +1,8 @@ derive_next_solution_range in subspace_verification - Rust
pub fn derive_next_solution_range(
-    start_slot: SlotNumber,
-    current_slot: SlotNumber,
+    start_slot: SlotNumber,
+    current_slot: SlotNumber,
     slot_probability: (u64, u64),
-    current_solution_range: SolutionRange,
-    era_duration: BlockNumber
+    current_solution_range: SolutionRange,
+    era_duration: BlockNumber
 ) -> u64
Expand description

Derives next solution range based on the total era slots and slot probability

\ No newline at end of file diff --git a/subspace_verification/fn.derive_pot_entropy.html b/subspace_verification/fn.derive_pot_entropy.html index 0220c41c80..39bf97aae0 100644 --- a/subspace_verification/fn.derive_pot_entropy.html +++ b/subspace_verification/fn.derive_pot_entropy.html @@ -1,2 +1,2 @@ -derive_pot_entropy in subspace_verification - Rust
pub fn derive_pot_entropy(chunk: Scalar, proof_of_time: PotOutput) -> Blake3Hash
Expand description

Derive proof of time entropy from chunk and proof of time for injection purposes.

+derive_pot_entropy in subspace_verification - Rust
pub fn derive_pot_entropy(chunk: Scalar, proof_of_time: PotOutput) -> Blake3Hash
Expand description

Derive proof of time entropy from chunk and proof of time for injection purposes.

\ No newline at end of file diff --git a/subspace_verification/fn.is_within_solution_range.html b/subspace_verification/fn.is_within_solution_range.html index 8e25216089..5b46db4e2d 100644 --- a/subspace_verification/fn.is_within_solution_range.html +++ b/subspace_verification/fn.is_within_solution_range.html @@ -1,8 +1,8 @@ is_within_solution_range in subspace_verification - Rust
pub fn is_within_solution_range(
-    global_challenge: &Blake3Hash,
+    global_challenge: &Blake3Hash,
     chunk: &[u8; 32],
-    sector_slot_challenge: &SectorSlotChallenge,
-    solution_range: SolutionRange
-) -> Option<SolutionRange>
Expand description

Returns Some(solution_distance) if solution distance is within the solution range for provided + sector_slot_challenge: &SectorSlotChallenge, + solution_range: SolutionRange +) -> Option<SolutionRange>

Expand description

Returns Some(solution_distance) if solution distance is within the solution range for provided parameters.

\ No newline at end of file diff --git a/subspace_verification/fn.verify_solution.html b/subspace_verification/fn.verify_solution.html index f23b610786..2bdc620946 100644 --- a/subspace_verification/fn.verify_solution.html +++ b/subspace_verification/fn.verify_solution.html @@ -1,10 +1,10 @@ verify_solution in subspace_verification - Rust
pub fn verify_solution<'a, PosTable, FarmerPublicKey, RewardAddress>(
-    solution: &'a Solution<FarmerPublicKey, RewardAddress>,
-    slot: SlotNumber,
+    solution: &'a Solution<FarmerPublicKey, RewardAddress>,
+    slot: SlotNumber,
     params: &'a VerifySolutionParams,
-    kzg: &'a Kzg
-) -> Result<SolutionRange, Error>where
+    kzg: &'a Kzg
+) -> Result<SolutionRange, Error>where
     PosTable: Table,
-    PublicKey: From<&'a FarmerPublicKey>,
Expand description

Verify whether solution is valid, returns solution distance that is <= solution_range/2 on + PublicKey: From<&'a FarmerPublicKey>,

Expand description

Verify whether solution is valid, returns solution distance that is <= solution_range/2 on success.

\ No newline at end of file diff --git a/subspace_verification/struct.PieceCheckParams.html b/subspace_verification/struct.PieceCheckParams.html index 8b359036cb..b020cb7621 100644 --- a/subspace_verification/struct.PieceCheckParams.html +++ b/subspace_verification/struct.PieceCheckParams.html @@ -1,19 +1,19 @@ PieceCheckParams in subspace_verification - Rust
pub struct PieceCheckParams {
     pub max_pieces_in_sector: u16,
-    pub segment_commitment: SegmentCommitment,
-    pub recent_segments: HistorySize,
-    pub recent_history_fraction: (HistorySize, HistorySize),
-    pub min_sector_lifetime: HistorySize,
-    pub current_history_size: HistorySize,
-    pub sector_expiration_check_segment_commitment: Option<SegmentCommitment>,
+    pub segment_commitment: SegmentCommitment,
+    pub recent_segments: HistorySize,
+    pub recent_history_fraction: (HistorySize, HistorySize),
+    pub min_sector_lifetime: HistorySize,
+    pub current_history_size: HistorySize,
+    pub sector_expiration_check_segment_commitment: Option<SegmentCommitment>,
 }
Expand description

Parameters for checking piece validity

Fields§

§max_pieces_in_sector: u16

How many pieces one sector is supposed to contain (max)

-
§segment_commitment: SegmentCommitment

Segment commitment of segment to which piece belongs

-
§recent_segments: HistorySize

Number of latest archived segments that are considered “recent history”

-
§recent_history_fraction: (HistorySize, HistorySize)

Fraction of pieces from the “recent history” (recent_segments) in each sector

-
§min_sector_lifetime: HistorySize

Minimum lifetime of a plotted sector, measured in archived segment

-
§current_history_size: HistorySize

Current size of the history

-
§sector_expiration_check_segment_commitment: Option<SegmentCommitment>

Segment commitment at min_sector_lifetime from sector creation (if exists)

+
§segment_commitment: SegmentCommitment

Segment commitment of segment to which piece belongs

+
§recent_segments: HistorySize

Number of latest archived segments that are considered “recent history”

+
§recent_history_fraction: (HistorySize, HistorySize)

Fraction of pieces from the “recent history” (recent_segments) in each sector

+
§min_sector_lifetime: HistorySize

Minimum lifetime of a plotted sector, measured in archived segment

+
§current_history_size: HistorySize

Current size of the history

+
§sector_expiration_check_segment_commitment: Option<SegmentCommitment>

Segment commitment at min_sector_lifetime from sector creation (if exists)

Trait Implementations§

source§

impl Clone for PieceCheckParams

source§

fn clone(&self) -> PieceCheckParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PieceCheckParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for PieceCheckParams

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( diff --git a/subspace_verification/struct.VerifySolutionParams.html b/subspace_verification/struct.VerifySolutionParams.html index 601f3bc054..c3dd1a4d3b 100644 --- a/subspace_verification/struct.VerifySolutionParams.html +++ b/subspace_verification/struct.VerifySolutionParams.html @@ -1,10 +1,10 @@ VerifySolutionParams in subspace_verification - Rust
pub struct VerifySolutionParams {
-    pub proof_of_time: PotOutput,
-    pub solution_range: SolutionRange,
+    pub proof_of_time: PotOutput,
+    pub solution_range: SolutionRange,
     pub piece_check_params: Option<PieceCheckParams>,
 }
Expand description

Parameters for solution verification

-

Fields§

§proof_of_time: PotOutput

Proof of time for which solution is built

-
§solution_range: SolutionRange

Solution range

+

Fields§

§proof_of_time: PotOutput

Proof of time for which solution is built

+
§solution_range: SolutionRange

Solution range

§piece_check_params: Option<PieceCheckParams>

Parameters for checking piece validity.

If None, piece validity check will be skipped.

Trait Implementations§

source§

impl Clone for VerifySolutionParams

source§

fn clone(&self) -> VerifySolutionParams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VerifySolutionParams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for VerifySolutionParams

source§

fn decode<__CodecInputEdqy: Input>(