CN110046035B - System switching method and device and electronic equipment - Google Patents

System switching method and device and electronic equipment Download PDF

Info

Publication number
CN110046035B
CN110046035B CN201810037107.1A CN201810037107A CN110046035B CN 110046035 B CN110046035 B CN 110046035B CN 201810037107 A CN201810037107 A CN 201810037107A CN 110046035 B CN110046035 B CN 110046035B
Authority
CN
China
Prior art keywords
mine
pool
ore
data
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810037107.1A
Other languages
Chinese (zh)
Other versions
CN110046035A (en
Inventor
洪森
徐凌超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Mining Technology Co ltd
Original Assignee
Ant Mining Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ant Mining Technology Co ltd filed Critical Ant Mining Technology Co ltd
Priority to CN201810037107.1A priority Critical patent/CN110046035B/en
Publication of CN110046035A publication Critical patent/CN110046035A/en
Application granted granted Critical
Publication of CN110046035B publication Critical patent/CN110046035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The invention relates to a system switching method, a system switching device and electronic equipment, and belongs to the technical field of information processing. The method comprises the following steps: obtaining pool data for at least one pool system; generating a system score for the at least one mine system from the mine data for the at least one mine system; determining a pool system to be switched based on a system score sorting result of at least one pool system; and determining an appointed ore pool system to which the first ore node is currently accessed, and switching the first ore node to the ore pool system to be switched if the ore pool system to be switched and the appointed ore pool system are not the same ore pool system. According to the mine system switching method and the mine system switching system, the mine system to be switched is determined by acquiring the mine pool data, generating the system score and switching the first mine node to the mine system to be switched, so that the agent node can automatically evaluate the mine system and switch the mine pool, the situation that a user manually switches the mine system is avoided, the switching process of the mine system is simplified, a large amount of manpower is saved, and the intelligence is better.

Description

System switching method and device and electronic equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a system switching method and apparatus, and an electronic device.
Background
With the continuous development of information technology, the blockchain is greatly developed as a new technology. The block chain technology is a bit coin technology appearing in 2008, and is a bottom layer technology of the bit coin. The block chain refers to a string of blocks generated by using a cryptographic method, and the block data in each block in the block chain is associated with the block data in the last block. In the data sharing system applying the block chain technology, an ore machine node for generating the block in the block chain exists, and the ore machine node is connected to an ore machine system in the data sharing system, so that the ore machine system sends virtual money earned by the ore machine node in the block generating process to the ore machine node. Along with the vigorous development of virtual currency, more and more mine systems can be selected by the mine nodes, the profitability, the stability and the safety of each mine system are greatly different, when the mine nodes are connected into a certain mine system to work, if the fact that the profitability, the stability and the safety of another mine system are higher than those of the currently connected mine system is detected, the mine nodes can be switched to the other mine system from the currently connected mine system.
In the related art, when a mine system is switched from a currently connected mine system to another mine system, a user of the mine system needs to stop the current work of the mine system, select the mine system to be switched, and manually switch the mine system from the currently connected mine system to the mine system to be switched.
In the process of implementing the invention, the inventor finds that the related art has at least the following problems:
when an ore deposit node is switched to another ore deposit pond system from one ore deposit pond system at every time, a user is required to compare the ore deposit pond system which is accessed to the ore deposit node currently with other ore deposit pond systems, the ore deposit pond system which is better than the ore deposit pond system accessed to the current is selected, and the user is required to manually switch the ore deposit node from one ore deposit pond system to another ore deposit pond system, so that the process of switching the ore deposit pond systems is complicated, a large amount of manpower is wasted, and the intelligence is poor.
Disclosure of Invention
In order to solve the problems of complicated process of switching the mine system, great labor waste and poor intelligence in the prior art, the invention provides a system switching method, a system switching device and electronic equipment.
According to a first aspect of embodiments of the present invention, there is provided a system switching method for use with a broker node connected to at least one ore machine node and to at least one ore system, the first ore machine node being any one of the at least one ore machine node, the method comprising:
obtaining mine pool data of at least one mine pool system, wherein the mine pool data at least comprises income data, safety data and stable data;
generating a system score for the at least one mine system from the mine data for the at least one mine system;
determining a pool system to be switched based on the system fraction sequencing result of at least one pool system, wherein the system fraction of the pool system to be switched is greater than the system fractions of other pool systems;
determining an appointed ore pool system to which a first ore node is currently accessed, and judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system or not;
and if the system of the ore mine to be switched and the designated ore mine system are not the same system of the ore mine, switching the first ore mine node to the system of the ore mine to be switched, and executing the block generation operation of the first ore mine node.
In another embodiment, the method further comprises:
and if the mining pool system to be switched and the designated mining pool system are the same mining pool system, maintaining the connection between the first mining node and the designated mining pool system, and continuously executing the block generation operation of the first mining node.
In another embodiment, the obtaining pool data for at least one pool system comprises:
receiving and storing a mine pool address for the at least one mine pool system;
accessing any ore pool address in the ore pool addresses of the at least one ore pool system, and acquiring ore pool data of the ore pool system indicated by the ore pool address;
and disconnecting the current mine pool address every a first preset period, accessing any other mine pool address except the current mine pool address in the mine pool addresses of the at least one mine pool system, repeatedly executing the process of acquiring the mine pool data of the mine pool system indicated by the mine pool address, and acquiring the mine pool data of the at least one mine pool system.
In another embodiment, the generating a system score for the at least one mine system from the mine pool data for the at least one mine system comprises:
for any one of the at least one mine system, obtaining a first weight, a second weight and a third weight of the mine system, wherein the first weight is the weight of profit data in the mine system, the second weight is the weight of safety data in the mine system, and the third weight is the weight of stable data in the mine system;
determining a profit score for the profit data in the mine system, a safety score for the safety data in the mine system, and a stability score for the stability data in the mine system based on the first weight, the second weight, and the third weight, respectively;
calculating the sum of the return score, the safety score and the stability score, generating a system score for the mine system.
In another embodiment, the determining the pool system to be switched based on the system score ranking result of the at least one pool system comprises:
sequencing the system scores of the at least one ore pond system from large to small, and taking the ore pond system corresponding to the system score arranged at the head position as an ore pond system to be switched; or the like, or, alternatively,
and sequencing the system fractions of the at least one ore pond system from small to large, and taking the ore pond system corresponding to the system fraction arranged at the end position as an ore pond system to be switched.
In another embodiment, the method further comprises:
acquiring ore pool data of the at least one ore pool system every other second preset period;
determining the system fraction of the at least one mine system in the preset period according to the mine data of the at least one mine system;
and repeatedly executing the process of determining the system of the ore deposit to be switched and judging whether the system switching is carried out on the first ore deposit node.
According to a second aspect of an embodiment of the present invention, there is provided a system switching apparatus, characterised in that the apparatus is applied to a broker node, the broker node being connected to at least one ore node and at least one ore system, the first ore node being any one of the at least one ore node, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring mine pool data of at least one mine pool system, and the mine pool data at least comprises income data, safety data and stable data;
a generation module for generating a system score for the at least one mine system based on mine pool data for the at least one mine system;
the determining module is used for determining the pool system to be switched based on the system fraction sequencing result of the at least one pool system, wherein the system fraction of the pool system to be switched is greater than the system fractions of other pool systems;
the judgment module is used for determining an appointed ore pool system to which a first ore node is currently accessed, and judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system;
and the switching module is used for switching the first mining machine node to the mining machine system to be switched and executing the block generation operation of the first mining machine node if the mining machine system to be switched and the designated mining machine system are not the same mining machine system.
In another embodiment, the apparatus further comprises:
and the execution module is used for keeping the connection between the first ore machine node and the appointed ore machine system and continuously executing the block generation operation of the first ore machine node if the ore machine system to be switched and the appointed ore machine system are the same ore machine system.
In another embodiment, the obtaining module includes:
the receiving submodule is used for receiving and storing the mine pool address of the at least one mine pool system;
the acquisition submodule is used for accessing any ore pool address in the ore pool addresses of the at least one ore pool system and acquiring the ore pool data of the ore pool system indicated by the ore pool address;
the acquisition submodule is further configured to disconnect the current mine pool address every a first preset period, access any other mine pool address except the current mine pool address in the mine pool addresses of the at least one mine pool system, repeatedly execute the above-mentioned process of acquiring the mine pool data of the mine pool system indicated by the mine pool address, and acquire the mine pool data of the at least one mine pool system.
In another embodiment, the generating module comprises:
an obtaining submodule, configured to obtain, for any one of the at least one mine system, a first weight, a second weight, and a third weight of the mine system, where the first weight is a weight of profit data in the mine system, the second weight is a weight of safety data in the mine system, and the third weight is a weight of stable data in the mine system;
a determination submodule for determining a profit score of the profit data in the mine system, a safety score of the safety data in the mine system, and a stability score of the stability data in the mine system, respectively, based on the first weight, the second weight, and the third weight;
and the calculation submodule is used for calculating the sum of the income fraction, the safety fraction and the stability fraction and generating the system fraction of the mine system.
In another embodiment, the determining module is configured to sort the system scores of the at least one mine system from large to small, and use the mine system corresponding to the system score arranged at the head as the mine system to be switched; or sequencing the system fractions of the at least one ore pond system from small to large, and taking the ore pond system corresponding to the system fraction arranged at the end position as the ore pond system to be switched.
In another embodiment, the obtaining module is further configured to obtain the mine pool data of the at least one mine pool system every second preset period;
the determining module is further configured to determine a system fraction of the at least one mine system in the preset period according to the mine data of the at least one mine system;
the judging module is further configured to repeatedly execute the process of determining the system of the ore deposit to be switched and judging whether to perform system switching on the first ore deposit node.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device including the system switching apparatus according to the second aspect.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a memory for storing executable instructions; and a processor for communicating with the memory to execute the executable instructions to perform the operations of the system switching method of the first aspect.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
the method comprises the steps of generating a system score of at least one ore pool system according to the ore pool data of at least one ore pool system by acquiring the ore pool data of at least one ore pool system, determining an ore pool system to be switched based on a system score sorting result of the at least one ore pool system, determining an appointed ore pool system to which a first ore pool node is currently connected, judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system, switching the first ore pool node to the ore pool system to be switched if the ore pool system to be switched and the appointed ore pool system are not the same ore pool system, executing block generation operation of the first ore pool node, enabling an agent node to automatically evaluate the ore pool system according to the acquired ore pool data of the at least one ore pool system, selecting an optimal ore pool system, automatically switching the ore pool node, and avoiding manual switching of the ore pool system by a user, the switching process of the mine system is simplified, a large amount of manpower is saved, and the intelligence is better.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of system handover in accordance with an exemplary embodiment;
FIG. 2 is an implementation architecture diagram illustrating a system switching method in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of system handover in accordance with an exemplary embodiment;
FIG. 4A is a block diagram illustrating a system switching device in accordance with an exemplary embodiment;
FIG. 4B is a block diagram illustrating a system switching device in accordance with an exemplary embodiment;
FIG. 4C is a block diagram illustrating a system switching device in accordance with an exemplary embodiment;
FIG. 4D is a block diagram illustrating a system switching device in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating a system switching device 500 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flow chart illustrating a system switching method according to an exemplary embodiment, as shown in fig. 1, the method including the following steps.
In step 101, pool data of at least one pool system is obtained, where the pool data at least includes income data, safety data, and stability data.
In step 102, a system score for the at least one mine system is generated based on the mine data for the at least one mine system.
In step 103, based on the system score sorting result of at least one mine system, determining the mine system to be switched, wherein the system score of the mine system to be switched is greater than the system scores of other mine systems.
In step 104, determining the designated mine system to which the first mine node is currently accessed, and judging whether the mine system to be switched and the designated mine system are the same mine system.
In step 105, if the pool system to be switched is not the same pool system as the designated pool system, the first mining machine node is switched to the pool system to be switched, and block generation operation of the first mining machine node is executed.
The method provided by the embodiment of the invention comprises the steps of obtaining the mine pool data of at least one mine pool system, generating the system score of the at least one mine pool system according to the mine pool data of the at least one mine pool system, determining the mine pool system to be switched based on the system score sorting result of the at least one mine pool system, determining the appointed mine pool system to which a first mine node is currently accessed, judging whether the mine pool system to be switched and the appointed mine pool system are the same mine pool system, switching the first mine pool node to the mine pool system to be switched if the mine pool system to be switched and the appointed mine pool system are not the same mine pool system, executing block generation operation of the first mine pool node, enabling the proxy node to automatically evaluate the mine pool system according to the obtained mine pool data of the at least one mine pool system, selecting the optimal mine pool system, and automatically switching the mine pool node, the switching of the mine system by a user is avoided, the switching process of the mine system is simplified, a large amount of manpower is saved, and the intelligence is better.
In another embodiment, the method further comprises:
and if the pool system to be switched and the designated pool system are the same pool system, maintaining the connection between the first mining machine node and the designated pool system, and continuously executing the block generation operation of the first mining machine node.
In another embodiment, obtaining pool data for at least one pool system comprises:
receiving and storing a mine pool address for at least one mine pool system;
accessing any ore pool address in the ore pool addresses of at least one ore pool system, and collecting ore pool data of the ore pool system indicated by the ore pool address;
and disconnecting the connection with the current mine pool address every a first preset period, accessing any other mine pool address except the current mine pool address in the mine pool addresses of the at least one mine pool system, repeatedly executing the process of collecting the mine pool data of the mine pool system indicated by the mine pool address, and collecting the mine pool data of the at least one mine pool system.
In another embodiment, generating a system score for at least one mine system based on the mine data for the at least one mine system comprises:
for any one of the at least one mine system, obtaining a first weight, a second weight and a third weight of the mine system, wherein the first weight is the weight of income data in the mine system, the second weight is the weight of safety data in the mine system, and the third weight is the weight of stable data in the mine system;
respectively determining the profit score of the profit data in the mine system, the safety score of the safety data in the mine system and the stability score of the stability data in the mine system based on the first weight, the second weight and the third weight;
and calculating the sum of the profit score, the safety score and the stability score to generate a system score of the mine system.
In another embodiment, determining the pool system to be switched based on the system score ranking results of at least one pool system comprises:
sequencing the system scores of at least one ore pond system from large to small, and taking the ore pond system corresponding to the system score arranged at the head as an ore pond system to be switched; or the like, or, alternatively,
and sequencing the system scores of at least one ore pond system from small to large, and taking the ore pond system corresponding to the system score arranged at the end position as an ore pond system to be switched.
In another embodiment, the method further comprises:
acquiring ore pool data of at least one ore pool system every a second preset period;
determining the system fraction of at least one mine system in a preset period according to the mine data of at least one mine system;
and repeatedly executing the process of determining the system of the ore deposit to be switched and judging whether the system switching is carried out on the first ore deposit node.
In another embodiment, the obtaining module is further configured to obtain mine pool data of at least one mine pool system every second preset period;
the determining module is further used for determining the system fraction of the at least one mine system in a preset period according to the mine data of the at least one mine system;
and the judging module is also used for repeatedly executing the process of determining the system of the ore deposit to be switched and judging whether the system switching is carried out on the first ore deposit node.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Before explaining the embodiment of the present invention in detail, a brief description is given to a real-time scenario related to the embodiment of the present invention.
Referring to the data sharing system shown in fig. 2, the present invention may be applied to a data sharing system, where the data sharing system 200 is a system for performing data sharing between an ore node and an ore node, the data sharing system may include a plurality of ore nodes 201 and an ore pool system 202, the plurality of ore nodes 201 may refer to respective clients in the data sharing system, and are devices operated by a user, the ore nodes are accessed to the ore pool system, and the user performs various operations on the ore nodes to generate workloads; the mining pool system settles the virtual currency for the plurality of mining machine nodes according to the workload of the plurality of mining machine nodes, determines how much income the mining machine nodes can obtain in the previous work, and issues the income to the mining machine nodes in the form of the virtual currency. Each of the ore nodes 201 may receive input information during normal operation and generate blocks based on the received input information, maintaining shared data within the data sharing system based on the blocks. In order to ensure information intercommunication in the data sharing system, information connection can exist between each mining machine node in the data sharing system, and information transmission can be carried out between the mining machine nodes through the information connection.
In practical applications, the data sharing system may be deployed in a mining equipment, and the mining system may be a built-in mining system of the mining equipment. The data sharing system can be provided with a plurality of mine systems, and the number of the mine systems and the number of the mine nodes in the data sharing system are not specifically limited in the embodiment of the invention.
The agent node is connected with an ore machine node and an ore pool system in the data sharing system, namely the ore machine node is connected with the agent node firstly, and then the agent node is connected with the ore pool system, so that the agent node can carry out systematic switching on the ore machine node. In the practical application process, all the mining machine nodes and all the mining pool systems in the data sharing system can be accessed to the proxy node, and the number of the mining machine nodes and the mining pool systems which are accessed to the proxy node is not particularly limited in the embodiment of the invention.
Fig. 3 is a flow chart illustrating a system switching method according to an exemplary embodiment, as shown in fig. 3, including the following steps.
In step 301, the agent node obtains pool data of at least one pool system, where the pool data at least includes income data, security data, and stability data.
In the embodiment of the invention, each mine system is provided with the corresponding mine address, when the mine node needs to be accessed into a certain mine system, the mine node is accessed into the proxy node, and the proxy node accesses the mine address of the mine system. In order to enable the agent node to select an optimal mine system for at least one accessed mine node to perform system switching subsequently, the agent node can store the mine address of at least one mine system, periodically accesses different mine systems, acquires the mine data of different mine systems, and then scores the mine systems based on the mine data so as to select the mine system with the highest score for the at least one accessed mine node to perform system switching.
When the agent node collects the mine pool data, the income value acquired within the preset number of days of accessing the mine pool system can be counted as the income data, for example, the preset number of days is set to 7 days, and if the income value acquired within 7 days of accessing the mine pool system by the agent node is 3000, 3000 can be used as the income data of the mine pool system; counting the number of times of receiving safety warnings within a preset number of days of accessing the mine system as safety data, for example, setting the preset number of days as 7 days, and if the number of times of receiving safety warnings within 7 days of accessing the mine system by the agent node is 30, using 30 as the safety data of the mine system; counting the total time length delayed within a preset number of days of accessing the mine system as stable data, for example, if the total time length delayed within 7 days of accessing the mine system by the agent node is 300 seconds, then 300 may be used as the stable data of the mine system. In the practical application process, when the agent node collects the mine pool data, the income data in the mine pool system can be counted in real time; for safety data and stability data for a mine system, the safety data and stability data may be collected upon detection of safety and stability related events in the mine system. The embodiment of the invention does not specifically limit the form of the mine pool data acquired by the agent node and the time for acquiring the mine pool data.
The agent node can receive a first preset period set by a user, access any ore pool address in at least one ore pool address, disconnect the connection with the current ore pool address every other first preset period, add any other ore pool address except the current ore pool address in the ore pool addresses of at least one ore pool system, and collect ore pool data of the ore pool system indicated by the ore pool address so as to collect the ore pool data of at least one ore pool system subsequently. For example, if the first preset period is 2 days, the agent node disconnects from the current mine system every 2 days, and accesses to other mine systems except the current mine system. The proxy node can provide a first period setting entry on a terminal carried by the proxy node, when the fact that a user triggers the first period setting entry is detected, a first period setting page comprising a period selectable frame is displayed, a period selected by the user in the period selectable frame is used as a first preset period, and a period input frame can be further provided on the first period setting page, so that the user can input the first preset period in the period input frame. The embodiment of the present invention does not specifically limit the manner of setting the first preset period and the value of the first preset period.
It should be noted that, in order to avoid that an agent node repeatedly accesses the same pool system, which may result in that a certain pool system may not be accessed for a long time, the agent node may number the pool addresses after receiving the pool addresses of at least one pool system, and sequentially accesses the pool systems according to the order of the numbering. When the agent node numbers the mine pool address, the agent node can number the mine pool address according to the sequence of receiving the mine pool address, and the method for selecting the access mine pool address by the agent node is not particularly limited in the embodiment of the invention.
In step 302, for any of the at least one pool system, the broker node obtains a first weight, a second weight, and a third weight of the pool system, the first weight being a weight of the profit data in the pool system, the second weight being a weight of the security data in the pool system, and the third weight being a weight of the stability data in the pool system.
In the embodiment of the invention, in order to comprehensively consider the income data, the safety data and the stable data in the collected mine pool data, the first weight, the second weight and the third weight of each mine pool system can be set in the proxy node, and the system scores of the mine pool systems are calculated according to the first weight, the second weight and the third weight.
Wherein the proxy node may set the first weight, the second weight, and the third weight to initial values at initialization. For example, the first weight, the second weight, and the third weight may be set to 1/3, respectively, and the initial values of the first weight, the second weight, and the third weight are not particularly limited by the embodiment of the present invention. In order to enable the defects of different mine systems to be preferentially evaluated, after the agent node subsequently determines the income score, the safety score and the stability score of the mine system, the first weight, the second weight and the third weight can be properly adjusted, and the weight corresponding to the mine data with the lowest score is properly increased, so that the evaluation of the mine system is more comprehensive. For example, assuming that for the pool system a, the first weight is 1/3, the second weight is 1/3, and the third weight is 1/3, the profit score of the pool system a calculated last time is 60 points, the safety score is 30 points, and the stability score is 10 points; the income score, the safety score and the stability score of the mine system A are 60, 35 and 5 respectively, which are obtained through calculation, so that the stability of the mine system A is poor, the weight ratio of the third weight of the mine system A can be increased, the first weight of the mine system A is changed into 1/4, the second weight is changed into 1/4, and the third weight is changed into 1/2. In the embodiment of the present invention, a manner of changing the first weight, the second weight, and the third weight corresponding to the pool system is not specifically limited.
In step 303, based on the first weight, the second weight, and the third weight, the broker node determines a profit score for the profit data in the pool system, a safety score for the safety data in the pool system, and a stability score for the stability data in the pool data, respectively.
In the embodiment of the invention, after the first weight, the second weight and the third weight of a certain mine system are determined, the profit score, the safety score and the stability score of the mine system can be determined based on the first weight, the second weight and the third weight. The product of the first weight and the profit data may be used as a profit score, the product of the second weight and the security data may be used as a security score, and the product of the third weight and the stability data may be used as a stability score. Taking the mine pool data collected in the above step 301 as an example for explanation, assuming that the profit data in the collected mine pool data is 3000, the safety data is 30, the stable data is 300, and the first weight, the second weight, and the third weight are 1/3 respectively, the calculated profit score is 1000, the safety score is 10, and the stable score is 100. The embodiment of the invention does not specifically limit the way of determining the profit score, the safety score and the stability score.
In step 304, the broker node calculates the sum of the return score, the safety score and the stability score, generating a system score for the mine system.
In the embodiment of the invention, after the profit score, the safety score and the stability score are determined, the agent node can determine the sum of the profit score, the safety score and the stability score, and the sum is used as the system score of the mine system. For example, assuming a profit score of 1000, a security score of 10, and a stability score of 100, the resulting system score may be 1110. The agent node calculates the mine pool data of at least one mine pool system to obtain the system score of the at least one mine pool data, so that the optimal mine pool system is determined in the at least one mine pool system according to the system score, and the mine pool nodes are switched systematically.
It should be noted that, the manner of calculating the system score of the mine system shown in the above steps 302 to 304 is to calculate the profit score, the safety score and the stability score respectively, and calculate the sum of the profit score, the safety score and the stability score to obtain the system score, and in the process of practical application, other algorithms may be used to calculate the mine data to obtain the system score of the mine system.
In step 305, the agent node determines a pool system to be switched based on the system score ranking result of at least one pool system, wherein the system score of the pool system to be switched is greater than the system scores of other pool systems.
In the embodiment of the invention, after the agent node acquires at least one system score of at least one mine system, the at least one system score can be sequenced, the mine system with the optimal performance is determined according to the sequencing result, and the mine system with the optimal performance is used as the mine system to be switched. When the agent node sorts the system scores, the system scores of at least one mine system can be sorted from large to small, and the mine system corresponding to the system score arranged at the head position is used as the mine system to be switched; or sequencing the system scores of at least one ore pond system from small to large, and taking the ore pond system corresponding to the system score arranged at the end position as the ore pond system to be switched. The embodiment of the invention does not specifically limit the sorting mode of the system scores by the agent nodes.
In step 306, determining a designated mine system to which the first mine node is currently accessed, judging whether the mine system to be switched and the designated mine system are the same mine system, and if the mine system to be switched and the designated mine system are not the same mine system, executing the following step 307; if the pool system to be switched is the same pool system as the designated pool system, the following step 308 is performed.
In an embodiment of the invention, the first mining node is any one of the at least one mining node of the access proxy node. Considering that the designated mine system to which the first mine node is currently accessed may be the same mine system as the mine system to be switched determined by the proxy node, when the mine system to be switched is determined, the proxy node determines the designated mine system to which the first mine node is currently accessed, and judges whether the designated mine system and the mine system to be switched are the same mine system.
When judging whether the designated mine system and the mine system to be switched are the same mine system, acquiring a first system identifier of the designated mine system and a second system identifier of the mine system to be switched, comparing the first system identifier with the second system identifier, judging whether the first system identifier and the second system identifier are the same system identifier, and if the first system identifier and the second system identifier are not the same system identifier, determining that the designated mine system and the mine system to be switched are not the same mine system, thus, the system switching of a first mine node is required, namely, the following step 307 is executed; if the first system identifier and the second system identifier are the same system identifier, it is determined that the designated mine system and the mine system to be switched are the same mine system, so that system switching of the first mine node is not needed, that is, the following step 208 is executed.
In step 307, if the pool system to be switched and the designated pool system are not the same pool system, the first mining machine node is switched to the pool system to be switched, and the block generation operation of the first mining machine node is executed.
In the embodiment of the invention, if the pool system to be switched and the designated pool system are not the same pool system, it indicates that the first mining machine node is required to be switched into the pool system to be switched currently, so that after the pool system to be switched is determined, the agent node can switch the first mining machine node into the pool system to be switched, and after the first mining machine node is accessed into the pool system to be switched, the block generation operation of the first mining machine node is executed, and the operation is continued.
In step 308, if the pool system to be switched and the designated pool system are the same pool system, the connection between the first mining machine node and the designated pool system is maintained, and the block generation operation of the first mining machine node is continuously executed.
In the embodiment of the invention, if the pool system to be switched and the designated pool system are the same pool system, the current first mining machine node does not need to be switched, so that the proxy node keeps the connection between the first mining machine node and the designated pool system, and the block generation operation of the first mining machine node is continuously executed.
It should be noted that, because the performance of the pool system changes along with the operation of the pool system, the agent node may acquire the pool data of at least one pool system every second preset period, and further determine the system score of at least one pool system in the current period, and repeatedly execute the above-mentioned process of determining the pool system to be switched, and determine whether to perform system switching on the first pool node, so as to ensure that the performance of the pool system to which the first pool node is connected is always optimal.
For each ore machine node in at least one ore machine node accessed to the agent node, the agent node executes the contents in the steps 301 to 308, and selects an optimal ore pool system for accessing to each ore machine node in the at least one ore machine node.
The method provided by the embodiment of the invention comprises the steps of obtaining the mine pool data of at least one mine pool system, generating the system score of the at least one mine pool system according to the mine pool data of the at least one mine pool system, determining the mine pool system to be switched based on the system score sorting result of the at least one mine pool system, determining the appointed mine pool system to which a first mine node is currently accessed, judging whether the mine pool system to be switched and the appointed mine pool system are the same mine pool system, switching the first mine pool node to the mine pool system to be switched if the mine pool system to be switched and the appointed mine pool system are not the same mine pool system, executing block generation operation of the first mine pool node, enabling the proxy node to automatically evaluate the mine pool system according to the obtained mine pool data of the at least one mine pool system, selecting the optimal mine pool system, and automatically switching the mine pool node, the switching of the mine system by a user is avoided, the switching process of the mine system is simplified, a large amount of manpower is saved, and the intelligence is better.
Fig. 4A is a block diagram illustrating a system switching device in accordance with an example embodiment. Referring to fig. 4A, the apparatus includes an obtaining module 401, a generating module 402, a determining module 403, a judging module 404, and a switching module 405.
The obtaining module 401 is configured to obtain pool data of at least one pool system, where the pool data at least includes income data, security data, and stability data;
the generating module 402 is configured to generate a system score of at least one mine system according to the mine data of the at least one mine system;
the determining module 403 is configured to determine a pool system to be switched based on a system score sorting result of at least one pool system, where the system score of the pool system to be switched is greater than the system scores of other pool systems;
the judging module 404 is configured to determine an appointed pool system to which the first mine node is currently accessed, and judge whether the pool system to be switched and the appointed pool system are the same pool system;
the switching module 405 is configured to switch the first mine machine node to the mine system to be switched if the mine system to be switched and the designated mine system are not the same mine system, and execute a block generation operation of the first mine machine node.
The device provided by the embodiment of the invention generates the system score of at least one ore pond system according to the ore pond data of at least one ore pond system by acquiring the ore pond data of at least one ore pond system, determines the ore pond system to be switched on based on the system score sorting result of at least one ore pond system, determines the appointed ore pond system to which the first ore node is currently accessed, judges whether the ore pond system to be switched and the appointed ore pond system are the same ore pond system or not, switches the first ore pond node to the ore pond system to be switched on if the ore pond system to be switched and the appointed ore pond system are not the same ore pond system, executes the block generation operation of the first ore node, so that the agent node can automatically evaluate the ore pond system according to the acquired ore pond data of at least one ore pond system, selects the optimal ore pond system and automatically switches the ore pond node, the switching of the mine system by a user is avoided, the switching process of the mine system is simplified, a large amount of manpower is saved, and the intelligence is better.
In another embodiment, referring to fig. 4B, the apparatus further comprises an execution module 406.
The executing module 406 is configured to, if the pool system to be switched and the designated pool system are the same pool system, maintain the connection between the first mining machine node and the designated pool system, and continue to execute the block generating operation of the first mining machine node.
In another embodiment, referring to fig. 4C, the acquisition module 401 includes a receiving sub-module 4011 and an acquisition sub-module 4012.
The receiving submodule 4011 is configured to receive and store a mine pool address of at least one mine pool system;
the acquisition submodule 4012 is configured to access any one of the mine pool addresses of the at least one mine pool system, and acquire mine pool data of the mine pool system indicated by the mine pool address;
the collecting submodule 4012 is further configured to disconnect the current mine address every a first preset period, access any other mine address except the current mine address in the mine addresses of the at least one mine system, repeatedly execute the process of collecting the mine data of the mine system indicated by the mine address, and collect the mine data of the at least one mine system.
In another embodiment, referring to fig. 4D, the generating module 402 includes an obtaining sub-module 4021, a determining sub-module 4022, and a calculating sub-module 4023.
The obtaining sub-module 4021 is configured to obtain, for any one of the at least one mine system, a first weight, a second weight, and a third weight of the mine system, where the first weight is a weight of the profit data in the mine system, the second weight is a weight of the security data in the mine system, and the third weight is a weight of the stable data in the mine system;
the determining sub-module 4022 is configured to determine a profit score of the profit data in the mine system, a safety score of the safety data in the mine system, and a stability score of the stability data in the mine system, respectively, based on the first weight, the second weight, and the third weight;
the calculating submodule 4023 is configured to calculate a sum of the profit score, the safety score and the stability score, and generate a system score for the mine system.
In another embodiment, the determining module 403 is configured to sort the system scores of at least one mine system from large to small, and use the mine system corresponding to the system score arranged at the head as the mine system to be switched; or sequencing the system scores of at least one ore pond system from small to large, and taking the ore pond system corresponding to the system score arranged at the end position as the ore pond system to be switched.
In another embodiment, the obtaining module 401 is further configured to obtain mine pool data of at least one mine pool system every second preset period;
the determining module 403 is further configured to determine a system score of the at least one mine system in a preset period according to the mine data of the at least one mine system;
the determining module 404 is further configured to repeatedly execute the above process of determining the system of the ore mine to be switched, and determining whether to perform system switching on the first ore mine node.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a system switching device 500 according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, interface to I/O (Input/Output) 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 504 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static random access Memory), an EEPROM (Electrically-Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (touch panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 516 further includes an NFC (near field Communication) module to facilitate short-range communications. For example, the NFC module may be implemented based on an RFID (Radio Frequency Identification) technology, an IrDA (infrared-data association) technology, an UWB (ultra wideband) technology, a BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more ASICs (Application Specific Integrated circuits), DSPs (Digital signal processors), DSPDs (Digital signal processing devices), PLDs (Programmable Logic devices), FPGAs (Field Programmable gate arrays), controllers, microcontrollers, microprocessors or other electronic components for performing the above system switching method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (random access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a system switching apparatus, enable the system switching apparatus to perform the above system switching method.
A1, a system switching method, wherein the method is applied to a broker node connected to at least one ore node and to at least one ore system, the first ore node being any one of the at least one ore node, the method comprising:
obtaining mine pool data of at least one mine pool system, wherein the mine pool data at least comprises income data, safety data and stable data;
generating a system score for the at least one mine system from the mine data for the at least one mine system;
determining a pool system to be switched based on the system fraction sequencing result of at least one pool system, wherein the system fraction of the pool system to be switched is greater than the system fractions of other pool systems;
determining an appointed ore pool system to which a first ore node is currently accessed, and judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system or not;
and if the system of the ore mine to be switched and the designated ore mine system are not the same system of the ore mine, switching the first ore mine node to the system of the ore mine to be switched, and executing the block generation operation of the first ore mine node.
A2, the method according to claim 1, further comprising:
and if the mining pool system to be switched and the designated mining pool system are the same mining pool system, maintaining the connection between the first mining node and the designated mining pool system, and continuously executing the block generation operation of the first mining node.
A3 the method of claim 1, wherein said obtaining pool data for at least one pool system comprises:
receiving and storing a mine pool address for the at least one mine pool system;
accessing any ore pool address in the ore pool addresses of the at least one ore pool system, and acquiring ore pool data of the ore pool system indicated by the ore pool address;
and disconnecting the current mine pool address every a first preset period, accessing any other mine pool address except the current mine pool address in the mine pool addresses of the at least one mine pool system, repeatedly executing the process of acquiring the mine pool data of the mine pool system indicated by the mine pool address, and acquiring the mine pool data of the at least one mine pool system.
A4 the method of claim 1, wherein said generating a system score for the at least one mine system from the mine pool data for the at least one mine system comprises:
for any one of the at least one mine system, obtaining a first weight, a second weight and a third weight of the mine system, wherein the first weight is the weight of profit data in the mine system, the second weight is the weight of safety data in the mine system, and the third weight is the weight of stable data in the mine system;
determining a profit score for the profit data in the mine system, a safety score for the safety data in the mine system, and a stability score for the stability data in the mine system based on the first weight, the second weight, and the third weight, respectively;
calculating the sum of the return score, the safety score and the stability score, generating a system score for the mine system.
A5, the method as claimed in claim 1, wherein the determining the pool system to be switched based on the system score ranking result of the at least one pool system comprises:
sequencing the system scores of the at least one ore pond system from large to small, and taking the ore pond system corresponding to the system score arranged at the head position as an ore pond system to be switched; or the like, or, alternatively,
and sequencing the system fractions of the at least one ore pond system from small to large, and taking the ore pond system corresponding to the system fraction arranged at the end position as an ore pond system to be switched.
A6, the method according to claim 1, further comprising:
acquiring ore pool data of the at least one ore pool system every other second preset period;
determining the system fraction of the at least one mine system in the preset period according to the mine data of the at least one mine system;
and repeatedly executing the process of determining the system of the ore deposit to be switched and judging whether the system switching is carried out on the first ore deposit node.
A7, a system switching apparatus, the apparatus being applied to a broker node, the broker node being connected to at least one ore node and to at least one ore system, the first ore node being any one of the at least one ore node, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring mine pool data of at least one mine pool system, and the mine pool data at least comprises income data, safety data and stable data;
a generation module for generating a system score for the at least one mine system based on mine pool data for the at least one mine system;
the determining module is used for determining the pool system to be switched based on the system fraction sequencing result of the at least one pool system, wherein the system fraction of the pool system to be switched is greater than the system fractions of other pool systems;
the judgment module is used for determining an appointed ore pool system to which a first ore node is currently accessed, and judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system;
and the switching module is used for switching the first mining machine node to the mining machine system to be switched and executing the block generation operation of the first mining machine node if the mining machine system to be switched and the designated mining machine system are not the same mining machine system.
A8, the device of claim 7, further comprising:
and the execution module is used for keeping the connection between the first ore machine node and the appointed ore machine system and continuously executing the block generation operation of the first ore machine node if the ore machine system to be switched and the appointed ore machine system are the same ore machine system.
A9, the apparatus of claim 7, wherein the obtaining module comprises:
the receiving submodule is used for receiving and storing the mine pool address of the at least one mine pool system;
the acquisition submodule is used for accessing any ore pool address in the ore pool addresses of the at least one ore pool system and acquiring the ore pool data of the ore pool system indicated by the ore pool address;
the acquisition submodule is further configured to disconnect the current mine pool address every a first preset period, access any other mine pool address except the current mine pool address in the mine pool addresses of the at least one mine pool system, repeatedly execute the above-mentioned process of acquiring the mine pool data of the mine pool system indicated by the mine pool address, and acquire the mine pool data of the at least one mine pool system.
A10, the apparatus of claim 7, wherein the generating module comprises:
an obtaining submodule, configured to obtain, for any one of the at least one mine system, a first weight, a second weight, and a third weight of the mine system, where the first weight is a weight of profit data in the mine system, the second weight is a weight of safety data in the mine system, and the third weight is a weight of stable data in the mine system;
a determination submodule for determining a profit score of the profit data in the mine system, a safety score of the safety data in the mine system, and a stability score of the stability data in the mine system, respectively, based on the first weight, the second weight, and the third weight;
and the calculation submodule is used for calculating the sum of the income fraction, the safety fraction and the stability fraction and generating the system fraction of the mine system.
A11, the device according to claim 7, wherein the determining module is used for sequencing the system scores of at least one mine system from large to small, and taking the mine system corresponding to the system score arranged at the top as the mine system to be switched; or sequencing the system fractions of the at least one ore pond system from small to large, and taking the ore pond system corresponding to the system fraction arranged at the end position as the ore pond system to be switched.
A12 the apparatus according to claim 7, wherein the obtaining module is further configured to obtain pool data of the at least one pool system every second preset period;
the determining module is further configured to determine a system fraction of the at least one mine system in the preset period according to the mine data of the at least one mine system;
the judging module is further configured to repeatedly execute the process of determining the system of the ore deposit to be switched and judging whether to perform system switching on the first ore deposit node.
A13, an electronic device, comprising the system switching apparatus of any one of claims 7 to 12.
A14, an electronic device, comprising: a memory for storing executable instructions;
and a processor in communication with the memory to execute the executable instructions to perform the operations of the system switching method of any of claims 1 to 6.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A system switching method applied to a proxy node connected to at least one ore node and at least one ore system, the method comprising:
obtaining mine pool data of at least one mine pool system, wherein the mine pool data at least comprises income data, safety data and stable data;
generating a system score for the at least one mine system from the mine data for the at least one mine system;
determining a pool system to be switched based on the system fraction sequencing result of at least one pool system, wherein the system fraction of the pool system to be switched is greater than the system fractions of other pool systems;
determining an appointed ore pool system to which a first ore node is currently accessed, and judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system or not;
switching the first mine node to the mine system to be switched if the mine system to be switched and the designated mine system are not the same mine system, executing block generation operation of the first mine node,
wherein the first ore node is any one of the at least one ore node.
2. The method of claim 1, further comprising:
and if the mining pool system to be switched and the designated mining pool system are the same mining pool system, maintaining the connection between the first mining node and the designated mining pool system, and continuously executing the block generation operation of the first mining node.
3. The method of claim 1, wherein the obtaining pool data for at least one pool system comprises:
receiving and storing a mine pool address for the at least one mine pool system;
accessing any ore pool address in the ore pool addresses of the at least one ore pool system, and acquiring ore pool data of the ore pool system indicated by the ore pool address;
and disconnecting the current mine pool address every a first preset period, accessing any other mine pool address except the current mine pool address in the mine pool addresses of the at least one mine pool system, repeatedly executing the process of acquiring the mine pool data of the mine pool system indicated by the mine pool address, and acquiring the mine pool data of the at least one mine pool system.
4. The method of claim 1, wherein the generating a system score for the at least one mine system from the mine data for the at least one mine system comprises:
for any one of the at least one mine system, obtaining a first weight, a second weight and a third weight of the mine system, wherein the first weight is the weight of profit data in the mine system, the second weight is the weight of safety data in the mine system, and the third weight is the weight of stable data in the mine system;
determining a profit score for the profit data in the mine system, a safety score for the safety data in the mine system, and a stability score for the stability data in the mine system based on the first weight, the second weight, and the third weight, respectively;
calculating the sum of the return score, the safety score and the stability score, generating a system score for the mine system.
5. The method of claim 1, wherein determining a pool system to be switched based on the system score ranking results of the at least one pool system comprises:
sequencing the system scores of the at least one ore pond system from large to small, and taking the ore pond system corresponding to the system score arranged at the head position as an ore pond system to be switched; or the like, or, alternatively,
and sequencing the system fractions of the at least one ore pond system from small to large, and taking the ore pond system corresponding to the system fraction arranged at the end position as an ore pond system to be switched.
6. The method of claim 1, further comprising:
acquiring ore pool data of the at least one ore pool system every other second preset period;
determining the system fraction of the at least one mine system in the preset period according to the mine data of the at least one mine system;
and repeatedly executing the process of determining the system of the ore deposit to be switched and judging whether the system switching is carried out on the first ore deposit node.
7. A system switching apparatus for use with a broker node, the broker node being connected to at least one mine node and at least one mine system, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring mine pool data of at least one mine pool system, and the mine pool data at least comprises income data, safety data and stable data;
a generation module for generating a system score for the at least one mine system based on mine pool data for the at least one mine system;
the determining module is used for determining the pool system to be switched based on the system fraction sequencing result of the at least one pool system, wherein the system fraction of the pool system to be switched is greater than the system fractions of other pool systems;
the judgment module is used for determining an appointed ore pool system to which a first ore node is currently accessed, and judging whether the ore pool system to be switched and the appointed ore pool system are the same ore pool system;
a switching module for switching the first mine node to the mine system to be switched to execute the block generating operation of the first mine node if the mine system to be switched and the designated mine system are not the same mine system,
wherein the first ore node is any one of the at least one ore node.
8. The apparatus of claim 7, further comprising:
and the execution module is used for keeping the connection between the first ore machine node and the appointed ore machine system and continuously executing the block generation operation of the first ore machine node if the ore machine system to be switched and the appointed ore machine system are the same ore machine system.
9. An electronic device, characterized by comprising the system switching apparatus of any one of claims 7 to 8.
10. An electronic device, comprising: a memory for storing executable instructions;
and a processor in communication with the memory to execute the executable instructions to perform the operations of the system switching method of any of claims 1 to 6.
CN201810037107.1A 2018-01-15 2018-01-15 System switching method and device and electronic equipment Active CN110046035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810037107.1A CN110046035B (en) 2018-01-15 2018-01-15 System switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810037107.1A CN110046035B (en) 2018-01-15 2018-01-15 System switching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110046035A CN110046035A (en) 2019-07-23
CN110046035B true CN110046035B (en) 2021-07-09

Family

ID=67273366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810037107.1A Active CN110046035B (en) 2018-01-15 2018-01-15 System switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110046035B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235425B (en) * 2020-12-14 2021-03-09 长沙理工大学 Block chain mine pool forming method, device and system and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984314B (en) * 2014-05-14 2017-02-01 北京矿冶研究总院 Intelligent ore feeding control method and device for multiple material machines
WO2016029119A1 (en) * 2014-08-21 2016-02-25 myVBO, LLC Systems and methods for managing alternative currency transactions and optimizing financial rewards
CN104915249A (en) * 2015-05-21 2015-09-16 北京比特大陆科技有限公司 Method and device for digging virtual digital coins in mining pool
CN106850775B (en) * 2017-01-13 2020-05-12 比特大陆科技有限公司 Method for interaction data between ore pool and ore machine, agent terminal, ore pool and system
CN106844608B (en) * 2017-01-18 2020-12-11 比特大陆科技有限公司 Method and device for detecting and switching data and electronic equipment

Also Published As

Publication number Publication date
CN110046035A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN105069073B (en) Contact information recommendation method and device
CN105517112B (en) Method and device for displaying WiFi network information
US10558511B2 (en) Method and device for evaluating system fluency, and UE
CN108268322B (en) Memory optimization method and device and computer readable storage medium
CN107193653B (en) Bandwidth resource allocation method, device and storage medium
CN108965611B (en) Shooting interface switching method, device, equipment and storage medium
CN111614990B (en) Method and device for acquiring loading duration and electronic equipment
CN109358788B (en) Interface display method and device and terminal
CN110046035B (en) System switching method and device and electronic equipment
CN110909886B (en) Machine learning network operation method, device and medium
CN113031837B (en) Content sharing method and device, storage medium, terminal and server
CN113761275A (en) Video preview moving picture generation method, device and equipment and readable storage medium
CN114189719A (en) Video information extraction method and device, electronic equipment and storage medium
CN105338109A (en) Shard scheduling method and device and distributed server system
CN111176841B (en) Distribution method and device of graphics processor resources, electronic equipment and storage medium
CN110929055A (en) Multimedia quality detection method and device, electronic equipment and storage medium
CN110784721A (en) Picture data compression method and device, electronic equipment and storage medium
CN110716985B (en) Node information processing method, device and medium
CN112769681B (en) Session display method and device, electronic equipment and storage medium
CN112783636A (en) Resource allocation method, device and storage medium
CN115328357A (en) Captured image processing method and device, electronic device and storage medium
CN114518959A (en) Distributed node resource load balancing method and device and electronic equipment
CN114723520A (en) Package recommendation method and device, electronic equipment and storage medium
CN113877205A (en) Cloud game interface processing method and device, electronic equipment and storage medium
CN110046043A (en) System switching method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210115

Address after: Room A1, 11 / F, punctuality building, 245-251 Hennessy Road, Hong Kong, China

Applicant after: BITMAIN TECHNOLOGY Co.,Ltd.

Address before: 26 Ying Yun street, Singapore

Applicant before: BITMAIN TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210508

Address after: 2701, 27th floor, Central Plaza, 18 Harbour Road, Wanchai, Hong Kong, China

Applicant after: Ant Mining Technology Co.,Ltd.

Address before: Room A1, 11 / F, punctuality building, 245-251 Hennessy Road, Hong Kong, China

Applicant before: BITMAIN TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant