Merge pull request #11376 from fulldecent/patch-19

Specify how blockhash will act for invalid inputs, fixes #11364
This commit is contained in:
Harikrishnan Mulackal authored and GitHub committed 2021-05-11 10:11:52 +02:00
commit 299dae4d1a
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ or are general-use utility functions.
Block and Transaction Properties
--------------------------------
- ``blockhash(uint blockNumber) returns (bytes32)``: hash of the given block - only works for 256 most recent, excluding current, blocks
- ``blockhash(uint blockNumber) returns (bytes32)``: hash of the given block when ``blocknumber`` is one of the 256 most recent blocks; otherwise returns zero
- ``block.chainid`` (``uint``): current chain id
- ``block.coinbase`` (``address payable``): current block miner's address
- ``block.difficulty`` (``uint``): current block difficulty