We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8351ae2 commit 7a15524Copy full SHA for 7a15524
stacks-common/src/types/chainstate.rs
@@ -15,9 +15,6 @@ use crate::util::vrf::{VRFProof, VRF_PROOF_ENCODED_SIZE};
15
pub type StacksPublicKey = Secp256k1PublicKey;
16
pub type StacksPrivateKey = Secp256k1PrivateKey;
17
18
-#[cfg(any(test, feature = "testing"))]
19
-use crate::util::hash::DoubleSha256;
20
-
21
/// Hash of a Trie node. This is a SHA2-512/256.
22
#[derive(Default)]
23
pub struct TrieHash(pub [u8; 32]);
@@ -450,6 +447,8 @@ impl BurnchainHeaderHash {
450
447
index_root: &TrieHash,
451
448
noise: u64,
452
449
) -> BurnchainHeaderHash {
+ use crate::util::hash::DoubleSha256;
+
453
let mut bytes = vec![];
454
bytes.extend_from_slice(&block_height.to_be_bytes());
455
bytes.extend_from_slice(index_root.as_bytes());
0 commit comments