From ab486d336f5265fba05a679f9bf67eee701db4fb Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 3 Dec 2020 13:57:47 +1000 Subject: [PATCH] Update the contextual difficulty module doc --- zebra-state/src/service/check/difficulty.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zebra-state/src/service/check/difficulty.rs b/zebra-state/src/service/check/difficulty.rs index 425156473..b75ae7c84 100644 --- a/zebra-state/src/service/check/difficulty.rs +++ b/zebra-state/src/service/check/difficulty.rs @@ -1,4 +1,9 @@ //! Block difficulty adjustment calculations for contextual validation. +//! +//! This module supports the following consensus rule calculations: +//! * `ThresholdBits` from the Zcash Specification, +//! * the Testnet minimum difficulty adjustment from ZIPs 205 and 208, and +//! * `median-time-past`. use chrono::{DateTime, Duration, Utc}; use primitive_types::U256;