This update is a compatible version update, and the consensus layer of the public chain has not changed

This upgrade is close to the Chinese holiday, hasty upgrade may not get enough technical support, we suggest you to upgrade with caution. It is recommended that all Conflux ecological products be upgraded to new nodes after February 22. Conflux-rust will use the new address format starting with v1.1.1. The new address format will be used wherever the address is included in the request parameters and return results.

The Conflux foundation recommends that the future Conflux ecosystem gradually phase out the old version of hex40 address format (starting with 0x) and replace it with base32 address format (starting with a network identifier, such as CFX :). ConfluxScan will have conversion between old and new addresses.

The old and new address formats are only converted once, and the original private key and mnemonic can be logged into the Conflux wallet account normally, without any impact on personal assets.

Detailed content see: CIP37 (https://github.com/Conflux-Chain/CIPs/blob/master/CIPs/cip-37.md)

See the Chinese translation: (https://forum.conflux.fun/t/topic/4745)

V1.1.1 Upgrade content

Incompatible change

  • CIP-37: indicates that the Conflux address format is changed to Base32. RPC interactions with full nodes do not support hexadecimal addresses similar to the Ethereum format.
  • Store all data (including directories storage_db, blockchain_db, and net_config) in a directory configured with conflux_data_dir (the default directory is blockchain_data).

Compatible WITH RPC changes

  • Add cfx_getSupplyInfo to return the CFX supply.
  • Include networkId in the cfx_getStatus response.
  • Include address in the cfx_getAccount response.

To improve the

  • Support the CIP-37 address format in the mining_author parameter.
  • Reduce latency in log publish-subscribe, now we publish logs as soon as they become available.
  • Implementation of execution tracking features, including detailed call/create/return/internal transfer events triggered by the transfer, checking for trace information allows applications such as ConfluxScan to track accurate traces of CFX transfers.
  • Optimized the testing framework and solved some random test failures.

I am a Conflux eco-developer, what do I need to do?

Conflux will officially complete the upgrade tutorial and SDK versions by February 5th, but it is recommended that all eco-apps, wallets, exchanges, and mining sites do not update the new RPC before February 22nd. Users using official RPCS will be able to stay put while a new version is released and the old RPCS will remain in place until at least the end of March.

After updating the node (RPC), you need to update and use the new SDK. After that, without additional adaptation, you can only interact with the base32 address (starting with the network identifier, such as CFX :). Please remind users of ecological applications, wallets, exchanges and mines.

Impact on front-end pages

Portal

  • When Portal is updated to version 0.5.11, the API returns the old HEX40 format address (starting with 0X), the signature only supports the old HEX40 format address (starting with 0X), and there is a prompt when the transfer is transferred to the old HEX40 format address (starting with 0X).
  • When Portal is updated to version 0.6, the API returns only base32 addresses, and the signature supports both the old hex40 address format (starting with 0x) and base32 address format (starting with a network identifier, such as CFX :).
  • The DApp needs to consider the possibility that users may not upgrade to a new version of Portal, and the API returns both old and new addresses.

How does the SDK fit into the reference

Conflux Javascript SDK how to adapt CIP37 (https://github.com/Conflux-Chain/js-conflux-sdk/blob/master/docs/conflux_checksum_address.md)

The Chinese version of the reference: (https://juejin.cn/post/6922723243811930119)

Impact on back-end servers

How does the SDK fit into the reference

How Conflux Java SDK adapter CIP37: (https://github.com/Conflux-Chain/java-conflux-sdk/blob/master/docs/cfx-address.md)

The Chinese version of the reference: (https://juejin.cn/post/6922724320191971342)

How Conflux Golang SDK adapter CIP37: (https://github.com/Conflux-Chain/go-conflux-sdk)

The Chinese version of the reference: (https://juejin.cn/post/6922763171941842958/)

Node Document Configuration

Configuration instructions

V1.1.1 or later in the run/tethys.toml file

mining_author="Personal wallet address"
Copy the code

Fill in the old and new format of the address can be

Directory changes:

In versions later than V1.1.1, all data is stored in the conflux_data_dir directory./blockchain_data by default.

The default directory structure for V1.1.0 and earlier:

├ ─ ─ blockchain_db ├ ─ ─ net_config ├ ─ ─ storage_db ├ ─ ─ conflux ├ ─ ─ the log ├ ─ ─ the yaml ├ ─ ─ start. The bat ├ ─ ─ start. Sh ├ ─ ─ Stderr. TXT ├ ─ ─ tethys. TomlCopy the code

The default directory structure after V1.1.1

├ ─ ─ blockchain_data │ ├ ─ ─ blockchain_db │ ├ ─ ─ net_config │ └ ─ ─ storage_db ├ ─ ─ conflux ├ ─ ─ the log ├ ─ ─ the yaml ├ ─ ─ start. The bat Bass Exercises ── start. Sh Bass Exercises ── Bass ExercisesCopy the code

Adaptation Method 1 (recommended) :

Create the blockchain_data directory and move the blockchain_db, net_config, and storage_db directories to blockchain_data. Do not modify the configuration file tethys.toml.

Adaptation method 2:

Do not move the directory, set it in the configuration file tethys.toml

conflux_data_dir = "."
netconf_dir = "./net_config"
block_db_dir = "./blockchain_db"
Copy the code

[impact of CIP-37 update on Conflux common users (finished version)] 🙁https://juejin.cn/post/6922683697489510408)