Просмотр исходного кода

event_graph and evgrd: use INITIAL_GENESIS as seconds in for prune task as well

dasman 1 год назад
Родитель
Сommit
86afe8d896
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      script/evgrd/src/lib.rs
  2. 1 1
      src/event_graph/mod.rs

+ 1 - 1
script/evgrd/src/lib.rs

@@ -173,7 +173,7 @@ impl LocalEventGraph {
 
 
         loop {
         loop {
             // Find the next rotation timestamp:
             // Find the next rotation timestamp:
-            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS, days_rotation);
+            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS / 1000, days_rotation);
 
 
             // Prepare the new genesis event
             // Prepare the new genesis event
             let current_genesis = Event {
             let current_genesis = Event {

+ 1 - 1
src/event_graph/mod.rs

@@ -509,7 +509,7 @@ impl EventGraph {
 
 
         loop {
         loop {
             // Find the next rotation timestamp:
             // Find the next rotation timestamp:
-            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS, days_rotation);
+            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS / 1000, days_rotation);
 
 
             // Prepare the new genesis event
             // Prepare the new genesis event
             let current_genesis = Event {
             let current_genesis = Event {