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:
parent
269d21deca
commit
3cad39a3a9
|
|
@ -186,7 +186,7 @@ impl Runtime {
|
||||||
);
|
);
|
||||||
ann
|
ann
|
||||||
} else {
|
} else {
|
||||||
service::gossip::node(&config, clock.as_secs())
|
service::gossip::node(&config, clock.as_millis())
|
||||||
.solve(Default::default())
|
.solve(Default::default())
|
||||||
.expect("Runtime::init: unable to solve proof-of-work puzzle")
|
.expect("Runtime::init: unable to solve proof-of-work puzzle")
|
||||||
};
|
};
|
||||||
|
|
@ -202,7 +202,7 @@ impl Runtime {
|
||||||
radicle::node::Features::SEED,
|
radicle::node::Features::SEED,
|
||||||
alias,
|
alias,
|
||||||
0,
|
0,
|
||||||
clock.as_secs(),
|
clock.as_millis(),
|
||||||
[node::KnownAddress::new(addr, address::Source::Bootstrap)],
|
[node::KnownAddress::new(addr, address::Source::Bootstrap)],
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue