Преглед изворни кода

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![];