What changed, and why it matters
This commit is a routine feature update. It upgrades a dependency called bindex from version 0.1.1 to 0.1.2 and changes the code to pass a configurable REST server URL into the indexing component. There is no indication in the commit that this fixes a security vulnerability.
No security action required. Review the bindex 0.1.2 changelog separately if desired, but this commit itself does not address a security issue.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch bumps the bindex crate to 0.1.2 and updates src/tracker.rs so that IndexedChain::open receives a REST URL constructed from config.daemon_rpc_addr instead of using a hardcoded default. This is a configuration/functional change, not a security patch. No security signals are present in the diff or commit metadata.
Changed components
src/tracker.rsCargo.toml dependency `bindex`Inspect captured patch +6 / −5
diff --git a/Cargo.lock b/Cargo.lock
index d735148..a48306a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -59,9 +59,9 @@ checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
[[package]]
name = "bindex"
-version = "0.1.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1278fa172b7d90655ab8df4ab21b3956f6f0929cf1e3d97b6671188ef7c7e998"
+checksum = "becb30e2688944707fe12c33fc1d6920fc4c83f67224cd81bf2767062b852f9e"
dependencies = [
"bitcoin",
"bitcoin_slices",
diff --git a/Cargo.toml b/Cargo.toml
index b944803..e19ad2e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,7 @@ spec = "internal/config_specification.toml"
[dependencies]
anyhow = "1.0"
-bindex = { version = "0.1.1", default-features = false, features = ["bitcoin_serde"] }
+bindex = { version = "0.1.2", default-features = false, features = ["bitcoin_serde"] }
configure_me = "0.4"
crossbeam-channel = "0.5"
dirs-next = "2.0"
diff --git a/src/tracker.rs b/src/tracker.rs
index 97d43a8..0c7f23b 100644
--- a/src/tracker.rs
+++ b/src/tracker.rs
@@ -21,8 +21,9 @@ pub struct Tracker {
impl Tracker {
pub fn new(config: &Config, metrics: Metrics) -> Result<Self> {
- let index =
- IndexedChain::open(&config.db_dir, config.network).context("failed to open index")?;
+ let url = format!("http://{}", config.daemon_rpc_addr);
+ let index = IndexedChain::open(&config.db_dir, config.network, Some(url))
+ .context("failed to open index")?;
Ok(Self {
index,
mempool: Mempool::new(&metrics),
Why this scored 11/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.