mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 20:59:23 +00:00
Expand primitives/scanner with niceties needed for the scheduler
This commit is contained in:
@@ -138,6 +138,11 @@ impl<D: Db, S: ScannerFeed> ContinuallyRan for SubstrateTask<D, S> {
|
||||
}
|
||||
}
|
||||
|
||||
// Drop burns less than the dust
|
||||
let burns = burns
|
||||
.into_iter()
|
||||
.filter(|burn| burn.balance.amount.0 >= S::dust(burn.balance.coin).0)
|
||||
.collect::<Vec<_>>();
|
||||
if !burns.is_empty() {
|
||||
// We send these Burns as stemming from this block we just acknowledged
|
||||
// This causes them to be acted on after we accumulate the outputs from this block
|
||||
|
||||
Reference in New Issue
Block a user