Skip to content

Commit

Permalink
Update to the latest chain tip estimate API
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Feb 10, 2022
1 parent 95bdfc2 commit b213680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebrad/src/commands/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ impl StartCmd {
const MIN_SYNC_WARNING_BLOCKS: i32 = 60;

loop {
let _now = Utc::now();
let now = Utc::now();
let is_close_to_tip = sync_status.is_close_to_tip();

if let Some(estimated_height) =
latest_chain_tip.estimate_network_chain_tip_height(network /*, now*/)
latest_chain_tip.estimate_network_chain_tip_height(network, now)
{
// The estimate/actual race doesn't matter here,
// because we're only using it for metrics and logging.
Expand Down

0 comments on commit b213680

Please sign in to comment.