Skip to content

v0.20.2

Compare
Choose a tag to compare
@rink1969 rink1969 released this 27 Nov 14:02
· 1194 commits to master since this release

CHANGELOG

Fixed a bug that getting blockhash in solidity contract will get uncertain result.

pragma solidity ^0.4.24;
contract Test {
    bytes32 public hash;

    function testblockhash() public {
        hash = blockhash(block.number-1);
    }
}

Deploy this contract, then send transaction to call testblockhash.
Once one of the nodes receives the transaction, the chain will stop growing.

It is recommended that users of previous versions upgrade to the latest version.