浏览代码

drk/rpc: make `scan_block()` public

This is so that the app can implement its own scan loop.
darkfi 3 周之前
父节点
当前提交
bc72fe43dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/drk/src/rpc.rs

+ 1 - 1
bin/drk/src/rpc.rs

@@ -183,7 +183,7 @@ impl Drk {
 
     /// `scan_block` will go over over transactions in a block and handle their calls
     /// based on the called contract.
-    async fn scan_block(&self, scan_cache: &mut ScanCache, block: &BlockInfo) -> Result<()> {
+    pub async fn scan_block(&self, scan_cache: &mut ScanCache, block: &BlockInfo) -> Result<()> {
         // Keep track of our wallet transactions.
         let mut wallet_txs = vec![];