当前位置:网站首页>Subsystem technology and ecology may memorabilia | square one plan launched, Boca launched xcm!
Subsystem technology and ecology may memorabilia | square one plan launched, Boca launched xcm!
2022-07-24 05:44:00 【OneBlock Community】
2022/05 The first 20 period
This monthly report is made by Substrate Evangelist @ Caisongjian's creation
Hi, All attention Substrate Technology developers :
「Substrate Monthly technical report of ecological project 」 from OneBlock+ Produce , Monthly summary Substrate Technical progress of projects in various fields of ecology , This article is Substrate Ecological projects 5 Monthly technical monthly report , Enjoy!
01 Important submission and release
1. from sc-network Extract synchronization protocol from (sc-network Contains a fairly general underlying network protocol stack , Synchronization and transaction protocols can be implemented on it .sc-network It not only exposes the underlying network stack API, Methods for synchronizing and transaction related operations are also disclosed API, It is necessary to pull out the part of the synchronization protocol ), The following is the latest progress of synchronous protocol reconfiguration :
The first part : Remove with minimal dependency sc_network::chain::Client
The second part : Migrate some shared data structures to sc-network-common
The third part : Migrate some data structures to sc-network-light
The fourth part : sc-network Only depends on sc-network-common , sc-network-light Only depends on sc-network-common , sc-network-sync Only depends on sc-network-common sc-service Only rely on all the above to instantiate the concrete implementation .
2. BoundedVec Implement serialization and deserialization BoundedVec Not implemented before serde::{Serialize, Deserialize}, So it can't be GenesisBuild Use in , Because it needs to implement :
sp_runtime::traits::MaybeSerializeDeserialize .
3. bag-list pallet Some important updates have been made (bag-list pallet It can be used to elect Boca network top x Verified by ,bag Is a sorted list ), Mainly as follows :
to update bag-list pallet Event and error handling Updated bag-list Of Error and Event,bag-list pallet It is a mechanism used in the election process of Boca nominees ;
bag-list New score function The score is mainly used to indicate the nomination of the verifier pledge , The amount of nominations approved by the verifier is equal to its own pledge plus the amount nominated by all its nominees ;
4. The nominee pool has been updated and partially bug Repair , Mainly as follows :
Added more events to the nominee pool and fixed some bug When a member leaves or is kicked out of the current nominee pool and the transaction amount is not 0 Issue an event when ; Fixed a problem that would kill the account prematurely bug; Fix a problem that allows unauthorized users to unbind the amount bug;
newly added update_role Callable functions Used to explicitly update member roles in the nominee pool ;
Add... To the nominee pool MinPointsToBalance Configurable constants Set the previous fixed ratio to a configurable constant , It is mainly used to verify people's scores and balance A configuration between , It is necessary to ensure that the ratio is lower than this constant ;
The role of the nominee pool becomes optional The nominees pool can now have explicitly optional roles , You can also do this by setting the role to some public keyless address , But this is a little inconvenient . Now? , Roles can be simply set to None. Now? , A pool of nominees can be expressed as follows : If you will root Set to none, It means that I will not change any roles . If the nominee is set to none, It means I will never change the nomination . If I set my state switcher to none, That means I can never destroy this pool of nominees ( Unless it is cut 90%). Be careful , if necessary , Governance can be reset to any of the above ;
5. pallet Introduction in #[pallet::call_index] by pallet Add an attribute to the callable function in #[pallet::call_index($idx)] , Used for restoration Call The encoding and decoding order of the corresponding enumeration variant in the enumeration .
6. remove [pallet::without_storage_info] macro at present pallet All storage for has been implemented MaxEncodedLen .
7. Optimize the memory utilization of the working machine under the chain There are two main optimizations :
Read snapshots using preallocation .
adopt filter_map To use preallocation .
02 Design scheme and problem discussion
1. all FRAME Storage of transactions
Storage layer : stay Substrate There is already one called transactional The concept of , It can explicitly commit or rollback transactions , But this API A little stiff , Because the expected return type is TransactionOutcome, But often we need to know some internal call results . Two new auxiliary functions are introduced with_storage_layer and in_storage_layer .
with_storage_layer Just return a Result. If the return value is Ok, Automatically commit the store , If the return value is Err, Automatically restore the storage . such , A closed function does not need to know that it is in the transaction storage layer , This allows easier use of storage tiers .
in_storage_layer It only generates a new storage layer when a storage layer does not exist . therefore , If there is no storage tier , with_storage_layer and in_storage_layer Exactly the same . otherwise , If a storage tier already exists , Only closed functions are executed in the storage layer .
For actual development #[transactional] It's out of date .
2. Allow the nominee pool to freeze and some bug Repair
This is a nomination pool pallet A big update of .
The verifier can only release the amount of their pledge binding after other people leave completely . This helps to ensure that the amount of pledge binding in the nominee pool remains at MinimumNominatorBond above , So that all nominees can leave smoothly .
When the verifier wants to leave , They must invoke the new chill Transactions to freeze pool nominees , Make it lower than MinimumNominatorBond .
Fixed a code error that partially unbound the pledge , This will lead to slash The calculation is incorrect in the case of .
Fix one slash Code for , May lead to excessive slash.
03 Documents and materials
Square One yes Parity A new plan for , For new and early creators in Substrate Provide ecological direction and customized support services in ecology . stay Substrate There are many ways to build on , There are also many toolkits and education in ecology 、 Resources developed and funded .
Parity Signer, Parity in the light of Substrate Chain based smart phone cold storage solution , This is by far the most comprehensive update .5.0 The beta is now available in iOS App Store、 Google Play And the project Github Warehouse downloading , New function of changing rules , Based on qr Offline update for . Although optimized for the highest security requirements , but Signer Still in the testing phase , Wait for the ongoing audit to complete , So users should keep this in mind , And always back up their accounts .
04 Technology ecology and community
2022 Boca hackson global recruitment has officially started ! The competition was held by Parity And OneBlock+ The host , It is expected that all developers around the world who want to know about blockchain and open network will sign up to participate . Whether it's an entrepreneurial team with rich development experience , Or do you want to enter Web3 Traditional Internet developers , We are looking forward to creative and thoughtful developers to join this competition , Create together Web3.
Enter the entrepreneurial era of Boca hacker song AMA series 2
AMA The second phase is invited to The first Boca hackson competition “ Most popular developer Award ” The winner Web3Games Introduce the development of the project , And how to successfully start a business by taking the opportunity of participating in the Boca hackson competition !Web3Games It is an integrated blockchain game platform , It's a player creation , A platform for all blockchain game related content . By integrating blockchain technology 、NFT and DeFi Combined with virtual games ,Web3Games It provides an ecosystem in which both players and developers can have their own game ownership .
Enter the entrepreneurial era of Boca hacker song AMA series 3
In this issue OneBlock+ The invitation Parallel The engineer - Zhou Yang shared with you about Parallel The foundation and development of , And the valuable experience of participating in the poca hackson competition .
This invitation is to Parity Head of Asia Pacific @Helena,Parity The engineer @Jimmy, Introduce the progress of Poka ecology and developer support, as well as the details of hacksong and the rules of the competition .
05 Cross Chain Protocol
Polkadot go online XCM Poca in v0.9.19 The version upgrade has been launched and passed XCM The function of message transmission between parallel chains . Boca's vision of cross chain interoperability is thus opened !
Repair and runtime-benchmarks dependent pallet-xcm toml The problem of Fixed a problem due to runtime-benchmarks features Compilation errors caused .
The Committee on the relay chain can send XCM news The Committee on the relay chain can pass pallet_xcm Sending transaction .( At present pr be in review Stage )
About us
One Block+ It's the biggest in China Substrate Technology developer community , It's also Parity The only operating partner in Asia , The founder of Poka's Early Ecological Project 、CTO、 Most of the core developers come from One Block+ Community .
Twitter: https://twitter.com/OneBlock_
Medium: https://medium.com/@OneBlockplus
Telegram: https://t.me/oneblock_dev
Discord: https://discord.gg/z2XZZWEcaa
Bilibili: https://space.bilibili.com/1650224419
YouTube: https://www.youtube.com/channel/UCWo2r3wA6brw3ztr-JmzyXA
边栏推荐
- ERP+RPA 打通企业信息孤岛,企业效益加倍提升
- MySQL误操作后如何快速恢复数据
- Tree structure + node
- 多商户商城系统功能拆解11讲-平台端商品栏目
- Flink函数(2):CheckpointedFunction
- 音乐 NFT 为什么火了?Polkadot 或将成为发展音乐 NFT 的最佳选择
- Penetration testing knowledge - industry terminology
- Substrate technology and ecology June memorabilia | Polkadot decoded came to a successful conclusion, and the hacker song winning project injected new forces into the ecosystem
- Logical structure of Oracle Database
- highcharts使用自定义矢量地图
猜你喜欢
随机推荐
【mycat】mycat相关概念
[data mining] zero foundation entry decision tree
Flink Watermark机制
推荐一款完全开源,功能丰富,界面精美的商城系统
国内外知名源码商城系统盘点
Vulnhub solidstate: 1 target penetration test
ODS、数据集市、数据仓库的异同点
黑龙江省SVG格式地图的创建及生成
@Async 没有异步执行
Highcharts use custom vector maps
likeshop单商户SAAS商城系统搭建,代码开源无加密。
公司女同事深夜11点让我去她住处修电脑,原来是C盘爆红,看我一招搞定女同事....的电脑
Sunset: noontide target penetration vulnhub
[vSphere high availability] host failover
Define attribute of UMI
PoS机制随机性解读,波卡的随机性原理如何运作?
Unknown collation: ‘utf8mb4_0900_ai_ci‘的解决方法
Logic development analysis of LP dual currency liquidity pledge mining system
Analysis of Dao liquidity dual currency pledge mining development principle
【activiti】activiti系统表说明









