github XinFinOrg/XDPoSChain v2.5.0-beta1

pre-release23 hours ago

Testnet Only

Change Summary

Performance Improvements

  • Optimized VM execution by reducing allocations and redundant conversions.
  • Avoided unnecessary map lookups for jump destination analysis.
  • Refactored vm.Context into BlockContext and TxContext for better structure.
  • Improved EVM reusability.

Ethereum EIPs Implementation

  • Implemented EIP-1559 (fee market changes).
  • Implemented EIP-2565 (lowering cost for modular exponentiation).
  • Implemented EIP-3651 (warm coinbase for gas optimization).
  • Implemented EIP-1153 (transient storage).

RPC & API Enhancements

  • Added rpc-gascap flag and set RPC gas cap to 50M.
  • Added xdpos_getBlockInfoByEpochNum API.
  • Fixed wrong gas price calculation with empty blocks.
  • Improved EstimateGas API.
  • Added admin_addTrustedPeer and admin_removeTrustedPeer RPC methods.

Security & Bug Fixes

  • Fixed block hash retrieval for eth_getLogs.
  • Fixed high pending special transactions in core/txpool.
  • Fixed various staticcheck warnings for better code quality.
  • Fixed node.Node AccountsManager memory leak.

Code Refactoring & Cleanup

  • Removed unused functions, redundant conversions, and unnecessary package imports.
  • Migrated from ioutil to io and os.
  • Standardized string formatting (0x%x → %#x).
  • Replaced strings.Replace with strings.ReplaceAll.
  • Removed whisper package.

Network & Node Adjustments

  • Allowed WebSocket and HTTP to work on the same port.
  • Increased default maxpeers to 50.
  • Reduced mainnet and testnet timeout to 10s.
  • Updated bootnodes list.

Development & Deployment Updates

  • Upgraded to Go 1.22.
  • Updated multiple core dependencies (common, crypto, metrics).
  • Removed Android and iOS support.
  • Reduced gas limit for devnet to 50M.
  • Merged mining time patch from master.

What's Changed

New Contributors

Full Changelog: v2.4.6-beta1...v2.5.0-beta1

Don't miss a new XDPoSChain release

NewReleases is sending notifications on new releases.