fixes doc links
This commit is contained in:
parent
2493e7ec76
commit
997e265636
|
@ -11,14 +11,14 @@ use crate::{
|
|||
pub struct Parameters {
|
||||
/// The network upgrade activation heights for this network.
|
||||
///
|
||||
/// Note: This value is ignored by [`Network::activation_list()`] when `zebra-chain` is
|
||||
/// Note: This value is ignored by `Network::activation_list()` when `zebra-chain` is
|
||||
/// compiled with the `zebra-test` feature flag AND the `TEST_FAKE_ACTIVATION_HEIGHTS`
|
||||
/// environment variable is set.
|
||||
pub activation_heights: BTreeMap<Height, NetworkUpgrade>,
|
||||
}
|
||||
|
||||
impl Default for Parameters {
|
||||
/// Returns an instance of the default public testnet [`NetworkParameters`].
|
||||
/// Returns an instance of the default public testnet [`Parameters`].
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
activation_heights: TESTNET_ACTIVATION_HEIGHTS.iter().cloned().collect(),
|
||||
|
@ -27,7 +27,7 @@ impl Default for Parameters {
|
|||
}
|
||||
|
||||
impl Parameters {
|
||||
/// Returns true if the instance of [`NetworkParameters`] represents the default public Testnet.
|
||||
/// Returns true if the instance of [`Parameters`] represents the default public Testnet.
|
||||
pub fn is_default_testnet(&self) -> bool {
|
||||
self == &Self::default()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue