Skip to main content
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
Results tagged with
Search options answers only not deleted user 5549

Questions related to the timestamp value of a block, or the use of Ethereum in timestamping.

1 vote

Ethereum transactions timestamp

The only reference to temporal time we have is the block timeStamp which is somewhat subjective (caution) since it is placed there by the miner. Hope it helps. …
Rob Hitchens's user avatar
  • 55.6k
12 votes

Solidity: Timestamp dependency, is it possible to do safely?

Since no one can check the timeStamp without reference to a non-deterministic time source, the accuracy of the time stamp is dubious. … There's an interesting discussion on the accuracy of the timeStamp, the latitude the miners have and incentives to keep the timeStamp within reason, here: How do Ethereum mining nodes maintain a time consistent …
Rob Hitchens's user avatar
  • 55.6k
1 vote

Check that the timestamp of the block is greater than that of the previous block and less th...

Miners record a block timeStamp with each discovered block. This value cannot be confirmed or disproved by observers without reference to an accurate external time source, which we do not want. … Second, the clock must never run backward, so the timestamp of a new block should always come after the time stamp of the previous block in the chain. …
Rob Hitchens's user avatar
  • 55.6k
0 votes

time order when calling functions of smart contract

You cannot ensure the miners accept transactions in the intended order, but you can check and reject if they don't. You would make each new transaction dependent on something that came earlier. Here …
Rob Hitchens's user avatar
  • 55.6k
4 votes
Accepted

How can you add a certain number of months to a timestamp (uint)?

In my opinion it might be helpful to reframe the question with a little more precision. When you say "I need to", it creates a little doubt about what's supposed to happen. It's hard to say if you n …
Rob Hitchens's user avatar
  • 55.6k
4 votes
Accepted

Can we assume that Ethereum Events (aka Logs) are in-sequence

Yes, but with some nuances so the guarantees are well understood. Event log entries are part of the transactions in blocks. As such, you can reason about event sequence assurances with the same princi …
Rob Hitchens's user avatar
  • 55.6k
1 vote
Accepted

Solidity: Is there any way to store the start time of solidity code? now() function returns ...

The moment this is deemed to have taken place is the timestamp for the block. …
Rob Hitchens's user avatar
  • 55.6k
2 votes
Accepted

crypto-signing in a smart contract -> verify the identity of a smart contract

and the timestamp signed by the contract itself. … The transaction the signer (creator) sent was mined into a block with a definite timeStamp. …
Rob Hitchens's user avatar
  • 55.6k
2 votes
Accepted

How can I wait if it's not possible in smart contracts?

Most use-cases can be solved by inverting control. Rather than having the contract run something at a certain time, interested parties claim entitlements when appropriate. The contract decides if the …
Rob Hitchens's user avatar
  • 55.6k