Skip to content

Commit

Permalink
Remove FriendlyNumber function (#11376)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimriou authored Nov 28, 2023
1 parent bd7e233 commit 05ccd28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
6 changes: 2 additions & 4 deletions common/headtracker/head_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (

htrktypes "github.com/smartcontractkit/chainlink/v2/common/headtracker/types"
"github.com/smartcontractkit/chainlink/v2/common/types"
"github.com/smartcontractkit/chainlink/v2/core/config"
"github.com/smartcontractkit/chainlink/v2/core/utils"
)

Expand Down Expand Up @@ -103,7 +102,7 @@ func (ht *HeadTracker[HTH, S, ID, BLOCK_HASH]) Start(ctx context.Context) error
}
if latestChain.IsValid() {
ht.log.Debugw(
fmt.Sprintf("HeadTracker: Tracking logs from last block %v with hash %s", config.FriendlyNumber(latestChain.BlockNumber()), latestChain.BlockHash()),
fmt.Sprintf("HeadTracker: Tracking logs from last block %v with hash %s", latestChain.BlockNumber(), latestChain.BlockHash()),
"blockNumber", latestChain.BlockNumber(),
"blockHash", latestChain.BlockHash(),
)
Expand Down Expand Up @@ -193,8 +192,7 @@ func (ht *HeadTracker[HTH, S, ID, BLOCK_HASH]) getInitialHead(ctx context.Contex
func (ht *HeadTracker[HTH, S, ID, BLOCK_HASH]) handleNewHead(ctx context.Context, head HTH) error {
prevHead := ht.headSaver.LatestChain()

ht.log.Debugw(fmt.Sprintf("Received new head %v", config.FriendlyNumber(head.BlockNumber())),
"blockHeight", head.BlockNumber(),
ht.log.Debugw(fmt.Sprintf("Received new head %v", head.BlockNumber()),
"blockHash", head.BlockHash(),
"parentHeadHash", head.GetParentHash(),
"blockTs", head.GetTimestamp(),
Expand Down
14 changes: 0 additions & 14 deletions core/config/presenters.go

This file was deleted.

0 comments on commit 05ccd28

Please sign in to comment.