Improvements
RPC Improvements
- Fix incorrect responses of
cfx_getBlockRewardInfo. If the node needs to serve this RPC, it needs to clear all data and resync the chain. - Simplify EVM revert reason in RPC responses. This may cause incompatible issues if the user was decoding the error messages manually.
- Add new RPC
cfx_getBlockByBlockNumber. - Add
blockNumberto the returned JSON object incfx_getBlockByHash,cfx_getBlockByEpochNumber, andcfx_getBlockByHashWithPivotAssumption. - Accept pivot hash in
cfx_getEpochReceipts. - Raise error in
cfx_getBlockByHashWithPivotAssumptionif the provided block hash does not belong to the provided epoch. - Fix returnData format of CallResult.
- Fix incorrect
firstTxStatusresponse ofcfx_getAccountPendingTransactionsifstart_nonceis provided. - Update
cfx_getCodeso that it returns an empty hex0xif the account does not exist instead of raising an error.
Configuration Improvement
- Add
persist_block_number_indexto persist block number indices. It allows responding to block-number-related RPC requests for old epochs. - Add
storage_max_open_mpt_countto configure maximal number of opened MPT.