-
Notifications
You must be signed in to change notification settings - Fork 339
Blockchain nodes #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Blockchain nodes #614
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
61c02fb
start to rewrite docs
Full-Hat 504f1bf
Rebase updates from origin
Full-Hat 4f021d1
rewrite node docs
Full-Hat dc8c01e
fix errors
Full-Hat 1a94db2
fix links
Full-Hat 837193e
fix linter errors: add spaces
Full-Hat 738845e
add some tips after node testing
Full-Hat 8c531d2
add comment about mytonctrl2
Full-Hat bbdd14f
add FAQ from mytonctrl rep
gkaravatski 79fb52f
add mytonctrl init paragraph
gkaravatski f909b9a
added mytonctrl articles from appropriate rep
gkaravatski 2be1b6a
refactor mytonctrl help menu
Full-Hat 9a99bbf
Return port forwarding info
Full-Hat 930c6b0
add terminal restarting explanation
Full-Hat db76231
refactor help menu
Full-Hat 978e254
Refactor according requests
Full-Hat f0d4a22
Move images to static folder
Full-Hat 5d764b3
Fix broken images
Full-Hat 745a1ae
Fix according requests
Full-Hat 87d977c
Fix link
Full-Hat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
118 changes: 118 additions & 0 deletions
118
docs/participate/network-maintenance/nominator-pool.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# Nominator Pool | ||
|
||
## Running the Validator in Nominator Pool Mode | ||
|
||
1. Set up the hardware for the validator - you will need 8 vCPUs, 64GB memory, 1TB SSD, a fixed IP address, and 1Gb/s internet speed. | ||
|
||
For maintaining network stability, it's recommended to distribute validator nodes in different geographical locations worldwide rather than concentrating them in a single data center. You can use [this site](https://status.toncenter.com/) to assess the load of various locations. The map indicates high data center utilization in Europe, especially in Finland, Germany, and Paris. Therefore, using providers such as Hetzner and OVH is not recommended. | ||
|
||
> Ensure your hardware matches or exceeds the specifications above. Running the validator on insufficient hardware negatively impacts the network and could result in penalties. | ||
|
||
> Note that as of May 2021, Hetzner has prohibited mining on its servers, and this ban includes both PoW and PoS algorithms. Even installing a regular node may be considered a violation of their terms of service. | ||
|
||
> **Recommended providers include:** [Amazon](https://aws.amazon.com/), [DigitalOcean](https://www.digitalocean.com/), [Linode](https://www.linode.com/), [Alibaba Cloud](https://alibabacloud.com/), [Latitude](https://www.latitude.sh/). | ||
|
||
2. Install and synchronize **mytonctrl** as described in the guide [here](/participate/run-nodes/full-node#how-to-run-a-node-video). | ||
|
||
You can also refer to this [Video Instruction](https://ton.org/docs/#/nodes/run-node) for additional help. | ||
|
||
3. Transfer 1 TON to the validator wallet address shown in the `wl` list. | ||
|
||
4. Use the `aw` command to activate your validator wallet. | ||
|
||
5. Activate pool mode: | ||
|
||
```bash | ||
enable_mode nominator-pool | ||
set stake null | ||
``` | ||
|
||
6. Create two pools (for even and odd validation rounds): | ||
|
||
```bash | ||
new_pool p1 0 1 1000 300000 | ||
new_pool p2 0 1 1001 300000 | ||
``` | ||
|
||
where: | ||
* `p1` is the pool name; | ||
* `0` % is the validator's reward share (e.g., use 40 for 40%); | ||
* `1` is the maximum number of nominators in the pool (should be <= 40); | ||
* `1000` TON is the minimum validator stake (should be >= 1K TON); | ||
* `300000` TON is the minimum nominator stake (should be >= 10K TON); | ||
|
||
> (!) Pool configurations do not have to be identical, you can add 1 to the minimum stake of one pool to make them different. | ||
|
||
> (!) Use https://tonmon.xyz/ to determine the current minimum validator stake. | ||
|
||
7. Type `pools_list` to display pool addresses: | ||
|
||
```bash | ||
pools_list | ||
Name Status Balance Address | ||
p1 empty 0 0f98YhXA9wnr0d5XRXT-I2yH54nyQzn0tuAYC4FunT780qIT | ||
p2 empty 0 0f9qtmnzs2-PumMisKDmv6KNjNfOMDQG70mQdp-BcAhnV5jL | ||
``` | ||
|
||
8. Send 1 TON to each pool and activate the pools: | ||
|
||
```bash | ||
mg validator_wallet_001 0f98YhXA9wnr0d5XRXT-I2yH54nyQzn0tuAYC4FunT780qIT 1 | ||
mg validator_wallet_001 0f9qtmnzs2-PumMisKDmv6KNjNfOMDQG70mQdp-BcAhnV5jL 1 | ||
activate_pool p1 | ||
activate_pool p2 | ||
``` | ||
|
||
9. Type `pools_list` to display pools: | ||
|
||
```bash | ||
pools_list | ||
Name Status Balance Address | ||
p1 active 0.731199733 kf98YhXA9wnr0d5XRXT-I2yH54nyQzn0tuAYC4FunT780v_W | ||
p2 active 0.731199806 kf9qtmnzs2-PumMisKDmv6KNjNfOMDQG70mQdp-BcAhnV8UO | ||
``` | ||
|
||
10. Open each pool via the link "https://tonscan.org/nominator/<address_of_pool>" and verify pool configurations. | ||
|
||
11. Proceed with the validator deposit to each pool: | ||
|
||
```bash | ||
deposit_to_pool validator_wallet_001 <address_of_pool_1> 1005 | ||
deposit_to_pool validator_wallet_001 <address_of_pool_2> 1005 | ||
``` | ||
|
||
In these commands, `1005` TON is the deposit amount. Be aware that 1 TON will be deducted by the pool for processing the deposit. | ||
|
||
12. Proceed with the nominator deposit to each pool: | ||
|
||
Visit the pool link (from **Step 9**) and click **ADD STAKE**. | ||
You can also make a deposit using **mytonctrl**, using the following commands: | ||
|
||
```bash | ||
mg nominator_wallet_001 <address_of_pool_1> 300001 -C d | ||
mg nominator_wallet_001 <address_of_pool_2> 300001 -C d | ||
``` | ||
|
||
> (!) The nominator wallet must be initialized in basechain (workchain 0). | ||
|
||
> (!) Keep in mind that the validator wallet and nominator wallet must be stored separately! The validator wallet should be stored on the server with the validator node to ensure processing of all system transactions. Meanwhile, the nominator wallet should be stored in your cold cryptocurrency wallet. | ||
|
||
> To withdraw a nominator deposit, send a transaction with the comment `w` to the pool address (attach 1 TON to process the transaction). You can also perform this action using **mytonctrl**. | ||
|
||
13. Invite nominators to deposit into your pools. The participation in validation will commence automatically. | ||
|
||
> (!) Ensure that you have at least 200 TON/month in your validator wallet for operation fees. | ||
|
||
## Pool Configuration | ||
|
||
If you're intending to lend to yourself, use `new_pool p1 0 1 1000 300000` (maximum of 1 nominator, 0% validator share). | ||
|
||
If you're creating a pool for numerous nominators, you might use something like this: `new_pool p1 40 40 10000 10000` (maximum of 40 nominators, 40% validator share, minimum participant stakes of 10K TON). | ||
|
||
## Transitioning a Regular Validator to Nominator Pool Mode | ||
|
||
1. Input `set stake 0` to discontinue election participation. | ||
|
||
2. Await the return of both your stakes from the elector. | ||
|
||
3. Proceed with the steps under "Running the Validator in Nominator Pool Mode" from the **4th step** onwards. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Full-Hat marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Validator Node | ||
|
||
:::info | ||
Read about [Full Node](/participate/run-nodes/full-node) before this article | ||
::: | ||
|
||
Full-Hat marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Check that validator mode is enabled using `status_modes` command. If it's not, refer [mytonctrl enable_mode command](https://google.com). | ||
|
||
## View the List of Wallets | ||
|
||
Check out the list of available wallets in the **MyTonCtrl** console using the `wl` command: | ||
|
||
```sh | ||
wl | ||
``` | ||
|
||
During the installation of **mytonctrl**, the **validator_wallet_001** wallet is created: | ||
|
||
 | ||
|
||
|
||
## Activate the Wallets | ||
|
||
1. Send the necessary number of coins to the wallet and activate it. | ||
|
||
Recently (_at the end of 2023_), the approximate figures have been a minimum stake of around __340K TON__ and a maximum of about __1M TON__. | ||
|
||
Check current stakes with [tonscan.com](https://tonscan.com/validation) to understand necessary amount of coins. | ||
|
||
Read more [how maximum and minimum stakes calculated](/participate/network-maintenance/staking-incentives#values-of-stakes-max-effective-stake). | ||
|
||
2. Use the `vas` command to display the history of transfers: | ||
|
||
```sh | ||
vas [wallet name] | ||
``` | ||
|
||
3. Activate the wallet using the `aw` command (`wallet name` is optional, if no arguments provided it will activate all available) | ||
|
||
```sh | ||
aw [wallet name] | ||
``` | ||
|
||
 | ||
|
||
## Your Validator is Now Ready | ||
|
||
**mytoncore** will automatically join the elections. It divides the wallet balance into two parts and uses them as a stake to participate in the elections. You can also manually set the stake size: | ||
|
||
```sh | ||
set stake 50000 | ||
``` | ||
|
||
`set stake 50000` — this sets the stake size to 50k coins. If the bet is accepted and our node becomes a validator, the bet can only be withdrawn in the second election (according to the rules of the electorate). | ||
|
||
 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.