<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#Darwinia2.0 Archives - Smart Liquidity Research</title>
	<atom:link href="https://smartliquidity.info/tag/darwinia2-0/feed/" rel="self" type="application/rss+xml" />
	<link>https://smartliquidity.info/tag/darwinia2-0/</link>
	<description>Crypto News &#38; Data Space</description>
	<lastBuildDate>Sat, 28 Jan 2023 23:05:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>

<image>
	<url>https://smartliquidity.info/wp-content/uploads/2021/03/cropped-512-1-1-32x32.png</url>
	<title>#Darwinia2.0 Archives - Smart Liquidity Research</title>
	<link>https://smartliquidity.info/tag/darwinia2-0/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Darwinia 2.0 Developments</title>
		<link>https://smartliquidity.info/2023/01/29/darwinia-2-0/</link>
		
		<dc:creator><![CDATA[Ana Marie]]></dc:creator>
		<pubDate>Sat, 28 Jan 2023 23:05:15 +0000</pubDate>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Polkadot News]]></category>
		<category><![CDATA[#Darwinia2.0]]></category>
		<category><![CDATA[#Polkadot]]></category>
		<category><![CDATA[#PolkadotSpace]]></category>
		<guid isPermaLink="false">https://smartliquidity.info/?p=86008</guid>

					<description><![CDATA[<p>Darwinia 2.0 First Successfully Merge Of Substrate Solo-Chain And Polkadot Parachain Darwinia 2.0 recently attempted to merge its solo Substrate-based chain and its Polkadot while preserving the paraId of the parachain. Prior to the merge, Darwinia had two separate chains: the solo Darwinia Chain and the Darwinia Parachain which run on the Polkadot Relay Chain. The virtual chain Darwinia Smart [&#8230;]</p>
<p>The post <a href="https://smartliquidity.info/2023/01/29/darwinia-2-0/">Darwinia 2.0 Developments</a> appeared first on <a href="https://smartliquidity.info">Smart Liquidity Research</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3 id="737a" class="pw-post-title hv hw hx bd hy hz ia ib ic id ie if ig ih ii ij ik il im in io ip iq ir is it bi" style="text-align: center;"><em><strong><span style="color: #00ccff;">Darwinia</span> 2.0 First Successfully Merge Of Substrate Solo-Chain And <span style="color: #00ccff;">Polkadot</span> Parachain</strong></em></h3>
<p id="40f1" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph=""><span style="color: #00ccff;"><strong>Darwinia</strong> </span>2.0 recently attempted to merge its solo Substrate-based chain and its <strong><span style="color: #00ccff;">Polkadot</span> </strong>while preserving the paraId of the parachain.</p>
<p id="7f64" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">Prior to the merge, Darwinia had two separate chains: the solo <code class="dz kd ke kf kg b">Darwinia Chain</code> and the <code class="dz kd ke kf kg b">Darwinia Parachain</code> which run on the Polkadot Relay Chain. The virtual chain <code class="dz kd ke kf kg b">Darwinia Smart Chain</code> as an evm module is not considered in this scenario.</p>
<p id="19c1" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">After the merge, Darwinia will have a single chain called Darwinia 2.0.</p>
<h2 id="d53f" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi">Why Darwinia Does This?</h2>
<p id="0e44" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">Prior to the launch of the Polkadot Relay Chain, Darwinia operated its solo blockchain called the <code class="dz kd ke kf kg b">Darwinia Chain</code>. After winning a slot in the Polkadot parachain auction, Darwinia launched the <code class="dz kd ke kf kg b">Darwinia Parachain</code> on the Polkadot network. To make the two blockchains work together, Darwinia creates a substrate-to-substrate cross-chain messaging channel between them.</p>
<p id="2360" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">At the time, if Darwinia only had one chain, it would have to migrate back and forth between solo and parachain mode whenever it lost and regained its parachain slot. To avoid this inconvenience, Darwinia decided to run both a solo chain and a parachain simultaneously, using its ability to connect two Substrate-based blockchains. The parachain is governed through remote governance from the solo chain.</p>
<p id="5a6e" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">However, they have encountered some issues in practice. Firstly, the existence of two chains is confusing for users and hinders understanding of Darwinia. Secondly, it is a burden for the development team, as it requires more time for development and testing, which slows down the code iteration process. Additionally, the cross-chain process becomes more time-consuming and costly due to the added hop.</p>
<p id="2c65" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">As the team gained more experience with Substrate and related tools improved, it became possible to simplify the Darwinia Network by merging the <code class="dz kd ke kf kg b">Darwinia Chain</code> and <code class="dz kd ke kf kg b">Darwinia Parachain</code>. This proposal was made due to the reason above and the added complexity introduced at the start of Darwinia&#8217;s design. As a result, they attempted the first merge of a solo chain and parachain in the Polkadot ecosystem.</p>
<h2 id="d59c" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi">How</h2>
<p id="bded" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">The process of merging involves exporting the data from both the <code class="dz kd ke kf kg b">Darwinia Chain</code> and the <code class="dz kd ke kf kg b">Darwinia Parachain</code>, merging the data, and then migrating the merged data and new code into the <code class="dz kd ke kf kg b">Darwinia Parachain</code>. In summary, the <code class="dz kd ke kf kg b">Darwinia Chain</code> and <code class="dz kd ke kf kg b">Darwinia Parachain</code> are merged into the <code class="dz kd ke kf kg b">Darwinia Parachain</code>.</p>
<h2 id="5b01" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi">Steps</h2>
<p id="d989" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">The merge is divided into two main steps: chainstate processing and parachain migration.</p>
<h3 id="1cd8" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi"><strong>1. Chainstate Processing</strong></h3>
<p id="0a08" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">The first step in the merge process is to export the data from both the <code class="dz kd ke kf kg b">Darwinia Chain</code> and the <code class="dz kd ke kf kg b">Darwinia Parachain</code>. This data is then preprocessed and merged to generate a genesis file, which can be used to start a new shell chain.</p>
<p id="143f" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">During the preprocessing of the data, several steps are taken, including:</p>
<ol class="">
<li id="20f9" class="lk ll hx jh b ji jj jm jn jq lm ju ln jy lo kc lp lq lr ls bi" data-selectable-paragraph="">Removing storage data that is no longer needed, particularly from pallets that are no longer in use, such as those related to consensus. <a class="ae lt" href="https://medium.com/darwinianetwork/darwinia-2-0-staking-mechanism-adjustments-1530a9175f8e" rel="noopener"><strong class="jh hy">Read more</strong></a>.</li>
<li id="447d" class="lk ll hx jh b ji lu jm lv jq lw ju lx jy ly kc lp lq lr ls bi" data-selectable-paragraph="">Converting account-related storage data into data to be migrated in the account_migration pallet. The final migration of assets in the account will need to be done by the user in the new chain. <a class="ae lt" href="https://medium.com/darwinianetwork/darwinia-2-0-blockchain-data-migration-c1186338c743" rel="noopener"><strong class="jh hy">See the article about account migration</strong></a>.</li>
<li id="de7a" class="lk ll hx jh b ji lu jm lv jq lw ju lx jy ly kc lp lq lr ls bi" data-selectable-paragraph="">Adjusting data bound to the block height. For example, if you lock RINGs for 3 months, you end up storing a block-height-related value in storage. After 2.0, the height starts from 0 and the block time span will be changed from 6s to 12s. The final lock length must be adjusted accordingly.</li>
<li id="ebf5" class="lk ll hx jh b ji lu jm lv jq lw ju lx jy ly kc lp lq lr ls bi" data-selectable-paragraph="">Making other data upgrades for Darwinia 2.0, including adjusting token precision and unifying address formats. <a class="ae lt" href="https://medium.com/darwinianetwork/darwinia-2-0-will-unify-address-format-and-precision-309ad9a20bf2" rel="noopener"><strong class="jh hy">Details can be found here</strong></a>.</li>
</ol>
<p id="ecf0" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">The chainstate processing portion of the work is mainly carried out using the state-processor tool <a class="ae lt" href="https://github.com/darwinia-network/darwinia-2.0/tree/main/tool/state-processor" target="_blank" rel="noopener ugc nofollow"><strong class="jh hy">state-processor</strong></a>.</p>
<p id="5069" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph=""><a class="ae lt" href="https://github.com/darwinia-network/darwinia-2.0/issues/9" target="_blank" rel="noopener ugc nofollow"><strong class="jh hy">Additional information on chainstate processing can be found here</strong></a></p>
<h3 id="5675" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi"><strong>2. Parachain Migration</strong></h3>
<p id="984d" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">The data from the genesis file and the code of the new parachain are migrated into the <code class="dz kd ke kf kg b">Darwinia Parachain</code> using Parity Technologies&#8217; <a class="ae lt" href="https://github.com/paritytech/cumulus/tree/master/pallets/solo-to-para" target="_blank" rel="noopener ugc nofollow"><strong class="jh hy">solo-to-para pallet</strong></a>. Following the migration, the <code class="dz kd ke kf kg b">Darwinia Parachain</code> becomes the new Darwinia 2.0 and retains its original <strong class="jh hy">paraId</strong>.</p>
<p id="9542" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">Without the <a class="ae lt" href="https://github.com/paritytech/cumulus/tree/master/pallets/solo-to-para" target="_blank" rel="noopener ugc nofollow"><strong class="jh hy">solo-to-para pallet</strong></a>, it would have been difficult to complete this process while preserving the paraId.</p>
<h2 id="7996" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi">Chains Upgrade Pathway</h2>
<p id="992e" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">To ensure the accuracy and completeness of the merge, thorough testing and checking is necessary. It must also be verified on testnet and canary networks before Darwinia can be upgraded.</p>
<p id="223b" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">The merge will be tested on Pangolin 2.0, the testnet for Crab 2.0, to check for data completeness and accuracy. After this, Crab 2.0, the result of merging the <code class="dz kd ke kf kg b">Crab Chain</code>and <code class="dz kd ke kf kg b">Crab Parachain</code>, will be launched. Crab 2.0 is an economically valuable network, so it will not only be tested for data completeness and accuracy, but also for economic feasibility. If there are no issues on Pangolin 2.0 and Crab 2.0, the merge will proceed to Pangoro 2.0, the test network for Darwinia 2.0. If everything is successful on Pangoro 2.0, the merge for Darwinia 2.0 will be carried out.</p>
<p id="0e3b" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">In summary: Pangolin 2.0 → Crab 2.0 → Pangoro 2.0 → Darwinia 2.0.</p>
<h2 id="d149" class="kh ki hx bd kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc ld le bi">Less Is More</h2>
<p id="c67f" class="pw-post-body-paragraph jf jg hx jh b ji lf jk jl jm lg jo jp jq lh js jt ju li jw jx jy lj ka kb kc hq bi" data-selectable-paragraph="">After the merge, Darwinia will have only one chain, Darwinia 2.0, a simplified Polkadot parachain that will begin producing blocks from block number 0.</p>
<p id="46e7" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">The Darwinia community reached consensus on the merge through discussion and will vote on it through referendum. The high-quality technology ecosystem of Polkadot has made this merge possible. Once the referendum on Darwinia 1.0 passes, it will be retired. All of Darwinia 1.0’s on-chain state will be preserved in Darwinia 2.0, including user account ledgers.</p>
<p id="767f" class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">The simpler Darwinia 2.0 will provide a stronger foundation for the future development of Darwinia, leading to higher code quality, faster development iteration cycles, shorter cross-chain routing paths, and a better user experience.</p>
<p class="pw-post-body-paragraph jf jg hx jh b ji jj jk jl jm jn jo jp jq jr js jt ju jv jw jx jy jz ka kb kc hq bi" data-selectable-paragraph="">Due to Substrate’s modular design and well-established toolchain, the merge process is relatively straightforward. We are confident that it can be completed in a relatively short time. If we had only focused on the merge, we believe it would have been finished even more quickly, as a significant amount of time was spent on other data upgrade work in addition to the merge.</p>
<h3 id="46d4" class="kf kg hi bd kh ki kj kk kl km kn ko kp kq kr ks kt ku kv kw kx ky kz la lb lc bi"><strong>About Darwinia Network</strong></h3>
<p class="pw-post-body-paragraph iq ir hi is b it iu iv iw ix iy iz ja jb jc jd je jf jg jh ji jj jk jl jm jn hb bi" data-selectable-paragraph="">Darwinia a cross-chain messaging infrastructure, which provides a light client-based, programmable, universal cross-chain messaging network for decentralized applications.</p>
<p><span style="color: #00ccff;"><strong><a class="ae jo" style="color: #00ccff;" href="https://darwinia.network/" target="_blank" rel="noopener ugc nofollow">Website</a> </strong></span>| <span style="color: #00ccff;"><strong><a class="ae jo" style="color: #00ccff;" href="https://twitter.com/DarwiniaNetwork" target="_blank" rel="noopener ugc nofollow">Twitter</a> </strong></span>|</p>
<p><span style="color: #00ccff;"><a style="color: #00ccff;" href="https://medium.com/darwinianetwork/first-successfully-merge-of-substrate-solo-chain-and-polkadot-parachain-2da40069b6a7"><strong>Source</strong></a></span></p>
<h4><span style="color: #ffff00;"><a style="color: #ffff00;" href="https://docs.google.com/forms/d/e/1FAIpQLSdACnREL_I_9ZxTj4-6Xu6_kwmIAg4KZmnNHOyn0sIttl2zZw/viewform"><strong>REQUEST AN ARTICLE</strong></a></span></h4>
<p>The post <a href="https://smartliquidity.info/2023/01/29/darwinia-2-0/">Darwinia 2.0 Developments</a> appeared first on <a href="https://smartliquidity.info">Smart Liquidity Research</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
