Skip to content

Commit

Permalink
Log starting block upon listener initialization (ChainSafe#640)
Browse files Browse the repository at this point in the history
* log starting block upon listener initialization

* remove unnecessary variable initialisation

* fix to keep log convention consistent
  • Loading branch information
waymobetta authored May 20, 2021
1 parent 6f55404 commit e494294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chains/ethereum/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ func (l *listener) start() error {
// Polling begins at the block defined in `l.cfg.startBlock`. Failed attempts to fetch the latest block or parse
// a block will be retried up to BlockRetryLimit times before continuing to the next block.
func (l *listener) pollBlocks() error {
l.log.Info("Polling Blocks...")
var currentBlock = l.cfg.startBlock
l.log.Info("Polling Blocks...", "block", currentBlock)

var retry = BlockRetryLimit
for {
select {
Expand Down

0 comments on commit e494294

Please sign in to comment.