Skip to content

Commit

Permalink
Trivial: FullNode: Use the Ledger when getting block height
Browse files Browse the repository at this point in the history
This avoids one request being recorded in the stats.
  • Loading branch information
Geod24 authored and omerfirmak committed Jan 19, 2022
1 parent f5f801e commit 845774e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/agora/node/FullNode.d
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public class FullNode : API

// Special case
// Block externalized handler is set and push for Genesis block.
if (this.block_handlers.length > 0 && this.getBlockHeight() == 0)
if (this.block_handlers.length > 0 && this.ledger.getBlockHeight() == 0)
this.pushBlock(this.params.Genesis);

this.timers ~= this.taskman.setTimer(
Expand Down

0 comments on commit 845774e

Please sign in to comment.