From 1a3da944e5efec79980d5047070356927a8ab91e Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 24 Aug 2018 15:36:26 +1000 Subject: [PATCH] Add comment to get_signed_parent_hashes --- lighthouse/state/transition/helpers.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lighthouse/state/transition/helpers.rs b/lighthouse/state/transition/helpers.rs index ddd7d4635a..d1a228865a 100644 --- a/lighthouse/state/transition/helpers.rs +++ b/lighthouse/state/transition/helpers.rs @@ -1,6 +1,14 @@ use super::Hash256; use super::TransitionError; +/// This function is used to select the hashes used in +/// the signing of an AttestationRecord. +/// +/// It either returns Result with a vector of length `cycle_length,` or +/// returns an Error. +/// +/// See this slide for more information: +/// https://tinyurl.com/ybzn2spw pub fn get_signed_parent_hashes( cycle_length: &u8, block_slot: &u64,