From 8669e1df1c4cd2008204be218054cfbed5b35167 Mon Sep 17 00:00:00 2001 From: PRavaga Date: Fri, 8 Sep 2023 18:01:07 +0400 Subject: [PATCH] mining/staking structure Signed-off-by: PRavaga --- docs/mine/overview.md | 4 +++- docs/mine/solo-mining-guide.md | 6 +++--- docs/{mine => stake}/estimating-pos-earning.md | 10 +++++++--- docs/stake/overview.md | 1 - docs/{mine => stake}/proof-of-stake-mining.md | 12 ++++++++---- docusaurus.config.js | 2 +- src/pages/StartPage/StartPage.jsx | 2 +- 7 files changed, 23 insertions(+), 14 deletions(-) rename docs/{mine => stake}/estimating-pos-earning.md (96%) delete mode 100644 docs/stake/overview.md rename docs/{mine => stake}/proof-of-stake-mining.md (91%) diff --git a/docs/mine/overview.md b/docs/mine/overview.md index 726d31e..f72cde0 100644 --- a/docs/mine/overview.md +++ b/docs/mine/overview.md @@ -1 +1,3 @@ -# Mine overview +# Mining Zano + +### Mining Software diff --git a/docs/mine/solo-mining-guide.md b/docs/mine/solo-mining-guide.md index e97d169..7b19762 100644 --- a/docs/mine/solo-mining-guide.md +++ b/docs/mine/solo-mining-guide.md @@ -1,4 +1,4 @@ -# Solo mining guide +# Solo Mining Guide The Zano daemon features an internal stratum-like server that can serve miner clients via the ethProxy protocol. It works like a very light and simple pool that mines to a single address. @@ -22,7 +22,7 @@ First, install the Zano app, [create](https://docs.zano.org/docs/getting-started In order to mine, Zano must be started with the stratum server activated. Open a `cmd` console window and navigate to the Zano folder (`C:\Program Files\Zano by default`): -```text +```text cd C:\Program Files\Zano ``` @@ -50,4 +50,4 @@ progminer-zano-cuda.exe -P stratum1+tcp://miner@localhost:11555 progminer-zano-cpu.exe -P stratum1+tcp://miner@localhost:11555 ``` -You can use many instances of running mining software (`progminer-zano-*.exe`) with only one instance of the Zano daemon (`zanod`). \ No newline at end of file +You can use many instances of running mining software (`progminer-zano-*.exe`) with only one instance of the Zano daemon (`zanod`). diff --git a/docs/mine/estimating-pos-earning.md b/docs/stake/estimating-pos-earning.md similarity index 96% rename from docs/mine/estimating-pos-earning.md rename to docs/stake/estimating-pos-earning.md index c9fc5ae..c110227 100644 --- a/docs/mine/estimating-pos-earning.md +++ b/docs/stake/estimating-pos-earning.md @@ -1,4 +1,8 @@ -# Estimating PoS earnings +--- +sidebar_position: 2 +--- + +# 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. @@ -6,7 +10,7 @@ First, we need to get the current PoS difficulty, which can be found in the [blo 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 `Coins_in_PoS = PoS_difficulty / 1000000000000 / 288` or: +Now we have an estimation of how many coins participate in PoS mining currently as `Coins_in_PoS = PoS_difficulty / 1000000000000 / 288` or: ![alt coins-in-pos](../../static/img/mine/estimating-pos-earning/coins-in-pos.png "coins-in-pos") @@ -18,4 +22,4 @@ As you may know, the Zano network emits an average of 1 coin each minute with a where `E_daily` 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. \ No newline at end of file +Please keep in mind that all the above is an expectation and can vary heavily. diff --git a/docs/stake/overview.md b/docs/stake/overview.md deleted file mode 100644 index 0461365..0000000 --- a/docs/stake/overview.md +++ /dev/null @@ -1 +0,0 @@ -# Stake overview diff --git a/docs/mine/proof-of-stake-mining.md b/docs/stake/proof-of-stake-mining.md similarity index 91% rename from docs/mine/proof-of-stake-mining.md rename to docs/stake/proof-of-stake-mining.md index b896bb1..046d73c 100644 --- a/docs/mine/proof-of-stake-mining.md +++ b/docs/stake/proof-of-stake-mining.md @@ -1,10 +1,14 @@ -# Proof-of-stake mining +--- +sidebar_position: 1 +--- -Proof-of-stake mining or POS for short is typically implemented such that a random coin owner obtains the right to sign a new block. Zano POS implementation keeps miners in full anonymity and is as simple as a push of a button, literally. +# Proof of Stake Mining + +Proof of stake mining or staking is typically implemented in such way that a random coin owner obtains the right to sign a new block. Zano PoS implementation keeps miners in full anonymity and is as simple as a push of a button, literally. Open Zano app, make sure the blockchain is synchronised and turn on `Staking` switch. -![alt proof-of-stake-mining](../../static/img/mine/proof-of-stake-mining/proof-of-stake-mining.png "proof-of-stake-mining")*
Proof-of-stake mining
* +![alt proof-of-stake-mining](../../static/img/mine/proof-of-stake-mining/proof-of-stake-mining.png "proof-of-stake-mining")_
Proof-of-stake mining
_ You can observe your progress in the `Staking` tab of your staking wallet. The amount of earnings depends on the wallet balance. Note that funds, that participate in proof-of-stake will be locked. When you turn `Staking` off, balance will get unlocked right away. You can switch `Staking` on and off without any limitations. @@ -37,4 +41,4 @@ Here's a real-world example of the command using recommended options (**don't fo ``` ../zano/build/src/simplewallet --wallet-file=zw3b --rpc-bind-port=50005 --do-pos-mining --log-level=0 --log-file=/home/user/zano/wallets/zw3b.log --deaf --pos-mining-reward-address=aZxat4HAWriVQ3enkGcVsrZRdMseAJswG3CSEwTqZS246VsFQ53w26eZstYsu1jWE74Atz9ajLxFnBsVTafncWNH5SMv4zHFaTS -``` \ No newline at end of file +``` diff --git a/docusaurus.config.js b/docusaurus.config.js index 8067efe..e216670 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -101,7 +101,7 @@ const config = { }, { label: "Stake", - to: "/docs/stake/overview", + to: "/docs/stake/proof-of-stake-minging", }, ], }, diff --git a/src/pages/StartPage/StartPage.jsx b/src/pages/StartPage/StartPage.jsx index 92e7f3c..8d77fac 100644 --- a/src/pages/StartPage/StartPage.jsx +++ b/src/pages/StartPage/StartPage.jsx @@ -44,7 +44,7 @@ const content = [ "Venture into Zano's dual earning avenues. Learn how to mine Zano efficiently, ensuring optimal returns and network security.", }, { - link: "docs/stake/overview", + link: "docs/stake/proof-of-stake-mining", linkText: "Staking Guide", content: "Explore the intricacies of staking on the Zano platform. Understand the rewards, risks, and best practices to maximize your stake's potential.",