github Conflux-Chain/conflux-rust v2.0.2
Conflux v2.0.2

latest releases: v2.4.0, v2.4.0-testnet-fix3, v2.4.0-testnet-fix2...
2 years ago

Changelog v2.0.2

RPC Deprecation Announcement

  • Starting from v2.0.3, cfx_getLogs and eth_getLogs will no longer support the parameters limit and offset. They are not efficient and can be replaced by setting the block/epoch range instead.
  • Starting from v2.0.3, cfx_clientVersion will have include more information like web3_clientVersion in eSpace.
  • Starting from v2.0.3, fromEpoch will default to "latest_state" in cfx_getLogs.
  • Starting from v2.0.3, fromBlock will default to "latest" in eth_getLogs.

Improvements

RPC Improvements

  • Improve the performance of eth_getLogs.
  • Add a new RPC eth_getAccountPendingTransactions to get pending transactions by address, also return the first pending transaction's pending reason.
  • Support WebSockets for eth APIs.
  • Support block hash param for eth_call (EIP1898).
  • cfx_call, cfx_estimateGasAndCollateral, eth_call, and eth_estimate will respect from's balance if passed, if balance is not enough will return error. If from is not passed then use a random one, which's balance will be very big.
  • If cfx_call, cfx_estimateGasAndCollateral raise error, and the error.data is string, it will directly return instead of being hex encoded.
  • cfx_sendRawTransaction will reject transaction if sender's balance is not enough.

Transaction Pool Improvements

  • Set the minimum gas price to 1 GDrip by default for packing transaction

Storage Improvement

  • Improve the snapshot copy-on-write merging performance on XFS file systems.

Bug Fixes

  • Fix trace validity for transactions reverted in the top checkpoint.
  • Fix phantom trace length mismatch issue with failed transactions.
  • Fix incorrect estimations from cfx_estimateGasAndCollateral.
  • Fix the issues that the node enters NormalPhase too soon and gets stuck on snapshot state download.
  • PoS nodes will not elect before entering the normal phase to avoid being force_retired.

Don't miss a new conflux-rust release

NewReleases is sending notifications on new releases.