• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk / 5582722505

pending completion
5582722505

Pull #1002

github

web-flow
Merge 98a52d0cb into 81c761339
Pull Request #1002: Implement linked-list `LocalChain` and add rpc-chain module/example

945 of 945 new or added lines in 10 files covered. (100.0%)

8019 of 10332 relevant lines covered (77.61%)

5036.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

8.33
/crates/esplora/src/lib.rs
1
#![doc = include_str!("../README.md")]
1✔
2
use bdk_chain::{BlockId, ConfirmationTimeAnchor};
3
use esplora_client::TxStatus;
4

5
pub use esplora_client;
6

7
#[cfg(feature = "blocking")]
8
mod blocking_ext;
9
#[cfg(feature = "blocking")]
10
pub use blocking_ext::*;
11

12
#[cfg(feature = "async")]
13
mod async_ext;
14
#[cfg(feature = "async")]
15
pub use async_ext::*;
16

17
const ASSUME_FINAL_DEPTH: u32 = 15;
18

19
fn anchor_from_status(status: &TxStatus) -> Option<ConfirmationTimeAnchor> {
20
    if let TxStatus {
21
        block_height: Some(height),
×
22
        block_hash: Some(hash),
×
23
        block_time: Some(time),
×
24
        ..
25
    } = status.clone()
×
26
    {
27
        Some(ConfirmationTimeAnchor {
×
28
            anchor_block: BlockId { height, hash },
×
29
            confirmation_height: height,
×
30
            confirmation_time: time,
×
31
        })
×
32
    } else {
33
        None
×
34
    }
35
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc