mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Specify how blockhash will act for invalid inputs, fixes #11364
This commit is contained in:
parent
643140e2d6
commit
c70bc0c246
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user