Skip to content

Commit 95dde9c

Browse files
committed
Fix devnet fallout from Toccata activation
* Build test headers with the configured block version instead of the constant * Regenerate the JSON DAG fixtures now that devnet is Toccata active
1 parent 58cd431 commit 95dde9c

4 files changed

Lines changed: 1 addition & 0 deletions

File tree

consensus/src/consensus/test_consensus.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ impl TestConsensus {
140140
let daa_window = self.consensus.services.window_manager.block_daa_window(&ghostdag_data).unwrap();
141141
header.bits = self.consensus.services.window_manager.calculate_difficulty_bits(&ghostdag_data, &daa_window);
142142
header.daa_score = daa_window.daa_score;
143+
header.version = self.params.block_version().get(header.daa_score);
143144
header.timestamp = self.consensus.services.window_manager.calc_past_median_time(&ghostdag_data).unwrap().0 + 1;
144145
header.blue_score = ghostdag_data.blue_score;
145146
header.blue_work = ghostdag_data.blue_work;
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)