You can calculate your current earnings from a local database.
Actually you have two options. The first one - you can see the current month estimation right on the web-dashboard (docker version, Windows GUI version), the second one - is to use the script and calculate on your own.
We will describe how to calculate the current earnings with estimation using the script. It allows you to compare calculations from the satellite side (for past months) with calculations based on your local databases. There could be a difference, if it's significant, then your node has problems with sending orders.
Calculate the current earnings for v3 with a script
- You need a python (modern Linux systems have it installed already, on Windows you can install it from the Microsoft Store).
- Save this script, naming it earnings.py
- Stop the storagenode
- docker version
docker stop -t 300 storagenode
- Windows version (from the elevated Powershell)
Stop-Service storagenode
- docker version
- Run the script from the data folder. Note that it would be preferable to stop the storagenode and copy the
*.db
files contained in the data folder to a different place, start the storagenode back and run this script from that different place to avoid a sharing violation or database corruption due to parallel access of the files or alternately, just stop the storagenode before processing.python earnings.py
- either specify the path to the data folder as an argument:
python earnings.py /path/to/data
- or specify the path to the data folder and month:
python earnings.py /path/to/storj/data 2019-05
- either specify the path to the data folder as an argument:
- Start your storagenode again
- docker version
docker start storagenode
- Windows version (from the elevated Powershell)
Start-Service storagenode
- docker version
Note. On Linux, if you usually run your docker
commands with sudo
, then you should run this script also with sudo
.
All credits for the script should go to the author: https://github.com/ReneSmeekes/storj_earnings
See the Earnings calculator thread on the forum.
Comments
0 comments
Please sign in to leave a comment.