Skip to content

Using now #1

Description

@Schaeff

Hi DAISEE!

What's the rationale for not using the now global (timestamp of the latest block) to deal with timestamps? Right now anyone could call nextTime many times and break the system.

Maybe use something like

contract c {
   uint interval;
   function currentTime() constant {
      return now / interval;
   }
}

Cheers :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions