Skip to content

Commit

Permalink
Updated ethereum-listener log
Browse files Browse the repository at this point in the history
  • Loading branch information
srslafazan committed Jan 5, 2021
1 parent 9a83460 commit b00ca4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum-listener/src/lib/sync/syncBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module.exports = async ({
// TOOD - confirm all blocks exist in db

const start = Math.max(get(latestBlock, 'number', -1), (process.env.ETHEREUM_MIN_BLOCK_NUMBER || 0))
console.log('[ethereum-listener] start block is ', start)
console.log('[ethereum-listener][syncBlocks] start block is ', start)
const end = await web3.eth.getBlockNumber() || 0
console.log('[ethereum-listener] end block is ', end)
console.log('[ethereum-listener][syncBlocks] end block is ', end)
let current = start

while (current <= end) {
Expand Down

0 comments on commit b00ca4f

Please sign in to comment.