Various clean up before v2 (#9672)

* Update package names

* Various clean up

* Gazelle

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao
2021-09-24 10:42:16 -07:00
committed by GitHub
parent 78ea402d9d
commit ea9ceeff03
26 changed files with 25 additions and 150 deletions

View File

@@ -28,13 +28,6 @@ func NewTrie(depth uint64) (*SparseMerkleTrie, error) {
return GenerateTrieFromItems(items, depth)
}
// NewTrieWithBranches returns a new merkle trie filled with branches to use.
func NewTrieWithBranches(branches [][][]byte, depth uint64) (*SparseMerkleTrie, error) {
var zeroBytes [32]byte
items := [][]byte{zeroBytes[:]}
return GenerateTrieFromItems(items, depth)
}
// CreateTrieFromProto creates a Sparse Merkle Trie from its corresponding merkle trie.
func CreateTrieFromProto(trieObj *protodb.SparseMerkleTrie) *SparseMerkleTrie {
trie := &SparseMerkleTrie{