Add intra-doc links
This commit is contained in:
parent
1e4ce74c93
commit
d1ba1146d4
|
@ -203,7 +203,7 @@ impl NetworkUpgrade {
|
|||
|
||||
/// Returns the target block spacing for `network` and `height`.
|
||||
///
|
||||
/// See `target_spacing` for details.
|
||||
/// See [`target_spacing()`] for details.
|
||||
pub fn target_spacing_for_height(network: Network, height: block::Height) -> Duration {
|
||||
NetworkUpgrade::current(network, height).target_spacing()
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ impl NetworkUpgrade {
|
|||
|
||||
/// Returns the averaging window timespan for `network` and `height`.
|
||||
///
|
||||
/// See `averaging_window_timespan` for details.
|
||||
/// See [`averaging_window_timespan()`] for details.
|
||||
pub fn averaging_window_timespan_for_height(
|
||||
network: Network,
|
||||
height: block::Height,
|
||||
|
|
|
@ -99,7 +99,7 @@ impl AdjustedDifficulty {
|
|||
/// Designed for use when validating block headers, where the full block has not
|
||||
/// been downloaded yet.
|
||||
///
|
||||
/// See `new_from_block` for detailed information about the `context`.
|
||||
/// See [`new_from_block()`] for detailed information about the `context`.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
@ -165,7 +165,7 @@ impl AdjustedDifficulty {
|
|||
/// `candidate_height`, `network`, and the relevant `difficulty_threshold`s and
|
||||
/// `time`s.
|
||||
///
|
||||
/// See `expected_difficulty_threshold` for details.
|
||||
/// See [`expected_difficulty_threshold()`] for details.
|
||||
///
|
||||
/// Implements `ThresholdBits` from the Zcash specification. (Which excludes the
|
||||
/// Testnet minimum difficulty adjustment.)
|
||||
|
@ -264,7 +264,7 @@ impl AdjustedDifficulty {
|
|||
///
|
||||
/// Implements `ActualTimespan` from the Zcash specification.
|
||||
///
|
||||
/// See `median_timespan_bounded` for details.
|
||||
/// See [`median_timespan_bounded()`] for details.
|
||||
fn median_timespan(&self) -> Duration {
|
||||
let newer_times: [DateTime<Utc>; POW_MEDIAN_BLOCK_SPAN] = self.relevant_times
|
||||
[0..POW_MEDIAN_BLOCK_SPAN]
|
||||
|
|
Loading…
Reference in New Issue