0

I would like to check if the time has passed 30 minutes before executing a function in my contract. I know how it is done using block.timstamp .. But I want to use block.clockhash as it is more secure... how do I do that?

1

The usage of block.timestamp has good security properties and you might have misunderstood something. Unless you know what you are doing please stick to block.timestamp.

2
  • I am using a tool Securify to formally verify my code .. and it shows using block.timestamp as a security vulnerability. I was hoping to improve my code
    – Haya Raed
    May 29 '18 at 8:58
  • Any tools you know of that you may suggest?
    – Haya Raed
    May 29 '18 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.