Community Update 187

General

Sprint 95 in progress

Main Focus is to prepare the block merge Hard fork (hf2), specifically (a) merging REV balances aka per deploy vault (b) leaderless block merge - work ongoing (c) a lot of testing + bug fixing and (d) performance improvements. Other work items include resolving any identified bugs, improving  performance, hardening the network. Hard fork 3 changes - PoS contract and related items (No  change in this hf3 section this week - personnel on vacation).  Current PR list is at https://github.com/rchain/rchain/pulls .  

Block merge Hard Fork (hf2)

  1. As of now, we expect the block merge work to be completed in September.
  2. Work on directly merging REV balances is proceeding. https://github.com/rchain/rchain/issues/3513 describes the scope of work and the PR for the first part https://github.com/rchain/rchain/pull/3492 is in. Quantifier will be working on the necessary PoS changes (part 5 in the description) and Tomislav is working on the remaining parts.  Once all of this is completed and tested with the rest of the code including attestation messages, leaderful block merge will be complete. Depending on the arrival of the leaderless block merge changes, the release may directly go to the leaderless version. In addition to help reduce REV transfer conflicts, this work also improves speed of REV transfers on the network, in any context.
  3. Leaderless block merge work is proceeding. There are some Casper changes that need to be implemented to make it work in the leaderless scenario. The leaderless scenario is also forcing us to rethink the design in terms of merging of  states rather than blocks, to accommodate multiple states that may have been finalized because each got 67% stake. We have to traverse to the full edge of such finalized states, to make merging, conflict and rejection decisions. This redesign is expected to be complete this week.
  4. GSJ has run some performance scenarios on the leaderful block merge branch based on the performance test setup by Anton. The setup needs to be improved to allow for more concurrency. We will do that work over the next week or two and report the results. We will report these on the leaderless version also later.
  5. Denis has made good progress on the new radix tree implementation https://github.com/tgrospic/rchain/blob/e9d3d932368eec1281f6934098d9650528f47b73/rspace/src/main/scala/coop/rchain/rspace/history/RadixTree2.scala and tests for the same https://github.com/tgrospic/rchain/blob/e9d3d932368eec1281f6934098d9650528f47b73/node/src/test/scala/coop/rchain/node/RadixTreeSpec2.scala. He will now proceed to use this in the RNode history implementation and measure performance.
  6. Status of various Block merge tasks is at
    1. https://github.com/rchain/rchain/projects/4

Hard Fork 3 - PoS changes

No updates on Hard Fork 3 this week, Quantifier will work on these after completing the PoS changes for merging of REV balances.

Release Plan for the rest of the year and beyond - for reference, no change

Currently planned near term releases are

  1. Block merge release hard fork 2 plus any configuration changes that do not need extensive work - Leaderful and Leaderless block merge
  2. Configuration changes release,
  3. Performance improvements releases (one or more),
  4. Hard Fork 3 with PoS changes and other items,
  5. External validators process validation with trusted community validators
  6. External validators among extended ecosystem (e.g. exchanges, if they're willing)
  7. External validators in the wild.




Explanation of the different Hard Forks (for reference)

Proceeding further with block merge requires changes to the per validator vault to make it a per deploy vault/purse etc. We are currently finalizing the design for this. Actual code and test will take some time. We are potentially looking at this scenario:
1. First hard fork for balances and removing the slashed validator
2. Second hard fork for block merge - This is the fastest way to get block merge on the main net without holding it until the third hard fork. This includes REV balance merging (aka per deploy vault), attestation messages and the Tree depth being increased to 4.
3. Third hard fork with all other changes.  Third hard fork includes implementation of a lot of changes including the PoS contract changes, Soft fork process etc.  Design for soft fork process is complete and is being reviewed by the team.

(Hard Fork) TEST NET 2 ADVISORY: (for reference)

To test the version of block merge with data changes that need a hard fork, we are creating a separate feature branch and a TEST NET 2 as the testbed for this feature branch. This content will be left here until we are close to Hard Fork 2 implementation on the main net. TestNet 2 is now available for the community to test their contracts on.

  1. There will be no guarantees of data storage format compatibility on Test Net 2, as the data storage format changes are incrementally implemented. The anticipated changes are mostly storage level format changes visible only to node operators. We encourage the community to start using Test Net 2 in addition to the current test net, so that we can quickly identify and resolve any issues with the upcoming hard forks. All new development should be targeted to TEST NET 2 and all current code MUST BE tested against TEST NET 2 to ensure future compatibility. 

On all the hard forks on the main net, we will be starting from an empty state, with REV balances only. On Test Net 2, this 'loosing the state' will be repeated multiple times.

Tech-Governance meetings on Fridays 9:30 AM Eastern, 6:30 Am Pacific 



Mercury requirements and acceptance criteria

Details on the acceptance criteria: Mercury acceptance criteria

Please see the documentation at https://github.com/rchain/rchain/blob/dev/docs/features.md

Developer website

https://developer.rchain.coop 

Date