Let's say I want to restrict access to my program up until a certain time. Given some future time I can either:
- Use
Clock::get()?.unix_timestamp
to check if my future time has occurred yet - Assuming each slot is ~400ms, predict which future slot will encompass my start time (and compare using
Clock::get()?.slot
I know that there can be clock drift issues with both of these strategies, however using the unix_timestamp
property seems a lot easier to reason about. Are there any downsides to using it (security or otherwise) instead of trying to predict the slot?