mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
feat: maj TODO algo and NOTES Algo
This commit is contained in:
parent
e3d68bc36b
commit
2499953725
2 changed files with 28 additions and 0 deletions
|
@ -52,7 +52,25 @@ So 1kH/s is given to XvB node so that the miner participate in the Donor round.
|
|||
|
||||
**Hero mode**: 4 minutes are given to p2pool and 5 for XvB.
|
||||
|
||||
## Technical Implementation
|
||||
|
||||
### Knowing if a share is in PW
|
||||
|
||||
P2pool node (PN) local API show only found shares and not current. It is not also showing the current height block of p2pool.
|
||||
Gupaxx process will check every minute when a new share is found, and how much time passed since the last. While verifying if mining on mini or main chain, it will calculate if the last share found is still valid.
|
||||
This way Gupaxx will know if a share is currently in the window.
|
||||
This method is only an estimation, a better way would be to know at which block the share is found and which block height the network is currently at. But P2pool API doesn't offer these informations by API but by command.
|
||||
|
||||
### Knowing the HR generated by Gupaxx
|
||||
|
||||
Gupaxx will simply watch the values retrieved by Xmrig process.
|
||||
|
||||
### Switching HR from p2pool node to XvB node
|
||||
|
||||
The mHR is calculated depending on the sidechain the p2pool is mining on.
|
||||
The XvB process will check every ten minutes the last 15 minutes average HR and decide when to switch (in seconds) for the ten next minutes. (first p2pool then XvB).
|
||||
*Need to see the time for Xmrig takes to set the new settings by API.*
|
||||
When the time to switch arrives, XvB process will send a request to Xmrig to change the node used.
|
||||
|
||||
[^1]: https://p2pool.io/mini/api/pool/stats
|
||||
[^2]: https://github.com/SChernykh/p2pool?tab=readme-ov-file#how-payouts-work-in-p2pool
|
||||
|
|
|
@ -24,6 +24,16 @@
|
|||
- [x] stop, start, restart buttons
|
||||
- [x] button to autostart
|
||||
- [ ] distribute hashrate conforming to the algorithm.
|
||||
- [x] check every 10 minutes average Xmrig HR of last 15 minutes
|
||||
- [ ] ask Xmrig to mine on p2pool
|
||||
- [ ] generate token for xmrig
|
||||
- [ ] enable xmrig with remote access control
|
||||
- [x] check if at least a share in pplns Window
|
||||
- [ ] calculate spared HR
|
||||
- [ ] calculate time to be spared
|
||||
- [ ] with hero option
|
||||
- [ ] without hero option, to give minimum to be in most accessible round type
|
||||
- [ ] sleep 10mn less time to spare then ask Xmrig to mine on XvB node
|
||||
- [x] output log to console in XvB tab
|
||||
- [ ] edit metadata of project
|
||||
- [ ] cargo package metadata
|
||||
|
|
Loading…
Reference in a new issue