// RevertToSnapshot reverts all state changes made since the given revision.
RevertToSnapshot reverts all state changes made since the given revision.
// RevertToSnapshot reverts all state changes made since the given revision .
func (shard *StateDBManage) RevertToSnapshot(cointyp string, ss []int) {
	for _, cm := range shard.shardings {
		if cm.Cointyp == cointyp {
			for _, rm := range cm.Rmanage {
				rm.State.RevertToSnapshot(ss[rm.Range])
			}
			break
		}
	}
}
func ( shard * StateDBManage ) RevertToSnapshot ( cointyp string , ss [ ] int ) { for _ , cm := range shard . shardings { if cm . Cointyp == cointyp { for _ , rm := range cm . Rmanage { rm . State . RevertToSnapshot ( ss [ rm . Range ] ) } break } } }
RevertToSnapshot reverts all state changes made since the given revision.
RevertToSnapshot reverts all state changes made since the given revision .
// Find the snapshot in the stack of valid snapshots.