Explorar el Código

drk/rpc: make `scan_block()` public

This is so that the app can implement its own scan loop.
darkfi hace 3 semanas
padre
commit
bc72fe43dd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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![];