pub(crate) mod apply;
pub(crate) mod discovery;
pub(super) mod payments;
pub(super) mod recovery;
use payments::PendingPayment;
use std::borrow::BorrowMut;
use rand_core::Rng;
use rusqlite::Connection;
use zcash_protocol::consensus::Parameters;
use crate::{AccountUuid, WalletDb, error::SqliteClientError, util::Clock};
impl<C: BorrowMut<Connection>, P: Parameters, CL: Clock, R: Rng> WalletDb<C, P, CL, R> {
pub fn recheck_one_time_key_history(
&mut self,
account: AccountUuid,
) -> Result<(), SqliteClientError> {
self.transactionally(|db| recovery::recheck(db.conn.0, db.params, account))
}
pub fn mark_one_time_account_fresh(
&mut self,
account: AccountUuid,
) -> Result<(), SqliteClientError> {
self.transactionally(|db| recovery::mark_fresh(db.conn.0, db.params, account))
}
}
#[cfg(test)]
pub(super) mod tests;