Misc tidying of serai-db calls

This commit is contained in:
Luke Parker
2024-09-11 09:12:00 -04:00
parent 59fa49f750
commit 9b8c8f8231
6 changed files with 46 additions and 49 deletions

View File

@@ -69,9 +69,7 @@ impl<S: ScannerFeed> Db<S> {
txn: &mut impl DbTxn,
output: &<OutputFor<S> as ReceivedOutput<KeyFor<S>, AddressFor<S>>>::Id,
) -> bool {
let res = AlreadyAccumulatedOutput::get(txn, output.as_ref()).is_some();
AlreadyAccumulatedOutput::del(txn, output.as_ref());
res
AlreadyAccumulatedOutput::take(txn, output.as_ref()).is_some()
}
pub(crate) fn queued_payments(