p2p/enr: remove redundant code and comments

This commit is contained in:
Anton Evangelatov 2017-12-01 18:47:22 +01:00 committed by Felix Lange
parent 74004d368a
commit 0315eece6d
2 changed files with 0 additions and 6 deletions

View file

@ -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

View file

@ -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 {