crates: snapshot

This commit is contained in:
nym21
2025-12-30 18:09:08 +01:00
parent bd376f86ea
commit 8cff55a405
176 changed files with 7317 additions and 4539 deletions
+5 -2
View File
@@ -10,19 +10,22 @@ pub fn iter_difficulty_epochs(
) -> Vec<DifficultyAdjustmentEntry> {
let start_epoch = computer
.indexes
.block
.height_to_difficultyepoch
.read_once(Height::from(start_height))
.unwrap_or_default();
let end_epoch = computer
.indexes
.block
.height_to_difficultyepoch
.read_once(Height::from(end_height))
.unwrap_or_default();
let mut epoch_to_height_iter = computer.indexes.difficultyepoch_to_first_height.iter();
let mut epoch_to_timestamp_iter = computer.chain.difficultyepoch_to_timestamp.iter();
let mut epoch_to_height_iter = computer.indexes.block.difficultyepoch_to_first_height.iter();
let mut epoch_to_timestamp_iter = computer.chain.epoch.difficultyepoch_to_timestamp.iter();
let mut epoch_to_difficulty_iter = computer
.chain
.mining
.indexes_to_difficulty
.difficultyepoch
.unwrap_last()