Weekly Dev Update #24
THORChain Weekly Dev Update for Week 01–05 Jan 2020
Changes
No significant changes to report.
THORChain
Refactoring
A large part of the week’s refactoring was on consolidating the Bifrost into one binary to simplify how it accesses key-material for THORChain since it has two main routines:
- The Observer (which observes external networks and posts witness transactions to THORChain)
- The Signer (which manages the TSS process, and posts transactions into THORChain to facilitate vault churning)
- [refactor] Docker compose reorg
- [rename] bifrost: statechain ==> thorchain
- [refactor] converge observer/signer config files
- [Refactor] merge observer/signer into bifrost
- [Refactor] Bifrost config
- Resolve “Signer should shift for gas”
- 297-issue remove /thorchain/keygen/:height endpoint
Genesis and Build Management
More work was done to validate and tweak the build process for the binary. Genesis routines were also re-worked. Smoke tests are added into each deploy to ensure build integrity.
- [bug] Genesis fullstack tweaks
- 296-isse move the genesis move creation logic to vault manager
- [testing] re-add complete 35 tx tests to standalone smoke tests
- add script to automatically deploy thornode running on docker on AWS and Virtualbox
- update docker file to speed up build
- Envrionment Build tags
Improvements
More work was done on event logic to address some integration issues with Midgard. The Ragnarok routine was also re-worked to cover some edge cases.
- Simplify staking event trigger
- Resolve “[ADD] emit refund events for those tx Thorchain fail to process”
- Resolve “add query switch to include pending events in API”
- Resolve “Get event by tx hash”
- 290-issue when trigger ragnarok , stop validators from leaving until it shutdown
- Resolve “ragnarok should trigger bonders to get their rewards”
- [Add] Lock thorchain send to ensure one at a time
Midgard API
Some small fixes to address integration problems with the interface.
Interface
A lot of small bug-fixing of issues discovered in the validation, as well as the update in how prices are calculated.
- Resolve “BUG: Remove warnings and issues”
- fix swap page blank
- Resolve “Fix issues in the add wallet”
- Resolve “Resolve issues in the swap”
- Resolve “Update base price selector in the header”
- fixes docker build failure
- dockerize master
- Resolve “Resolve issues in the stake”
- Resolve “Add validation in the swap token amount input”
- Resolve “Fix handling refunded token in the swap”
- set default environment variables
Audit
Code Review: Commenced
Economic Review: in discovery
TSS Audit: early discussion
Next Milestones
The updated testnet is in the final stages of testing.
Community
To keep up to date, please monitor community channels, particularly Telegram and Twitter:
- Twitter: https://twitter.com/thorchain_org
- Telegram Community: https://t.me/thorchain_org
- Telegram Announcements: https://t.me/thorchain
- Reddit: https://reddit.com/r/thorchain
- Github: https://github.com/thorchain
- Medium: https://medium.com/thorchain