Update the contextual difficulty module doc

This commit is contained in:
teor 2020-12-03 13:57:47 +10:00
parent c64d8dc8aa
commit ab486d336f
1 changed files with 5 additions and 0 deletions

View File

@ -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;