Compare commits

..

No commits in common. "76b936b2346a4770082634663c75f8cfd45b3f9a" and "3da324455cd4fcbcfd16dd507578cfd22d71e578" have entirely different histories.

2 changed files with 32 additions and 44 deletions

View File

@ -35,13 +35,13 @@ When block intervals return to normal, it stops mining to conserve system resour
D:/flo/
│
├── floautominer.py # main controller script
├── floautominer.py.py # main controller script
├── config.json # configuration file
├── gpuminer/
├── gpu miner/
│ └── cgminer.exe
│ └── cgminer.conf # optional GPU tuning
└── cpuminer/
└── cpuminer minerd/
└── minerd.exe
```
@ -106,7 +106,7 @@ D:/flo/cpuminer minerd/minerd.exe
Download the following files from this repository:
- [flo_auto_miner.py](https://github.com/ranchimall/floautominer/blob/main/flo_auto_miner.py)
- [gpu_cpu_blockbook_combined.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,9 +127,7 @@ D:/flo/
### config.json
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.
Example configuration (for FLOCard Pool):
```json
{
@ -158,8 +156,6 @@ You can modify the time placeholder values such as (TARGET_BLOCK_INTERVAL, LOWER
"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",
@ -177,32 +173,28 @@ You can modify the time placeholder values such as (TARGET_BLOCK_INTERVAL, LOWER
### 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 |
| `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”) |
| 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”) |
---
@ -231,7 +223,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`, fan speeds, and others in this file as appropriate for your GPU.
* Adjust `gpu-engine`, `gpu-memclock`, and fan speeds as appropriate for your GPU.
---

View File

@ -25,19 +25,15 @@
"STABILITY_REQUIRED_IN_RANGE": 17,
"STABILITY_REQUIRED_PASSES": 3,
"FAST_BLOCK_LIMIT": 20,
"FAST_BLOCK_DURATION": 600,
"GPU_MINER_EXECUTABLE": "<PATH_TO_cgminer.exe>",
"GPU_MINER_CONFIG": "<PATH_TO_cgminer.conf>",
"GPU_MINER_EXECUTABLE": "D:/flo/gpu miner/cgminer.exe",
"GPU_MINER_CONFIG": "D:/flo/gpu miner/cgminer.conf",
"CPU_MINER_EXECUTABLE": "<PATH_TO_minerd.exe>",
"CPU_MINER_EXECUTABLE": "D:/flo/cpuminer minerd/minerd.exe",
"CPU_MINER_THREADS_START": 3,
"MINER_POOL_URL": "stratum+tcp://pool.flocard.app:3052",
"MINER_USER": "<<Your_FLO_Address>>.worker1",
"MINER_USER": "FQ8zdiakBJHx8g4FKfU5o6LRgNwgXTC5RK.worker1",
"MINER_PASS": "x"
}