From 584f2643b7c59212f0707843a2a3e23e9331ab5b Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 16 Sep 2020 10:55:15 +1000 Subject: [PATCH] Update to `RootHash` in comments We changed the name of the type and function, but forgot the comments. --- zebra-chain/src/block/root_hash.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zebra-chain/src/block/root_hash.rs b/zebra-chain/src/block/root_hash.rs index 3c6030fe..3d2a1501 100644 --- a/zebra-chain/src/block/root_hash.rs +++ b/zebra-chain/src/block/root_hash.rs @@ -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::*;