Gemini Tokenomics Upgrade Technical Guidance

Gemini Tokenomics will upgrade on the Khala block height of #1467000.

Doyle guo
4 min readApr 7, 2022

--

Summary

Gemini Tokenomics will upgrade on the Khala block height of #1467000. This update includes an increase in the total amount of rewards, changes in the calculation and distribution of rewards, an upgrade of the mining scripts, and the increase in the staking amount. Readers can find more details in my last article: “Must Read Before Gemini Upgrade”.

It is worth noting that it is not mandatory to upgrade the mining scripts for the solo miner. For miners who are engaged in stable mining, they do not want to upgrade the mining scripts or increase the staking amount for the time being. After hitting the target block, the upgraded economic model will automatically take effect.

This article will give technical guidance of following situations:

  • Upgrade the solo miner mining scripts v0.2.1
  • Increase the amount of delegation for workers which are running the solo miner mining scripts

How to upgrade mining scripts (Solo Miners only)

Thanks to volunteers for contributing to the new mining script. The upgraded one is made by Phala community volunteers based on the Solo mining scripts provided by the official team.

The new scripts(Scripts version v0.2.1) will add the following features

  • Freely set the location of node data and pRuntime data
  • More Ubuntu version support, every release from *Ubuntu 18.04* to *Ubuntu 21.10* will be supported
  • More Linux kernel version support, support most versions above 5.8
  • Multi-language support. Currently supports English, Chinese and Korean
    Richer Status function, there will be reminders for nodes when there are more than 200 blocks behind
  • Better version checking function

Scripts Upgrade Considerations

  • This scripts upgrade is not mandatory, and the old scripts still work after Gemini upgrade;
  • The upgrade does not require short-term downtime, as pRuntime persistence has been live in previous versions. If the persistent version of pRuntime has been updated, the upgrade scripts does not need to resynchronize the node, pRuntime, and pherry;
  • If the old scripts user executes the Phala command, the old upgrade mechanism will be triggered, which will cause the scripts to crash. If you don’t want to upgrade, you can modify /opt/phala/scripts/phala.sh Line 187 to delete check_version .If the Phala command cannot be found due to the misoperation of the old scripts, you can upgrade directly by the new scripts (v0.2.1)upgrade method. It will be restored automatically after the upgrade.
  • If you modify the old scripts by yourself (such as modifying the node separation, modifying the data path, etc.), you need to modify the new scripts (v0.2.1) before using it.
  • You can find your version code by sudo phala status.

Update commands

cd ~
wget https://github.com/Phala-Network/solo-mining-scripts/archive/refs/heads/main.zip
unzip main.zip
cd solo-mining-scripts-main
sudo ./phala.sh install

Notes: You need to run sudo tools/sgx_enable if your Mainboard Bios setting was Software Control mode.

Data inheritance

If the old scripts has been run before, the new one will automatically inherit the old scripts data. But be sure to stop the old scripts with sudo Phala Stop first.

How to Increase Staking Amount on Phala APP

Steps

1. Enter the Phala App Mining page;

2. Find the Worker you want to update the delegation in the Worker list, and click Change Stake (Only Workers in Mining or Unresponsive states can Change Stake, otherwise the Change Stake button will be grayed out);

3. Check the PID and WorkerPublicKey in the pop-up window, and enter the updated delegation amount in Amount;

Notice: New Stake should be larger than the current Stake but not larger than Smax. The increase of Stake should not be greater than the pool’s free delegation.

4. Click Confirm and sign. And after the transaction is sent successfully, you can see the data update on the App in about 20 minutes.

If you can’t find answers here, welcome to contact us on Phala Network’s official forum ‘HelpCenter’ or discord ‘miner’ channel.

About Phala

Phala Network tackles the issue of trust in the computation cloud.

By organizing a decentralized network of computation nodes around the world, it offers high-performance services without relying on any cloud vendor. Phala workers run the programs in Secure Enclaves, a privacy technology already embedded into modern processors, enabling versatile and confidential execution. Together, this creates the infrastructure for a powerful, secure, and scalable trustless computing cloud.

🍽 — Subscribe | Website | Twitter | Github

🥤 — Discord | Forum | Telegram |Italiano |Français | Persian | Korean

--

--