Update to `RootHash` in comments

We changed the name of the type and function, but forgot the comments.
This commit is contained in:
teor 2020-09-16 10:55:15 +10:00 committed by Deirdre Connolly
parent c349f75ffe
commit 584f2643b7
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
//! The LightClientRootHash enum, used for the corresponding block header field.
//! The RootHash enum, used for the corresponding block header field.
use crate::parameters::{Network, NetworkUpgrade, NetworkUpgrade::*};
use crate::sapling::tree::Root;
@ -44,8 +44,7 @@ pub enum RootHash {
}
impl RootHash {
/// Returns `bytes` as the LightClientRootHash variant for `network` and
/// `height`.
/// Returns `bytes` as the RootHash variant for `network` and `height`.
pub(super) fn from_bytes(bytes: [u8; 32], network: Network, height: Height) -> RootHash {
use RootHash::*;
@ -59,7 +58,7 @@ impl RootHash {
}
}
/// Returns the serialized bytes for this LightClientRootHash.
/// Returns the serialized bytes for this RootHash.
#[allow(dead_code)]
pub(super) fn to_bytes(self) -> [u8; 32] {
use RootHash::*;