mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-30 16:43:46 +00:00
chore: log contentKey convert to contentId
This commit is contained in:
parent
c9d6817008
commit
23104b78ec
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue