Skip to content

Commit 9fe3738

Browse files
author
SyntheticBird45
committed
fix doc
1 parent c641e1d commit 9fe3738

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

consensus/context/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tower = { workspace = true, features = ["util"] }
1313
tracing = { workspace = true, features = ["std", "attributes"] }
1414
thiserror = { workspace = true }
1515

16+
monero-serai = { workspace = true, features = ["std"] }
1617
randomx-rs = { workspace = true }
1718
rayon = { workspace = true }
1819
thread_local = { workspace = true }

consensus/context/src/alt_chains.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct AltChainContextCache {
3737
pub chain_height: usize,
3838
/// The top hash of the alt chain.
3939
pub top_hash: [u8; 32],
40-
/// The [`ChainID`] of the alt chain.
40+
/// The [`ChainId`] of the alt chain.
4141
pub chain_id: Option<ChainId>,
4242
/// The parent [`Chain`] of this alt chain.
4343
pub parent_chain: Chain,

consensus/context/src/difficulty.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ impl DifficultyCacheConfig {
7373
#[derive(Debug, Clone, Eq, PartialEq)]
7474
pub struct DifficultyCache {
7575
/// The list of timestamps in the window.
76-
/// len <= [`DIFFICULTY_BLOCKS_COUNT`]
7776
pub timestamps: VecDeque<u64>,
7877
/// The current cumulative difficulty of the chain.
7978
pub cumulative_difficulties: VecDeque<u128>,

consensus/context/src/rx_vms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use cuprate_types::{
2929
use crate::{ContextCacheError, Database};
3030

3131
/// The amount of randomX VMs to keep in the cache.
32-
const RX_SEEDS_CACHED: usize = 2;
32+
pub const RX_SEEDS_CACHED: usize = 2;
3333

3434
/// A multithreaded randomX VM.
3535
#[derive(Debug)]

consensus/context/src/weight.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ use cuprate_types::{
2424
use crate::{ContextCacheError, Database, HardFork};
2525

2626
/// The short term block weight window.
27-
const SHORT_TERM_WINDOW: usize = 100;
27+
pub const SHORT_TERM_WINDOW: usize = 100;
2828
/// The long term block weight window.
29-
const LONG_TERM_WINDOW: usize = 100000;
29+
pub const LONG_TERM_WINDOW: usize = 100000;
3030

3131
/// Configuration for the block weight cache.
3232
///

0 commit comments

Comments
 (0)