mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 16:33:47 +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) {
|
func (h *HistoryNetwork) GetBlockHeader(blockHash []byte) (*types.Header, error) {
|
||||||
contentKey := newContentKey(BlockHeaderType, blockHash).encode()
|
contentKey := newContentKey(BlockHeaderType, blockHash).encode()
|
||||||
contentId := h.portalProtocol.ToContentId(contentKey)
|
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) {
|
if !h.portalProtocol.InRange(contentId) {
|
||||||
return nil, ErrContentOutOfRange
|
return nil, ErrContentOutOfRange
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue