Skip to content

Commit 55f9673

Browse files
Merge pull request #39 from keep-network/top-counter-continue
Continue when block number could not be parsed
2 parents 9fbd0b9 + 6aedcf9 commit 55f9673

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/chain/ethereum/blockcounter/blockcounter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ func (ebc *EthereumBlockCounter) receiveBlocks() {
101101
for block := range ebc.subscriptionChannel {
102102
topBlockNumber, err := strconv.ParseInt(block.Number, 0, 32)
103103
if err != nil {
104-
// FIXME Consider the right thing to do here.
105104
logger.Errorf("error receiving a new block: [%v]", err)
105+
continue
106106
}
107107

108108
// receivedBlockHeight is the current blockchain height as just

0 commit comments

Comments
 (0)