]> Untitled Git - bdk/commitdiff
add doc comment for IsDust trait
authorJames Taylor <54148103+jatayl@users.noreply.github.com>
Wed, 22 Dec 2021 06:50:17 +0000 (01:50 -0500)
committerJames Taylor <54148103+jatayl@users.noreply.github.com>
Wed, 22 Dec 2021 06:50:17 +0000 (01:50 -0500)
src/wallet/utils.rs

index e9475232e6eec9613cca8291e0785d92d2db9efe..8c7ee0ac2fc6b4d5833de5ad9185aaf2eb7daafe 100644 (file)
@@ -26,7 +26,9 @@ pub(crate) const SEQUENCE_LOCKTIME_MASK: u32 = 0x0000FFFF;
 // Threshold for nLockTime to be considered a block-height-based timelock rather than time-based
 pub(crate) const BLOCKS_TIMELOCK_THRESHOLD: u32 = 500000000;
 
-/// Trait to check if a value is below the dust limit
+/// Trait to check if a value is below the dust limit.
+/// We are performing dust value calculation for a given script public key using rust-bitcoin to
+/// keep it compatible with network dust rate
 // we implement this trait to make sure we don't mess up the comparison with off-by-one like a <
 // instead of a <= etc.
 pub trait IsDust {