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

bitcoindevkit / bdk / 5984736767

26 Aug 2023 12:20PM UTC coverage: 78.856% (+0.2%) from 78.694%
5984736767

Pull #1084

github

web-flow
Merge 8bdb5a43d into 8f978f86b
Pull Request #1084: Enhance bdk chain structures

86 of 86 new or added lines in 5 files covered. (100.0%)

8022 of 10173 relevant lines covered (78.86%)

5091.55 hits per line

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

0.0
/crates/chain/src/descriptor_ext.rs
1
use crate::miniscript::{Descriptor, DescriptorPublicKey};
2

3
/// A trait to extend the functionality of a miniscript descriptor.
4
pub trait DescriptorExt {
5
    /// Returns the minimum value (in satoshis) at which an output is broadcastable.
6
    /// Panics if the descriptor wildcard is hardened.
7
    fn dust_value(&self) -> u64;
8
}
9

10
impl DescriptorExt for Descriptor<DescriptorPublicKey> {
11
    fn dust_value(&self) -> u64 {
×
12
        self.at_derivation_index(0)
×
13
            .expect("descriptor can't have hardened derivation")
×
14
            .script_pubkey()
×
15
            .dust_value()
×
16
            .to_sat()
×
17
    }
×
18
}
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