From c70bc0c2468dc9e20f29b143a6b75b841811074f Mon Sep 17 00:00:00 2001 From: William Entriken Date: Mon, 10 May 2021 16:26:08 -0400 Subject: [PATCH] Specify how blockhash will act for invalid inputs, fixes #11364 --- docs/units-and-global-variables.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index 1cad59e42..dc6cefe91 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -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