diff --git a/p2p/enr/enr.go b/p2p/enr/enr.go index a4b4ac1ab0..3cd99a0a47 100644 --- a/p2p/enr/enr.go +++ b/p2p/enr/enr.go @@ -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 diff --git a/rlp/encode.go b/rlp/encode.go index 841a1a85f6..44592c2f53 100644 --- a/rlp/encode.go +++ b/rlp/encode.go @@ -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 {