Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Jul 24, 2024
1 parent 0d2238e commit f523ee8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/blockarchiver/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ func (c *BlockArchiverService) getBlockByNumber(number uint64) (*types.Body, *ty

// GetBlockByHash returns the block by hash
func (c *BlockArchiverService) GetBlockByHash(hash common.Hash) (*types.Body, *types.Header, error) {
log.Info("get block by hash", "hash", hash)
log.Info("get block by hash", "hash", hash.Hex())
log.Debug(hash.Hex())
// check if the block is in the cach
body, foundB := c.bodyCache.Get(hash)
header, foundH := c.headerCache.Get(hash)
if foundB && foundH {
Expand Down

0 comments on commit f523ee8

Please sign in to comment.