Skip to content

Commit

Permalink
core/types: add method comment for rlpHash
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Mar 1, 2021
1 parent 19d7a37 commit 69b1dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/types/hashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var encodeBufferPool = sync.Pool{
New: func() interface{} { return new(bytes.Buffer) },
}

// rlpHash rlp encodes an interface and calculates its hash.
func rlpHash(x interface{}) (h common.Hash) {
sha := hasherPool.Get().(crypto.KeccakState)
defer hasherPool.Put(sha)
Expand Down

0 comments on commit 69b1dd4

Please sign in to comment.