diff --git a/docs/stake/estimating-pos-earning.md b/docs/stake/estimating-pos-earning.md deleted file mode 100644 index 248b8ab..0000000 --- a/docs/stake/estimating-pos-earning.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -sidebar_position: 3 ---- - -# Estimating Rewards - -Proof-of-stake earnings depend on current PoS difficulty and the number of coins you have locked for staking. The more coins you stake, the better chance you have to “win” the right to sign the next PoS block. Of course, it’s important to estimate your chances and predict how much you can earn in some way. Here is the most straightforward way to do so. - -First, we need to get the current PoS difficulty, which can be found in the [block explorer](https://explorer.zano.org/). This value is then divided by $1000000000000 = 10^{12}$, which in the Zano network is one coin basis. - -Second, we again divide it by 288. This operation lets us take the PoS mining timestamp frame into account. Without further details, this factor provides hash variety in PoS mining and can be somewhere between 256 and 320. It’s reasonable to use the value of 288 here. - -Now we have an estimation of how many coins participate in PoS mining currently as: - -$$ -C = D_{PoS} \thinspace / \thinspace 288 \thinspace / \thinspace 10^{12} = D_{PoS} \cdot 2.88 \cdot 10^{-14} -$$ - -where $C$ is the total amount of coins participating in PoS mining, and $D_{PoS} \thinspace$ is the current PoS difficulty. - -As you may know, the Zano network emits an average of 1 coin each minute with a 50-50 spread between PoS and PoW. That makes it 720 potential PoS reward coins per day. So if you owned all the coins in PoS, that could be your total day earnings. And if you divide $C$ by 720, you will get the number of coins you need to mine 1 Zano coin a day. Now, you can estimate the number of coins you will earn as: - -$$ -E_{daily} = \frac{720 \cdot N}{C} \approx \frac{2.07 \cdot 10^{17} \cdot N}{D_{PoS}} -$$ - -where $\thinspace E_{daily} \thinspace$ is the estimated number of coins you'll earn per day, and $N$ is the number of coins you're staking. - -Please keep in mind that all the above is an expectation and can vary heavily. diff --git a/docs/stake/remote-server-pos.md b/docs/stake/remote-server-pos.md index 9437d44..2d4cb78 100644 --- a/docs/stake/remote-server-pos.md +++ b/docs/stake/remote-server-pos.md @@ -1,34 +1,42 @@ --- -sidebar_position: 2 +sidebar_position: 3 --- -# Server/Console mode POS mining +# Server/Console mode Staking + +In certain situations, performing Staking/PoS mining without the GUI application may be necessary. The following steps provide guidance on how to accomplish this: -In certain situations, performing PoS mining without the GUI application may be necessary. The following steps provide guidance on how to accomplish this: 1. Download [Zano daemon (zanod executable)](https://zano.org/downloads) and simplewallet or build them following the [instructions](https://docs.zano.org/docs/build/building-from-sources). 2. Ensure that no other instance of Zano is running at the moment; close it if necessary. 3. Navigate to the Zano folder. 4. For the next steps, you will need to launch two processes (node and wallet) and keep them running. The method differs based on your operating system. For desktop OS such as MacOS, Windows, or Ubuntu Desktop, launch a terminal window instance for both the node and wallet, and leave it running. In this case, **you can skip this step and proceed with the subsequent steps.** If you're connecting to a remote server or using a Unix-like system or MacOS, consider using virtual session managers like the screen command. Here's an example of creating a new virtual console with it: + ``` screen -S session_name ``` -Learn more about using **screen** [here](https://www.gnu.org/software/screen/manual/screen.html). -6. Next, start the node daemon **zanod** with the following console command: + +Learn more about using **screen** [here](https://www.gnu.org/software/screen/manual/screen.html).\ +6\. Next, start the node daemon **zanod** with the following console command: + ``` zano_install_path\zanod ``` + NOTE: For MacOS bundle binary (both zanod and simplewallet) located in /Applications/**Zano.app/Contents/MacOS/** folder, ensure you use the correct path to launch the binary. -It's better to wait until the daemon is synchronized. You'll know this has happened when you see the following string in the console output: -: +It's better to wait until the daemon is synchronized. You'll know this has happened when you see the following string in the console output: : + ``` Synchronized set to TRUE ``` -8. Start simplewallet with PoS mining enabled: + +1. Start simplewallet with PoS mining enabled: + ``` ./simplewallet --wallet-file=PATH_TO_WALLET_FILE --rpc-bind-port=RPC_PORT_NUMBER --do-pos-mining --deaf ``` -NOTE: RPC_PORT_NUMBER should be any port number not in use by your system. It will be used by the RPC server. The --deaf option puts the server in a mode where no other programs can perform any RPC requests to the wallet service, which is recommended for security concerns. + +NOTE: RPC\_PORT\_NUMBER should be any port number not in use by your system. It will be used by the RPC server. The --deaf option puts the server in a mode where no other programs can perform any RPC requests to the wallet service, which is recommended for security concerns. Some of the parameters are required, and some are optional. Here's what they mean: @@ -38,7 +46,7 @@ Some of the parameters are required, and some are optional. Here's what they mea - `--log-level=LOG_LEVEL` (optional) — sets the log level, possible values are from 0 (less verbose) to 4 (extremely verbose). May be useful for debugging. Default is 0; - `--log-file=PATH_TO_LOG` (optional) — sets path to the log file. Default is 'simplewallet.log' in the same folder where simplewallet binary is located; - `--deaf` (optional) — turns on so called 'deaf mode'. simplewallet's RPC server will reject any requests with error 500. This is useful if you just want to mine PoS and don't want that anyone would be able to do RPCs on your wallet. **Highly recommend**. Default: off; -- `--pos-mining-reward-address=REWARD_ADDR` (optional) — sets an explicit address for receiving mining rewards. By default, all rewards will be received by the same wallet where staking coins are, so its balance will be gradually increasing. If you use this option, staking coins will be kept in the main wallet (specified by--wallet-file parameter), and mining rewards will be sent to the specified REWARD_ADDR. In such a case, the balance of the main wallet won't be changing due to the mining process. +- `--pos-mining-reward-address=REWARD_ADDR` (optional) — sets an explicit address for receiving mining rewards. By default, all rewards will be received by the same wallet where staking coins are, so its balance will be gradually increasing. If you use this option, staking coins will be kept in the main wallet (specified by--wallet-file parameter), and mining rewards will be sent to the specified REWARD\_ADDR. In such a case, the balance of the main wallet won't be changing due to the mining process. Here's a real-world example of the command using recommended options (**don't forget to tailor it to your needs**): diff --git a/docs/stake/stake-zano-on-boot.mdx b/docs/stake/stake-zano-on-boot.mdx index a033d68..4471a96 100644 --- a/docs/stake/stake-zano-on-boot.mdx +++ b/docs/stake/stake-zano-on-boot.mdx @@ -1,3 +1,7 @@ +--- +sidebar_position: 2 +--- + # Guide: Stake Zano automatically on system startup ## Introduction