]> Untitled Git - bdk/commitdiff
fixed fee in test, removed unnecessary comment
authorJames Taylor <54148103+jatayl@users.noreply.github.com>
Sun, 19 Dec 2021 23:37:05 +0000 (18:37 -0500)
committerJames Taylor <54148103+jatayl@users.noreply.github.com>
Sun, 19 Dec 2021 23:37:05 +0000 (18:37 -0500)
src/testutils/blockchain_tests.rs
src/wallet/utils.rs

index d08936109acd858b2086a6f8115f9b5b4d0e2872..4229f5df4cd56775da3ce252ec0617d54b92d5cd 100644 (file)
@@ -843,7 +843,7 @@ macro_rules! bdk_blockchain_tests {
                 assert_eq!(wallet.get_balance().unwrap(), details.received, "incorrect received after send");
 
                 let mut builder = wallet.build_fee_bump(details.txid).unwrap();
-                builder.fee_rate(FeeRate::from_sat_per_vb(5.0));
+                builder.fee_rate(FeeRate::from_sat_per_vb(5.1));
                 let (mut new_psbt, new_details) = builder.finish().unwrap();
                 let finalized = wallet.sign(&mut new_psbt, Default::default()).unwrap();
                 assert!(finalized, "Cannot finalize transaction");
index 50163dce892bcd167fd0bd7d31b8001d7231da91..e9475232e6eec9613cca8291e0785d92d2db9efe 100644 (file)
@@ -28,8 +28,7 @@ pub(crate) const BLOCKS_TIMELOCK_THRESHOLD: u32 = 500000000;
 
 /// Trait to check if a value is below the dust limit
 // we implement this trait to make sure we don't mess up the comparison with off-by-one like a <
-// instead of a <= etc. The constant value for the dust limit is not public on purpose, to
-// encourage the usage of this trait.
+// instead of a <= etc.
 pub trait IsDust {
     /// Check whether or not a value is below dust limit
     fn is_dust(&self, script: &Script) -> bool;