Skip to main content
added 4 characters in body
Source Link
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

I've heard block.timestampblock.timestamp can be manipulated by miners, and as I am writing a contract that uses block.timestampblock.timestamp in crucial functions, I am wondering how best to mirror its behavior using block.number

I've heard block.timestamp can be manipulated by miners, and as I am writing a contract that uses block.timestamp in crucial functions, I am wondering how best to mirror its behavior using block.number

I've heard block.timestamp can be manipulated by miners, and as I am writing a contract that uses block.timestamp in crucial functions, I am wondering how best to mirror its behavior using block.number

Source Link

How do we use block.number (as opposed to block.timestamp) for measuring time?

I've heard block.timestamp can be manipulated by miners, and as I am writing a contract that uses block.timestamp in crucial functions, I am wondering how best to mirror its behavior using block.number