There are several mining pool servers.
Each server polls monerod for a new job.
I want to generate a unique job on each server for all the workers of my distributed pool.
It is very important to note that I want to generate unique among all my servers.
What is the simplest to do this?
Would it be the simplest way to use an algorithm similar to this algorithm from the sources of mining pool implementation? (and the question of uniqueness interests me the most)
- Generate a server ID (4 bytes).
- Use extra nonce integer (4 bytes).
- And put this (1, 2) as extra data of miner’s transaction.
- Regenerate hashing blob by using parse_and_validate_block_from_blob and get_block_hashing_blob functions.