mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +00:00
add logs
This commit is contained in:
parent
558a310cd5
commit
2c5d6c257f
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
|
@ -682,7 +683,7 @@ func (p *PortalProtocol) processContent(target *enode.Node, resp []byte) (byte,
|
||||||
return 0xff, nil, err
|
return 0xff, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
p.Log.Trace("Received returned content response", "id", target.ID(), "connIdMsg", connIdMsg)
|
p.Log.Trace("Received returned content response", "id", target.ID(), "resp", common.Bytes2Hex(resp), "connIdMsg", connIdMsg)
|
||||||
p.table.addFoundNode(target, true)
|
p.table.addFoundNode(target, true)
|
||||||
connctx, conncancel := context.WithTimeout(p.closeCtx, defaultUTPConnectTimeout)
|
connctx, conncancel := context.WithTimeout(p.closeCtx, defaultUTPConnectTimeout)
|
||||||
laddr := p.utp.Addr().(*utp.Addr)
|
laddr := p.utp.Addr().(*utp.Addr)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue