Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Dec 24, 2024
1 parent 089bd23 commit 27f68f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions crates/pallet-domains/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ mod pallet {
#[pallet::storage]
pub(super) type AccumulatedTreasuryFunds<T> = StorageValue<_, BalanceOf<T>, ValueQuery>;

/// Storage used to keep track of which consensus block the domain runtime upgrade happen.
/// Storage used to keep track of which consensus block each domain runtime upgrade happens in.
#[pallet::storage]
pub type DomainRuntimeUpgradeRecords<T: Config> = StorageMap<
_,
Expand All @@ -714,8 +714,8 @@ mod pallet {
ValueQuery,
>;

/// Temporary storage keep track of domain runtime upgrade happen in the current block, cleared
/// in the next block initialization.
/// Temporary storage to keep track of domain runtime upgrades which happened in the parent
/// block. Cleared in the current block's initialization.
#[pallet::storage]
pub type DomainRuntimeUpgrades<T> = StorageValue<_, Vec<RuntimeId>, ValueQuery>;

Expand Down Expand Up @@ -2984,7 +2984,7 @@ impl<T: Config> Pallet<T> {
}

// Get the domain runtime code that used to derive `receipt`, if the runtime code still present in
// the state then get it from the state otherwise from the `maybe_domain_runtime_code_at` prood.
// the state then get it from the state otherwise from the `maybe_domain_runtime_code_at` proof.
pub fn get_domain_runtime_code_for_receipt(
domain_id: DomainId,
receipt: &ExecutionReceiptOf<T>,
Expand Down
4 changes: 2 additions & 2 deletions crates/sp-domains/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1394,9 +1394,9 @@ pub type ExecutionReceiptFor<DomainHeader, CBlock, Balance> = ExecutionReceipt<
/// Domain chains allowlist updates.
#[derive(Default, Debug, Encode, Decode, PartialEq, Eq, Clone, TypeInfo)]
pub struct DomainAllowlistUpdates {
/// Chains that are allowed to open channel with this chain.
/// Chains that are allowed to open a channel with this chain.
pub allow_chains: BTreeSet<ChainId>,
/// Chains that are not allowed to open channel with this chain.
/// Chains that are not allowed to open a channel with this chain.
pub remove_chains: BTreeSet<ChainId>,
}

Expand Down
2 changes: 1 addition & 1 deletion domains/client/domain-operator/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,7 @@ async fn test_invalid_domain_extrinsics_root_proof_creation() {

// When the domain node operator process the primary block that contains the `bad_submit_bundle_tx`,
// it will generate and submit a fraud proof
let _ = wait_for_fraud_proof_fut.await;
wait_for_fraud_proof_fut.await;

// Produce a consensus block that contains the fraud proof, the fraud proof wil be verified
// and executed, thus pruned the bad receipt from the block tree
Expand Down
6 changes: 3 additions & 3 deletions test/subspace-test-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,11 @@ impl MockConsensusNode {
.is_some())
}

/// Return a future that only resolve if a fraud proof that the given `fraud_proof_predict`
/// Return a future that only resolve if a fraud proof that the given `fraud_proof_predicate`
/// return true is submitted to the consensus tx pool
pub fn wait_for_fraud_proof<FP>(
&self,
fraud_proof_predict: FP,
fraud_proof_predicate: FP,
) -> Pin<Box<dyn Future<Output = ()> + Send>>
where
FP: Fn(&FraudProofFor<Block, DomainBlock>) -> bool + Send + 'static,
Expand All @@ -833,7 +833,7 @@ impl MockConsensusNode {
pallet_domains::Call::submit_fraud_proof { fraud_proof },
) = ext.function
{
if fraud_proof_predict(&fraud_proof) {
if fraud_proof_predicate(&fraud_proof) {
break;
}
}
Expand Down

0 comments on commit 27f68f3

Please sign in to comment.