diff options
author | bitshift <bitshift@posteo.org> | 2018-03-06 02:24:51 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-03-27 10:30:03 +0800 |
commit | bddfa47e770d27005bd6604a24033cf2f632b9ee (patch) | |
tree | 1744a85241af4c55e466aa4c07271b65af315f31 /docs/units-and-global-variables.rst | |
parent | be35a65eb3966965e30b6b582f7722338e558013 (diff) | |
download | dexon-solidity-bddfa47e770d27005bd6604a24033cf2f632b9ee.tar.gz dexon-solidity-bddfa47e770d27005bd6604a24033cf2f632b9ee.tar.zst dexon-solidity-bddfa47e770d27005bd6604a24033cf2f632b9ee.zip |
Updates docs for blockhash changes.
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r-- | docs/units-and-global-variables.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index d789e87f..2571f20a 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -52,7 +52,7 @@ namespace and are mainly used to provide information about the blockchain. Block and Transaction Properties -------------------------------- -- ``block.blockhash(uint blockNumber) returns (bytes32)``: hash of the given block - only works for 256 most recent blocks excluding current +- ``block.blockhash(uint blockNumber) returns (bytes32)``: hash of the given block - only works for 256 most recent, excluding current, blocks - deprecated in version 0.4.22 and replaced by ``blockhash(uint blockNumber)``. - ``block.coinbase`` (``address``): current block miner's address - ``block.difficulty`` (``uint``): current block difficulty - ``block.gaslimit`` (``uint``): current block gaslimit @@ -74,7 +74,7 @@ Block and Transaction Properties This includes calls to library functions. .. note:: - Do not rely on ``block.timestamp``, ``now`` and ``block.blockhash`` as a source of randomness, + Do not rely on ``block.timestamp``, ``now`` and ``blockhash`` as a source of randomness, unless you know what you are doing. Both the timestamp and the block hash can be influenced by miners to some degree. |