Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Optimized Mining Location #36

Open
BryceAgent opened this issue Mar 25, 2022 · 0 comments
Open

Optimized Mining Location #36

BryceAgent opened this issue Mar 25, 2022 · 0 comments
Assignees

Comments

@BryceAgent
Copy link
Contributor

Create a function so that the quai-manager will mine in an optimized location automatically. It will do this by every 10 minutes reading the difficulty of the latest verified block in each chain and setting as its mining location whichever chain has the lowest current difficulty. This should lead to miners automatically optimizing by distributing themselves across chains efficiently.

This can be done by adding an argument "optimized" to make run-mine (or else a new makefile command) instead of selecting region and zone locations. When "optimized" is selected, a go func will execute on start up and every 10 minutes from then on to observe the latest block difficulty in each chain, and the fields of orderedBlockClients will be changed accordingly to reflect current mining location.

Switches by the manager from one location to the other should be recorded, either in the log or in a print out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant