CN109238758A - A kind of detection method and detection device of mine machine failure - Google Patents

A kind of detection method and detection device of mine machine failure Download PDF

Info

Publication number
CN109238758A
CN109238758A CN201810869319.6A CN201810869319A CN109238758A CN 109238758 A CN109238758 A CN 109238758A CN 201810869319 A CN201810869319 A CN 201810869319A CN 109238758 A CN109238758 A CN 109238758A
Authority
CN
China
Prior art keywords
mine machine
mine
failure
group
machine
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.)
Granted
Application number
CN201810869319.6A
Other languages
Chinese (zh)
Other versions
CN109238758B (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.)
Dongying Yuchen Technology Co.,Ltd.
Original Assignee
Foshan Xin Dazhi Hui 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 Foshan Xin Dazhi Hui Technology Co Ltd filed Critical Foshan Xin Dazhi Hui Technology Co Ltd
Priority to CN201810869319.6A priority Critical patent/CN109238758B/en
Publication of CN109238758A publication Critical patent/CN109238758A/en
Application granted granted Critical
Publication of CN109238758B publication Critical patent/CN109238758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones

Abstract

The invention proposes the detection methods and detection device of a kind of mine machine failure, wherein the detection method of mine machine failure includes: to send status inquiry signal to multiple mine machines;Receive the state value that multiple mine machines are fed back according to status inquiry signal;Whether detecting state value matches with pre-existing state threshold value;When detecting that state value and pre-existing state threshold value mismatch, according to preset status inquiry model, failure mine machine is determined.According to the technical solution of the present invention, the detection speed that mine machine calculates state can be effectively improved, to quickly carry out effective position to failure mine machine, and then engineer is facilitated to safeguard.

Description

A kind of detection method and detection device of mine machine failure
Technical field
The present invention relates to block chain fields, detection method, a kind of mine machine failure in particular to a kind of mine machine failure Detection device, a kind of server, a kind of terminal and a kind of computer readable storage medium.
Background technique
The digging mine process of digital cash is to cooperate to complete with mine pond by the mine machine of mining site.That is the mine machine of mining site is added to mine pond Middle resultant force is calculated, at this point, the status monitoring of mine machine is particularly significant, when mine pond issues a signal, if some mining site Some mine machine break down, cause mine pond slowly to can not receive signal, then will affect in current excacation, so influence mine The integral operation ability in pond.
In the related technology, hundreds if not thousands of mine machines, some mine in some mining site are usually provided in mining site When machine breaks down, if carrying out malfunction monitoring to each mine machine by mine pond or mining site, will occupy a large amount of time and Computing capability, especially in the channel of digital cash rapid rise of price, this mode will bring great loss of assets, without to event Barrier mine machine be monitored and position, mine pond also can not reasonable distribution calculating task, to cause the waste of computing resource.
Summary of the invention
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, the purpose of the present invention is to provide a kind of detection of a kind of detection method of mine machine failure, mine machine failure dresses It sets, a kind of server and a kind of computer readable storage medium.
To achieve the goals above, the technical solution of the first aspect of the present invention provides a kind of detection side of mine machine failure Method is suitable for server, comprising: sends status inquiry signal to multiple mine machines;Multiple mine machines are received according to status inquiry signal The state value of feedback;Whether detecting state value matches with pre-existing state threshold value;Detecting state value and pre-existing state threshold value not When matching, according to preset status inquiry model, failure mine machine is determined.
In the above-mentioned technical solutions, it is preferable that state value be Merkel's root, detecting state value whether with pre-existing state threshold Value matching, specifically includes the following steps: the quantity for the consistent signal of Merkel's root that detection receives whether with multiple mine machines Quantity it is identical;When the quantity of the quantity and multiple mine machines that detect consistent signal is inconsistent, determines state value and prestore shape State threshold value mismatches.
In any of the above-described technical solution, it is preferable that further include: in the quantity and multiple mine machines for detecting consistent signal It when quantity is consistent, determines that state value is matched with pre-existing state threshold value, continues to send status inquiry signal to wait.
In any of the above-described technical solution, it is preferable that when detecting that state value and pre-existing state threshold value mismatch, according to Preset status inquiry model determines failure mine machine, specifically includes the following steps: by multiple mine machines carry out halve or it is closest It halves and divides, to obtain first group of mine machine and second group of mine machine, first group of mine machine is identical as the quantity in second group of mine machine, or The number differences of first group of mine machine and second group of mine machine are 1;State-detection is carried out to first group of mine machine;Whether detect failure mine machine In first group of mine machine;When detecting that failure mine machine is in first group of mine machine, failure mine machine is confirmly detected, and by failure mine Machine reports and terminates query procedure;When detecting failure mine machine not in first group of mine machine, second group of mine machine is carried out repeatedly Iteration mine machine quantity segmentation, until detecting failure mine machine.
In any of the above-described technical solution, it is preferable that before sending status inquiry signal to multiple mine machines, further includes: from Trusted sources obtain credible Merkel's root, using as pre-existing state threshold value.
The technical solution of the second aspect of the present invention provides a kind of detection method of mine machine failure, is suitable for mining site mine Machine, comprising: when receiving the status inquiry signal of server transmission, current state value is generated according to status inquiry signal; State value is sent to server, with by server determine mining site mine machine whether failure.
In the above-mentioned technical solutions, it is preferable that when receiving the status inquiry signal of server transmission, looked into according to state It askes signal and generates current state value, specifically includes the following steps: generating Merkel tree when receiving status inquiry signal; According to Merkel's root of Merkel's tree generation area build, Merkel's root is determined as state value.
Specifically, in the bottom of Merkel tree, data are divided into small data block, there is correspondingly Hash and its correspondence, But up walk, two adjacent Hash are merged into a character string, then the Hash of this character string of operation, every in this way two A Hash is just married and given birth to babies, and one " sub- Hash " has been obtained, if the Hash sum of the bottom is odd number, that necessarily goes out to the end As soon as existing unmarried Hash, such case directly carries out Hash operation to it, so can also obtain its sub- Hash, then up It pushes away, is still the same mode, the available less new level-one Hash of number finally necessarily forms a projecting tree, arrives This position of tree root, this generation are left with a root Hash, it is called Merkle Root, i.e. Merkel tree by we Merkel's root of generation area build.
The technical solution of the third aspect of the present invention provides a kind of detection device of mine machine failure, is suitable for server, It include: transmission unit, for sending status inquiry signal to multiple mine machines;Receiving unit, for receiving multiple mine machines according to shape State inquires the state value of signal feedback;Whether detection unit matches for detecting state value with pre-existing state threshold value;It determines single Member, for according to preset status inquiry model, determining failure mine when detecting that state value and pre-existing state threshold value mismatch Machine.
In the above-mentioned technical solutions, it is preferable that detection unit is also used to: detect the Merkel's root received one writes Number quantity it is whether identical as the quantity of multiple mine machines;Determination unit is also used to: the quantity for detecting consistent signal with it is multiple When the quantity of mine machine is inconsistent, determine that state value and pre-existing state threshold value mismatch.
In any of the above-described technical solution, it is preferable that determination unit is also used to: in the quantity that detects consistent signal and more It when the quantity of a mine machine is consistent, determines that state value is matched with pre-existing state threshold value, continues to send status inquiry signal to wait.
In any of the above-described technical solution, it is preferable that further include: division unit, for multiple mine machines to be halved Or it is divided closest to halving, the number to obtain first group of mine machine and second group of mine machine, in first group of mine machine and second group of mine machine The number differences for measuring identical or first group of mine machine and second group of mine machine are 1;Detection unit is also used to: being carried out to first group of mine machine State-detection;Detection unit is also used to: whether detection failure mine machine is in first group of mine machine;Determination unit is also used to: being detected When to failure mine machine in first group of mine machine, failure mine machine is confirmly detected, and failure mine machine is reported and terminates query procedure; Division unit is also used to: when detecting failure mine machine not in first group of mine machine, carrying out the mine that iterates to second group of mine machine Machine quantity segmentation, until detecting failure mine machine.
In any of the above-described technical solution, it is preferable that further include: acquiring unit, for obtaining credible Merck from trusted sources Your root, using as pre-existing state threshold value.
The technical solution of the fourth aspect of the present invention provides a kind of detection device of mine machine failure, is suitable for mining site mine Machine, comprising: generation unit, for being generated according to status inquiry signal when receiving the status inquiry signal of server transmission Current state value;Transmission unit, for state value to be sent to server, to determine whether mining site mine machine is former by server Barrier.
In the above-mentioned technical solutions, it is preferable that generation unit is also used to: when receiving status inquiry signal, generating silent Ke Er tree;Generation unit is also used to: according to Merkel's root of Merkel's tree generation area build, Merkel's root being determined as State value.
The technical solution of the fifth aspect of the present invention provides a kind of server, including memory, processor and is stored in On memory and the computer program that can run on a processor, processor realize of the invention first when executing computer program The detection method of the mine machine failure of any one technical solution of aspect.
The technical solution of the sixth aspect of the present invention provides a kind of terminal, including memory, processor and is stored in On reservoir and the computer program that can run on a processor, processor realize second party of the invention when executing computer program The detection method of the mine machine failure of any one technical solution in face.
The technical solution of the seventh aspect of the present invention provides a kind of computer readable storage medium, is stored thereon with calculating Machine program realizes the mine machine failure of any one technical solution of the first aspect of the present invention when computer program is executed by processor Detection method.
The following technical effects are achieved for above-mentioned technical proposal:
(1) compared with detecting mine machine one by one by engineer and calculating the mode of state, mine machine can be effectively improved and calculate state Detection speed and then engineer is facilitated to safeguard to quickly carry out effective position to failure mine machine.
(2) compared with detecting mine machine one by one by engineer and calculating the mode of state, it can reduce money caused by failure mine machine Produce loss.
(3) be conducive to mine pond reasonable distribution calculating task, in turn result in the reasonable distribution of computing resource.
Additional aspect and advantage of the invention will become obviously in following description section, or practice through the invention Recognize.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 shows the schematic flow diagram of the detection method of mine machine failure according to an embodiment of the invention;
Fig. 2 shows the schematic flow diagrams of the detection method of mine machine failure according to another embodiment of the invention;
Fig. 3 shows the schematic block diagram of the detection device of mine machine failure according to an embodiment of the invention;
Fig. 4 shows the schematic block diagram of the detection device of mine machine failure according to another embodiment of the invention;
Fig. 5 shows the schematic diagram of mine machine distributing network according to an embodiment of the invention;
Fig. 6 shows the schematic flow diagram of the detection method of the mine machine failure of still another embodiment in accordance with the present invention;
Fig. 7 shows the schematic block diagram of the detection device of the mine machine failure of still another embodiment in accordance with the present invention;
Fig. 8 shows the schematic flow diagram of the detection method of mine machine failure according to still another embodiment of the invention;
Fig. 9 shows the schematic diagram of mine machine distributing network according to another embodiment of the invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
As shown in Figure 1, the detection method of mine machine failure according to an embodiment of the invention, is suitable for server, fit For server, comprising: step 102, send status inquiry signal to multiple mine machines;Step 104, multiple mine machines are received according to shape State inquires the state value of signal feedback;Step 106, whether detecting state value matches with pre-existing state threshold value;Step 108, it is examining When measuring state value and pre-existing state threshold value mismatch, according to preset status inquiry model, failure mine machine is determined.
In this embodiment, the state value fed back by receiving multiple mine machines according to the status inquiry signal of transmission, with inspection It surveys and whether is matched with pre-existing state threshold value, and then when detecting mismatch, according to status inquiry algorithm, determine failure Mine machine can effectively improve the detection that mine machine calculates state compared with detecting mine machine one by one by engineer and calculating the mode of state Speed to quickly carry out effective position to failure mine machine, and then facilitates engineer to safeguard.
In the above embodiment, it is preferable that state value be Merkel's root, detecting state value whether with pre-existing state threshold value Matching, specifically includes the following steps: the quantity for the consistent signal of Merkel's root that detection receives whether with multiple mine machines Quantity is identical;When the quantity of the quantity and multiple mine machines that detect consistent signal is inconsistent, state value and pre-existing state are determined Threshold value mismatches.
In this embodiment, whether identical as the trusted Merkel's root prestored by detection Merkel's root, i.e., Whether the quantitative value of the consistent signal of Merkel's root received is identical as the quantity of mine machine, when detecting not identical, i.e. table Bright Merkel tree is damage or false, and then shows that there are failure mine machines, highly-safe, and verification efficiency is high.
In any of the above-described embodiment, it is preferable that further include: in the number of the quantity and multiple mine machines that detect consistent signal It when measuring consistent, determines that state value is matched with pre-existing state threshold value, continues to send status inquiry signal to wait.
In any of the above-described embodiment, it is preferable that when detecting that state value and pre-existing state threshold value mismatch, according to pre- If status inquiry model, failure mine machine is determined, specifically includes the following steps: multiple mine machines halve or closest to two Equal part divides, and to obtain first group of mine machine and second group of mine machine, first group of mine machine is identical as the quantity in second group of mine machine or the The number differences of one group of mine machine and second group of mine machine are 1;State-detection is carried out to first group of mine machine;Detect failure mine machine whether In first group of mine machine;When detecting that failure mine machine is in first group of mine machine, failure mine machine is confirmly detected, and by failure mine machine It reports and terminates query procedure;When detecting failure mine machine not in first group of mine machine, changed repeatedly to second group of mine machine Divide for mine machine quantity, until detecting failure mine machine.
In this embodiment, the status inquiry of mine machine is carried out by using logarithm recursive algorithm, to determine problem mine machine, with The mode for detecting mine machine calculating state one by one by engineer is compared, and can reduce loss of assets caused by failure mine machine.
In any of the above-described embodiment, it is preferable that before sending status inquiry signal to multiple mine machines, further includes: from can Information source obtains credible Merkel's root, using as pre-existing state threshold value.
In this embodiment, by obtaining credible Merkel's root from trusted sources, it ensure that the reliability of state-detection.
As shown in Fig. 2, the detection method of mine machine failure according to another embodiment of the invention, is suitable for mining site mine Machine, comprising: step 202, when receiving the status inquiry signal of server transmission, generated currently according to status inquiry signal State value;Step 204, state value is sent to server, with by server determine mining site mine machine whether failure.
In this embodiment, by sending state value to service area, to be determined whether there is by server according to state value Failure mine machine can effectively improve mine machine and calculate state compared with detecting mine machine one by one by engineer and calculating the mode of state Speed is detected, to quickly carry out effective position to failure mine machine, and then engineer is facilitated to safeguard.
In the above embodiment, it is preferable that when receiving the status inquiry signal of server transmission, according to status inquiry Signal generates current state value, specifically includes the following steps: generating Merkel tree when receiving status inquiry signal;Root According to Merkel's root of Merkel's tree generation area build, Merkel's root is determined as state value.
In this embodiment, by generating Merkel's root, to detect whether Merkel's root prestores with trusted Merkel's root is identical, that is, whether the quantitative value of the consistent signal of Merkel's root received is identical as the quantity of mine machine, is examining When measuring not identical, that is, show that Merkel tree is damage or false, and then show that there are failure mine machines, it is highly-safe, And verification efficiency is high.
Specifically, in the bottom of Merkel tree, data are divided into small data block, there is correspondingly Hash and its correspondence, But up walk, two adjacent Hash are merged into a character string, then the Hash of this character string of operation, every in this way two A Hash is just married and given birth to babies, and one " sub- Hash " has been obtained, if the Hash sum of the bottom is odd number, that necessarily goes out to the end As soon as existing unmarried Hash, such case directly carries out Hash operation to it, so can also obtain its sub- Hash, then up It pushes away, is still the same mode, the available less new level-one Hash of number finally necessarily forms a projecting tree, arrives This position of tree root, this generation are left with a root Hash, it is called Merkle Root, i.e. Merkel tree by we Merkel's root of generation area build.
As shown in figure 3, the detection device 300 of mine machine failure according to an embodiment of the invention, is suitable for server, It include: transmission unit 302, for sending status inquiry signal to multiple mine machines;Receiving unit 304, for receiving multiple mine machines The state value fed back according to status inquiry signal;Detection unit 306, for detecting state value whether with pre-existing state threshold value Match;Determination unit 308, for when detecting that state value and pre-existing state threshold value mismatch, according to preset status inquiry mould Type determines failure mine machine.
In this embodiment, the state value fed back by receiving multiple mine machines according to the status inquiry signal of transmission, with inspection It surveys and whether is matched with pre-existing state threshold value, and then when detecting mismatch, according to status inquiry algorithm, determine failure Mine machine can effectively improve the detection that mine machine calculates state compared with detecting mine machine one by one by engineer and calculating the mode of state Speed to quickly carry out effective position to failure mine machine, and then facilitates engineer to safeguard.
In the above embodiment, it is preferable that detection unit 306 is also used to: detecting the consistent of the Merkel's root received Whether the quantity of signal is identical as the quantity of multiple mine machines;Determination unit 308 is also used to: the quantity that detects consistent signal with When the quantity of multiple mine machines is inconsistent, determine that state value and pre-existing state threshold value mismatch.
In this embodiment, whether identical as the trusted Merkel's root prestored by detection Merkel's root, i.e., Whether the quantitative value of the consistent signal of Merkel's root received is identical as the quantity of mine machine, when detecting not identical, i.e. table Bright Merkel tree is damage or false, and then shows that there are failure mine machines, highly-safe, and verification efficiency is high.
In any of the above-described embodiment, it is preferable that determination unit 308 is also used to: the quantity that detects consistent signal with It when the quantity of multiple mine machines is consistent, determines that state value is matched with pre-existing state threshold value, continues to send status inquiry signal to wait.
In any of the above-described embodiment, it is preferable that further include: division unit 310, for multiple mine machines to be halved Or it is divided closest to halving, the number to obtain first group of mine machine and second group of mine machine, in first group of mine machine and second group of mine machine The number differences for measuring identical or first group of mine machine and second group of mine machine are 1;Detection unit 306 is also used to: to first group of mine machine into Row state-detection;Detection unit 306 is also used to: whether detection failure mine machine is in first group of mine machine;Determination unit 308 is also used In: when detecting that failure mine machine is in first group of mine machine, confirmly detect failure mine machine, and failure mine machine is reported and terminated Query procedure;Division unit 310 is also used to: when detecting failure mine machine not in first group of mine machine, to second group of mine machine into The capable mine machine quantity segmentation that iterates, until detecting failure mine machine.
In this embodiment, the status inquiry of mine machine is carried out by using logarithm recursive algorithm, to determine problem mine machine, with The mode for detecting mine machine calculating state one by one by engineer is compared, and can reduce loss of assets caused by failure mine machine.
In any of the above-described embodiment, it is preferable that further include: acquiring unit 312, for obtaining credible Merck from trusted sources Your root, using as pre-existing state threshold value.
In this embodiment, by obtaining credible Merkel's root from trusted sources, it ensure that the reliability of state-detection.
As shown in figure 4, the detection device 400 of mine machine failure according to another embodiment of the invention, is suitable for mining site Mine machine, comprising: generation unit 402, for receive server transmission status inquiry signal when, according to status inquiry signal Generate current state value;Transmission unit 404, for state value to be sent to server, to determine mining site mine machine by server Whether failure.
In this embodiment, by sending state value to service area, to be determined whether there is by server according to state value Failure mine machine can effectively improve mine machine and calculate state compared with detecting mine machine one by one by engineer and calculating the mode of state Speed is detected, to quickly carry out effective position to failure mine machine, and then engineer is facilitated to safeguard.
In the above embodiment, it is preferable that generation unit 402 is also used to: when receiving status inquiry signal, generating silent Ke Er tree;Generation unit 402 is also used to: according to Merkel's root of Merkel's tree generation area build, Merkel's root is true It is set to state value.
In this embodiment, by generating Merkel's root, to detect whether Merkel's root prestores with trusted Merkel's root is identical, that is, whether the quantitative value of the consistent signal of Merkel's root received is identical as the quantity of mine machine, is examining When measuring not identical, that is, show that Merkel tree is damage or false, and then show that there are failure mine machines, it is highly-safe, And verification efficiency is high.
Specifically, bit coin is the network architecture of a decentralization, by install bit coin demons node come Forward New Transaction and new block.And mine machine, mine pond have also been formed simultaneously another network, referred to as miner's network.
Miner's network is divided into several major parts such as mine machine, mine pond, wallet, and mine pond software and wallet are mounted on one sometimes It rises, mine pond can be collectively referred to as.
Communications protocol between mine machine and mine pond software is stratum, and the communication between mine pond software and wallet is Bitcoinrpc interface.
Stratum is that JSON is data format, and specific agreement is as follows:
1, task is subscribed to
The starting of mine machine, connects first in mining.subscribe method to mine pond, for subscribing to work.Mine pond with Mining.notify returns to subscription number, ExtraNonce1 and ExtraNonce2_size.
2, task is distributed
The order periodically sends out rock feeder by mine pond, and after mine machine is with the registration of mining.subscribe method, mine pond should The task is returned to mining.notify at once.
3, mine machine logs in
Mine machine is in mining.authorize method, and with some account number and password login to mine pond, password can be empty, and mine pond is returned True is returned to login successfully.This method must be carried out at once after initialization connection, and otherwise mine machine cannot get mine pond task.
4, result is submitted
When mine machine finds legal share, task just is submitted to mine pond in " mining.submit " method.Mine pond returns True is submitted successfully, has concrete reason in error if failure.
5, adjusting of difficulty
Adjusting of difficulty issues rock feeder by mine pond, with mining.set_difficulty method adjustment difficulty, in params It is difficulty value.
Mine chance uses new difficulty in next task, and mine pond issues a new task and at once sometimes cleaning Task is set as true, so that mine machine is at once with the work of new difficulty.
As shown in figure 5, server is attached and is communicated with each mine machine by bus.Due to the mine having in mining site Machine quantity is hundreds to thousands platform, successively carries out fault detection to all mine machines by engineer, is unacceptable in time. Therefore, the invention proposes a kind of fault detection methods based on above-mentioned network topology structure.
Merkel's root of file is first obtained from believable source, once obtain root, so that it may from other from incredible source Obtain Merkel tree.The Merkel tree received is checked by believable tree root.If Merkel tree is damage or empty False, another Merkel tree just is obtained from other sources, until obtaining one and the matched Merkel tree of credible tree root.
As shown in fig. 6, the detection method of the mine machine failure of still another embodiment in accordance with the present invention, comprising: step 602, Send status inquiry signal;Step 604, if all consistent signals are received, when result is "Yes", enter step 606, When result is "No", 608 are entered step;Step 606, status inquiry next time is waited;Step 608, status inquiry is executed to calculate Method;Step 610, failure machine is inquired, when result is "Yes", enters step 612, when result is "No", return step 608;Step 612, failure mine machine is reported and waits status inquiry next time.
Specifically, server at certain intervals the time (preferably, one hour) to all mine machines (for example, n platform mine machine) Same status inquiry signal is issued, mine machine sends Merkel's root of block head after receiving status inquiry signal to server Value.If mine machine calculate state be it is normal, Merkel's root of block head transmitted by mine machine is deposited in advance with server Merkel's root of storage is consistent;If mine machine state is failure, the Merkel's root and clothes of block head transmitted by mine machine Pre-stored Merkel's root in device of being engaged in is inconsistent.
Wherein, transaction record is saved with trading card, the past 10 minutes, all newly generated trading cards of the whole network were stored in one In new block, all blocks are together in series to form block chain.So block chain is equivalent to a distributed account book.The whole network In each node participate in jointly safeguard this account book.One new block of generation in every 10 minutes, and synchronized update is into the whole network So node.After the whole network confirmation, can not just it change.
After issuing a status inquiry signal, whether statistics receives the root one equal to mine machine total quantity is write server Number (for example, the consistent signal of n root).If receiving the consistent signal of root equal to mine machine total quantity, under server waiting Status inquiry.If not receiving the consistent signal of root equal to mine machine total quantity, server executes status inquiry and calculates Method, to detect being which platform mine machine breaks down.After inquiring failure mine machine, failure mine machine number is reported mining site by server With mine pond, in order to which engineer repairs and mine pond is made to redistribute calculating task.
As shown in Figure 8, it is assumed that the mine machine in mining site has n platform, and n platform mine machine can be divided into closest two of number Point.Such as n is even number, then is divided into two groups, each n/2 platform;N is odd number, and one is (n+1)/2, and another group is n- (n+1)/2 Platform.
When confirm n platform mine machine in break down when, n platform is divided into two groups, then at random to wherein one group of detection failure (i.e. Status inquiry signal is retransmitted to this group of mine machine).If it is not detected that (i.e. state detection unit 10 receives failure mine machine In the consistent signal of Merkel's root of this group of quantity), then next group is detected, mine machine (the i.e. state-detection list if detection is out of order Member 10 does not receive the consistent signal of Merkel's root equal to this group of quantity), then it is reported.This method is iterated, i.e., The mine machine for really occurring to calculate failure can be found.
The step of status inquiry algorithm, is summarized as follows:
Step 802: by the bisection of mine machine quantity or closest bisection;
Step 804: state-detection is carried out to wherein one group of mine machine;
Step 806: failure mine machine is determined whether in current group, if so, 4 are then entered step, if not, entering step 5;
Step 808: state-detection being carried out to another group of mine machine, then return step 802.
Step 810: being confirmed whether to detect failure mine machine, such as detect, enter step 812, i.e., report failure mine machine And terminate query procedure, be such as not detected, then then return step 802.
The block size of bit coin is strictly limited within 1MB at present.The block size field of 4 bytes does not include herein It is interior.
As shown in fig. 7, including in the server state detection unit, by being formed with lower unit: control unit 704, meter Counting unit 702 sends and detects signal element 706.Its specific arrangement is as shown below:
In each status inquiry, transmission is controlled by control unit 704 and detection signal element 706 believes status inquiry Number each mine machine is sent to by bus, sent and packet that detection signal element 706 returns each mine machine by bus feedback The signal for including Merkel's root is sent to counting unit 702.By the statistics of counting unit 702 and pre-stored Merkel's root one Merkel's root number of cause, and the number after statistics is sent to control unit 704 by counting unit 702.By control unit 704 confirmation epicycles inquire the mine machine that whether breaks down.
As shown in figure 9, some mine machines are set as main mine machine in the network topology structure, play the part of reality by these main mine machines The role of server in example 1 is applied, that is, including state detection unit 10 in each main mine machine, and each main mine machine passes through always Line executes above-mentioned status inquiry algorithm proposed by the present invention to the mine machine cluster for being subordinated to oneself respectively.When detecting failure mine machine When, server is reported by main mine machine and then reports to mining site and mine pond.This network structure decomposes query task respectively On a main mine machine, thus compared to embodiment 1, the operand of server is effectively reduced, and being capable of quickly positioning failure Mine machine.
The server of embodiment according to the present invention, including memory, processor and storage on a memory and can located The computer program run on reason device, processor realize that any one of the first aspect of the present invention is implemented when executing computer program The detection method of the mine machine failure of example.
The terminal of embodiment according to the present invention, including memory, processor and storage on a memory and can handled The computer program run on device, processor realize any one embodiment of the second aspect of the present invention when executing computer program Mine machine failure detection method.
The computer readable storage medium of embodiment according to the present invention is stored thereon with computer program, computer journey The detection method of the mine machine failure of any one embodiment of the first aspect of the present invention is realized when sequence is executed by processor.
Step in the method for the present invention can be sequentially adjusted, combined, and deleted according to actual needs.
Unit in apparatus of the present invention can be combined, divided, and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can For carrying or any other computer-readable medium of storing data.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of detection method of mine machine failure is suitable for mining site server characterized by comprising
Status inquiry signal is sent to multiple mine machines;
Receive the state value that the multiple mine machine is fed back according to the status inquiry signal;
Detect whether the state value matches with pre-existing state threshold value;
When detecting that the state value and the pre-existing state threshold value mismatch, according to preset status inquiry model, determine Failure mine machine.
2. the detection method of mine machine failure according to claim 1, which is characterized in that the state value is Merkel's root Whether value, the detection state value match with pre-existing state threshold value, specifically includes the following steps:
Whether the quantity for detecting the consistent signal of the Merkel's root received is identical as the quantity of the multiple mine machine;
When the quantity of the quantity and the multiple mine machine that detect the consistent signal is inconsistent, the state value and institute are determined State pre-existing state threshold value mismatch.
3. the detection method of mine machine failure according to claim 2, which is characterized in that further include:
When the quantity for detecting the consistent signal is consistent with the quantity of the multiple mine machine, determine the state value with it is described The matching of pre-existing state threshold value, continues to send the status inquiry signal to wait.
4. the detection method of mine machine failure according to claim 3, which is characterized in that described to detect the state value When being mismatched with the pre-existing state threshold value, according to preset status inquiry model, determines failure mine machine, specifically include following step It is rapid:
The multiple mine machine halve or is divided closest to halving, to obtain first group of mine machine and second group of mine machine, First group of mine machine, first group of mine machine identical or described with the quantity in second group of mine machine and second group of mine machine Number differences are 1;
State-detection is carried out to first group of mine machine;
The failure mine machine is detected whether in first group of mine machine;
When detecting that the failure mine machine is in first group of mine machine, the failure mine machine is confirmly detected, and will be described Failure mine machine reports and terminates query procedure;
When detecting the failure mine machine not in first group of mine machine, the mine that iterates is carried out to second group of mine machine Machine quantity segmentation, until detecting the failure mine machine.
5. the detection method of mine machine failure according to any one of claim 2 to 4, which is characterized in that described to more Before a mine machine sends status inquiry signal, further includes:
Credible Merkel's root is obtained from trusted sources, using as the pre-existing state threshold value.
6. a kind of detection method of mine machine failure is suitable for mining site mine machine characterized by comprising
When receiving the status inquiry signal of server transmission, current state value is generated according to the status inquiry signal;
The state value is sent to the server, with by the server determine the mining site mine machine whether failure.
7. the detection method of mine machine failure according to claim 6, which is characterized in that described to receive server transmission Status inquiry signal when, current state value is generated according to the status inquiry signal, specifically includes the following steps:
When receiving the status inquiry signal, Merkel tree is generated;
According to Merkel's root of the Merkel tree generation area build, Merkel's root is determined as the state Value.
8. a kind of detection device of mine machine failure is suitable for mining site server characterized by comprising
Transmission unit, for sending status inquiry signal to multiple mine machines;
Receiving unit, the state value fed back for receiving the multiple mine machine according to the status inquiry signal;
Detection unit, for detecting whether the state value matches with pre-existing state threshold value;
Determination unit, for when detecting that the state value and the pre-existing state threshold value mismatch, according to preset state Interrogation model determines failure mine machine.
9. the detection device of mine machine failure according to claim 8, which is characterized in that
The detection unit is also used to: detect the consistent signal of the Merkel's root received quantity whether with it is described more The quantity of a mine machine is identical;
The determination unit is also used to: inconsistent in the quantity for detecting the consistent signal and the quantity of the multiple mine machine When, determine that the state value and the pre-existing state threshold value mismatch.
10. the detection device of mine machine failure according to claim 8, which is characterized in that
The determination unit is also used to: when the quantity for detecting the consistent signal is consistent with the quantity of the multiple mine machine, It determines that the state value is matched with the pre-existing state threshold value, continues to send the status inquiry signal to wait;Further include:
Division unit, for halve by the multiple mine machine or be divided closest to halving, to obtain first group of mine machine With second group of mine machine, first group of mine machine, first group of mine machine identical or described with the quantity in second group of mine machine and institute The number differences for stating second group of mine machine are 1;
The detection unit is also used to: carrying out state-detection to first group of mine machine;
The detection unit is also used to: detecting the failure mine machine whether in first group of mine machine;
The determination unit is also used to: when detecting that the failure mine machine is in first group of mine machine, confirmly detecting institute Failure mine machine is stated, and the failure mine machine is reported and terminates query procedure;
The division unit is also used to: when detecting the failure mine machine not in first group of mine machine, to described second Group mine machine carries out the mine machine quantity segmentation that iterates, until detecting the failure mine machine;
Acquiring unit, for obtaining credible Merkel's root from trusted sources, using as the pre-existing state threshold value;
Generation unit, for being generated according to the status inquiry signal when receiving the status inquiry signal of server transmission Current state value;
Transmission unit, for the state value to be sent to the server, to determine the mining site mine machine by the server Whether failure;
The generation unit is also used to: when receiving the status inquiry signal, generating Merkel tree;
The generation unit is also used to: according to Merkel's root of the Merkel tree generation area build, by the Merkel Root is determined as the state value.
CN201810869319.6A 2018-08-02 2018-08-02 Method and device for detecting faults of block chain mining machine Active CN109238758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810869319.6A CN109238758B (en) 2018-08-02 2018-08-02 Method and device for detecting faults of block chain mining machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810869319.6A CN109238758B (en) 2018-08-02 2018-08-02 Method and device for detecting faults of block chain mining machine

Publications (2)

Publication Number Publication Date
CN109238758A true CN109238758A (en) 2019-01-18
CN109238758B CN109238758B (en) 2020-12-18

Family

ID=65072705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810869319.6A Active CN109238758B (en) 2018-08-02 2018-08-02 Method and device for detecting faults of block chain mining machine

Country Status (1)

Country Link
CN (1) CN109238758B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165123A (en) * 2018-08-02 2019-01-08 佛山鑫达智汇科技有限公司 Detection method, detection device, server and the storage medium of mine machine failure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604316A (en) * 2017-01-03 2017-04-26 张毅昆 Wireless access equipment fault positioning method, device and system
CN107078903A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Digging ore deposit method, device and the node device of block chain
US20180082390A1 (en) * 2016-09-19 2018-03-22 Thomson Reuters Global Resources Unlimited Company Systems and methods for interception of smart contracts
CN109165123A (en) * 2018-08-02 2019-01-08 佛山鑫达智汇科技有限公司 Detection method, detection device, server and the storage medium of mine machine failure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180082390A1 (en) * 2016-09-19 2018-03-22 Thomson Reuters Global Resources Unlimited Company Systems and methods for interception of smart contracts
CN107078903A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Digging ore deposit method, device and the node device of block chain
CN106604316A (en) * 2017-01-03 2017-04-26 张毅昆 Wireless access equipment fault positioning method, device and system
CN109165123A (en) * 2018-08-02 2019-01-08 佛山鑫达智汇科技有限公司 Detection method, detection device, server and the storage medium of mine machine failure

Also Published As

Publication number Publication date
CN109238758B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN110543788B (en) Data storage method, apparatus, computer readable storage medium and computer device
EP3465481B1 (en) Method and system for desychronization recovery for permissioned blockchains using bloom filters
CN114944932B (en) Method and system for adding blocks to licensed blockchains
US11444777B2 (en) Method and system for providing validated, auditable, and immutable inputs to a smart contract
CN109741039B (en) Accounting method, mine pool server, terminal equipment, mine excavation node and mine pool
CN107276765B (en) Processing method and device for consensus in block chain
US11461310B2 (en) Distributed ledger technology
CN111431903B (en) Cross-link relay method, device and computer readable storage medium
CN109542888A (en) The data modification and synchronous method of block chain, device, equipment and storage medium
CN109166040B (en) Transaction auditing method, device, equipment and storage medium based on block chain
CN111612613A (en) Block chain network with centralized system
CN110458709B (en) Resource transfer information transmission method and device, storage medium and electronic device
CN109615509A (en) A kind of financial risks appraisal procedure and system
CN110958161B (en) Block chain link point monitoring method and device and storage medium
CN109087105A (en) For digging the Hash Search method of mine, digging mine machine and block catenary system
CN111461881A (en) Data management method and device, computer equipment and storage medium
CN112488777A (en) Bill processing method and related device
US11263569B2 (en) Blockchain-based information processing method and apparatus, and device
CN109871263B (en) Operation method, device and equipment of offline block chain system and storage medium
CN109238758A (en) A kind of detection method and detection device of mine machine failure
CN109165123A (en) Detection method, detection device, server and the storage medium of mine machine failure
CN111865595A (en) Block chain consensus method and device
CN104991864A (en) External link system oriented test method and apparatus
CN115687526A (en) Seismic data model sharing method based on block chain and federal learning
CN115442322A (en) Method, system and equipment for sending shortcut message and computer read-only medium

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
TA01 Transfer of patent application right

Effective date of registration: 20201130

Address after: 325000 No.8 Dongyou Road, Lucheng District, Wenzhou City, Zhejiang Province

Applicant after: Li Shuqin

Address before: 528200 Guangdong Foshan Nanhai District Guicheng Street Xia Nan Road No.61 Chuangyue Times Cultural and Creative Park Building 1 Business Incubator Co., Ltd. One of the 210 rooms 14

Applicant before: FOSHAN XINDA ZHIHUI TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211209

Address after: 257000 room 320, Wanda harbor city, No. 25-1, Gangcheng Road, dongyinggang Economic Development Zone, Dongying City, Shandong Province

Patentee after: Dongying Yuchen Technology Co.,Ltd.

Address before: 325000 No. 8, Dongyou Road, Lucheng District, Wenzhou City, Zhejiang Province

Patentee before: Li Shuqin