Skip to content

Commit

Permalink
Added clearer instructions on how to use rchash
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahMaizels committed Jan 11, 2024
1 parent f60f649 commit 116ae3d
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions docs/bee/working-with-bee/staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,30 @@ Confirm that `hasSufficientFunds` is `true`, and `isFullySynced` is `true` befor

The `{anchor}` value can be set to any random hexadecimal string, while `{depth}` should be set to the current depth.

To get the current depth, call the `/reservestate` endpoint

Call the endpoint like so:
```bash
sudo curl -sX GET http://localhost:1635/reservestate | jq
```
Copy the `storageRadius` value from the output (this represents the ACTUAL depth for your node, in other words, the depth to which your node is responsible for storing files. The `radius` value is the hypothetical depth your node would be at if every postage batch was fully utilised.)

```bash
{
"radius": 15,
"storageRadius": 10,
"commitment": 128332464128
}
```
sudo curl -X GET http://localhost:1635/rchash/8/aaaa/aaaa | jq

Call the endpoint like so:

```bash
sudo curl -sX GET http://localhost:1635/rchash/10/aaaa/aaaa | jq
```

If the sampler runs successfully, you should see output like this:

```
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 659 100 659 0 0 3 0 0:03:39 0:02:54 0:00:45 161
```bash
{
"Sample": {
"Items": [
Expand Down

0 comments on commit 116ae3d

Please sign in to comment.