Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/autonomys/subspace
/ functions
Functions
4,141 in github.com/autonomys/subspace
⨍
Functions
4,141
◇
Types & classes
1,352
↓ 2 callers
Function
padded_data
Returns two subslices of padded data from `prefix_data` and `suffix_data`, ignoring `ignored_padding_length` bytes at the end of the prefix data. Lim
shared/subspace-data-retrieval/src/object_fetcher/partial_object.rs:781
↓ 2 callers
Method
pending_imported_consensus_blocks
Returns a list of consensus blocks waiting to be processed if any. It's possible to have multiple pending consensus blocks that need to be processed
domains/client/domain-operator/src/domain_block_processor.rs:141
↓ 2 callers
Method
persist_piece_in_cache
This assumes it was already checked that piece needs to be stored, no verification for this is done internally and invariants will break if this assum
crates/subspace-farmer/src/farmer_cache.rs:934
↓ 2 callers
Method
plot
(&self)
crates/subspace-farmer/src/single_disk_farm.rs:612
↓ 2 callers
Method
plot_sector
( &self, public_key: PublicKey, sector_index: SectorIndex, farmer_protocol_inf
crates/subspace-farmer/src/plotter/cpu.rs:93
↓ 2 callers
Method
plot_sector_internal
( &self, start: Instant, downloading_permit: SemaphoreGuardArc, public_key: Pu
crates/subspace-farmer/src/plotter/cpu.rs:232
↓ 2 callers
Method
plot_sector_internal
( &self, start: Instant, downloading_permit: SemaphoreGuardArc, public_key: Pu
crates/subspace-farmer/src/plotter/gpu.rs:239
↓ 2 callers
Method
plot_sector_internal
( &self, start: Instant, sector_encoding_permit: OwnedSemaphorePermit, public_
crates/subspace-farmer/src/cluster/plotter.rs:296
↓ 2 callers
Method
poll_next_entry
Polls the next entry in `in_progress` and moves the next task from `queue` to `in_progress` if there is one. If there are no more tasks to execute, re
crates/subspace-farmer/src/cluster/controller/stream_map.rs:62
↓ 2 callers
Method
pop_free_offset
(&mut self)
crates/subspace-farmer/src/farmer_cache/piece_cache_state.rs:35
↓ 2 callers
Method
prepare_bundle
( &mut self, operator_id: OperatorId, consensus_chain_best_hash: BlockHashFor<CBlock>,
domains/client/domain-operator/src/domain_bundle_producer.rs:303
↓ 2 callers
Method
prepare_receipt
( &self, slot_info: &OperatorSlotInfo, domain_best_number_onchain: NumberFor<Block>,
domains/client/domain-operator/src/domain_bundle_producer.rs:257
↓ 2 callers
Method
prev_segment_header_hash
Hash of the segment header of the previous segment
crates/subspace-core-primitives/src/segments.rs:452
↓ 2 callers
Method
process_bundles
( self, consensus_block_info: (CBlock::Hash, NumberFor<CBlock>, bool), )
domains/client/domain-operator/src/operator.rs:346
↓ 2 callers
Function
produce_single_block
( consensus: &mut MockConsensusNode, wait_for_bundle: bool, )
test/subspace-farmerless-dev-node/src/manual_rpc.rs:136
↓ 2 callers
Method
produce_slot_and_wait_for_bundle_submission_from_operator
Produce a slot and wait for bundle submission from specific operator.
test/subspace-test-service/src/lib.rs:819
↓ 2 callers
Function
proof_to_tx
( ferdie: &MockConsensusNode, fraud_proof: Box<FraudProofFor<Runtime>>, )
domains/client/domain-operator/src/tests.rs:8809
↓ 2 callers
Method
protocol_unit
(&self, tx_hash: &TxHash<Pool>)
crates/sc-subspace-block-relay/src/consensus/relay.rs:575
↓ 2 callers
Method
prune
(self)
crates/subspace-proof-of-space/src/chiapos/table.rs:1533
↓ 2 callers
Function
rayon_custom_spawn_handler
This function is supposed to be used with [`rayon::ThreadPoolBuilder::spawn_handler()`] to spawn handler with a custom logic defined by `spawn_hook_bu
crates/subspace-farmer/src/utils.rs:457
↓ 2 callers
Function
reactivate_operator
()
crates/pallet-domains/src/benchmarking.rs:1139
↓ 2 callers
Method
read_exact_at
(&self, buf: &mut [u8], offset: u64)
crates/subspace-farmer-components/src/file_ext.rs:186
↓ 2 callers
Function
read_piece
( public_key: &PublicKey, piece_offset: PieceOffset, sector_metadata: &SectorMetadataChecksummed,
crates/subspace-farmer/src/single_disk_farm/piece_reader.rs:214
↓ 2 callers
Method
read_piece
Read and return a single piece. The mapping is only used for error reporting.
shared/subspace-data-retrieval/src/object_fetcher.rs:532
↓ 2 callers
Method
read_piece_index
( &self, offset: PieceCacheOffset, )
crates/subspace-farmer/src/cluster/cache.rs:236
↓ 2 callers
Method
read_pieces
( &self, offsets: Box<dyn Iterator<Item = PieceCacheOffset> + Send>, )
crates/subspace-farmer/src/cluster/cache.rs:262
↓ 2 callers
Function
read_record_metadata
Read metadata (commitment and witness) for record
crates/subspace-farmer-components/src/reading.rs:392
↓ 2 callers
Function
read_sector_record_chunks
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 ope
crates/subspace-farmer-components/src/reading.rs:154
↓ 2 callers
Method
receipt_hash
( domain_id: DomainId, domain_number: DomainBlockNumberFor<T>, )
crates/pallet-domains/src/lib.rs:3068
↓ 2 callers
Method
reconstruct_shards
Returns incomplete pieces (witness missing) and polynomial that can be used to generate necessary witnesses later.
crates/subspace-archiving/src/piece_reconstructor.rs:52
↓ 2 callers
Method
registered_operator
(&self)
crates/subspace-malicious-operator/src/malicious_bundle_producer.rs:63
↓ 2 callers
Method
remove_all_known_peer_addresses
(&mut self, _peer_id: PeerId)
crates/subspace-networking/src/behavior/persistent_parameters.rs:238
↓ 2 callers
Method
remove_from_incoming_allow_list
Remove some (or all) attempts of incoming connections from specified peer ID
crates/subspace-networking/src/protocols/subspace_connection_limits.rs:57
↓ 2 callers
Function
remove_p2p_suffix
Removes a P2p protocol suffix from the multiaddress if any.
crates/subspace-networking/src/behavior/persistent_parameters.rs:699
↓ 2 callers
Method
report_successful_request
(&mut self, peer_id: PeerId, retry: bool)
crates/subspace-networking/examples/random-walker.rs:88
↓ 2 callers
Function
request_sample_piece
( node: Node, peer_id: PeerId, short_key: &[u8], stats: &mut PeerStats, retry: bool, )
crates/subspace-networking/examples/random-walker.rs:342
↓ 2 callers
Method
request_uncached_headers
Get uncached headers from the node, if we're not rate-limited. This only requires a read lock. Returns any extra segment headers if the download succ
crates/subspace-farmer/src/node_client/caching_proxy_node_client.rs:77
↓ 2 callers
Method
reseal_bundle
( &self, opaque_bundle: &mut OpaqueBundleFor<Block, CBlock>, operator_signing_key: &Op
crates/subspace-malicious-operator/src/malicious_bundle_tamper.rs:328
↓ 2 callers
Function
revoke_issuer_auto_id
()
domains/pallets/auto-id/src/benchmarking.rs:63
↓ 2 callers
Function
revoke_leaf_auto_id
()
domains/pallets/auto-id/src/benchmarking.rs:85
↓ 2 callers
Function
run
Runs an RPC server which fetches DSN objects based on mappings.
crates/subspace-gateway/src/commands/rpc.rs:27
↓ 2 callers
Method
run
Run a mock consensus node
test/subspace-test-service/src/lib.rs:641
↓ 2 callers
Method
run
Run the cache worker with provided piece getter. NOTE: Piece getter must not depend on farmer cache in order to avoid reference cycles!
crates/subspace-farmer/src/farmer_cache.rs:157
↓ 2 callers
Method
runtime_code
(&self)
domains/client/block-preprocessor/src/stateless_runtime.rs:187
↓ 2 callers
Method
runtime_upgrades
Returns the list of runtime upgrades in the current block.
crates/pallet-domains/src/lib.rs:2278
↓ 2 callers
Function
runtime_version
Extracts the runtime version of the provided code.
crates/pallet-domains/src/runtime_registry.rs:158
↓ 2 callers
Method
s_bucket_audit_index
(&self)
crates/subspace-core-primitives/src/sectors.rs:34
↓ 2 callers
Method
s_bucket_offsets
Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks)
crates/subspace-farmer-components/src/sector.rs:69
↓ 2 callers
Method
seal_bundle
( &self, bundle_header: BundleHeaderFor<Block, CBlock>, operator_signing_key: &Operato
domains/client/domain-operator/src/domain_bundle_producer.rs:356
↓ 2 callers
Method
secret_key
Returns the secret key of the identity.
crates/subspace-farmer/src/single_disk_farm/identity.rs:140
↓ 2 callers
Method
seed_with_entropy
(&self, entropy: &Blake3Hash)
crates/subspace-core-primitives/src/pot.rs:290
↓ 2 callers
Method
segment_piece_indexes_source_first
List of piece indexes that belong to this segment with source pieces first.
crates/subspace-core-primitives/src/segments.rs:114
↓ 2 callers
Method
send_generic_request_internal
( &self, peer_id: PeerId, addresses: Vec<Multiaddr>, request: Request,
crates/subspace-networking/src/node.rs:375
↓ 2 callers
Function
send_object_mapping_notification
( object_mapping_notification_sender: &SubspaceNotificationSender<ObjectMappingNotification>, object_m
crates/sc-consensus-subspace/src/archiver.rs:1285
↓ 2 callers
Method
send_response
Builds/sends the response back to the client
crates/sc-subspace-block-relay/src/consensus/relay.rs:532
↓ 2 callers
Function
set_block_rewards
()
crates/pallet-subspace/src/tests.rs:1292
↓ 2 callers
Function
set_channel_state
Set the channel state of self_chain_id on src_chain_id.
domains/client/cross-domain-message-gossip/src/aux_schema.rs:75
↓ 2 callers
Method
set_complete
Sets the archived state of this block to [`ArchivedBlockProgress::Complete`].
crates/subspace-core-primitives/src/segments.rs:397
↓ 2 callers
Method
set_consensus_block_number
Sets consensus block number on ER
crates/sp-domains/src/execution_receipt.rs:272
↓ 2 callers
Method
set_execution_trace_root
(&mut self, execution_trace_root: H256)
crates/sp-domains/src/execution_receipt.rs:294
↓ 2 callers
Method
set_inboxed_bundles
Sets inboxed bundles on Er
crates/sp-domains/src/execution_receipt.rs:260
↓ 2 callers
Method
set_node
(&mut self, depth: usize, nibble_index: usize, node: CacheNode<TrieHash<T>>)
crates/sp-domains/src/valued_trie.rs:133
↓ 2 callers
Function
set_pot_slot_iterations
()
crates/pallet-subspace/src/benchmarking.rs:126
↓ 2 callers
Method
set_storage
Storage: `Skipped::Metadata` (r:0 w:0) Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) The range of component `i`
crates/subspace-runtime/src/weights/frame_system.rs:85
↓ 2 callers
Method
set_top_storages
(&mut self, storages: Vec<(StorageKey, StorageData)>)
crates/sp-domains/src/storage.rs:78
↓ 2 callers
Function
set_xdm_message_processed_at
Store the given XDM ID as processed at given block.
domains/client/cross-domain-message-gossip/src/aux_schema.rs:168
↓ 2 callers
Method
should_broadcast
(&self, msg: &[u8])
domains/client/cross-domain-message-gossip/src/gossip_worker.rs:256
↓ 2 callers
Method
should_include_key_internal
(&self, key: &KeyWithDistance)
crates/subspace-farmer/src/farmer_cache/piece_cache_state.rs:167
↓ 2 callers
Function
should_relay_messages_to_channel
( dst_chain_id: ChainId, dst_channel_state: &ChannelDetail, local_channel_state: ChannelStateWithN
domains/client/relayer/src/lib.rs:742
↓ 2 callers
Method
should_store
Returns true if there might be space to add a piece to a cache. Returns false if it is already in a cache, or it can't be added to any of the caches.
crates/subspace-farmer/src/farmer_cache.rs:1034
↓ 2 callers
Method
sign_reward
( &self, hash: H256, public_key: PublicKey, )
crates/sc-consensus-subspace/src/slot_worker.rs:850
↓ 2 callers
Method
simple_subscribe
Simple subscription that will produce decoded messages, while skipping messages that fail to decode
crates/subspace-farmer/src/cluster/nats_client.rs:1102
↓ 2 callers
Method
slot_duration
The slot duration in milliseconds.
crates/sp-consensus-subspace/src/lib.rs:317
↓ 2 callers
Method
slot_probability
Slot probability.
crates/sp-consensus-subspace/src/lib.rs:309
↓ 2 callers
Method
start
( mut self, new_slot_notification_stream: NSNS, )
crates/subspace-malicious-operator/src/malicious_bundle_producer.rs:183
↓ 2 callers
Method
status
( &self, _block_hash: H256, )
crates/sp-subspace-mmr/src/benchmarking.rs:66
↓ 2 callers
Method
store_additional_piece
Store a piece in additional downloaded pieces, if there is space for it. Returns `true` if the piece was added to a cache, and `false` if it couldn't
crates/subspace-farmer/src/farmer_cache.rs:1064
↓ 2 callers
Function
store_segment_headers
(x: Linear<1, 20>)
crates/pallet-subspace/src/benchmarking.rs:36
↓ 2 callers
Method
store_to
Store `SingleDiskFarm` info to path, so it can be loaded again upon restart. Can optionally return a lock.
crates/subspace-farmer/src/single_disk_farm.rs:169
↓ 2 callers
Method
stored_pieces_offsets
(&self)
crates/subspace-farmer/src/farmer_cache/piece_cache_state.rs:83
↓ 2 callers
Function
sub_word
(input: u32)
crates/subspace-proof-of-time/src/aes/aarch64.rs:163
↓ 2 callers
Method
submit_force_staking_epoch_transition
(&self, nonce: Nonce)
crates/subspace-malicious-operator/src/malicious_bundle_producer.rs:354
↓ 2 callers
Function
submit_fraud_proof
()
crates/pallet-domains/src/benchmarking.rs:159
↓ 2 callers
Function
submit_receipt
()
crates/pallet-domains/src/benchmarking.rs:903
↓ 2 callers
Method
subscribe_archived_segment_headers
( &self, )
crates/subspace-farmer/src/farmer_cache/tests.rs:89
↓ 2 callers
Method
sudo_acccount_nonce
(&self)
crates/subspace-malicious-operator/src/malicious_bundle_producer.rs:321
↓ 2 callers
Function
system_digest_final_key
Digest storage key in frame_system. Unfortunately, the digest storage is private and not possible to derive the key from it directly.
crates/sp-domains/src/lib.rs:1027
↓ 2 callers
Method
table_7_buckets
( &self, )
crates/subspace-proof-of-space/src/chiapos/tables.rs:289
↓ 2 callers
Method
timestamp
The external function used to access the timestamp stored in `BlockInherentExtrinsicData`.
crates/pallet-domains/src/lib.rs:2980
↓ 2 callers
Method
to_seed
Return seed string.
domains/test/service/src/keyring.rs:37
↓ 2 callers
Function
tokio_rayon_spawn_handler
This function is supposed to be used with [`rayon::ThreadPoolBuilder::spawn_handler()`] to inherit current tokio runtime.
crates/subspace-farmer/src/utils.rs:481
↓ 2 callers
Method
try_extend
Extend state if it matches provided expected next slot input. Returns `Ok(new_next_slot_input)` if state was extended successfully and `Err(existing_
crates/sc-proof-of-time/src/source/state.rs:93
↓ 2 callers
Method
unban_peer
Give the peer at `addr` a high reputation, which guarantees it is un-banned it.
domains/test/service/src/domain.rs:489
↓ 2 callers
Function
unlock_funds
(w: Linear<1, { T::WithdrawalLimit::get() }>)
crates/pallet-domains/src/benchmarking.rs:747
↓ 2 callers
Function
unlock_nominator
( nominators: Vec<(NominatorId<Test>, BalanceOf<Test>)>, pending_deposits: Vec<(NominatorId<Te
crates/pallet-domains/src/staking_epoch.rs:724
↓ 2 callers
Function
unlock_nominator
()
crates/pallet-domains/src/benchmarking.rs:827
↓ 2 callers
Method
update_sectors_total
(&self, sectors: SectorIndex, state: SectorState)
crates/subspace-farmer/src/single_disk_farm/metrics.rs:255
↓ 2 callers
Function
verify_mmr_proof_and_extract_state_root
Helper function port from `pallet-domains`
crates/sp-domains-fraud-proof/benches/fraud_proof_verification.rs:56
↓ 2 callers
Method
verify_proof_and_extract_leaf
( mmr_leaf_proof: ConsensusChainMmrLeafProof<NumberFor<Block>, Hash, MmrHash>, )
domains/runtime/evm/src/lib.rs:526
↓ 2 callers
Function
verify_sequential
( seed: PotSeed, key: PotKey, checkpoints: &PotCheckpoints, checkpoint_iterations: u32, )
crates/subspace-proof-of-time/src/aes.rs:57
← previous
next →
801–900 of 4,141, ranked by callers