Skip to content

Commit 7a15524

Browse files
committed
chore: Move feature-gated import inside function
1 parent 8351ae2 commit 7a15524

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stacks-common/src/types/chainstate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ use crate::util::vrf::{VRFProof, VRF_PROOF_ENCODED_SIZE};
1515
pub type StacksPublicKey = Secp256k1PublicKey;
1616
pub type StacksPrivateKey = Secp256k1PrivateKey;
1717

18-
#[cfg(any(test, feature = "testing"))]
19-
use crate::util::hash::DoubleSha256;
20-
2118
/// Hash of a Trie node. This is a SHA2-512/256.
2219
#[derive(Default)]
2320
pub struct TrieHash(pub [u8; 32]);
@@ -450,6 +447,8 @@ impl BurnchainHeaderHash {
450447
index_root: &TrieHash,
451448
noise: u64,
452449
) -> BurnchainHeaderHash {
450+
use crate::util::hash::DoubleSha256;
451+
453452
let mut bytes = vec![];
454453
bytes.extend_from_slice(&block_height.to_be_bytes());
455454
bytes.extend_from_slice(index_root.as_bytes());

0 commit comments

Comments
 (0)