Swan Miner tool
Project description
Miner Tool Guide
Getting Started
This miner tool listens to the tasks come from Swan platform. It provides the following functions:
- Start arial2 download service for downloading tasks.
- Import deals once download completed.
- Synchronize deal status with Swan platform, so client will know the realtime status changes
Prerequisites
sudo apt install python3-pip
pip3 install -r requirements.txt
sudo apt install aria2
Config
For aria2.conf
- rpc-secret: default: my_aria2_secret. It will be used in the config.toml for rpc.
For config.toml
[main]
- api_url: Swan API address. For Swan production, it is "https://api.filswan.com"
- miner_fid: Your filecoin Miner ID
- expected_sealing_time: The time expected for sealing deals. Deals starting too soon will be rejected.
- import_interval: Importing interval between each deal.
- scan_interval: Time interval to scan all the ongoing deals and update status on Swan platform.
- api_key & access_token: Acquire from Filswan -> "My Profile"->"Developer Settings". You can also check the Guide
[aria2]
- aria2_download_dir: Directory where offline deal files will be downloaded for importing
- aria2_conf: Aria2 configuration file location
- aria2_host: Aria2 server address
- aria2_port: Aria2 server port
- aria2_secret: Must be the same value as rpc-secre in aria2.conf
Run
aria2c --conf-path=./aria2.conf > /dev/null 2>&1
python3 swan_miner.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
filswan_miner-0.1.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file filswan_miner-0.1.tar.gz
.
File metadata
- Download URL: filswan_miner-0.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71af8b64b91b01f2f7e39f1f87ca0ad91a7b71883ceb63d666b4405f19fe5bf |
|
MD5 | 6efc7b16707554b58598bec1cb61903b |
|
BLAKE2b-256 | 84dd0951b76773bd2b21f7e588fdc8f809a667ab27413d6dc71ad15ba95f4bca |
File details
Details for the file filswan_miner-0.1-py3-none-any.whl
.
File metadata
- Download URL: filswan_miner-0.1-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb739add10b25f23cca9e6777f317e41e75d785f4120cf6e9cd174657a8c5bb9 |
|
MD5 | 8d76c94e714164860c39bca6313c0c4b |
|
BLAKE2b-256 | 056a00caba24cecd3c8c9abfb417cc99d5cc152092b5e574f49e9508784b0390 |