From 524946f840e509f764c8a468e422c1d5afbd86c9 Mon Sep 17 00:00:00 2001 From: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com> Date: Thu, 1 Aug 2024 21:15:07 +0100 Subject: [PATCH] fix doc --- consensus/src/tests/context/difficulty.rs | 5 +---- types/src/types.rs | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/consensus/src/tests/context/difficulty.rs b/consensus/src/tests/context/difficulty.rs index e7d472d5..a855ed89 100644 --- a/consensus/src/tests/context/difficulty.rs +++ b/consensus/src/tests/context/difficulty.rs @@ -63,10 +63,7 @@ async fn calculate_diff_3000000_3002000() -> Result<(), tower::BoxError> { let cfg = DifficultyCacheConfig::main_net(); let mut db_builder = DummyDatabaseBuilder::default(); - for (cum_dif, timestamp) in DIF_3000000_3002000 - .iter() - .take(cfg.total_block_count()) - { + for (cum_dif, timestamp) in DIF_3000000_3002000.iter().take(cfg.total_block_count()) { db_builder.add_block( DummyBlockExtendedHeader::default().with_difficulty_info(*timestamp, *cum_dif), ) diff --git a/types/src/types.rs b/types/src/types.rs index 4432d81d..a4a7135f 100644 --- a/types/src/types.rs +++ b/types/src/types.rs @@ -17,13 +17,13 @@ pub struct ExtendedBlockHeader { /// /// This can also be represented with `cuprate_consensus::HardFork`. /// - /// This is the same value as [`monero_serai::block::BlockHeader::major_version`]. + /// This is the same value as [`monero_serai::block::BlockHeader::hardfork_version`]. pub version: u8, /// The block's hard-fork vote. /// /// This can also be represented with `cuprate_consensus::HardFork`. /// - /// This is the same value as [`monero_serai::block::BlockHeader::minor_version`]. + /// This is the same value as [`monero_serai::block::BlockHeader::hardfork_signal`]. pub vote: u8, /// The UNIX time at which the block was mined. pub timestamp: u64, @@ -72,7 +72,7 @@ pub struct VerifiedBlockInformation { /// /// [`Block::serialize`]. pub block_blob: Vec, - /// All the transactions in the block, excluding the [`Block::miner_tx`]. + /// All the transactions in the block, excluding the [`Block::miner_transaction`]. pub txs: Vec, /// The block's hash. /// @@ -119,7 +119,7 @@ pub struct AltBlockInformation { /// /// [`Block::serialize`]. pub block_blob: Vec, - /// All the transactions in the block, excluding the [`Block::miner_tx`]. + /// All the transactions in the block, excluding the [`Block::miner_transaction`]. pub txs: Vec, /// The block's hash. ///