From 3cad39a3a95c73c84b4e00dfdeb7b9220143eb39 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 13 Nov 2023 15:57:03 +0100 Subject: [PATCH] node: Fix timestamp bug We were using seconds when it's supposed to be milliseconds. Oops. We should probably switch this type to `LocalTime` at some point. --- radicle-node/src/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-node/src/runtime.rs b/radicle-node/src/runtime.rs index 05c30d21..4d86f7ec 100644 --- a/radicle-node/src/runtime.rs +++ b/radicle-node/src/runtime.rs @@ -186,7 +186,7 @@ impl Runtime { ); ann } else { - service::gossip::node(&config, clock.as_secs()) + service::gossip::node(&config, clock.as_millis()) .solve(Default::default()) .expect("Runtime::init: unable to solve proof-of-work puzzle") }; @@ -202,7 +202,7 @@ impl Runtime { radicle::node::Features::SEED, alias, 0, - clock.as_secs(), + clock.as_millis(), [node::KnownAddress::new(addr, address::Source::Bootstrap)], )?; }