This application claims the priority benefit of Chinese Application Serial No. 201811346127.3, filed on Nov. 13, 2018. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of specification.
The disclosure relates to a digital currency.
A lot of professional technologies and knowledge are needed for mining task. A mining program is executed by joining or allocating varies mining pools according to different currencies, and registering to corresponding digital currency wallet services, which are complicated processes.
Besides, lots of computer resources are consumed while mining, and a computer commonly cannot execute other tasks when mining work is performed simultaneously.
The disclosure provides a digital currency mining device, including a processing module and a resource allocation module. The processing module provides a resource to execute at least one mining task and at least one display task. The resource allocation module is electrically connected with the processing module, confirms whether the processing module includes one display task in execution or not, and adjusts the resource provided by the processing module for the mining task according to the display task in execution.
The disclosure also provides a digital currency mining management method adapted to manage a processing module. The processing module provides a resource to execute at least one mining task and at least one display task. The digital currency mining management method includes following steps: confirming whether the processing module includes one display task in execution or not; and when the processing module includes the display task in execution, adjusting the resource provided by the processing module for the mining task according to the display task in execution.
The digital currency mining device and the digital currency mining management method disclosed by the disclosure adjust a mining hash rate provided by the processing module, which ensures a normal operating of the display task. The disclosure provides here also simplifying a registration program when a user performs mining, thus lowers the threshold for users to participate in mining.
Specific embodiments of the disclosure will be further described by using the following examples and drawings.
Specific embodiments of the disclosure will be described in further detail below with reference to schematic drawings. The advantages and features of the disclosure will become more apparent from the following description and claims. It should be noted that the drawings are all in a very simplified form and are not drawn to accurate scale, but are merely used for convenience and clarity of description of the embodiments of the disclosure.
The processing module 120 provides a resource to execute at least one mining task and at least one display task. The display tasks include image display of 3D games, playing of audio and video files, and the like. In one embodiment, the processing module 120 is a processor, such as a central processing unit (CPU), a graphic processing unit (GPU), and an application specific integrated circuit (ASIC) processor. In some other embodiments, the processing module 120 is a display card.
The resource allocation module 140 is used for confirming whether the processing module 120 includes one display task in execution or not, and adjusting the resource provided by the processing module 120 for the mining task according to the display task in execution.
In one embodiment, when the display task in execution is a 3D game, the resource allocation module 140 immediately requests the processing module 120 to stop providing the resource for the mining task. In one embodiment, when the resource allocation module 140 confirms that the processing module 120 includes the display task in execution, the resource allocation module 140 preferentially provides the resource of the processing module 120 for the display task in execution.
Besides, in one embodiment, when the resource allocation module 140 detects environmental factors, such as network off line and network instability, affecting mining efficiency through the network communication module 160, the resource allocation module 140 immediately requests the processing module to decrease or stop the resource provided for the mining task.
The network communication module 160 connects with at least one mining pool (two mining pools P1 and P2 are showed in the figure as an example). The automatic registration module 180 is automatically connected to the mining pools P1 and P2 to perform registration through the network communication module 160 according to registration data, such as an account number, a telephone number and a miner name, of a user. When the registration is completed, the automatic registration module 160 automatically executes the corresponding mining task in the mining pool which successfully registrated.
A mining task commonly needs to allocate excavated digital currency to a compatible wallet. In one embodiment, the automatic registration module 180 is automatically connected to at least one wallet service (there are two wallet services W1 and W2 showed in the figure as an example) to register according to the registration data of the user so as to obtain a wallet address.
In one embodiment, the automatic registration module 180 dynamically updates wallet information, and automatically registers all wallets relevant to the digital currency after the user registers the mining pool. After obtaining the wallet address, the automatic registration module 180 is connected to the mining pool to register in cooperation with the above-mentioned registration data of the user by utilizing data of the wallet address.
The display module 190 provides a login interface and an integrated viewing interface for the user to log in and view the mining progress.
As shown in
As shown in
Firstly, as said in step S102, a resource allocation module 140 is used for confirming whether one mining task in execution exists or not.
When a judgment result of step S102 is yes, the process goes forwards to step S104. In step S104, the resource allocation module 140 is used for confirming whether one display task in execution exists or not. When the judgment result of step S102 is not, the process goes forwards to step S108, and the resource allocation module 140 does not intervene with adjusting resource allocation of the processing module 120.
When a judgment result of step S104 is yes, the process goes forwards to step S106. In step S106, the resource allocation module 140 is used for adjusting the resource provided by the processing module 120 for the mining task according to the display task in execution. When the judgment result of step S104 is not, the process goes forwards to step S108, and the resource allocation module 140 does not intervene with adjusting resource allocation of the processing module 120.
In an embodiment of step S106, when it is confirmed that the processing module 120 includes the display task in execution, the resource of the processing module 120 is preferentially provided for the display task. In one embodiment of step S106, when the display task in execution of the processing module 120 is a 3D game, it immediately stops providing the resource of the processing module 120 for the mining task.
Compared with a traditional complex mining registration program, the digital currency mining device and the digital currency mining management method provided by the disclosure adjust a mining hash rate provided by the processing module, guarantee normal operating of the display task, and simplify a registration program when the user performs mining, so that a threshold for the user to participate in mining is lowered.
Although the disclosure has been described with reference to the above embodiments, the embodiments are not intended to limit the disclosure. A person of ordinary skill in the art may make variations and improvements without departing from the spirit and scope of the disclosure. Therefore, the protection scope of the disclosure should be subject to the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201811346127.3 | Nov 2018 | CN | national |