From 86afe8d896f7bfb2ea1d9a48dcaba01f9195bbbd Mon Sep 17 00:00:00 2001 From: dasman Date: Fri, 27 Sep 2024 21:22:27 +0300 Subject: [PATCH] event_graph and evgrd: use INITIAL_GENESIS as seconds in for prune task as well --- script/evgrd/src/lib.rs | 2 +- src/event_graph/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/evgrd/src/lib.rs b/script/evgrd/src/lib.rs index 50a7b7546..45688de33 100644 --- a/script/evgrd/src/lib.rs +++ b/script/evgrd/src/lib.rs @@ -173,7 +173,7 @@ impl LocalEventGraph { loop { // 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 let current_genesis = Event { diff --git a/src/event_graph/mod.rs b/src/event_graph/mod.rs index e32556266..765fe1d55 100644 --- a/src/event_graph/mod.rs +++ b/src/event_graph/mod.rs @@ -509,7 +509,7 @@ impl EventGraph { loop { // 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 let current_genesis = Event {