primitives: Remove deprecated type from API test
What changed, and why it matters
This is a one-line change in a test file that swaps a deprecated type name for its newer replacement. It has no security relevance: it does not alter production code, cryptographic logic, parsing, network handling, or any behavior visible to users of the library.
No action required. This is a routine maintenance/test cleanup commit with no security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
Commit 64c92980 updates primitives/tests/api.rs to use BlockHeightInterval instead of the deprecated BlockInterval in an API-compilation test. The change is purely a rename in a test-only import list and does not affect runtime code, public API behavior, or safety invariants.
Changed components
primitives/tests/api.rsInspect captured patch +1 / −1
diff --git a/primitives/tests/api.rs b/primitives/tests/api.rs
index 060170fc..a14e67f6 100644
--- a/primitives/tests/api.rs
+++ b/primitives/tests/api.rs
@@ -211,7 +211,7 @@ fn api_can_use_units_modules_from_crate_root() {
#[test]
fn api_can_use_units_types_from_crate_root() {
- use bitcoin_primitives::{Amount, BlockHeight, BlockInterval, FeeRate, SignedAmount, Weight};
+ use bitcoin_primitives::{Amount, BlockHeight, BlockHeightInterval, FeeRate, SignedAmount, Weight};
}
#[test]
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.