diff --git a/db/db-core/src/lib.rs b/db/db-core/src/lib.rs index 1ebffd3f..410d14be 100644 --- a/db/db-core/src/lib.rs +++ b/db/db-core/src/lib.rs @@ -223,6 +223,15 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase { /// mark a notification read async fn mark_notification_read(&self, username: &str, id: i32) -> DBResult<()>; + + /// record PoWConfig fetches + async fn record_fetch(&self, key: &str) -> DBResult<()>; + + /// record PoWConfig solves + async fn record_solve(&self, key: &str) -> DBResult<()>; + + /// record PoWConfig confirms + async fn record_confirm(&self, key: &str) -> DBResult<()>; } #[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq)]