mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
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:
@@ -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)],
|
||||
)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user