mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user