Skip to content

Commit

Permalink
Add missing exported comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Aug 25, 2022
1 parent 76ba7a4 commit 973b149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dot/state/tries.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ func NewTries() (tries *Tries) {
}
}

// SetEmptyTrie sets the empty trie in the tries.
// Note the empty trie is the same for the v0 and the v1
// state trie versions.
func (t *Tries) SetEmptyTrie() {
t.softSet(trie.EmptyHash, trie.NewEmptyTrie())
}

// SetTrie sets the trie at its root hash in the tries map.
func (t *Tries) SetTrie(trie *trie.Trie) {
t.softSet(trie.MustHash(), trie)
}
Expand Down

0 comments on commit 973b149

Please sign in to comment.