tradecraftio / tradecraft

Tradecraft integration/staging tree https://tradecraft.io/download
Other
13 stars 9 forks source link

[Stratum] Support "mining.extranonce.subscribe" method. #71

Closed maaku closed 4 years ago

maaku commented 4 years ago

From the logs on the public pool servers, it appears that some miner's clients rely on the mining.extranonce.subscribe stratum feature, even though its purpose is entirely redundant AFAICT. But whatever, it's simple enough to support.

This commit makes the server accept a mining.extranonce.subscribe command, which makes it send an extra message to that miner informing it, yet again, of the extranonce settings each time work is generated. The extranonce settings DO NOT change from what was returned to the miner when they first connected and sent a mining.subscribe message.