From 23104b78ecca612b146cc346cd98408497bc18ec Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Thu, 7 Mar 2024 12:00:04 +0800 Subject: [PATCH] chore: log contentKey convert to contentId --- portalnetwork/history/history_network.go | 1 + 1 file changed, 1 insertion(+) diff --git a/portalnetwork/history/history_network.go b/portalnetwork/history/history_network.go index 661805a1e8..7ade24abd4 100644 --- a/portalnetwork/history/history_network.go +++ b/portalnetwork/history/history_network.go @@ -93,6 +93,7 @@ const requestRetries = 4 func (h *HistoryNetwork) GetBlockHeader(blockHash []byte) (*types.Header, error) { contentKey := newContentKey(BlockHeaderType, blockHash).encode() contentId := h.portalProtocol.ToContentId(contentKey) + h.log.Trace("contentKey convert to contentId", "contentKey", hexutil.Encode(contentKey), "contentId", hexutil.Encode(contentId)) if !h.portalProtocol.InRange(contentId) { return nil, ErrContentOutOfRange }