• Dapps:16.23K
  • Blockchains:78
  • Active users:66.47M
  • 30d volume:$303.26B
  • 30d transactions:$879.24M

Exploring the Differences Between Core and Mainsail

user avatar

by Giorgi Kostiuk

a year ago


In the blog post, significant changes introduced by Mainsail are discussed along with how it distinguishes itself from the Core version. The focus is on understanding the differences between Core and Mainsail without delving into the EVM information.

Key Changes in Mainsail

Major changes in Mainsail compared to the latest Core version include:

  • Introducing a new BFT consensus mechanism with instant finality.
  • Increasing the number of active validators from 51 to 53.
  • Implementing state snapshots to speed up synchronization.
  • Eliminating the need for an external database configuration, except for the optional public API.
  • Separating the public API into a distinct process for better scalability.
  • Updating the codebase with the adoption of ES modules.
  • Switching to pnpm as the primary package manager for improved dependency management.
  • Changing the project’s license from MIT to GPLv3.

These changes collectively bolster the security, scalability, and performance of Mainsail, solidifying its position as a robust and innovative blockchain solution.

Technical Comparison

The technical variances between Mainsail and the latest Core version are outlined in a table format comparing features such as ledger database, API database, block finalization, validators, block time, and more.

Project Insights

Under this section, the technical, codebase, and general changes in Mainsail are discussed. The structure and packages of Mainsail, including crypto, transactions, and API details, are elaborated upon. For crypto transactions and API, significant changes have been made, resulting in the introduction of new packages and functionalities.

Toolchain

The blog details the toolchain used in Mainsail, including the transition from yarn to pnpm package manager, utilization of Lerna for monorepos, and the movement to ES modules for browser builds in most Mainsail packages. Recommendations for development in Visual Studio Code with specific extensions are also provided.

Tests

Uvu test runner replacing Jest in Mainsail is discussed in this section. Additional packages such as sinon, nock, esmock, and c8 used for testing are also mentioned. The rationale behind using Uvu, known for its performance, is presented.

Consensus

The consensus mechanism in Mainsail, inspired by Tendermint, and featuring block finality, block cycle, and BLS12-381 signatures, is explained in detail. The unique attributes of BLS12-381 signatures, including aggregation benefits, are highlighted.

Database

The choice of LMDB as the primary database, its performance advantages over PostgreSQL, and the state management process in Mainsail are discussed. The rationale behind utilizing LMDB and state snapshots for synchronization efficiency is outlined.

API (Optional)

The relocation of the Public API to a separate process, the synchronization process to a PostgreSQL database, and the specifics of data handling between the API and Mainsail node are described in this section.

Conclusion

The conclusion section summarizes the advancements Mainsail offers over Core V3, emphasizing improvements in consensus algorithms, database management, and modular architecture to enhance performance, scalability, and developer experience. Readers are encouraged to stay updated on ARK-related developments by following the provided link.

0

Rewards

chest
chest
chest
chest

More rewards

Discover enhanced rewards on our social media.

Other news

Bittensor (TAO) Breaks $400: Heading Towards $1,000?

chest

Bittensor (TAO) price surpassed $400, indicating potential growth towards $1,000. Analyzing future prospects.

user avatarGiorgi Kostiuk

Strategy's Bold Bitcoin Acquisition: A Significant $472.5 Million Move

chest

Company Strategy continues to strengthen its position with an addition of 4,225 BTC worth $472.5 million.

user avatarGiorgi Kostiuk

Cryptocurrency Market: Focus on Stellar, Litecoin, and BlockDAG

chest

The cryptocurrency market is witnessing significant changes as Stellar and Litecoin show promising results, while BlockDAG garners attention with over 2 million users.

user avatarGiorgi Kostiuk

BNB, PEPE, and BlockDAG: What to Watch for in the Crypto World of 2025

chest

Analysis of the prospects of BNB, PEPE, and BlockDAG as key players in the cryptocurrency market in 2025.

user avatarGiorgi Kostiuk

U.S. Regulators Allow Banks to Engage in Crypto Custody Services

chest

Federal regulators in the U.S. have revised guidance allowing banks to offer crypto custody services, potentially boosting institutional interest in cryptocurrencies.

user avatarGiorgi Kostiuk

SUBBD Hits $750K in Presale While BlockDAG Excels at $338.5 Million

chest

The SUBBD presale captures attention with $750K, while BlockDAG secures $338.5 million and partnerships with two sports franchises.

user avatarGiorgi Kostiuk
dapp expert logo
© 2020-2025. DappExpert. All rights reserved.
© 2020-2025. DappExpert. All rights reserved.

Important disclaimer: The information presented on the Dapp.Expert portal is intended solely for informational purposes and does not constitute an investment recommendation or a guide to action in the field of cryptocurrencies. The Dapp.Expert team is not responsible for any potential losses or missed profits associated with the use of materials published on the site. Before making investment decisions in cryptocurrencies, we recommend consulting a qualified financial advisor.