CN106844608A - Detection and the method for switch data, device and electronic equipment - Google Patents

Detection and the method for switch data, device and electronic equipment Download PDF

Info

Publication number
CN106844608A
CN106844608A CN201710033414.8A CN201710033414A CN106844608A CN 106844608 A CN106844608 A CN 106844608A CN 201710033414 A CN201710033414 A CN 201710033414A CN 106844608 A CN106844608 A CN 106844608A
Authority
CN
China
Prior art keywords
data
ore deposit
calculating
operational data
hashed value
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
CN201710033414.8A
Other languages
Chinese (zh)
Other versions
CN106844608B (en
Inventor
徐凌超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Mining Technology Co ltd
Original Assignee
Feng Feng Technology (beijing) 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 Feng Feng Technology (beijing) Co Ltd filed Critical Feng Feng Technology (beijing) Co Ltd
Priority to CN201710033414.8A priority Critical patent/CN106844608B/en
Publication of CN106844608A publication Critical patent/CN106844608A/en
Application granted granted Critical
Publication of CN106844608B publication Critical patent/CN106844608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2216/00Indexing scheme relating to additional aspects of information retrieval not explicitly covered by G06F16/00 and subgroups
    • G06F2216/03Data mining

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Method, device and electronic equipment the embodiment of the invention discloses a kind of detection and switch data, wherein, method includes:The request for calculating data is obtained in response to current ore deposit pond, multigroup calculating data is obtained from least one other ore deposit pond and digital cash client respectively, 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 all ore deposit machines being connected with the current ore deposit pond.The embodiment of the present invention can enable ore deposit machine obtain newest calculating data, therefore, calculated under power equal, 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, the generation of data orphan's block is reduced on to greatest extent, ore deposit machine income is improve.

Description

Detection and the method for switch data, device and electronic equipment
Technical field
Set the present invention relates to bit coin digging technology, the especially a kind of method of detection and switch data, device and electronics It is standby.
Background technology
P2P peer-to-peer networks, i.e. peer-to-peer computer network, are that one kind distributes task between fellow (Peer) and work is negative The Distributed Application framework of load, is a kind of networking or latticed form that P2P computing model is formed in application layer.P2P electronic money System is a kind of point to point network using proof of work mechanism records the public information of transaction, and it is basic that its data is preserved Unit is block, in store many transaction in each data block, and data block is linked together by chain structure, in each data block The Hash of an in store upper data block, when ore deposit pond calculate data block when, when find difficulty be more than network difficulty, it is necessary to New data block is quickly broadcast in P2P networks, whole network is calculated next on the basis of your new block.
However, realize it is of the invention during, inventor has found that prior art at least has problems with:If ore deposit Pond exists in the switching that new database block works and postpones, and the data block produced in this time period of delay will have very big general Rate is isolated, because other ore deposit ponds are updated to new data block work faster, and the data block for postponing to produce will be than it His latest data block is late, so as to cannot get the confirmation in other ore deposit ponds in very maximum probability.
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.
Brief description of the drawings
The Description of Drawings embodiments of the invention of a part for specification are constituted, and together with description for explaining Principle of the invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood from, wherein:
Fig. 1 is the flow chart of method one embodiment of present invention detection and switch data.
Fig. 2 is the flow chart of present invention detection and another embodiment of the method for switch data.
Fig. 3 is the flow chart of present invention detection and another embodiment of the method for switch data.
Fig. 4 is the structural representation of device one embodiment of present invention detection and switch data.
Fig. 5 is the structural representation of present invention detection and another embodiment of the device of switch data.
Fig. 6 is the structural representation of present invention detection and another embodiment of the device of switch data.
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.
Description of the invention is given for the sake of example and description, and is not exhaustively or by the present invention It is limited to disclosed form.Many modifications and variations are for the ordinary skill in the art obvious.Select and retouch State embodiment and be to more preferably illustrate principle of the invention and practical application, and one of ordinary skill in the art is managed The solution present invention is suitable to the various embodiments with various modifications of special-purpose so as to design.

Claims (10)

1. it is a kind of detect and switch data method, it is characterised in that including:
The request for calculating data is obtained in response to current ore deposit pond, is obtained from least one other ore deposit pond and digital cash client respectively Take 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 and institute State all ore deposit machines of current ore deposit pond connection.
2. method according to claim 1, it is characterised in that 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.
3. method according to claim 1 and 2, it is characterised in that 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 located The calculating data of reason.
4. according to the method in claim 2 or 3, it is characterised in that the operational data includes:Proof information, upper one The hashed value of data block, version information, difficulty information, transmission time information and data message need to be calculated.
5. the method according to Claims 1-4 any one, it is characterised in that the calculating data include:Version is believed Breath, the hashed value of a upper data block, multiple unacknowledged transaction data blocks, start to process temporal information and difficulty in computation letter Breath.
6. method according to claim 5, it is characterised in that the multigroup calculating data to the acquisition compare It is right, including:
Multigroup calculating data of the acquisition are extracted with 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 and/or version information;
And/or, will be unacknowledged in the hashed value of the upper data block in one group of calculating data and another group of calculating data Hashed value in transaction data block is compared.
7. method according to claim 6, it is characterised in that described to obtain latest computed data, including:
The corresponding one group of calculating data of temporal information closest to current time are obtained as latest computed number based on temporal information According to;
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 data of hashed value all not to be covered in every other calculating data are worth to based on hash As latest computed data.
8. the method according to claim 4 to 7 any one, it is characterised in that also include:
The ore deposit machine being connected with current ore deposit pond receives the new operational data, by a upper number in the new operational data Hashed value and the hashed value in the operational data being presently processing according to block are compared;
Hash in the hashed value of a upper data block and the operational data being presently processing in the new operational data When value is mismatched, stop the operational data that is presently processing described in treatment, new operational data described in start to process.
9. it is a kind of detect and switch data device, it is characterised in that 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 Multigroup calculating data are obtained with digital cash client, and multigroup calculating data to the acquisition are compared, and obtain newest Calculate 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.
10. a kind of electronic equipment, it is characterised in that including processor, the processor include detection described in claim 9 and The device of switch data.
CN201710033414.8A 2017-01-18 2017-01-18 Method and device for detecting and switching data and electronic equipment Active CN106844608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710033414.8A CN106844608B (en) 2017-01-18 2017-01-18 Method and device for detecting and switching data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710033414.8A CN106844608B (en) 2017-01-18 2017-01-18 Method and device for detecting and switching data and electronic equipment

Publications (2)

Publication Number Publication Date
CN106844608A true CN106844608A (en) 2017-06-13
CN106844608B CN106844608B (en) 2020-12-11

Family

ID=59124770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710033414.8A Active CN106844608B (en) 2017-01-18 2017-01-18 Method and device for detecting and switching data and electronic equipment

Country Status (1)

Country Link
CN (1) CN106844608B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046043A (en) * 2018-01-15 2019-07-23 比特大陆科技有限公司 System switching method, device and electronic equipment
CN110046035A (en) * 2018-01-15 2019-07-23 比特大陆科技有限公司 System switching method, device and electronic equipment
CN110825208A (en) * 2019-10-25 2020-02-21 展讯半导体(成都)有限公司 Method, device and equipment for adjusting parameters of digital currency mining machine and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915249A (en) * 2015-05-21 2015-09-16 北京比特大陆科技有限公司 Method and device for digging virtual digital coins in mining pool
CN106020951A (en) * 2016-05-12 2016-10-12 中国农业银行股份有限公司 Task scheduling method and system
CN106254339A (en) * 2016-08-01 2016-12-21 北京比特大陆科技有限公司 Dig safety certifying method and the system of mining industry business

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915249A (en) * 2015-05-21 2015-09-16 北京比特大陆科技有限公司 Method and device for digging virtual digital coins in mining pool
CN106020951A (en) * 2016-05-12 2016-10-12 中国农业银行股份有限公司 Task scheduling method and system
CN106254339A (en) * 2016-08-01 2016-12-21 北京比特大陆科技有限公司 Dig safety certifying method and the system of mining industry business

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANDREAS M.ANTONOPOULOS: "《精通比特币 第一版》", 31 March 2016 *
CSDN: "分布式任务调度(TBSchedule分析)", 《HTTPS://BLOG.CSDN.NET/WEIXIN_33857230/ARTICLE/DETAILS/87214850》 *
链接点: "比特币挖矿里面的拒绝率是什么意思?", 《HTTPS://WWW.CHAINNODE.COM/QUESTION/39852》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046043A (en) * 2018-01-15 2019-07-23 比特大陆科技有限公司 System switching method, device and electronic equipment
CN110046035A (en) * 2018-01-15 2019-07-23 比特大陆科技有限公司 System switching method, device and electronic equipment
CN110825208A (en) * 2019-10-25 2020-02-21 展讯半导体(成都)有限公司 Method, device and equipment for adjusting parameters of digital currency mining machine and storage medium
CN110825208B (en) * 2019-10-25 2021-06-01 展讯半导体(成都)有限公司 Method, device and equipment for adjusting parameters of digital currency mining machine and storage medium

Also Published As

Publication number Publication date
CN106844608B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN107316198B (en) Account risk identification method and device
US10994193B1 (en) System, method and apparatus for collecting and utilizing big data for online gameplay
CN108428132A (en) Fraudulent trading recognition methods, device, server and storage medium
CN106844608A (en) Detection and the method for switch data, device and electronic equipment
CN112700252B (en) Information security detection method and device, electronic equipment and storage medium
CN109246027A (en) A kind of method, apparatus and terminal device of network operation
CN104915351A (en) Picture sorting method and terminal
CN103905440A (en) Network security situation awareness analysis method based on log and SNMP information fusion
CN110339575A (en) It practises fraud in a kind of determining online game the method and device of user
CN107895011A (en) Processing method, system, storage medium and the electronic equipment of session information
CN112070416B (en) AI-based RPA flow generation method, apparatus, device and medium
Wan et al. Kfiml: Kubernetes-based fog computing iot platform for online machine learning
CN110300191A (en) Service system and data processing method
EP4203398A1 (en) Data processing method, apparatus, device, and storage medium
CN103747003A (en) Peer-to-peer botnet core node detection method and detection device
CN111639902A (en) Data auditing method based on kafka, control device, computer equipment and storage medium
CN112463422A (en) Internet of things fault operation and maintenance method and device, computer equipment and storage medium
CN106850775A (en) The method of ore deposit pond and ore deposit machine interaction data, agent side, ore deposit pond and system
CN115237802A (en) Artificial intelligence based simulation test method and related equipment
CN110119880A (en) A kind of automatic measure grading method, apparatus, storage medium and terminal device
CN109491568A (en) Mouse event processing method, device, equipment and computer readable storage medium
CN110162769A (en) Text subject output method and device, storage medium and electronic device
CN104951391B (en) For monitoring method, server and the agency of user interaction patterns
CN114172856B (en) Message automatic replying method, device, equipment and storage medium
CN116910144A (en) Computing power network resource center, computing power service system and data processing method

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: 20170921

Address after: 100029 Beijing, Haidian District North Austrian industrial base project, building 2, floor 6

Applicant after: BEIJING BITMAIN TECHNOLOGY CO., LTD.

Address before: 100029 Beijing city Haidian District Baosheng Road No. 1 Building No. 25 hospital three

Applicant before: Feng Feng Technology (Beijing) Co., Ltd.

TA01 Transfer of patent application right

Effective date of registration: 20180913

Address after: 26 Ying Yun street, Singapore

Applicant after: Bit continent Technology Co., Ltd.

Address before: 100029 Beijing Haidian District Austria north industrial base project 6 Building 2 level.

Applicant before: BEIJING BITMAIN TECHNOLOGY CO., LTD.

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

Effective date of registration: 20210114

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

Patentee after: BITMAIN TECHNOLOGY Co.,Ltd.

Address before: 26 Ying Yun street, Singapore

Patentee before: BITMAIN TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210512

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

Patentee after: Ant Mining Technology Co.,Ltd.

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

Patentee before: BITMAIN TECHNOLOGY Co.,Ltd.