Compare commits
10 Commits
3da324455c
...
76b936b234
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76b936b234 | ||
|
|
c8485933b9 | ||
|
|
733ce2a63e | ||
|
|
ce4bf2c3d7 | ||
|
|
1161e51ba8 | ||
|
|
69df459867 | ||
|
|
d11e5bcb1f | ||
|
|
63cf4eaca8 | ||
|
|
d23703b936 | ||
|
|
42aebde905 |
64
README.md
64
README.md
@ -35,13 +35,13 @@ When block intervals return to normal, it stops mining to conserve system resour
|
||||
|
||||
D:/flo/
|
||||
│
|
||||
├── floautominer.py.py # main controller script
|
||||
├── floautominer.py # main controller script
|
||||
├── config.json # configuration file
|
||||
|
||||
├── gpu miner/
|
||||
├── gpuminer/
|
||||
│ └── cgminer.exe
|
||||
│ └── cgminer.conf # optional GPU tuning
|
||||
└── cpuminer minerd/
|
||||
└── cpuminer/
|
||||
└── minerd.exe
|
||||
|
||||
```
|
||||
@ -106,7 +106,7 @@ D:/flo/cpuminer minerd/minerd.exe
|
||||
|
||||
Download the following files from this repository:
|
||||
|
||||
- [gpu_cpu_blockbook_combined.py](https://github.com/ranchimall/floautominer/blob/main/flo_auto_miner.py)
|
||||
- [flo_auto_miner.py](https://github.com/ranchimall/floautominer/blob/main/flo_auto_miner.py)
|
||||
- [config.json](https://github.com/ranchimall/floautominer/blob/main/config.json)
|
||||
- [cgminer.conf](https://github.com/ranchimall/floautominer/blob/main/cgminer.conf)
|
||||
|
||||
@ -127,7 +127,9 @@ D:/flo/
|
||||
|
||||
### config.json
|
||||
|
||||
Example configuration (for FLOCard Pool):
|
||||
Example configuration (for FLOCard Pool):
|
||||
**Note: Use the correct path for cgminer.exe, cgminer.conf, and minerd.exe according to your computer directory
|
||||
You can modify the time placeholder values such as (TARGET_BLOCK_INTERVAL, LOWER_INTERVAL, UPPER_INTERVAL, MAX_RUNTIME_MINUTES, COOLDOWN_SECONDS, etc.) for different testing logic but do not change the API values, Miner Pool URL unless you have a different URL with its stratum url.
|
||||
|
||||
```json
|
||||
{
|
||||
@ -156,6 +158,8 @@ Example configuration (for FLOCard Pool):
|
||||
"STABILITY_WINDOW_SIZE": 20,
|
||||
"STABILITY_REQUIRED_IN_RANGE": 17,
|
||||
"STABILITY_REQUIRED_PASSES": 3,
|
||||
"FAST_BLOCK_LIMIT": 20,
|
||||
"FAST_BLOCK_DURATION": 600,
|
||||
|
||||
"GPU_MINER_EXECUTABLE": "D:/flo/gpu miner/cgminer.exe",
|
||||
"GPU_MINER_CONFIG": "D:/flo/gpu miner/cgminer.conf",
|
||||
@ -173,28 +177,32 @@ Example configuration (for FLOCard Pool):
|
||||
|
||||
### Configuration Explanation
|
||||
|
||||
| Key | Description |
|
||||
| -------------------------------------- | ------------------------------------------- |
|
||||
| `BLOCKBOOK_API` | Endpoint for latest FLO block |
|
||||
| `BLOCKBOOK_INDEX_API` | Endpoint for block hash lookup by height |
|
||||
| `BLOCKBOOK_BLOCK_API` | Endpoint for detailed block data |
|
||||
| `TARGET_BLOCK_INTERVAL` | Ideal block interval (seconds) |
|
||||
| `LOWER_INTERVAL` / `UPPER_INTERVAL` | Acceptable timing bounds |
|
||||
| `MAX_RUNTIME_MINUTES` | Stops mining after this time |
|
||||
| `MIN_INTENSITY` / `MAX_INTENSITY` | GPU intensity range |
|
||||
| `NO_BLOCK_TIMEOUT` | Wait time before retrying higher intensity |
|
||||
| `AUTO_APPLY` | Automatically apply new settings |
|
||||
| `COOLDOWN_BLOCKS` / `COOLDOWN_SECONDS` | Cooldown logic between changes |
|
||||
| `STABILITY_WINDOW_SIZE` | Number of blocks in each stability window |
|
||||
| `STABILITY_REQUIRED_IN_RANGE` | Blocks that must be within range per window |
|
||||
| `STABILITY_REQUIRED_PASSES` | Number of consecutive windows required |
|
||||
| `GPU_MINER_EXECUTABLE` | Path to cgminer.exe |
|
||||
| `GPU_MINER_CONFIG` | Path to cgminer.conf |
|
||||
| `CPU_MINER_EXECUTABLE` | Path to minerd.exe |
|
||||
| `CPU_MINER_THREADS_START` | Number of CPU threads to start with |
|
||||
| `MINER_POOL_URL` | FLOCard pool stratum URL |
|
||||
| `MINER_USER` | Your FLO wallet address + worker name |
|
||||
| `MINER_PASS` | Pool password (usually “x”) |
|
||||
|
||||
| Key | Description |
|
||||
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `BLOCKBOOK_API` | Endpoint for latest FLO block |
|
||||
| `BLOCKBOOK_INDEX_API` | Endpoint for block hash lookup by height |
|
||||
| `BLOCKBOOK_BLOCK_API` | Endpoint for detailed block data |
|
||||
| `TARGET_BLOCK_INTERVAL` | Ideal block interval (seconds) |
|
||||
| `LOWER_INTERVAL` / `UPPER_INTERVAL` | Acceptable timing bounds |
|
||||
| `MAX_RUNTIME_MINUTES` | Stops mining after this time |
|
||||
| `MIN_INTENSITY` / `MAX_INTENSITY` | GPU intensity range |
|
||||
| `NO_BLOCK_TIMEOUT` | Wait time before retrying higher intensity |
|
||||
| `FAST_BLOCK_LIMIT` | Maximum number of **consecutive fast blocks** to determine stable state and stop mining |
|
||||
| `FAST_BLOCK_DURATION` | Maximum **continuous time in seconds** to determine stable state and stop mining |
|
||||
| `AUTO_APPLY` | Automatically apply new settings |
|
||||
| `COOLDOWN_BLOCKS` / `COOLDOWN_SECONDS` | Cooldown logic between changes |
|
||||
| `STABILITY_WINDOW_SIZE` | Number of blocks in each stability window |
|
||||
| `STABILITY_REQUIRED_IN_RANGE` | Blocks that must be within range per window |
|
||||
| `STABILITY_REQUIRED_PASSES` | Number of consecutive windows required |
|
||||
| `GPU_MINER_EXECUTABLE` | Path to cgminer.exe |
|
||||
| `GPU_MINER_CONFIG` | Path to cgminer.conf |
|
||||
| `CPU_MINER_EXECUTABLE` | Path to minerd.exe |
|
||||
| `CPU_MINER_THREADS_START` | Number of CPU threads to start with |
|
||||
| `MINER_POOL_URL` | FLOCard pool stratum URL |
|
||||
| `MINER_USER` | Your FLO wallet address + worker name |
|
||||
| `MINER_PASS` | Pool password (usually “x”) |
|
||||
|
||||
|
||||
---
|
||||
|
||||
@ -223,7 +231,7 @@ You can use this sample configuration:
|
||||
|
||||
* These are GPU tuning settings, not pool details.
|
||||
* Pool credentials come from `config.json` (the controller passes them dynamically).
|
||||
* Adjust `gpu-engine`, `gpu-memclock`, and fan speeds as appropriate for your GPU.
|
||||
* Adjust `gpu-engine`, `gpu-memclock`, fan speeds, and others in this file as appropriate for your GPU.
|
||||
|
||||
---
|
||||
|
||||
|
||||
12
config.json
12
config.json
@ -25,15 +25,19 @@
|
||||
"STABILITY_REQUIRED_IN_RANGE": 17,
|
||||
"STABILITY_REQUIRED_PASSES": 3,
|
||||
|
||||
"FAST_BLOCK_LIMIT": 20,
|
||||
"FAST_BLOCK_DURATION": 600,
|
||||
|
||||
"GPU_MINER_EXECUTABLE": "D:/flo/gpu miner/cgminer.exe",
|
||||
"GPU_MINER_CONFIG": "D:/flo/gpu miner/cgminer.conf",
|
||||
"GPU_MINER_EXECUTABLE": "<PATH_TO_cgminer.exe>",
|
||||
"GPU_MINER_CONFIG": "<PATH_TO_cgminer.conf>",
|
||||
|
||||
"CPU_MINER_EXECUTABLE": "D:/flo/cpuminer minerd/minerd.exe",
|
||||
"CPU_MINER_EXECUTABLE": "<PATH_TO_minerd.exe>",
|
||||
"CPU_MINER_THREADS_START": 3,
|
||||
|
||||
"MINER_POOL_URL": "stratum+tcp://pool.flocard.app:3052",
|
||||
"MINER_USER": "FQ8zdiakBJHx8g4FKfU5o6LRgNwgXTC5RK.worker1",
|
||||
"MINER_USER": "<<Your_FLO_Address>>.worker1",
|
||||
"MINER_PASS": "x"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user