mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
Fix typos and markdown (#2388)
* Fix typos * Align properly * Update core/consensus/slots/src/lib.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/network/src/test/mod.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/finality-grandpa/src/communication/mod.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/consensus/common/src/import_queue.rs Co-Authored-By: cmichi <mich@elmueller.net>
This commit is contained in:
committed by
Bastian Köcher
parent
f0202aa425
commit
a0e0d9b03d
+3
-3
@@ -436,7 +436,7 @@ impl<Block: BlockT, T: CacheItemT> Fork<Block, T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Try to append NEW block to the fork. This method willonly 'work' (return true) when block
|
||||
/// Try to append NEW block to the fork. This method will only 'work' (return true) when block
|
||||
/// is actually appended to the fork AND the best known block of the fork is known (i.e. some
|
||||
/// block has been already appended to this fork after last restart).
|
||||
pub fn try_append(&self, parent: &ComplexBlockId<Block>) -> bool {
|
||||
@@ -932,7 +932,7 @@ pub mod tests {
|
||||
assert!(tx.removed_entries().is_empty());
|
||||
assert_eq!(*tx.updated_meta(), Some(Metadata { finalized: Some(correct_id(2)), unfinalized: vec![correct_id(3)] }));
|
||||
|
||||
// when inserting finalized entry AND there are no previous finalzed entries
|
||||
// when inserting finalized entry AND there are no previous finalized entries
|
||||
let cache = ListCache::new(DummyStorage::new(), 1024, correct_id(2));
|
||||
let mut tx = DummyTransaction::new();
|
||||
assert_eq!(cache.on_block_insert(&mut tx, correct_id(2), correct_id(3), Some(3), true).unwrap(),
|
||||
@@ -1031,7 +1031,7 @@ pub mod tests {
|
||||
// when new block is appended to unfinalized fork
|
||||
cache.on_transaction_commit(CommitOperation::AppendNewBlock(0, correct_id(6)));
|
||||
assert_eq!(cache.unfinalized[0].best_block, Some(correct_id(6)));
|
||||
// when new entry is appnded to unfinalized fork
|
||||
// when new entry is appended to unfinalized fork
|
||||
cache.on_transaction_commit(CommitOperation::AppendNewEntry(0, Entry { valid_from: correct_id(7), value: Some(7) }));
|
||||
assert_eq!(cache.unfinalized[0].best_block, Some(correct_id(7)));
|
||||
assert_eq!(cache.unfinalized[0].head, Entry { valid_from: correct_id(7), value: Some(7) });
|
||||
|
||||
@@ -764,7 +764,7 @@ impl<Block: BlockT<Hash=H256>> Backend<Block> {
|
||||
Ok((*hash, number, false, true))
|
||||
}
|
||||
|
||||
// performs forced canonicaliziation with a delay after importning a non-finalized block.
|
||||
// performs forced canonicaliziation with a delay after importing a non-finalized block.
|
||||
fn force_delayed_canonicalize(
|
||||
&self,
|
||||
transaction: &mut DBTransaction,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//! Light client blockchin backend. Only stores headers and justifications of recent
|
||||
//! Light client blockchain backend. Only stores headers and justifications of recent
|
||||
//! blocks. CHT roots are stored for headers of ancient blocks.
|
||||
|
||||
use std::{sync::{Weak, Arc}, collections::HashMap};
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//! Light client call exector. Executes methods on remote full nodes, fetching
|
||||
//! Light client call executor. Executes methods on remote full nodes, fetching
|
||||
//! execution proof and checking it locally.
|
||||
|
||||
use std::{collections::HashSet, sync::Arc, panic::UnwindSafe, result, marker::PhantomData};
|
||||
@@ -406,7 +406,7 @@ pub fn prove_execution<Block, S, E>(
|
||||
/// Check remote contextual execution proof using given backend.
|
||||
///
|
||||
/// Method is executed using passed header as environment' current block.
|
||||
/// Proof shoul include both environment preparation proof and method execution proof.
|
||||
/// Proof should include both environment preparation proof and method execution proof.
|
||||
pub fn check_execution_proof<Header, E, H>(
|
||||
executor: &E,
|
||||
request: &RemoteCallRequest<Header>,
|
||||
|
||||
Reference in New Issue
Block a user