cita v0.20.2 Release Notes

Release Date: 2018-11-27 // over 5 years ago
  • ๐Ÿ›  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.