Sfoglia il codice sorgente

drk/rpc: make `scan_block()` public

This is so that the app can implement its own scan loop.
darkfi 3 settimane fa
parent
commit
bc72fe43dd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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![];