Dev Update #133-#134

THORChain Author
THORChain
Published in
5 min readMar 1, 2022

--

THORChain Weekly Dev Update for Weeks 133–134, 14 Feb— 27 Feb; Terra Update, THORGames for Synths, Roadmap, Docs Updates, Network Updates, Community Updates.

Summary

Terra is close to being launched, THORGames for Synths finished up, changes to bonding, docs have been updated and testing of the Hardfork occurred in Testnet. The Network had two updates along with several community updates.

Terra Update

  1. Primary Development completed
  2. Bounties paid for found vulnerabilities, bounties still available
  3. Nodes currently syncing the chain and making preparations for activation
  4. Terra Security (Smart Contract Verification) experts will review the code before activation.

While Terra will be deployed to Chaosnet next week, it will not be active. Terra is expected to be live within 3 weeks at which time the Soft Cap will be removed.

THORGames for Synths

THORGames for Synths was extended due to issues in Stagenet and is now complete. Several minor issues were found, all reported issues are being reviewed. Full results will be released soon. Upon review of all issues, a decision of when Synths will be activated will be made. Initial Synths deployment will be capped to 5% of the pool depth then slowly increased to the normal cap of 16.5% (or 33% asset depth).

Add Bond While Active Change

This changes the rules around when a node can add bond. If the node rewards is the original behaviour (ie ValidatorMaxRewardRatio == 1), then a node can add bond whenever (except when ready status). When a ValidatorMaxRewardRatio > 1, then a node can add bond while active, but within 12 hours of a churn. The value of ValidatorMaxRewardRatio is up to the nodes via voting.

Docs Update

THORChain docs have been updated with the Understand THORChain and Getting Started pages within the Learn section being added for newer people to the THORChain. Supported Wallet and Interfaces, FAQs and Ecosystem pages have also been updated.

Additionally. https://dev.thorchain.org/thorchain-dev/ has been created to assist with wallet and exchange integration with THORChain. This site will grow substantially between now and Mainnet as there is a push towards greater integration (wallets and interfaces).

Hardfork and Cosmos SDK

Before Mainnet can occur, the Cosmos SDK version THORChain uses needs to be updated, a Hardfork is required to do this. Hardfork planning and testing is also desired for network recovery purposes and it will also reduce the size of the chain.

The Hardfork and the update needs to be fully tested in Testnet, then it will be done in Stagenet after the Terra Launch and in Chaosnet before Mainnet.

Version downgrade attack disclosed

If an attacker controlled more than ⅓ of the active nodes, it could force the network to downgrade to a lower version with a known exploit. High difficulty and there is doubt an attacker would profit from the attack. The bug was fixed in v0.80.0 and is now disclosed. Full Disclosure: https://gist.github.com/HildisviniOttar/ab4942c4d234f480e3691d81a78372c5

Milestone Update

The below milestones are required before Mainnet.

  • Terra Launch and Kill Soft Cap in Chaosnet — within 3 weeks.
  • THORName Service (TNS) Activation in Stagenet. Technically required for Haven and Monero integrations.
  • Multiple Bond Providers — target release 0.81.0
  • Hardfork and Cosmos SDK update in Stagenet — After Terra Launch
  • Development of https://dev.thorchain.org/ to support easy integration
  • Activation of Synths in Chaosnet, initially capped
  • TNS Activation in Chaosnet
  • 100 Active Nodes Target (likely passively achieved)
  • Hardfork and Cosmos SDK update in Chaosnet

30 Days of stable operations are required once all points are achieved.

Roadmap

Latest update from the core team (subject to change).

1. This week: Final, internal wargame on synths — then rollout end of week or early next week, if there are no blockers.

2. Next week: Focus is on the hardfork — procedures, run-books. 9R will be working closely with core team to see these events through on Testnet, Stagenet, and eventually Chaosnet.

3. Concurrently: dev / integration docs are in development, Terra is prepping to ship — currently a Terra security team is reviewing the implementation, will be evaluating next chains, node count continues to grow (100 node target soon).

Want more information?

See more THORChain and Community News at https://www.runebase.org/ and https://medium.com/@THORNOOB

Network Updates

THORNODE Update 0.80.0

1) [ADD] Enable Linters and Gofumpt. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2111

2) [BUG] Round Gas Token to target precision. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2110

3) [ADD] Stagenet store migration v80. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2109

4) [BUG] Fix Ethereum Solvency Slashes. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2107

5) [ADD] Update stagenet validator whitelist. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2105

6) [BUG] Refactor solvency checker auto un-halt. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2103

7) [BUG] Fix Version sorting. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2102

😍 [ADD] Slash Metric Updates. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2101

9) [BUG] Fix leave score. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2100

10) [ADD] Whitelist two aggregator contracts on testnet. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2099

11) [ADD] Update node status to Disabled after node has request to leave and unbond successfully. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2098

12) [ADD] Update go-ethereum to latest version 1.10.15. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2096

13) [BUG] Bifrost only need to consolidate UTXO when it hold membership of the vault. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2095

14) [BUG] Fix testnet seed service name. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2094

15) [ADD] ETH chain client to move on when fail to estimate gas. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2091

16) [BUG] Disallow synth assets in donate/withdraw. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2087

17) [ADD] add terra to node status. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2086

18) [ADD] xdefi token. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2085

19) [BUG] Fix the configuration in docker composer for mocknet. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2083

https://gitlab.com/thorchain/thornode/-/tags/v0.80.0

THORNODE Update 0.80.1

1) [ADD] Double the gas limit for bifrost. PR: https://gitlab.com/thorchain/thornode/-/merge_requests/2131

https://gitlab.com/thorchain/thornode/-/tags/v0.80.1-chaosnet

Community Updates

RUNE Base Podcasts

https://www.runebase.org/podcast/

THORChain Community

To keep up to date with the project, please monitor community channels, particularly Telegram, Discord and Twitter:

--

--