We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
feerate_parsing
1 parent 7b235a6 commit 49b363fCopy full SHA for 49b363f
src/lib.rs
@@ -388,12 +388,17 @@ mod test {
388
"#,
389
)
390
.unwrap();
391
+ assert!(convert_fee_rate(1, HashMap::new()).is_none());
392
assert_eq!(convert_fee_rate(6, esplora_fees.clone()).unwrap(), 2.236);
393
assert_eq!(
- convert_fee_rate(26, esplora_fees).unwrap(),
394
+ convert_fee_rate(26, esplora_fees.clone()).unwrap(),
395
1.015,
396
"should inherit from value for 25"
397
);
398
+ assert!(
399
+ convert_fee_rate(0, esplora_fees).is_none(),
400
+ "should not return feerate for 0 target"
401
+ );
402
}
403
404
#[cfg(all(feature = "blocking", feature = "async"))]
0 commit comments