Developers Forum for XinFin XDC Network

AnilChinchawale
AnilChinchawale

Posted on • Updated on

XDC 2.0 Mainnet Release: Key Features and Enhancements

Introduction

The blockchain ecosystem is set to experience a significant upgrade with the launch of XDC 2.0 on October 2, 2024, at block number 80370000. This mainnet release introduces several enhancements aimed at improving the network's efficiency, security, and user experience. One of the key highlights of this upgrade is the XDPOS Consensus Upgrade 2.0, which promises to revolutionize the way transactions are processed and validated.

Main Feature Introduced

The main feature of XDC 2.0 is the XDPOS Consensus Upgrade 2.0. This upgrade aims to enhance the consensus mechanism, ensuring more secure and faster transaction validations. The new consensus model incorporates advanced algorithms to increase the efficiency of the network while maintaining its decentralized nature. This upgrade is crucial for accommodating the growing number of transactions and users on the platform.

Increase in Transaction Fees

With the XDC 2.0 upgrade, there will be a 50x increase in transaction fees starting from block number 80370000. While an increase in fees might initially raise concerns, it is essential to highlight that this change comes with significant benefits for the network and its users.

Before the Upgrade

  • Actual Transaction Cost/Fee: 0.0002265948 XDC ($0.00000637) Image description

After the Upgrade

  • Actual Transaction Cost/Fee: 0.0044273125 XDC ($0.00012928) Image description

Positive Impact on Masternode Owners
The increased transaction fees mean higher rewards for masternode owners. This incentivizes more participants to become masternodes, thereby enhancing the network's decentralization and security. Higher rewards will attract more validators, leading to a more robust and resilient blockchain network.

Maintaining Affordable Transaction Fees
Despite the increase, transaction fees on the XDPOS network will remain competitively low compared to other blockchain platforms. The upgrade ensures that users continue to enjoy affordable transaction costs while benefiting from a more secure and efficient network.

Disabling XDCx

Another significant change in this upgrade is the disabling of XDCx, effective from block number 80370000. This move aims to streamline the network operations and eliminate complexities associated with XDCx. By disabling XDCx, the network can focus on enhancing core functionalities and ensuring a smoother user experience.

Patch Implementations

  • The XDC 2.0 upgrade includes the implementation of several important patches:
  • EIP-2718: Standardizes transaction types, making it easier to add new transaction types in the future.
  • EIP-2930: Introduces access lists to improve transaction execution efficiency.
  • EIP-2929: Increases gas costs for certain operations to mitigate denial-of-service attacks.

New Methods and Features

  • The upgrade also brings new methods and features to the network:
  • debug_traceCall: Allows detailed tracing of transactions for debugging purposes.
  • eth_getBlockReceipts: Retrieves all receipts for a given block.
  • eth_GetTransactionAndReceiptProof: Provides proof of a transaction and its receipt, enhancing transparency and trust in the network.

What's Changed

Several technical improvements and fixes have been made to the network, including:

  • Adding missing checks in the consensus mechanism to ensure network integrity.
  • Enhancing logging capabilities with deep copy functionality.
  • Implementing workflows for EC2 RPC nodes for better scalability.
  • Fixing various bugs and improving parameter handling for smoother operations.
  • Renaming and updating functions to improve clarity and functionality.
  • Enabling the 0x address scheme by default, with an option to enable the xdc prefix flag.
  • Adding new block location fields to receipts for better traceability.

Steps to upgrade the XDC Mainnet Node: Choose Method 1 or Method 2

Method 1: Upgrade via Script

  • Navigate to the mainnet directory:
cd XinFin-Node/mainnet
Enter fullscreen mode Exit fullscreen mode
  • Run the upgrade script:
bash upgrade.sh
Enter fullscreen mode Exit fullscreen mode

Method 2: Manual Upgrade Command

  • Navigate to the mainnet directory:
cd XinFin-Node/mainnet
Enter fullscreen mode Exit fullscreen mode
  • Pull the latest changes from the repository:
git pull
Enter fullscreen mode Exit fullscreen mode
  • Stop the current Docker containers:
sudo docker-compose -f docker-compose.yml down
Enter fullscreen mode Exit fullscreen mode
  • Pull the latest Docker image:
sudo docker pull xinfinorg/xdposchain:v2.0.0
Enter fullscreen mode Exit fullscreen mode
  • Start the Docker containers with the updated image:
sudo docker-compose -f docker-compose.yml up -d
Enter fullscreen mode Exit fullscreen mode
  • To verify that your node is running XDC v2.0.0, execute the following command:
sudo bash xdc-attach.sh
Enter fullscreen mode Exit fullscreen mode

Image description

Conclusion

The XDC 2.0 mainnet release marks a significant milestone for the blockchain network. With its advanced consensus upgrade, increased rewards for masternode owners, and various technical improvements, XDC 2.0 is set to enhance the overall performance, security, and user experience. While transaction fees are increasing, they remain competitively low, ensuring that the network continues to be accessible and affordable for all users. The future of XDPOS looks promising as it continues to innovate and lead in the blockchain space.

Discussion (6)

Collapse
11ppm profile image
11ppm

Subject: Security Concerns Regarding IP Address Exposure After XDC 2.0 Upgrade

Dear XDC Team,

I hope this message finds you well. I would like to bring to your attention some security concerns that I have encountered following the upgrade to XDC 2.0 on certain nodes.

Upon reviewing the stats of XDC master nodes, I have noticed that many nodes upgraded to XDC 2.0 have their external IP addresses publicly exposed in the format below:

-12345………………678910-IP_ADDRESS   XDC/v2.0.0-stable/linux-amd64/go1.21.13
Enter fullscreen mode Exit fullscreen mode

Additionally, it seems that RPC and WebSocket access is available externally, which poses significant security risks. The exposure of these IP addresses could lead to the following potential issues:

  • Increased risk of DDoS attacks or unauthorized access
  • Unauthenticated RPC access, enabling potentially harmful actions
  • Nodes and servers becoming targets for attacks

I have also upgraded my node to XDC 2.0, but my node does not exhibit this issue, unlike many others where IP addresses are publicly visible.

Given the potential risks associated with this, I kindly ask for your review of this situation and for guidance on addressing it.

Thank you for your attention to this matter. I look forward to your response and any suggested solutions.

Collapse
anilchinchawale profile image
AnilChinchawale Author

Hello,

The development team is aware of the issue, and we're confident it will be resolved in the next few hours.

Collapse
anilchinchawale profile image
AnilChinchawale Author

Hello,

We've implemented a fix to address the IP address exposure issue following the XDC 2.0 upgrade. It’s important for all node operators to fetch the latest changes from Git to ensure your node remains secure.

Run the following command to update:

bash mainnet/upgrade.sh

Thread Thread
11ppm profile image
11ppm

Dear Anil and the XDC Team,

Thank you for your prompt response and for addressing the IP address exposure issue. I have successfully updated my node following the instructions provided.

Additionally, I noticed that the issue with the line "./start-node.sh:/work/start-node.sh" in the docker-compose.yml file has now been correctly changed to "./start-node.sh:/work/start.sh". I was planning to report this today, but I’m glad to see that it has already been fixed.

I truly appreciate the quick action taken by the team.

Best regards,

11ppm

Collapse
mrblockchain22 profile image
Salomon Morales

Awesome! 50X increase in tx fees will allow for a great start of deflation of the network tokenomics.

Looking forward to the upgrade!

Collapse
inv4fee2020 profile image
inv4fee2020

Been looking forward to this release. Thanks Anil.