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.
This commit is contained in:
cloudhead 2023-11-13 15:57:03 +01:00
parent 269d21deca
commit 3cad39a3a9
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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)],
)?;
}