Pool design and implementation of open source backup ore miners - abstract, difficult to read

Pool design and implementation of open source backup ore miners

Paper implements the open source backup ore miner based kernel pool of spare mine own pool function, it could be from a specific kernel implementation spare mineral pool.

Design and implementation of functional spare mine pool fully reflects why the open source miners have over 10 million lines of code.

Mine standby pool in two ways:

Kind of like Claymore Claymore specified by writing a file implementation;

Kind of like more reasonable NBMiner line parameters achieved through a normal command, -o main pool -o1 ore mine is standby pool;

These two different external systems but different ways of transmitting information to the kernel within the system, claymore way to transmit information through file very easy for direct use claymore but like the original open source miner third-party programs such it led to the introduction in addition to the command line the second outer input parameter data to the kernel mode.

Hard-coded full-featured programming language that can be achieved in specific spare Claymore mine pools, but open source miners wanted to GM, I want to once and for all like Claymore kernel, which requires abstract pattern in which write more much code, but if mastered the rules will find open source miners Code 10 million lines as 10,000 lines, because all places are the same.

Class file for the kernel writer Claymore

In order to write the kernel file backup mineral pool, we need to file a writer, such as the corresponding Claymore kernel configuration file references a writer, file writer needs to know which position to write and what to write.

Writing to what position

File writer to write small series given position (small series as an external system to the open-source miners only way to enter information system is open source miners start downloading from the cloud Ali server.json, this will occur at the interface server.json refresh update user activity is detected), this position should be written to a relative position, the then obtained context information to calculate the final position should be a complete run-time.

Write what

Xiao Bian writing specified content, but the content specified in small series have variables that need to assign the current context information before writing. In Claymore example, small series would be given content POOL: {pool1}, WALLET: {wallet1} / {worker1}, PSW: x, ESM: 0, ALLPOOLS: 0 such content, inside the braces are is a variable, the file before writing to fill these variables need to run, the location of any of a large parentheses from the environment can not be said that the value does not match (like computer language function calls and function signatures do not match), It does not match the writing will be ignored. Sound familiar? What documents writer like? It is not like a function? Writing to what position and what is written into its parameters, and the contents written in there as the braces are such things {pool1}, {pool1} This function is used in the body of parent scope the variables for the open-source miner is it still a pure function because it only reads the value of a variable from the context and are not written for the open-source miners for this function has no output because it is output to an external file system to go .

This design can support purse address and username and password in the form of alternate forms of mineral pool, only two associated file written to the kernel records, there is a writer {wallet1} such variables results in it only in a context when performing purse address, there is another writer {userName1} variable will cause it to perform a user name in the context. It is worth noting {wallet1}, {userName1} though, and {wallet}, {userName} different, {wallet1} and the value of {wallet} same as {wallet1} directly just {wallet} alias, and {userName1} and {userName} likely to be different, since the username and password in the form of mineral spare pool will have a corresponding input box {userName1} at the interface.

Mineral-based backup pool NBMiner Similarly, but does not require the file writer.

When we say open source miner is a complete system we mean within it has more than enough and the external environment mapping information, a complete system can be energy-saving variable and efficient response to the environment by adjusting their internal spatial arrangement and behavior so let longer life cycle.

Guess you like

Origin www.cnblogs.com/ntminer/p/10992902.html
Recommended