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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions