diff --git a/crates/brk_bundler/README.md b/crates/brk_bundler/README.md index 4237b5d77..3dc6e0653 100644 --- a/crates/brk_bundler/README.md +++ b/crates/brk_bundler/README.md @@ -28,7 +28,7 @@ This crate provides a thin wrapper around the Rolldown JavaScript bundler specif ## Installation -```toml +```bash cargo add brk_bundler ``` diff --git a/crates/brk_computer/README.md b/crates/brk_computer/README.md index 5b157bf1b..a5d161ab1 100644 --- a/crates/brk_computer/README.md +++ b/crates/brk_computer/README.md @@ -29,7 +29,7 @@ This crate provides a sophisticated analytics engine that processes indexed Bitc ## Installation -```toml +```bash cargo add brk_computer ``` diff --git a/crates/brk_error/README.md b/crates/brk_error/README.md index 2d55891d8..bb9ff7e76 100644 --- a/crates/brk_error/README.md +++ b/crates/brk_error/README.md @@ -25,7 +25,7 @@ This crate provides a unified error type that consolidates error handling across ## Installation -```toml +```bash cargo add brk_error ``` diff --git a/crates/brk_fetcher/README.md b/crates/brk_fetcher/README.md index ac7e72b47..2f28b1352 100644 --- a/crates/brk_fetcher/README.md +++ b/crates/brk_fetcher/README.md @@ -26,7 +26,7 @@ This crate provides a unified interface for fetching Bitcoin price data from mul ## Installation -```toml +```bash cargo add brk_fetcher ``` diff --git a/crates/brk_indexer/README.md b/crates/brk_indexer/README.md index a21a087df..3d6caa862 100644 --- a/crates/brk_indexer/README.md +++ b/crates/brk_indexer/README.md @@ -28,7 +28,7 @@ This crate provides a comprehensive Bitcoin blockchain indexer built on top of ` ## Installation -```toml +```bash cargo add brk_indexer ``` diff --git a/crates/brk_interface/README.md b/crates/brk_interface/README.md index aaa24b533..540c4ebe4 100644 --- a/crates/brk_interface/README.md +++ b/crates/brk_interface/README.md @@ -28,7 +28,7 @@ This crate provides a high-level interface for querying and formatting data from ## Installation -```toml +```bash cargo add brk_interface ``` diff --git a/crates/brk_logger/README.md b/crates/brk_logger/README.md index 3480c718b..1fc281f3b 100644 --- a/crates/brk_logger/README.md +++ b/crates/brk_logger/README.md @@ -26,7 +26,7 @@ This crate provides a thin wrapper around `env_logger` with enhanced formatting, ## Installation -```toml +```bash cargo add brk_logger ``` diff --git a/crates/brk_mcp/README.md b/crates/brk_mcp/README.md index 19850895f..b16df3ee8 100644 --- a/crates/brk_mcp/README.md +++ b/crates/brk_mcp/README.md @@ -26,13 +26,23 @@ This crate provides a Model Context Protocol (MCP) server implementation that ex - AI-driven financial analysis requiring Bitcoin metrics - Automated research tools with natural language queries -## Installation +## Claude -```toml +### Quick Start + +Add a `bitview` custom connector with the following URL: + +`https://bitview.space/mcp` + +## Rust + +### Installation + +```bash cargo add brk_mcp ``` -## Quick Start +### Quick Start ```rust use brk_mcp::MCP; diff --git a/crates/brk_parser/README.md b/crates/brk_parser/README.md index c20722965..6a7ea9051 100644 --- a/crates/brk_parser/README.md +++ b/crates/brk_parser/README.md @@ -28,7 +28,7 @@ This crate provides a multi-threaded Bitcoin block parser that processes raw Bit ## Installation -```toml +```bash cargo add brk_parser ``` diff --git a/crates/brk_server/README.md b/crates/brk_server/README.md index 69dd1142e..21bfec3d9 100644 --- a/crates/brk_server/README.md +++ b/crates/brk_server/README.md @@ -29,7 +29,7 @@ This crate provides a high-performance HTTP server built on `axum` that exposes ## Installation -```toml +```bash cargo add brk_server ``` diff --git a/crates/brk_store/README.md b/crates/brk_store/README.md index 91096b9ad..3c351f55e 100644 --- a/crates/brk_store/README.md +++ b/crates/brk_store/README.md @@ -28,7 +28,7 @@ This crate provides a type-safe wrapper around the Fjall LSM-tree database engin ## Installation -```toml +```bash cargo add brk_store ``` diff --git a/crates/brk_structs/README.md b/crates/brk_structs/README.md index dd98c83bb..b831199d3 100644 --- a/crates/brk_structs/README.md +++ b/crates/brk_structs/README.md @@ -28,7 +28,7 @@ This crate provides a comprehensive type system for Bitcoin blockchain analysis, ## Installation -```toml +```bash cargo add brk_structs ``` diff --git a/crates/brk_structs/src/structs/rawlocktime.rs b/crates/brk_structs/src/structs/rawlocktime.rs index 9681de287..a94afc3fc 100644 --- a/crates/brk_structs/src/structs/rawlocktime.rs +++ b/crates/brk_structs/src/structs/rawlocktime.rs @@ -1,4 +1,4 @@ -use bitcoin::absolute::LockTime; +use bitcoin::{absolute::LockTime, locktime::absolute::LOCK_TIME_THRESHOLD}; use serde::Serialize; use vecdb::StoredCompressed; use zerocopy_derive::{FromBytes, Immutable, IntoBytes, KnownLayout}; @@ -14,12 +14,10 @@ impl From for RawLockTime { } } -const CONSENSUS_DELIMITER: u32 = 500_000_000; - impl From for LockTime { fn from(value: RawLockTime) -> Self { let value = value.0; - if value >= CONSENSUS_DELIMITER { + if value < LOCK_TIME_THRESHOLD { bitcoin::locktime::absolute::Height::from_consensus(value) .unwrap() .into()