mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Don't scan outputs which are dust, track dust change as operating costs
Fixes #299.
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
#[cfg(feature = "bitcoin")]
|
||||
mod bitcoin {
|
||||
use crate::networks::Bitcoin;
|
||||
use crate::networks::{Network, Bitcoin};
|
||||
|
||||
#[test]
|
||||
fn test_dust_constant() {
|
||||
struct IsTrue<const V: bool>;
|
||||
trait True {}
|
||||
impl True for IsTrue<true> {}
|
||||
fn check<T: True>() {
|
||||
core::hint::black_box(());
|
||||
}
|
||||
check::<IsTrue<{ Bitcoin::DUST >= bitcoin_serai::wallet::DUST }>>();
|
||||
}
|
||||
|
||||
async fn bitcoin() -> Bitcoin {
|
||||
let bitcoin = Bitcoin::new("http://serai:seraidex@127.0.0.1:18443".to_string()).await;
|
||||
|
||||
Reference in New Issue
Block a user