4 ms·
Are you sure about that? I was under the impression that there were no checks whatsoever and it's only a goodwill of miners (and lack of incentive to do otherwi
by Drdrdrq 8y ago
Are you sure about that? I was under the impression that there were no checks whatsoever and it's only a goodwill of miners (and lack of incentive to do otherwise) that provides somewhat accurate time.
On the flip side, I'm sure there are/will be oracles for approx. block time, so this is still a solveable issue.
- DennisP 8y agoHere's a spec from 2015: https://github.com/ethereum/wiki/blob/c02254611f218f43cbb07517ca8e5d00fd6d6d75/Block-Protocol-2.0.md https://github.com/ethereum/wiki/blob/c02254611f218f43cbb075... From the block validation section: "Is block.timestamp <= now + 900 and is block.timestamp >= parent.timestamp?" (In Solidity, block.timestamp is in seconds, and I think that's a direct translation from the underlying opcode, so I assume it's 900 seconds here.)
- Drdrdrq 8y agoI stand corrected - it seems blocks' time must be increasing and must not be more than 15 minutes in the future, according to clocks of validating miners. Thanks, didn't know that!