0Chain Weekly Debrief — August 3, 2022

Tiago Souza
Zus Network

--

Hope you are all doing well! While we are patiently waiting for the premainnet events, the dev team is working hard to ensure a reliable and stable network. During the past week, several tests were conducted and arising issues fixed. We are also very excited with how the demos are progressing that are currently being developed to support APIs.

In addition, our social media presence is getting stronger with more exciting and engaging posts. If you haven’t already, make sure to follow us on Twitter, Facebook and Linkedin to see all we have in store for the exciting times ahead!

This week, our CEO Saswata was featured on Korea IT Times. There he talks about the collapse of UST and its sister Luna, and how he approaches the problem of novel crypto schemes. Remember to retweet and smash the likes!

Lets dive into this week’s update!

Development Team Updates

In this past week, the core team mainly closed 14 PRs and 9 issues.

The team finally finished the refactoring of the writes pool for blobbers/allocation, together with associated updates on blobber/gosdk/zboxcli and system tests. This allows the process to lock/unlock tokens for allocations much simpler, be more MPT reading/writing friendly and to expose cleaner APIs. This will help facilitate MSBs and developers to interact with the network.

In addition, the team fixed a sharder registration delay, in case miners were not up in network issues to optimise the network. They also added a new param to snapshot endpoints to control the number of data points returned, which updated the logic to mint tokens for free allocation storage and refactoring the functions, making it harder to be misused.

Furthermore, the team moved the adding clients event to be executed before all other events in case other events try to read/update the client in the database while it does not exist yet. The team also changed the exempted transaction score calculation to make the transaction be processed in FIFO order. Previously, the txns were in LIFO order, which caused a bug that an old txn didn’t get picked up, then expired and removed from the pool issue. Also, they added new allocations options for supporting NFTs,

Moreover, the devs performed a currency overflow check and update, fixed a delegate pool updating bug, and, added a `/search` endpoint for frontend team to do generic searching. For example, query the block by block round number, or block hash, get transaction by hash, or get user info by client id, etc.

Blobber & gosdk team

During the past week, lots of load tests were conducted. Because of that, several issues were detected and fixed. For the most part, 20 PRs were merged: 15 on blobber and 5 on gosdks.

The team removed ‘user write pool’, leaving write pools exclusively attached to allocations. Improved error logging when it fails to query data from sharder’s APIs.

Optimised the allocation changes functions, fixed directory renaming issue that now can only be created with commit request. Added a database index for `WriteMarker` query. Removed UpdateBlobberSettings from blobber. Added challenges cache to check if challenge has already been added before hitting the database, added time duration logs to check how long each step would take to complete the tasks.

Finally, the team fixed:

1) an issue where the `bigserial` type is unsupported by the latest version of postgres while trying to alter columns.

2) how geolocation and info are set.

3) a concurrent map access bug.

4) an invalid rate from APIs.

5) a `ReadCounter` unreliable issue.

  • Interested in learning more about building on 0Chain or becoming a service provider? Check out our GitHub for access to repositories. Community ambassador Sculptex has created numerous tutorials to help get you started.
  • Try our BetaNet here! Users can create wallets and allocations, store files, send transactions, and share files.
  • Need help navigating creating wallets, allocations, or joining as a blobber? Check out our documentation page.
  • 0Chain’s API endpoints use simple and intuitive HTTP requests to interact with the blockchain in order to send/retrieve information to and from miners, sharders or blobbers in the active network.

About 0Chain

0Chain is a high-performance decentralized storage network designed to eliminate business threats such as censorship, privacy liability and data breaches. 0Chain helps entities achieve GDPR compliance, localization and tokenization, and monetizes private data sharing.

API| Docs | Telegram | Reddit | Twitter | Forum | GitHub

--

--