One tricky aspect to timestamps using the now variable in Ethereum is the use of different units, depending on environment type. Unlike vanilla Ethereum implementations, timestamps in an environment with a Quorum client and Raft consensus (Quorum-Raft) are represented in nanoseconds because the Raft consensus can produce more than one block per second. Contrastingly, Quorum-IBFTand Geth-PoA (Proof-of-Authority) environments use timestamps whose units are denoted in seconds. In all three environment types, the now keyword provides the timestamp of the most recent block in UNIX Epoch time format (time since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970).
NOTE: The difference in timestamp units can be the root-cause of out-of-gas errors if you transport the same timestamp-dependent require statements from smart contract code in one environment type to another.
Kaleido is the award-winning, enterprise-grade platform making blockchain and digital assets radically simple for organizations to adopt.
Kaleido provides a complete stack for building blockchain-ba
With over 2.5 million reviews, we can provide the specific details that help you make an informed software buying decision for your business. Finding the right product is important, let us help.