The content of the invention
An embodiment of the present invention technical problem to be solved is:In order to overcome ore deposit pond because can not in time obtain newest meter
Count according to and produce data orphan block problem.
A kind of method detected with switch data provided in an embodiment of the present invention, including:
The request for calculating data is obtained in response to current ore deposit pond, respectively from least one other ore deposit pond and digital cash client
End obtains multigroup calculating data, and multigroup calculating data to the acquisition are compared, and obtain latest computed data;
Based on the new operational data of the latest computed data genaration for obtaining, and the new operational data is sent to
The all ore deposit machines being connected with the current ore deposit pond.
In another embodiment based on the above method, described acquisition from other ore deposit ponds calculates data, including:
The working condition in other ore deposit ponds is monitored, and obtains the operational data that other ore deposit ponds currently calculate;
Operational data based on the acquisition is converted to the calculating data in correspondence other ore deposit ponds.
In another embodiment based on the above method, described acquisition from digital cash client calculates data, including:
Ore deposit agreement call number currency client is dug based on the decentralization of bit coin, the digital cash client is obtained and is rectified
In the calculating data for the treatment of.
In another embodiment based on the above method, the operational data includes:Proof information, a upper data block dissipate
Train value, version information, difficulty information, transmission time information and data message need to be calculated.
In another embodiment based on the above method, the calculating data include:Version information, a upper data block dissipate
Train value, multiple unacknowledged transaction data blocks, start to process temporal information and difficulty in computation information.
In another embodiment based on the above method, the multigroup calculating data to the acquisition are compared, including:
Multigroup calculating data to the acquisition extract correspondence every group of version information of calculating data, a upper data respectively
The hashed value of block, multiple unacknowledged transaction data blocks and temporal information;
The corresponding temporal information of the different calculating data of comparison and/or version information;
And/or, will be not true in the hashed value of the upper data block in one group of calculating data and another group of calculating data
Hashed value in the transaction data block recognized is compared.
It is described to obtain latest computed data in another embodiment based on the above method, including:
The corresponding one group of calculating data of temporal information closest to current time are obtained as newest meter based on temporal information
Count evidence;
And/or, the corresponding one group of calculating data of latest version information are obtained as latest computed data based on version information;
And/or, the corresponding one group of calculating of hashed value all not to be covered in every other calculating data is worth to based on hash
Data are used as latest computed data.
In another embodiment based on the above method, also include:
The ore deposit machine being connected with current ore deposit pond receives the new operational data, by upper one in the new operational data
The hashed value of individual data block is compared with the hashed value in the operational data being presently processing;
When in the hashed value of a upper data block and the operational data being presently processing in the new operational data
When hashed value is mismatched, stop the operational data that is presently processing described in treatment, new operational data described in start to process.
In another embodiment based on the above method, also include:When a upper data block in the new operational data
During Hash value matches in hashed value and the operational data being presently processing, ignore the new operational data, continue with
The operational data being presently processing.
In another embodiment based on the above method, also include:
Result data is fed back to the current ore deposit pond by all ore deposit machines being connected with current ore deposit pond;The result data
It is to be calculated based on the new operational data or currently processed operational data.
It is described to be sent to and the current ore deposit pond the new operational data in another embodiment based on the above method
All ore deposit machines of connection, including:
The pre- estimation power of all ore deposit machines in response to being connected with the current ore deposit pond, to all ore deposit machines according to pre- estimation
Power is descending to be ranked up, and the new operational data sequentially is sent into all ore deposit machines.
In another embodiment based on the above method, the acquisition of the pre- estimation power of the ore deposit machine, including:
The result data ore deposit corresponding with the Time Calculation acquisition for feeding back the result data based on ore deposit machine feedback
The pre- estimation power of machine.
Other side according to embodiments of the present invention, there is provided a kind of detection and switch data device, including:
Data capture unit, the request of data is calculated for being obtained in response to current ore deposit pond, respectively from least one other
Ore deposit pond and digital cash client obtain multigroup calculating data, and multigroup calculating data to the acquisition are compared, and are obtained
Latest computed data;
Data transmission unit, for based on the new operational data of the latest computed data genaration for obtaining, and will be described
New operational data is sent to all ore deposit machines being connected with the current ore deposit pond.
Other side according to embodiments of the present invention, there is provided a kind of electronic equipment, including processor, the processor
Device including detection as described above and switch data.
The detection provided based on the above embodiment of the present invention and the method for switch data, device and electronic equipment, by from
Other ore deposit ponds and digital cash client obtain multigroup calculating data, and judge to obtain latest computed data, based on latest computed
The new operational data of data genaration is sent in ore deposit machine, ore deposit machine is obtained newest calculating data, therefore, calculate power equal
Under, the ore deposit machine in the ore deposit pond most can soon calculate new data block and obtain the accreditation in other ore deposit ponds, subtract on to greatest extent
The generation of small data orphan blocks, improves ore deposit machine income.
Below by drawings and Examples, technical scheme is described in further detail.
Specific embodiment
Describe various exemplary embodiments of the invention in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition
Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value for otherwise illustrating in these embodiments do not limit this
The scope of invention.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality
Proportionate relationship draw.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention
And its any limitation applied or use.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as a part for specification.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further discussed in subsequent accompanying drawing.
The embodiment of the present invention can apply to computer system/server, and it can be with numerous other universal or special calculating
System environments or configuration are operated together.It is suitable to the well-known computing system, the ring that are used together with computer system/server
The example of border and/or configuration is included but is not limited to:Personal computer system, server computer system, thin client, fat client
Machine, hand-held or laptop devices, the system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC,
Little types Ji calculates machine Xi Tong ﹑ large computer systems and the distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in computer system executable instruction (the such as journey performed by computer system
Sequence module) general linguistic context under describe.Generally, program module can include routine, program, target program, component, logic, number
According to structure etc., they perform specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is long-range by what is connected by communication network
What reason equipment was performed.In distributed cloud computing environment, program module may be located at the Local or Remote meter including storage device
On calculation system storage medium.
Fig. 1 is the flow chart of method one embodiment of present invention detection and switch data.As shown in figure 1, the embodiment
Method includes:
Step 101, the request for calculating data is obtained in response to current ore deposit pond, respectively from least one other ore deposit pond and numeral
Currency client obtains multigroup calculating data, and multigroup calculating data to obtaining are compared, and obtain latest computed data.
Wherein, above-mentioned other ore deposit ponds include the ore deposit pond that there is annexation with current ore deposit pond, and this annexation can be
Connected by agreement or other can realize the connection of data communication, in the present embodiment, can be logical between ore deposit machine by simulating
Believe the communication that the mode of agreement is realized between current ore deposit pond and other ore deposit ponds, and then obtain the calculating data in other ore deposit ponds.
Step 102, based on the new operational data of the latest computed data genaration for obtaining, and new operational data is sent to
The all ore deposit machines being connected with current ore deposit pond.
The detection provided based on the above embodiment of the present invention and the method for switch data, by from other ore deposit ponds and digital goods
Coin client obtains multigroup calculating data, and judges to obtain latest computed data, based on the new work of latest computed data genaration
Data is activation enables ore deposit machine to obtain newest calculating data in ore deposit machine, therefore, calculated under power equal, the ore deposit in the ore deposit pond
Machine most can soon calculate new data block and obtain the accreditation in other ore deposit ponds, and the product of data orphan's block is reduced on to greatest extent
It is raw, improve ore deposit machine income.
Obtained from other ore deposit ponds in a specific example of the above embodiment of the present invention, in step 101 and calculate data
Process can specifically include:
The working condition in other ore deposit ponds is monitored, and obtains the operational data that other ore deposit ponds currently calculate;Based on the work for obtaining
The calculating data in other ore deposit ponds of correspondence are converted to as data.
In this example, in order to guarantee to obtain newest calculating data in real time, pair there is annexation with current ore deposit pond
Other ore deposit machines use monitoring means, whenever other ore deposit ponds receive or send new operational data, current ore deposit pond can first
Time understands and obtains new operational data, it is ensured that current ore deposit pond can upgrade in time calculating data.
Obtained from digital cash client in a specific example of the above embodiment of the present invention, in step 101 and calculated
The process of data can specifically include:
Ore deposit agreement call number currency client is dug based on the decentralization of bit coin, digital cash client is obtained and is located
The calculating data of reason.
The decentralization of GBT bit coin digs ore deposit agreement (getblocktemplate) in order that ore deposit is dug in distributed decentralization,
In order that overcoming the shortcoming of centralization, the influence between node and node is realized, non-linear cause and effect can be formed by network and is closed
System;This open, flattening, the system phenomenon of equality or structure are referred to as decentralization;Bit coin is a kind of distributed
Ideal money, whole network is made up of user, does not have the Central Bank.Decentralization is bit coin safety and free guarantee.
In a specific example of the above embodiment of the present invention, operational data can include:Proof information, a upper number
According to the hashed value of block, version information, difficulty information, transmission time information and data message need to be calculated.
Operational data can be obtained from other ore deposit ponds, and can just be obtained by being extracted to the data in operational data
Succeed in one's scheme the evidence that counts, it is possible to realize the purpose compared with the calculating data obtained from data currency client.
In a specific example of the above embodiment of the present invention, calculating data includes:Version information, a upper data block
Hashed value, multiple unacknowledged transaction data blocks, start to process temporal information and difficulty in computation information.
The information of data included in data is calculated to can be used for judging whether this calculating data is latest computed data,
If latest computed data, it is possible to new according to the generation of the information such as multiple unacknowledged transaction data blocks and difficulty in computation information
Job information and be sent in coupled ore deposit machine by ore deposit pond, by ore deposit machine calculate and obtain new data block.
In a specific example of the above embodiment of the present invention, the multigroup calculating data for obtaining are carried out in step 101
The process that comparison obtains latest computed data can specifically include:
Multigroup calculating data to obtaining extract correspondence every group of version information of calculating data, a upper data block respectively
Hashed value, multiple unacknowledged transaction data blocks and temporal information;
The corresponding temporal information of the different calculating data of comparison;Obtain believing closest to the time of current time based on temporal information
Corresponding one group of calculating data are ceased as latest computed data.
And/or, the corresponding version information of the different calculating data of comparison;Latest version information correspondence is obtained based on version information
One group of calculating data as latest computed data.
And/or, will be not true in the hashed value of the upper data block in one group of calculating data and another group of calculating data
Hashed value in the transaction data block recognized is compared;Based on hash be worth to it is every other calculating data in all it is not to be covered dissipate
The corresponding one group of calculating data of train value are used as latest computed data.
It is above-mentioned to be based on mode that three kinds of information compare and in any combination or be used alone, judgement can be reached most
The new function of calculating data, above-mentioned alignments are that the particularity for having bit coin is determined.
Fig. 2 is the flow chart of present invention detection and another embodiment of the method for switch data.As shown in Fig. 2 the implementation
Example method includes:
Step 101, the request for calculating data is obtained in response to current ore deposit pond, respectively from least one other ore deposit pond and numeral
Currency client obtains multigroup calculating data, and multigroup calculating data to obtaining are compared, and obtain latest computed data.
Step 102, based on the new operational data of the latest computed data genaration for obtaining, and new operational data is sent to
The all ore deposit machines being connected with current ore deposit pond.
Step 203, the ore deposit machine being connected with current ore deposit pond receives new operational data, and judges upper one in new operational data
Whether the hashed value of individual data block matches with the hashed value in the operational data being presently processing;If it does, performing step
205;Otherwise, step 204 is performed.
Step 204, the operational data that stopping treatment being presently processing, the new operational data of start to process.
Step 205, ignores the new operational data, continues with the operational data being presently processing.
In the present embodiment method, after the ore deposit machine being connected with current ore deposit pond obtains new operational data, first will be therein
Hashed value is compared, to determine that the new operational data for receiving and operational data which operational data for processing are only most
It is new, it is determined that newest operational data most fast calculating new could can make the digging ore deposit of ore deposit machine with approved data block
Efficiency is greatly improved.
Fig. 3 is the flow chart of present invention detection and another embodiment of the method for switch data.As shown in figure 3, this implementation
Example method, including:
Step 101, the request for calculating data is obtained in response to current ore deposit pond, respectively from least one other ore deposit pond and numeral
Currency client obtains multigroup calculating data, and multigroup calculating data to obtaining are compared, and obtain latest computed data.
Step 102, based on the new operational data of the latest computed data genaration for obtaining, and new operational data is sent to
The all ore deposit machines being connected with current ore deposit pond.
Result data is fed back to current ore deposit pond by step 306, all ore deposit machines being connected with current ore deposit pond.
Wherein, result data is calculated based on new operational data or currently processed operational data.
In the present embodiment, ore deposit machine will calculate the result data for completing and feed back to current ore deposit pond, and current ore deposit pond just can be with root
The calculation power of each ore deposit machine is estimated according to the result data of feedback, during calculation power is estimated, can be by each ore deposit
Machine distributes a unique corresponding ore deposit machine numbering and each ore deposit machine is identified, and also including in the result data for receiving every time should
Ore deposit machine is numbered, and now which ore deposit machine ore deposit pond just can quickly determine result data from, and then determine the pre- estimation of each ore deposit machine
Power, will be transmitted when operational data is sent next time based on pre- estimation power.
In a specific example of the above embodiment of the present invention, new operational data is sent to and worked as in step 102
The process of all ore deposit machines of Qian Kuang ponds connection can specifically include:
The pre- estimation power of all ore deposit machines in response to being connected with current ore deposit pond, to all ore deposit machines according to pre- estimation power by greatly to
It is small to be ranked up, new operational data is sequentially sent to all ore deposit machines.
The process that new operational data is sent rock feeder is proposed in this example, and ore deposit machine is carried out based on pre- estimation power
, sequentially be sent to new operational data in ore deposit machine by sequence, now ensure that the big ore deposit machine of pre- estimation power can update faster
To new calculating data, lifting ore deposit pond overall performance;But the mode of new calculating data is sent except above-mentioned sequence, ore deposit pond is also
New operational data can be sent to all coupled ore deposit machines simultaneously by the way of broadcast.
In a specific example of the above embodiment of the present invention, the acquisition of the pre- estimation power of ore deposit machine can include:
Based on ore deposit machine feedback result data and feedback result data Time Calculation obtain to should ore deposit machine pre- estimation
Power.
In this example, accuracy and feedback result that an ore deposit machine calculates the result data of the standard including feedback of power are weighed
The speed of data;On the premise of the same time, result data is better, illustrates that the calculation power of ore deposit machine is bigger;And in same result
On the premise of data, the time of feedback result is shorter, illustrates that the calculation power of ore deposit machine is bigger;It is considered that the calculation power size of ore deposit machine and knot
The accuracy of fruit data is directly proportional, and the time with feedback result is inversely proportional.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
Fig. 4 is the structural representation of device one embodiment of present invention detection and switch data.The device of the embodiment
Can be used to realize above-mentioned each method embodiment of the invention.As shown in figure 4, the device of the embodiment includes:
Data capture unit 1, the request of data is calculated for being obtained in response to current ore deposit pond, respectively from least one other
Ore deposit pond and digital cash client obtain multigroup calculating data, and multigroup calculating data to obtaining are compared, and obtain newest
Calculate data.
Data transmission unit 2, for based on the new operational data of the latest computed data genaration for obtaining, and will be new
Operational data is sent to all ore deposit machines being connected with current ore deposit pond.
The detection provided based on the above embodiment of the present invention and the device of switch data, by from other ore deposit ponds and digital goods
Coin client obtains multigroup calculating data, and judges to obtain latest computed data, based on the new work of latest computed data genaration
Data is activation enables ore deposit machine to obtain newest calculating data in ore deposit machine, therefore, calculated under power equal, the ore deposit in the ore deposit pond
Machine most can soon calculate new data block and obtain the accreditation in other ore deposit ponds, and the product of data orphan's block is reduced on to greatest extent
It is raw, improve ore deposit machine income.
In a specific example of the above embodiment of the present invention, data capture unit 1 can include:
Monitoring modular, for monitoring the working condition in other ore deposit ponds, and obtains the operational data that other ore deposit ponds currently calculate;
Modular converter, the calculating data for being converted to other ore deposit ponds of correspondence based on the operational data for obtaining.
In a specific example of the above embodiment of the present invention, data capture unit 1 can also include:
Calling module, for digging ore deposit agreement call number currency client based on the decentralization of bit coin, obtains the number
The calculating data that word currency client is being processed.
In a specific example of the above embodiment of the present invention, operational data includes:Proof information, a upper data block
Hashed value, version information, difficulty information, transmission time information and data message need to be calculated.
In a specific example of the above embodiment of the present invention, calculating data includes:Version information, a upper data block
Hashed value, multiple unacknowledged transaction data blocks, start to process temporal information and difficulty in computation information.
In a specific example of the above embodiment of the present invention, data capture unit 1 can also include:
Data obtaining module, the version letter for the multigroup calculating data for obtaining to be extracted with every group of calculating data of correspondence respectively
Breath, the hashed value of a upper data block, multiple unacknowledged transaction data blocks and temporal information;
Comparing module, for comparing the corresponding temporal information of different calculating data and/or version information;
And/or, will be not true in the hashed value of the upper data block in one group of calculating data and another group of calculating data
Hashed value in the transaction data block recognized is compared.
In a specific example of the above embodiment of the present invention, data capture unit 1 can also include:
Comparison result module, by obtained based on temporal information temporal information closest to current time it is corresponding one group based on
Count according to as latest computed data;
And/or, the corresponding one group of calculating data of latest version information are obtained as latest computed data based on version information;
And/or, the corresponding one group of calculating of hashed value all not to be covered in every other calculating data is worth to based on hash
Data are used as latest computed data.
Fig. 5 is the structural representation of present invention detection and another embodiment of the device of switch data, in above-described embodiment
On the basis of, as shown in figure 5, present apparatus embodiment also includes:
Ore deposit machine comparing unit 3, for after the operational data that the ore deposit machine being connected with current ore deposit pond receives new, by new work
The hashed value of a upper data block is compared with the hashed value in the operational data being presently processing in data.
Matching unit 4, for when the hashed value and the work being presently processing of a upper data block in new operational data
When making hashed value in data and mismatching, the operational data that stopping treatment being presently processing, new work described in start to process
Data.
In the present embodiment, after the ore deposit machine being connected with current ore deposit pond obtains new operational data, first by hash therein
Value is compared, to determine that it is newest that the new operational data for receiving and operational data which operational data for processing are only
, it is determined that the new digging ore deposit that with approved data block, can make ore deposit machine that calculates that newest operational data could be most fast is imitated
Rate is greatly improved.
In a specific example of the above embodiment of the present invention, can also include:Unit 5 is mismatched, for when new
In operational data during Hash value matches in the hashed value of a upper data block and the operational data being presently processing, ignore new
Operational data, continue with the operational data being presently processing.
Fig. 6 is the structural representation of present invention detection and another embodiment of the device of switch data.In above-described embodiment
On the basis of, the embodiment device also includes:
Result data is fed back to current ore deposit by as a result feedback unit 6, all ore deposit machines for controlling to be connected with current ore deposit pond
Pond.
Wherein, result data is calculated based on the new operational data or currently processed operational data.
In the present embodiment, ore deposit machine will calculate the result data for completing and feed back to current ore deposit pond, and current ore deposit pond just can be with root
The calculation power of each ore deposit machine is estimated according to the result data of feedback, during calculation power is estimated, can be by each ore deposit
Machine distributes a unique corresponding ore deposit machine numbering and each ore deposit machine is identified, also to include in the result data that receives every time
The ore deposit machine is numbered, and now which ore deposit machine ore deposit pond just can quickly determine result data from, and then determine estimating for each ore deposit machine
Power is calculated, will be transmitted based on pre- estimation power when operational data is sent next time.
In a specific example of the above embodiment of the present invention, data transmission unit 2 includes:
Calculate power and estimate module 21, for the pre- estimation power of all ore deposit machines in response to being connected with current ore deposit pond;
Sequence sending module 22, for all ore deposit machines, according to pre- estimation, power to be descending is ranked up, sequentially will be new
Operational data is sent to all ore deposit machines.
In a specific example of the above embodiment of the present invention, calculate power and estimate module 21 specifically for based on ore deposit machine feedback
Result data ore deposit machine corresponding with the acquisition of the Time Calculation of feedback result data pre- estimation power.
The other side of the embodiment of the present invention, also provides a kind of electronic equipment, including processor, and the processor includes
The detection of above-described embodiment any one and the device of switch data.
1st, a kind of method of detection and switch data, including:
The request for calculating data is obtained in response to current ore deposit pond, respectively from least one other ore deposit pond and digital cash client
End obtains multigroup calculating data, and multigroup calculating data to the acquisition are compared, and obtain latest computed data;
Based on the new operational data of the latest computed data genaration for obtaining, and the new operational data is sent to
The all ore deposit machines being connected with the current ore deposit pond.
2nd, the method according to 1, described acquisition from other ore deposit ponds calculates data, including:
The working condition in other ore deposit ponds is monitored, and obtains the operational data that other ore deposit ponds currently calculate;
Operational data based on the acquisition is converted to the calculating data in correspondence other ore deposit ponds.
3rd, the method according to 1 or 2, described acquisition from digital cash client calculates data, including:
Ore deposit agreement call number currency client is dug based on the decentralization of bit coin, the digital cash client is obtained and is rectified
In the calculating data for the treatment of.
4th, the method according to 2 or 3, the operational data includes:Proof information, the hashed value of a upper data block,
Version information, difficulty information, transmission time information and data message need to be calculated.
5th, the method according to 1 to 4 any one, the calculating data include:Version information, a upper data block
Hashed value, multiple unacknowledged transaction data blocks, start to process temporal information and difficulty in computation information.
6th, the method according to 5, the multigroup calculating data to the acquisition are compared, including:
Multigroup calculating data to the acquisition extract correspondence every group of version information of calculating data, a upper data respectively
The hashed value of block, multiple unacknowledged transaction data blocks and temporal information;
The corresponding temporal information of the different calculating data of comparison and/or version information;
And/or, will be not true in the hashed value of the upper data block in one group of calculating data and another group of calculating data
Hashed value in the transaction data block recognized is compared.
7th, the method according to 6, it is described to obtain latest computed data, including:
The corresponding one group of calculating data of temporal information closest to current time are obtained as newest meter based on temporal information
Count evidence;
And/or, the corresponding one group of calculating data of latest version information are obtained as latest computed data based on version information;
And/or, the corresponding one group of calculating of hashed value all not to be covered in every other calculating data is worth to based on hash
Data are used as latest computed data.
8th, the method according to 4 to 7 any one, also includes:
The ore deposit machine being connected with current ore deposit pond receives the new operational data, by upper one in the new operational data
The hashed value of individual data block is compared with the hashed value in the operational data being presently processing;
When in the hashed value of a upper data block and the operational data being presently processing in the new operational data
When hashed value is mismatched, stop the operational data that is presently processing described in treatment, new operational data described in start to process.
9th, the method according to 8, it is characterised in that also include:When a upper data block in the new operational data
Hashed value and the operational data being presently processing in Hash value matches when, ignore the new operational data, at continuation
The operational data being presently processing described in reason.
10th, the method according to 1 to 9 any one, also includes:
Result data is fed back to the current ore deposit pond by all ore deposit machines being connected with current ore deposit pond;The result data
It is to be calculated based on the new operational data or currently processed operational data.
11st, the method according to 10, it is described that the new operational data is sent to what is be connected with the current ore deposit pond
All ore deposit machines, including:
The pre- estimation power of all ore deposit machines in response to being connected with the current ore deposit pond, to all ore deposit machines according to pre- estimation
Power is descending to be ranked up, and the new operational data sequentially is sent into all ore deposit machines.
12nd, the method according to 11, the acquisition of the pre- estimation power of the ore deposit machine, including:
The result data ore deposit corresponding with the Time Calculation acquisition for feeding back the result data based on ore deposit machine feedback
The pre- estimation power of machine.
13rd, the device of a kind of detection and switch data, including:
Data capture unit, the request of data is calculated for being obtained in response to current ore deposit pond, respectively from least one other
Ore deposit pond and digital cash client obtain multigroup calculating data, and multigroup calculating data to the acquisition are compared, and are obtained
Latest computed data;
Data transmission unit, for based on the new operational data of the latest computed data genaration for obtaining, and will be described
New operational data is sent to all ore deposit machines being connected with the current ore deposit pond.
14th, the device according to 13, the data capture unit includes:
Monitoring modular, for monitoring the working condition in other ore deposit ponds, and obtains the operational data that other ore deposit ponds currently calculate;
Modular converter, the calculating number in correspondence other ore deposit ponds is converted to for the operational data based on the acquisition
According to.
15th, the device according to 13 or 14, the data capture unit also includes:
Calling module, for digging ore deposit agreement call number currency client based on the decentralization of bit coin, obtains the number
The calculating data that word currency client is being processed.
16th, the device according to 14 or 15, the operational data includes:The hash of proof information, a upper data block
Value, version information, difficulty information, transmission time information and data message need to be calculated.
17th, the device according to 13 to 16 any one, the calculating data include:Version information, a upper data
The hashed value of block, multiple unacknowledged transaction data blocks, start to process temporal information and difficulty in computation information.
18th, the device according to 17, the data capture unit also includes:
Data obtaining module, every group of version of calculating data of correspondence is extracted for the multigroup calculating data to the acquisition respectively
This information, the hashed value of a upper data block, multiple unacknowledged transaction data blocks and temporal information;
Comparing module, for comparing the corresponding temporal information of different calculating data and/or version information;
And/or, will be not true in the hashed value of the upper data block in one group of calculating data and another group of calculating data
Hashed value in the transaction data block recognized is compared.
19th, the device according to 18, the data capture unit also includes:
Comparison result module, by obtained based on temporal information temporal information closest to current time it is corresponding one group based on
Count according to as latest computed data;
And/or, the corresponding one group of calculating data of latest version information are obtained as latest computed data based on version information;
And/or, the corresponding one group of calculating of hashed value all not to be covered in every other calculating data is worth to based on hash
Data are used as latest computed data.
20th, the device according to 16 to 19 any one, also includes:
Ore deposit machine comparing unit, for after the ore deposit machine being connected with current ore deposit pond receives the new operational data, by described in
The hashed value of a upper data block is compared with the hashed value in the operational data being presently processing in new operational data;
Matching unit, for when in the new operational data hashed value of a upper data block be presently processing
When hashed value in operational data is mismatched, stop the treatment operational data being presently processing, described in start to process newly
Operational data.
21st, the device according to 20, also includes:
Mismatch unit, for when in the new operational data hashed value of a upper data block be presently processing
Operational data in Hash value matches when, ignore the new operational data, continue with the work being presently processing
Make data.
22nd, the device according to 13 to 21 any one, also includes:
Result data is fed back to described current by as a result feedback unit, all ore deposit machines for controlling to be connected with current ore deposit pond
Ore deposit pond;The result data is calculated based on the new operational data or currently processed operational data.
23rd, the device according to 22, the data transmission unit includes:
Calculate power and estimate module, for the pre- estimation power of all ore deposit machines in response to being connected with the current ore deposit pond;
Sequence sending module, for power to be descending is ranked up according to pre- estimation to all ore deposit machines, sequentially by institute
State new operational data and be sent to all ore deposit machines.
24th, the device according to 23, the calculation power estimates module specifically for the number of results fed back based on the ore deposit machine
According to the pre- estimation power of the ore deposit machine corresponding with the Time Calculation acquisition for feeding back the result data.
25th, a kind of electronic equipment, including processor, detection and switching of the processor as described in 13 to 24 any one
The device of data.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and it
The difference of its embodiment, same or analogous part cross-reference between each embodiment.For system embodiment
For, because it is substantially corresponding with embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
Defend oneself bright.
Methods and apparatus of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, any combinations of firmware realize methods and apparatus of the present invention.The said sequence of the step of for methods described
Order described in detail above is not limited to merely to illustrate, the step of the method for the present invention, it is special unless otherwise
Do not mentionlet alone bright.Additionally, in certain embodiments, also the present invention can be embodied as recording program in the recording medium, these programs
Including the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covering storage is for performing basis
The recording medium of the program of the method for the present invention.