Skip to content

Commit 19b8be3

Browse files
authored
Merge pull request #759 from ethersphere/quickfix-11-19-2025
correction
2 parents cc2dce4 + 97f1e40 commit 19b8be3

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

docs/bee/working-with-bee/staking.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -325,31 +325,7 @@ curl -s http://localhost:1633/status | jq
325325
```
326326

327327
We can see that the `pullsyncRate` value is above zero, meaning that our node is currently syncing chunks, as expected.
328-
329-
### Reserve Doubling Reversing & Withdrawable Stake
330-
331-
Due to certain [implementation details](https://github.com/ethersphere/storage-incentives/blob/20bf3c0e3fcf1e98dedcbf16cd82fb4d337fdaf7/src/Staking.sol#L136), the order in which a node's reserve is doubled and then reversed can have an impact on the amount of withdrawable stake.
332-
333-
When doubling a node's reserve, stake should be added AFTER
334-
setting `reserve-capacity-doubling` to 1. If instead, xBZZ is first staked with `reserve-capacity-doubling` set to 0, and the reserve is then doubled by increasing from 0 to 1 without the addition of more stake, this will prevent stake from being withdrawable when the doubling is reversed.
335-
336-
In order to maximize the amount of withdrawable stake after reversing a reserve doubling, follow the step from the previous section in the exact order described when doubling.
337-
338-
#### How to free up withdrawable stake from a node with >= 20 xBZZ stake that currently has zero withdrawable stake:
339-
340-
In the case that a node with 20 xBZZ stake was doubled directly by increasing `reserve-capacity-doubling` from 0 to 1, the surplus xBZZ over the minimum required 10 xBZZ cannot be made withdrawable by simply reversing the `reserve-capacity-doubling` from 1 back to 0.
341-
342-
In this case, you will need to first send a minimal staking transaction of 1 PLUR while `reserve-capacity-doubling` is set to 1, and after that, change `reserve-capacity-doubling` from 1 to 0. This works because every time any amount of stake is added, it forces to staking contract to redo its calculations.
343-
344-
The detailed steps are:
345-
346-
1. Issue a staking transaction for 1 PLUR while `reserve-capacity-doubling` is set to 1.
347-
```bash
348-
curl -X POST localhost:1633/stake/1
349-
```
350-
2. Stop node and set `reserve-capacity-doubling` to 0.
351-
3. Restart node. The 10 xBZZ should now be withdrawable.
352-
328+
353329
## Maximize rewards
354330

355331
There are two main factors which determine the chances for a staking node to win a reward — neighborhood selection and stake density. Both of these should be considered together before starting up a Bee node for the first time. See the [incentives page](/docs/concepts/incentives/redistribution-game) for more context.

0 commit comments

Comments
 (0)