You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// smtTreeHasher sets the hasher used by the tree SMT trees
28
+
// as a package level variable for visibility and internal use.
25
29
varsmtTreeHasher hash.Hash=sha256.New()
26
30
27
31
varmerkleTreeToString=map[merkleTree]string{
@@ -56,8 +60,7 @@ type merkleTree float64
56
60
57
61
// A list of Merkle Trees used to maintain the state hash.
58
62
const (
59
-
// IMPORTANT: The order in which these trees are defined is important and strict. It implicitly
60
-
// defines the index of the root hash each independent as they are concatenated together
63
+
// IMPORTANT: The order in which these trees are defined is important and strict. It implicitly // defines the index of the root hash each independent as they are concatenated together
61
64
// to generate the state hash.
62
65
63
66
// TECHDEBT(#834): Remove the need for enforced ordering
@@ -81,45 +84,29 @@ const (
81
84
numMerkleTrees
82
85
)
83
86
87
+
// Ensure treeStore implements TreeStore
88
+
var_ modules.TreeStoreModule=&treeStore{}
89
+
84
90
// treeStore stores a set of merkle trees that
85
91
// it manages. It fulfills the modules.TreeStore interface.
86
92
// * It is responsible for atomic commit or rollback behavior
87
93
// of the underlying trees by utilizing the lazy loading
88
94
// functionality provided by the underlying smt library.
0 commit comments