Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions related to the timestamp value of a block, or the use of Ethereum in timestamping.
3
votes
Will the ethereum blockchain have a problem with the timestamp in 2038?
To cut a long story short, there was a bug in the Geth client a couple of years ago, whereby Geth's timestamp implementation didn't match that of other clients (Parity?). … Issue #19372 was raised to ensure all Geth's timestamp use was set to use 64-bit integers (I believe in some cases it was using big.Int, which is platform dependent). …
2
votes
Is timestamp manipulation still possible? And if yes, can users spot that and did that happen?
When verifying the block header, the Geth client runs the following check:
// Verify the header's timestamp
if ! … There are game theoretic reasons why a miner would want to keep the timestamp as close to the current time as possible. …
3
votes
Check that the timestamp of the block is greater than that of the previous block and less th...
The only stipulation is that the current timestamp is greater than that of the parent block.
4.4.4. … If a new block has a timestamp greater than 15 seconds from the current time (not the timestamp of the parent - we're not saying anything about the block time here), then it's temporarily marked as invalid …
8
votes
Accepted
How does CryptoKitties track time?
From the documentation (linked above):
now (uint): current block timestamp (alias for block.timestamp) …
3
votes
How to avoid block.timestamp warning?
I don't think there's currently a way to do this. (Either in Remix or in the Solidity code directly.)
The following open issues are relevant. You might want to follow them on GitHub directly:
#2675 …
8
votes
Calculate approximative block height at a certain time?
If you just mean a general formula, rather than something written in Solidity...
Something along the lines of:
last_block_number + ((future_time - time_now) / block_time)
Where the future_time and …
60
votes
Accepted
Is the block.timestamp value in Solidity seconds or milliseconds?
From the Solidity documentation (here and here):
... timestamp of the current block in seconds since the epoch
For your other question:
Also, is it safe to use block.timestamp to check if 30 … Your question isn't completely clear, but assuming you're questioning the validity of a timestamp over a given period of time, then this previous answer should cover it: Is block.timestamp safe for longer …