Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
far-far-away committed Jul 23, 2020
1 parent 36602e0 commit b1d6243
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
4 changes: 3 additions & 1 deletion pchaindoc/source/FAQ/node.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ If you wanna migrate your pchain to another computer, just install pchain on you
------------------------------------------------------------------------
10. How to check if my node running correctly after setting up the node?
------------------------------------------------------------------------
First, check if you are running the latest version, you can find the latest verison from our github. Then make sure the peers connected to your node is more than 2/3 validator number by RPC. And also check if you are syncing to the latest height, you can check the latest height on our Monitor.
First, check if you are running the latest version, you can find the latest verison from our github.
Then make sure the peers connected to your node is more than 2/3 validator number by RPC.
And also check if you are syncing to the latest height, you can check the latest height on our Monitor.

-------------------------------------------------------------
11. How to check your node status when running on PCHAIN?
Expand Down
4 changes: 3 additions & 1 deletion pchaindoc/source/pchainclient/createchildchain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Here is an example of priv_validator.json which stores your address and consensu
]
}

Notice: Dont create different child chain with same address.
Notice: Dont create different child chain with same address. You can find this priv_validator.json file in the datadir/.pchain/pchain directory.

>>>>>>>>>>>>>>>>>>
create child chain
Expand All @@ -41,6 +41,8 @@ You can set parameter startBlock very small and set parameter endBlock very big

Note: This is only the first step, you need to finish the second step or the chain wont start.



>>>>>>>>>>>>>>>>
Join Child Chain
>>>>>>>>>>>>>>>>
Expand Down
4 changes: 3 additions & 1 deletion pchaindoc/source/wallet/LightWallet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Pchain have 12 epochs per year, and in each epoch there are 4 phases.
.. image:: ../_static/wallet/delegate0.png

2. Please make sure which chain and Candidate you want to delegate to. Then Click “Join”.
3. Fill in the delegate amount with at least 1,000 PI.
3. Fill in the delegate amount with at least 1,000 PI. Ensure there is at least 0.00021 PI left in your balance for paying the gas fee.
The invite code is optional here, it’s designed for some programmes (not released now).

.. image:: ../_static/wallet/delegate1.png
Expand Down Expand Up @@ -101,6 +101,8 @@ You can cancel delegation before the current Epoch reaches 75%.
| Choose the candidate that your want to cancel delegation to from the list. The default amount shows the total amount that you delegate to this address.
| You can cancel with total delegation amount. Also, you can define the amount that you want to decrease but ensure the delegate balance to this address is equal or greater than 1,000 PI.
Noted: In general, the gas fee is about 0.00021 PI which will be directly paid from your balance.


=================================================
How to extract mining rewards from rewardBalance
Expand Down
12 changes: 8 additions & 4 deletions pchaindoc/source/wallet/localnode/Candidate.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
.. _Wallet Candidate:

======================================
How to apply for a Validator Candidate
How to apply for a Candidate Node
======================================

Before you vote to become validator by PIWallet, make sure you have done things bellow:

- :ref:`set up the RPC URL <Local Node Mode>`
- have at least 10k PI on your address
- have at least 10k PI on your address for applying the candidate node
- In general, the gas fee is about 0.00021 PI which will be directly paid from your balance.


First, unlock your account. (Please do not keep your account unlock for long time, we recommand set the 'unlockDuration' to 300. If you set it to 0, your account will unlock forever unless you lock it manually)

.. image:: ../../_static/wallet/localnode/unlock.png

Click ‘Candidate--Apply Candidate’ and fill your deposit amount with at least 10,000 PI and your expected commission(% profit sharing expected from being a Validator). Then click ‘Apply’.
Click ‘Candidate--Apply Candidate’ and fill your deposit amount with at least 10,000 PI and your expected commission(% profit sharing expected from being a Validator). Then click ‘Apply’. Noted: before "apply", ensure there is at least **** PI left in your address balance for paying the gas fee.

.. image:: ../../_static/wallet/localnode/apply1.png

Expand Down Expand Up @@ -46,10 +48,12 @@ How to cancel Candidate
========================

Once you apply candidate successfully, you can cancel it via calling for RPC or PCHAIN wallet before the Epoch reaches 75%.

1) Canceling your submission after selected to be Validator: your staked PI will be unlocked and all the delegated tokens you received will be automatically returned to each delegator.once the Epoch reaches 100% height.
2) Canceling your submission after you failed being elected Validator: the cancelation will be effective immediately since there are no Validator duties to be completed, your staked PI will be unlocked, and all the delegated tokens you received automatically returned to each delegator balance.

2) Canceling your submission after you failed being elected Validator: the cancelation will be effective immediately since there are no Validator duties to be completed, your staked PI will be unlocked, and all the delegated tokens you received automatically returned to each delegator balance.

Noted: In general, the gas fee is about 0.00021 PI which will be directly paid from your balance.

You can cancel Candidate via PIwallet (Local node )or `call for RPC <https://github.com/pchain-org/pchain/wiki/How-to-Become-a-Candidate>`_ before starting voting for next Epoch Validator.

Expand Down
7 changes: 4 additions & 3 deletions pchaindoc/source/wallet/localnode/Epoch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ How to become validator
Before you vote to become validator by PIWallet, make sure you have done things bellow:

- :ref:`set up the RPC URL <Local Node Mode>`
- have at least 100k PI on your address
- have at least 100k PI, which means "balance + total_depositProxiedBalance + total_proxiedBalance - total_pendingRefundBalance" > = 100K PI.
- In general, the gas fee is about 0.00021 PI which will be directly paid from your balance.

You can choose to apply candidates first so you can let other delegate to you. This is an option, not neccessity.

Expand Down Expand Up @@ -64,7 +65,7 @@ Click the ‘Epoch--Vote Next Epoch’ and fill the information.
| Amount: the amount(PI) you wanna deposit(must equal or larger than (total_depositProxiedBalance + total_proxiedBalance - total_pendingRefundBalance.)
| Salt: can be whatever you want
If you vote successfully, the wallet will return a transaction hash. **Please remember all parameters you set, which will be used in revealing vote process**
If you vote successfully, the wallet will return a transaction hash. You may cost 0.00021 PI for the gas fee from your balance. **Please remember all parameters you set, which will be used in revealing vote process**

.. image:: ../../_static/wallet/localnode/votehash.png

Expand All @@ -78,6 +79,6 @@ Click the ‘Epoch--Reveal Vote’ and fill the information
| From, PubKey, Amount and Salt must be the same with the value you set on vote.
| BLS Private Key: bls private key included in priv_validator.json
If you vote successfully, the wallet will return a transaction hash.
If you vote successfully, the wallet will return a transaction hash. You may cost 0.00021 PI for the gas fee from your balance.

.. image:: ../../_static/wallet/localnode/revealhash.png

0 comments on commit b1d6243

Please sign in to comment.