I need to execute a function 24hrs after a certain timestamp is recorded in my contract. So my front-end starts a countdown, taking that contract timestamp as start.
After 24 hrs, my front-end calls the contract function.
Question: if my contract function has this:
require(block.timestamp >= countdownStartTimestamp + ONE_DAY);
Where ONE_DAY = 86400 (24hrs)
Will my function possibly fail if last block mined is closer than 24hrs? Or does block.timestamp get updated with actual current block timestamp before executing my function, even if still not mined entirely? Sorry I don't know these transactions mining details :/
block.timestamp
.