mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-02-22 20:05:16 +00:00
Fix spelling errors and correct minor errors (#337)
* fix typo lib.rs * fix typos mod.rs * fix typo config.rs
This commit is contained in:
parent
3d9aa8c940
commit
a915766840
@ -103,7 +103,7 @@ pub struct Config {
|
||||
/// Subscribe to all subnets for the duration of the runtime.
|
||||
pub subscribe_all_subnets: bool,
|
||||
|
||||
/// Import/aggregate all attestations recieved on subscribed subnets for the duration of the
|
||||
/// Import/aggregate all attestations received on subscribed subnets for the duration of the
|
||||
/// runtime.
|
||||
pub import_all_attestations: bool,
|
||||
|
||||
|
@ -42,9 +42,9 @@ pub trait EnrKey: Send + Sync + Unpin + 'static {
|
||||
/// Returns the public key associated with current key pair.
|
||||
fn public(&self) -> Self::PublicKey;
|
||||
|
||||
/// Provides a method to decode a raw public key from an ENR `BTreeMap` to a useable public key.
|
||||
/// Provides a method to decode a raw public key from an ENR `BTreeMap` to a usable public key.
|
||||
///
|
||||
/// This method allows a key type to decode the raw bytes in an ENR to a useable
|
||||
/// This method allows a key type to decode the raw bytes in an ENR to a usable
|
||||
/// `EnrPublicKey`. It takes the ENR's `BTreeMap` and returns a public key.
|
||||
///
|
||||
/// Note: This specifies the supported key schemes for an ENR.
|
||||
|
@ -1195,7 +1195,7 @@ mod tests {
|
||||
assert_eq!(enr.tcp4(), Some(tcp));
|
||||
assert!(enr.verify());
|
||||
|
||||
// Compare the encoding as the key itself can be differnet
|
||||
// Compare the encoding as the key itself can be different
|
||||
assert_eq!(enr.public_key().encode(), key.public().encode(),);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user