You can calculate your current earnings from a local database.
- You need a python (modern Linux systems have it installed already).
- 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
Comments
0 comments
Please sign in to leave a comment.