add state.StateTree#Version() accessor.

This commit is contained in:
Raúl Kripalani
2020-09-24 17:58:49 +01:00
parent 87b48c94a6
commit 68663060dc
+5
View File
@@ -395,6 +395,11 @@ func (st *StateTree) ForEach(f func(address.Address, *types.Actor) error) error
})
}
// Version returns the version of the StateTree data structure in use.
func (st *StateTree) Version() builtin.Version {
return st.version
}
func Diff(oldTree, newTree *StateTree) (map[string]types.Actor, error) {
out := map[string]types.Actor{}