Skip to content

Commit 905e1a0

Browse files
committed
crc: make 'nakamoto_last_block_of_cycle' only available for testing purpose, #5970
1 parent 6e62960 commit 905e1a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stackslib/src/burnchains/burnchain.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ impl Burnchain {
578578
.nakamoto_first_block_of_cycle(self.first_block_height, reward_cycle)
579579
}
580580

581+
#[cfg(any(test, feature = "testing"))]
581582
/// the last burn block that must be *signed* by the signer set of `reward_cycle`.
582583
/// this is the modulo 1 block
583584
pub fn nakamoto_last_block_of_cycle(&self, reward_cycle: u64) -> u64 {

0 commit comments

Comments
 (0)