Explorar el Código

darkirc: update event_graph synced flag when we were already on latest tip

aggstam hace 2 años
padre
commit
aac6b2c6c2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/event_graph/mod.rs

+ 1 - 0
src/event_graph/mod.rs

@@ -279,6 +279,7 @@ impl EventGraph {
         }
 
         if missing_parents.is_empty() {
+            *self.synced.write().await = true;
             info!(target: "event_graph::dag_sync()", "[EVENTGRAPH] DAG synced successfully!");
             return Ok(())
         }