mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
p2p/enr: remove redundant code and comments
This commit is contained in:
parent
74004d368a
commit
0315eece6d
2 changed files with 0 additions and 6 deletions
|
|
@ -34,7 +34,6 @@ var ()
|
|||
|
||||
// The maximum encoded size of a node record is 300 bytes. Implementations should reject records larger than this size.
|
||||
const (
|
||||
RECORD_MAX_SIZE = 300
|
||||
ID_SECP256k1_KECCAK = "secp256k1-keccak" // "secp256k1-keccak" identity scheme identifier
|
||||
)
|
||||
|
||||
|
|
@ -266,7 +265,6 @@ func (r *Record) verifySignature() error {
|
|||
return err
|
||||
}
|
||||
|
||||
// get publickey from message and signature
|
||||
sigcontent, err := r.serialisedContent()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -136,10 +136,6 @@ func (head *listhead) encode(buf []byte) []byte {
|
|||
return buf[:puthead(buf, 0xC0, 0xF7, uint64(head.size))]
|
||||
}
|
||||
|
||||
func LengthPrefix(buf []byte, size uint64) []byte {
|
||||
return buf[:puthead(buf, 0xC0, 0xF7, size)]
|
||||
}
|
||||
|
||||
// headsize returns the size of a list or string header
|
||||
// for a value of the given size.
|
||||
func headsize(size uint64) int {
|
||||
|
|
|
|||
Loading…
Reference in a new issue