Skip to content

EPIP 1 Update Tutorial

EpiK Tech edited this page Sep 23, 2021 · 8 revisions

Background

EPIP-1 has been passed in EpiK PreDAO with 37.68% of EPKers involved and 71.92% of them supported. The result is described here.

EPIP-1 aims to change the lock-up period of the basic pledge from 0 days to 60 days.

If you want to activate a knowledge node, you need to pledge 1000 EPK as the basic collateral. Before EPIP-1 taking effect, you could withdraw the basic collateral immediately. After EPIP-1 taking effect, you have to wait 60 days after applying for withdrawal before getting back the 1000 EPK.

In order to avoid unrecoverable failures of the nodes, the efficiency of the use of funds is reduced, we have upgraded go-epik to support the transfer pledge function. The latest version will be committed to go-epik/master branch tagged with EPIP-1 Update at Sep 23 15:25:00 UTC 2021.

EPIP-1 Update

Features

  • Support the basic pledge transfer, pledge address can transfer the basic pledge to other miners
  • Fixed an issue where data could not be re-sealed after SEAL failed;
  • Optimize the calculation of domain expert voting rewards;

How to Transfer Pledge

If you want to transfer your basic pledge from a knowledge node to another, you could benefit from the new function of transferring basic pledge without applying for withdrawal and waiting for 60 days and re-pledging again.

epik client mining-pledge transfer <srcMinerId> <destMinerId>

How to Upgrade

Update the latest version of the code and restart the node after compilation.

Step 1 - download the latest codes

cd go-epik
git checkout master
git pull

Step 2 - check the commit hash

git log

check the latest commit hash is f893b46c0688ef8b0b95cb1f634fded30a96c247

Step 3 - rebuild the codes

make all
make install

Step 2 - restart daemon and miner.

epik daemon
epik-miner run

Notice

This upgrade is mandatory for all knowledge nodes. Otherwise, old knowledge nodes can't produce blocks to get rewards.