update TrieHasher

This commit is contained in:
Roy Crihfield 2023-06-05 19:24:41 +08:00
parent 0deaa33408
commit 5c57181c36

View File

@ -62,7 +62,7 @@ func prefixedRlpHash(prefix byte, x interface{}) (h core.Hash) {
// This is internal, do not use.
type TrieHasher interface {
Reset()
Update([]byte, []byte)
Update([]byte, []byte) error
Hash() core.Hash
}