Эх сурвалжийг харах

drk/rpc: make `scan_block()` public

This is so that the app can implement its own scan loop.
darkfi 3 долоо хоног өмнө
parent
commit
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![];