CESS Technology Monthly Report | Progress in April 2022
1. Important Submissions, Modifications, and Releases
1. Regarding the Blockchain Network (CESS-Network)
Continued development of CESS v0.4.0_alpha
This month, the framework upgrade of the CESS chain Substrate was completed from monthly-2021--10 version to monthly-2022--04 version. Through data types and calling helpers, the interaction for parameter passing between smart contracts and Runtime was achieved. The functionality for uploading file metadata and deleting file metadata on-chain via HTTP was implemented; the operation allowing storage users to repeatedly increase their stakes on the CESS blockchain network was also realized.
2. Regarding the Distributed Storage System
(1) In terms of CESS mining (CESS-Bucket), the dependency installation and deployment of the miner script were completed, and the miner program image was packaged using Dockerfile;
(2) In terms of CESS scheduling (CESS-Scheduler), all custom events in the scheduling nodes were sorted out, and the event definitions were extracted into a separate file; the log module was enhanced to include block number records for easier troubleshooting of system vulnerabilities.
3. Regarding the Consensus Mechanism (R²S)
The design requires that the Controller account of the consensus node and the account of the scheduling node must use the same account, thus forming a strong binding relationship between the consensus node and the scheduling service. The writing of the staking EraPaid event was completed, enabling the functionality to know the account automatically generated by the sminer pallet from the reward distribution event.
4. Regarding the Multi-Replica Recoverable Storage Proof Mechanism (PoDR²)
The development of the cess_ffi module was completed, achieving the calling functionality, which is an organic combination of the scheduling service and the consensus node.
5. Regarding the Development Components of CESS v0.1.0_alpha
(1) In terms of the CESS Go program development package (GO SDK): functionalities such as file upload, file download, file deletion, file encryption, and space purchase were constructed;
(2) In terms of the CESS Application Programming Interface (API), the development of version v0.1.0 was completed, implementing the HTTP service file upload interface functionality, adding a random number retrieval interface and a mechanism to prevent cache penetration.
2. Technical Solution Discussions
- The repository source for dependencies was changed from the official repository to the CESS/Project repository.
https://github.com/CESSProject/cess/pull/21
- The chain specification file was updated to adapt to the 2022--04 version; real-time pricing functionality was completed by querying pricing through off-chain work machines.
https://github.com/CESSProject/cess/pull/20
- The pricing mechanism was optimized to prioritize the selection of the cheaper service from two pricing models.
https://github.com/CESSProject/cess/pull/22
3. Technical Documentation Reference
GitHub: http://github.com/CESSProject