CN109800211B - Control method, system and the relevant device of decentralization storage - Google Patents

Control method, system and the relevant device of decentralization storage Download PDF

Info

Publication number
CN109800211B
CN109800211B CN201910310142.0A CN201910310142A CN109800211B CN 109800211 B CN109800211 B CN 109800211B CN 201910310142 A CN201910310142 A CN 201910310142A CN 109800211 B CN109800211 B CN 109800211B
Authority
CN
China
Prior art keywords
block chain
chain node
file destination
file
layer unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910310142.0A
Other languages
Chinese (zh)
Other versions
CN109800211A (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.)
SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd filed Critical SHENZHEN ADVANCED RIVER SYSTEM TECHNOLOGY Co Ltd
Priority to CN201910310142.0A priority Critical patent/CN109800211B/en
Publication of CN109800211A publication Critical patent/CN109800211A/en
Application granted granted Critical
Publication of CN109800211B publication Critical patent/CN109800211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application discloses control method, system and the relevant devices of a kind of decentralization storage, this method comprises: the first block chain node monitors whether to be met about the preset condition of file destination;If monitoring to be met about the preset condition of file destination, cancel the process for deducting file destination mapped underlying mortgage layer unit;Otherwise the process for deducting file destination mapped underlying mortgage layer unit is continued to execute.Above-mentioned technical proposal provides a kind of mortgage subtraction method with fault tolerance mechanism, can improve decentralization storage network, improve network cooperation efficiency.

Description

Control method, system and the relevant device of decentralization storage
Technical field
This application involves block chain fields, more particularly to control method, system and the correlation of a kind of decentralization storage Equipment.
Background technique
In the mortgage mechanism of block chain network, miner is stored as user, data storage is provided.Storage miner passes through offer Their memory space and response put is requested to participate in block chain network.To become storage miner, miner must be held with it The proportional guarantee of the memory space of promise is mortgaged, and stores miner by asking in specific time storing data to respond user It asks, generating storage in the process proves and be provided in block chain network to prove that theirs stores visitor in specific time The target data at family.Existing incentive mechanism is more stringent, once discovery cannot provide, storage is proved or storage is proved to be invalid , then guarantee can be deducted.
Summary of the invention
The application is mainly solving the technical problems that the control method, system and the correlation that provide a kind of decentralization storage are set It is standby, decentralization storage network can be improved, network cooperation efficiency is improved.
In order to solve the above technical problems, the technical solution that the application uses is: providing a kind of decentralization storage Control method, which comprises
First block chain node monitors whether to be met about the preset condition of file destination, wherein described default Condition includes receiving the target and repairing the storage of file to prove;
If monitoring to be met about the preset condition of the file destination, cancels and deduct the file destination institute The process of the underlying mortgage layer unit of mapping;
Otherwise the process for deducting underlying mortgage layer unit described in the file destination mapped is continued to execute;
The first block chain node monitors whether that obtaining meeting about the preset condition of file destination includes: that monitoring is The no storage for receiving target reparation file proves, wherein it is described in the second block chain node is based on that the target, which repairs file, What the Backup Data of file destination was repaired, and file identical with the file destination content;
The first block chain node is to execute the process for deducting the file destination mapped underlying mortgage layer unit Block chain node, the second block chain node be stored with the Backup Data of the file destination and execute repair target text The block chain node of part task.
In order to solve the above technical problems, another technical solution that the application uses is to provide a kind of decentralization storage Control method, which comprises
The storage whether the 4th block chain node of third block chain nodal test uploads file destination proves, described in judgement For file destination with the presence or absence of exception, the 4th block chain node is the block chain node for storing the file destination;
If detection, which obtains the 4th block chain node, which does not upload the storage of the file destination, proves, the target is judged File exists abnormal;Otherwise judging the file destination, there is no abnormal;
If it is abnormal to judge that the file destination exists, uploads the file destination and there is abnormal message to the third area The data-link of block chain node enters the deduction file destination mapped underlying mortgage layer list to trigger the first block chain link point The process of member, and distribute or trigger distribution and repair file destination task to the second block chain node, so that second block Chain node is proved based on the storage that Backup Data generates target reparation file and target reparation file, and the target is repaired The storage of multiple file proves the data-link for being uploaded to the second block chain node, so that the first block chain node knows institute Target is stated to repair file storage proof and cancel the process for deducting the file destination mapped underlying mortgage layer unit, In, the second block chain node is to be stored with the Backup Data of the file destination and execute the reparation file destination task Block chain node, the first block chain node is to execute to deduct underlying mortgage layer list described in the file destination mapped The block chain node of the process of member, it is file identical with the file destination content that the target, which repairs file,.
In order to solve the above technical problems, another technical solution that the application uses is to provide a kind of decentralization storage Control method, which comprises
Whether the 4th block chain node of third block chain nodal test uploads depositing for file destination in the second preset time Storage proves that the 4th block chain node is the block chain node for storing the file destination;
If detecting, the 4th block chain node does not upload the corresponding file destination in second preset time The storage prove, first do not execute the process for deducting the file destination mapped underlying mortgage layer unit or elder generation it is obstructed Know that the first block chain node executes the process for deducting underlying mortgage layer unit described in the file destination mapped, and voluntarily sentences It is disconnected or notify the first block chain node judge in the first preset time whether about the file destination default item Part is met, and the preset condition includes the storage card for receiving target identical with the file destination content and repairing file Bright, the first block chain node is to execute the process for deducting underlying mortgage layer unit described in the file destination mapped Block chain node;
If the preset condition is met, cancels and deduct underlying mortgage layer list described in the file destination mapped The process of member notifies the first block chain node is cancelled to deduct underlying mortgage layer list described in the file destination mapped Otherwise the process of member determines and executes the process for deducting underlying mortgage layer unit described in the file destination mapped or notice institute It states the first block chain node and executes the process for deducting underlying mortgage layer unit described in the file destination mapped.
In order to solve the above technical problems, another technical solution that the application uses is to provide a kind of decentralization storage Control method, which comprises
Second block chain node obtains the Backup Data of file destination and preservation, wherein the backup number of the file destination According to the backup for the initial data for including the file destination and/or the backup of the file destination;
When receiving the reparation file destination task, target is generated based on the Backup Data and repairs file, it is described It is identical as the file destination content that target repairs file;
The data-link that the target repairs the storage proof of file and is uploaded to the second block chain node is generated, so that The first block chain node is obtained to know and cancel the process for deducting file destination mapped underlying mortgage layer unit, firstth area Block chain node is the block chain node for executing the process for deducting the file destination mapped underlying mortgage layer unit.
It is set in order to solve the above technical problems, another technical solution that the application uses is to provide a kind of block chain node Standby, the block chain node device includes processor, memory and telecommunication circuit, the processor and the memory and described Telecommunication circuit connection;
Wherein, the memory is for storing program data;
The telecommunication circuit is used to be communicated under processor control with block chain node device described in other;
The processor is used to run the described program data of the memory storage, goes to center as described above to execute Change the control method of storage.
In order to solve the above technical problems, another technical solution that the application uses is to provide a kind of decentralization storage System, which is characterized in that the system comprises at least multiple block chain node devices, the block chain node device can run to Lack a block chain node, point-to-point communication, the block chain node device can be carried out between the multiple block chain node device For equipment as described above.
In order to solve the above technical problems, another technical solution that the application uses is to provide a kind of storage medium, it is described Storage medium is stored with program data, and described program data are performed the controlling party for realizing decentralization storage as described above Method.
Above scheme, the first block chain node are monitored whether to be met about the preset condition of file destination, that is, are supervised Survey whether receive target repair file storage prove, when receive target repair file storage prove when then judge about The preset condition of file destination is met, then cancels the process for deducting file destination mapped underlying mortgage layer unit, phase If technical solution provided herein provides than directly carrying out mortgage deduction in the presence of abnormal in file destination in the prior art A kind of mortgage deduction mechanism with abnormal tolerant mechanism, can improve decentralization storage network, improve network cooperation efficiency.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of one embodiment of block chain node device of the application;
Fig. 2 a is a kind of structural schematic diagram of one embodiment of decentralization storage system of the application;
Fig. 2 b is a kind of structural schematic diagram of another embodiment of decentralization storage system of the application;
Fig. 3 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application;
Fig. 4 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application;
Fig. 5 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application;
Fig. 6 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application;
Fig. 7 is a kind of flow diagram of another embodiment of control method of decentralization storage of the application;
Fig. 8 is the structural schematic diagram of the inheritance between the mortgage layer unit that the application is proposed;
Fig. 9 is the mapping relations schematic diagram between the application mortgage layer unit proposed and encapsulated layer file destination;
Figure 10 is that a kind of data of the control method another embodiment of decentralization storage of the application repair schematic diagram;
Figure 11 is a kind of flow diagram of the control method another embodiment of decentralization storage of the application;
Figure 12 is a kind of flow diagram of the another embodiment of control method of decentralization storage of the application;
Figure 13 is a kind of structural schematic diagram of one embodiment of storage medium of the application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.It is understood that specific embodiment described herein is only used for explaining the application, rather than to the limit of the application It is fixed.Based on the embodiment in the application, obtained by those of ordinary skill in the art without making creative efforts Every other embodiment, shall fall in the protection scope of this application.
Term " first ", " second ", " third " in the application are used for description purposes only, and should not be understood as instruction or dark Show relative importance or implicitly indicates the quantity of indicated technical characteristic.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Firstly the need of explanation, a kind of control method embodiment of decentralization storage provided herein can be answered For block chain network.It include below multiple block chain nodes (can hereafter be referred to as node), each block with block chain network Chain node corresponds to be illustrated for a miner.Certainly, the embodiment of the present application also can be applied to the block of other forms Chain node.
Referring to Figure 1, Fig. 1 is a kind of structural schematic diagram of one embodiment of block chain node device of the application.Current real It applies in example, block chain node device 100 provided herein includes processor 101, memory 102 and telecommunication circuit 103, place Reason device 101 is connect with memory 102 and telecommunication circuit 103.
Wherein, for memory 102 for storing program data, the program data stored, which is performed, can be achieved following texts and pictures 3 to Figure 12 and its corresponding any embodiment described in a kind of decentralization storage control method.
Telecommunication circuit 103 for being communicated under the control of processor 101 with external block chain link point device, for pair Outer transmission data receive data.
Processor 101 is used for the program data that run memory 102 stores, to execute following Fig. 3 to Figure 12 corresponding The control method of the storage of decentralization described in one embodiment.
Further, block chain node device 100 is the terminal device that can run at least one block chain node, such as can be with It is computer and server etc..It is to be appreciated that the quantity for the block chain node that each block chain node device 100 can be run It can be the configuration parameter based on block chain node device to be determined, do not do any restriction herein specifically.Please referring also to scheme 2a and Fig. 2 b, Fig. 2 a is a kind of structural schematic diagram of another embodiment of decentralization storage system of the application, and Fig. 2 b is the application A kind of structural schematic diagram of another embodiment of decentralization storage system.It is provided herein in Fig. 2 a illustrated embodiment Decentralization storage system 200 includes multiple block chain node devices, specifically includes block chain node device 201, block chain link Point device 202 and block chain node device 203 can carry out between multiple block chain node devices 201,202 and 203 point-to-point logical Letter.The corresponding account of mine program is dug since every block chain node device can run at least one, i.e. every block chain node is set It is standby to run at least one block chain node, therefore the corresponding block chain node angle that ought be based on see that Fig. 2 b was illustrated goes to center Changing storage system may include multiple block chain node A, B, C and D, wherein multiple block chain node A, B, C and D can be by same One block chain node device operation is also possible to different block chain node device operations, therefore in going in other embodiments It include multiple block chain node devices in heart storage system.Run block chain link point block chain node device can be All block chain node devices of other in system are directly communicated, corresponding, any one block chain node can be in system Communication interaction is directly carried out with other block chain nodes.Wherein, the block chain node of block chain link point is run in present example Equipment is the block chain node device as described in the embodiment corresponding to Fig. 1, and every block chain node device can at least be run One block chain node.
Wherein, it should be noted that the block run in block chain node device at least one embodiment of the application Chain node is further referred to as miner in other embodiments, i.e., block chain node can also be referred to as miner.Decentralization Included all block chain nodes are sane level in rank in storage system, i.e., all block chain nodes, which can execute, to be deposited Storage task, all block chain nodes can monitor other block chain nodes execution other than removing itself according to intelligent contract and deposit The case where storage task.In another embodiment, in decentralization storage system provided herein, can also preset by One specific block chain node executes mortgage deduction task.In another embodiment, decentralization provided herein is deposited In storage system, mortgage deduction task is also possible to by removing outside currently monitored block chain node, other all nodes Deduction task is mortgaged to execute.
Before the details for illustrating method provided herein, illustrate that the first block chain node refers to that target is deducted in execution first The node of the process of file mapped underlying mortgage layer unit, the second block chain node refer to the backup for being stored with file destination Data simultaneously execute the block chain node for repairing file destination task, and the 4th block node is the node for storing file destination, third Block chain node is supervision or whether the 4th block chain node of selective examination uploads the node that the storage of corresponding file destination proves.According to The rank of each node is identical in block chain network, therefore can learn the function according to performed by node different moments not Together and the difference of reference mode, it is sequentially or simultaneously the first block chain node, the second block that some block chain node, which can be, One or more of chain node, third block chain node and the 4th block chain node.
Specifically, from the point of view of executing store tasks, each block chain node can receive other block chain nodes Monitoring, therefore can learn every in central store system (also referred to as block chain network or system, hereafter with " system " description) A block chain node can be the 4th block chain node, but can also monitor other according to each block chain node of intelligent contract Block chain node, the block chain node is also third block chain node for the block chain node monitored compared with it. Likewise, when a certain block chain node obtains the deducting file destination mapped underlying mortgage layer unit of the task, it is corresponding The block chain node be the first block chain node, while if the block chain node is also used to repair and a certain there is abnormal mesh File is marked, then the block chain node can also be the second block chain node.
Fig. 3 is referred to, Fig. 3 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application. The executing subject of the method for embodiment corresponding to Fig. 3 is third block chain node, and third block chain node is to execute supervision function The node of energy, the 4th block chain node are the nodes supervised by third block chain node.
In systems, after completing to store a certain file destination, then can generate storage proves to upload each block chain node To the data-link of its own, other block chain nodes can know that the storage proves based on node synchronism in the system.And It in system, removes other than block chain node itself, other block chain nodes all have what the storage detected on its data-link proved Qualification, can also be by detecting in the storage proof or detection data chain that whether upload file destination on its data-link in institute The storage of biography proves whether that the storage for corresponding current time proves, to judge file destination that it is stored with the presence or absence of different Often.
In the embodiment of meaning shown in Fig. 3, this method comprises:
S301: the storage whether the 4th block chain node of third block chain nodal test uploads file destination proves.Third The storage whether block chain node uploads file destination by detecting the 4th block chain node proves, whether to judge file destination There are exceptions.
Wherein, whether the supervision of third block chain link dimension or the 4th block chain node of selective examination upload the storage of corresponding file destination The block chain node of proof, the 4th block chain node are file destination and by third block chain nodal test the block of storage Chain node, any block chain node can become third block chain node in systems, similarly any block chain node To be the 4th detected block chain node.Storage, which is proved to be after block chain node completes storage file destination, to be generated and is uploaded to Data chain;Storage proves separated in time to be updated after uploading for the first time, with other into system Block chain node prove the file destination corresponding to it still by the message or report of normal storage.Wherein, during storage proves The storage, which can be stored with, proves the time of the time generated either update, to prove what storage proved to other block chain nodes Timeliness.
In one embodiment, third block chain node can be generates at random according to intelligent contract, is also possible to by each A block chain link point progress block book keeping operation power competition is won determining.Third block chain node separated in time detects the 4th area The storage whether block chain node uploads file destination proves, to judge whether the file destination for being stored in the 4th block chain node is deposited In exception.Since block chain network interior joint has synchronism, therefore in other embodiments, third block chain node be can be directly It connects and whether is stored with the storage of the file destination that the 4th block chain node is stored on detection data chain and proves, and then judge The storage for whether receiving the file destination of the 4th block chain node upload proves, is also possible to by accessing the 4th block chain link Whether the data-link of point, which uploads the storage of file destination to detect the 4th block chain node, proves.
When the storage that detection obtains the 4th block chain node upload file destination proves that then judging file destination, there is no different Often;Conversely, not uploading either not no more fresh target on time when third block chain nodal test obtains the 4th block chain node The storage of file proves, then it is abnormal to judge that file destination exists.
If detection, which obtains the 4th block chain node, which does not upload the storage of file destination, proves, step can be successively executed S302 and step S303, conversely, can then execute step when the storage that detection obtains the 4th block chain node upload file destination proves Rapid S304.
S302: it is abnormal to judge that file destination exists.
When the storage of file destination that can not detect that the 4th block chain node uploads proves, or detect the 4th area Block chain node does not timely update the storage of file destination when proving, i.e., current storage proof does not have timeliness, then it represents that The file destination, which may be deleted in the 4th block chain node by malice, either to be lost, then judging file destination, there are different Often, and step S303 can be executed.
S303: distribution or triggering distribution repair file destination task to the second block chain node, while uploading file destination In the presence of the data-link of abnormal message to third block chain node, enter deduction file destination institute to trigger the first block chain link point The process of the underlying mortgage layer unit of mapping.Wherein, the second block chain node is to be stored with file destination Backup Data and final The block chain node for repairing file destination task is executed, the first block chain node is to execute to deduct file destination mapped first Mortgage the block chain node of the process of layer unit.
Further, the first block chain node includes: block chain node, the third block chain that block book keeping operation power competition is won Node itself presets the block chain node for deducting file destination mapped underlying mortgage layer unit or removes the 4th block Either block chain node other than chain node.Wherein, the first block chain node, which can be, can be based on each node of intelligent contract The block chain node that block book keeping operation power competition is won is carried out, is also possible to have whether execution the 4th block chain node of detection uploads mesh The node that the storage of file proves is marked, it can also be by preset for deducting file destination mapped first in systems The block chain node for mortgaging layer unit can also be being selected at random based on intelligent contract, remove other than the 4th block chain node Either block chain node.Wherein, intelligent contract is promise (promises) that is preset, defining in digital form, including is closed About participant (i.e. all block chain nodes) can execute the agreement of these promises above.In different embodiments, in system It may include multiple intelligent contracts, multiple intelligence contracts are correspondingly arranged with different stage mortgage layer unit, and mortgage layer unit is constituted A part of intelligent contract, due to mortgaging layer unit at least underlying mortgage layer unit in technical solution provided herein With two ranks of secondary mortgage layer unit, therefore intelligent contract also includes at least two ranks, and advanced intelligent contract also has The effect of the intelligent contract of management and calling low level.
Further, the second block chain node and the 4th block chain node can be same node, i.e., when the 4th block chain When node is stored with the Backup Data of file destination, it can be completed to repair file destination by the 4th block chain node itself.One In embodiment, file destination then will can be preferentially repaired when the 4th block chain node itself is stored with the Backup Data of file destination Task is distributed to the 4th block chain node.
When third block chain node detect file destination deposit generate when abnormal file destination exist abnormal message or The data-link of third block chain node is reported and is uploaded to, so that other block chain nodes can know according to the synchronism of node The file destination that four block chain nodes are stored exists abnormal.
When third block chain node uploads file destination and there is abnormal message to third block chain node, meeting in system The first block chain node is determined based on intelligent contract, and the first block chain node is triggered into deduction file destination and is reflected at this time The process for the underlying mortgage layer unit penetrated.It should be noted that according to the embodiment of the present application, the first block chain node be triggered into It after the process for entering to deduct file destination mapped underlying mortgage layer unit, can't execute at once, but need further to sentence It is disconnected whether to be met about the preset condition of file destination, it specifically may refer to the elaboration of following FIG. 6 to Fig. 9.
In one embodiment, it deposits when abnormal when third block chain node judges to obtain file destination, also directly divides simultaneously Match or trigger other block chain link points and is allocated reparation file destination task to the second block chain node.Wherein, it is at one In system, there may be multiple block chain nodes and be stored with the Backup Data of file destination, and finally execute reparation file destination The second block chain node of task can be based on intelligent contract in multiple block chains for being stored with file destination Backup Data It is randomly generated in node.
In another embodiment, the second block chain node is also possible to be distributed by third block chain node specified, or Be by a certain Backup Data for being stored with file destination block chain node self-recommendation go execute repair file destination task, then It is to there are multiple block chains for being stored with file destination Backup Data to be at war with and executed by the person of winning to repair file destination task. Wherein, it should be noted that in the present example, do not limit distribution or triggering distribution repairs file destination task to second There is abnormal message to the sequence of third block chain node in block chain node and upload file destination, can be and be performed simultaneously It can be and first upload file destination in the presence of abnormal message to third block chain node, can also be that first distributing or trigger distribution repairs Complicated target file task can also only upload file destination and there is abnormal message to third block chain to the second block chain node Node, does not execute distribution or the movement of file destination task to the second block chain node is repaired in triggering distribution.
Further, when file destination task to a certain block chain node is repaired in distribution, the block chain link can be first determined Whether point is stored with the Backup Data of file destination.Only judging that block chain node is stored with the Backup Data of file destination, Side can will repair file destination task and distribute to the block chain node.It is corresponding, it is understood that be only stored with target text The block chain node of the Backup Data of part just has an opportunity to become the second block chain node.
Otherwise, it when judgement obtains not having in system storing the block chain node of file destination Backup Data, is then unable to complete The reconstruction or reparation of file destination, therefore can directly terminate this node process, it executes and deducts the underlying mortgage of file destination mapped The process of layer unit.
S304: judging file destination, there is no abnormal.If third block chain node detects on the 4th block chain node The storage for having passed file destination proves, or proves according to the punctual storage for updating file destination of setting rule to data-link On, then judging file destination, there is no abnormal.It should be understood that judging file destination in third block chain node, there is no abnormal Later, third block chain node can continue the detection that next round is carried out to the 4th block chain link point, be also possible to directly terminate Current testing process.In embodiment illustrated in Figure 3, by judge file destination deposit when abnormal, distribution or triggering point With there is abnormal file destination, it can be achieved that rebuilding when repairing file destination task to the second block chain node, to reduce mortgage Deduction provides technical foundation.
Fig. 4 is referred to, Fig. 4 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application, The executing subject of method illustrated in Figure 4 is third block chain node.
S401: whether the 4th block chain node of third block chain nodal test uploads file destination in the second preset time Storage prove.
Wherein, the 4th block chain node is the block chain node for storing the file destination, and the second preset time refers to The each block chain node set in centralization storage system uploads or updates storage the time interval of proof, the second preset time It is preset empirical value.Third block chain node is by detecting whether the 4th block chain node uploads mesh in the second preset time The storage of mark file proves, to judge file destination with the presence or absence of abnormal.When detecting that the 4th block chain node is default second The storage that file destination is uploaded in time proves that then judging current goal file, there is no abnormal;Conversely, when that can not detect mesh The storage of mark file proves, or detects the 4th block chain node in the second preset time of setting without more fresh target The storage of file proves, then it is abnormal to judge that file destination exists, then can execute step S402.
S402: elder generation does not execute the process for deducting file destination mapped underlying mortgage layer unit or elder generation does not notify first Block chain node executes the process for deducting file destination mapped underlying mortgage layer unit, and voluntarily judges or notify the firstth area Block chain node judges whether met about the preset condition of file destination in the first preset time.
In one embodiment, it detects that file destination is deposited when abnormal in third block chain node, then directly can voluntarily sentence Break and whether is met about the preset condition of file destination in the first preset time.
In another embodiment, third block chain node detects that file destination is deposited when abnormal, then is notified that the firstth area Block chain link point judge whether being met about the preset condition of file destination in the first preset time.Wherein, first Block chain node is the block chain node of the process of the executable underlying mortgage layer unit for deducting file destination mapping.
Wherein, preset condition includes at least file destination and is successfully repaired.Wherein, file destination is successfully repaired that refer to can It is proved with receiving the storage of target reparation file identical with file destination content.
In another embodiment, preset condition can also include: the text of file destination mapped secondary mortgage layer unit Part spoilage is less than preset threshold, and file destination is successfully repaired.Secondary mortgage layer unit is inherited out at least one and first is supported Layer unit is given as security, and the underlying mortgage layer unit either lower secondary mortgage layer unit of rank can be managed and resource tune Match.Underlying mortgage layer unit is for establishing mapping relations with the file destination stored in block chain node, it can be understood as The guarantee submitted when block chain node executes task in system.
Further, in another embodiment, judging that file destination deposits when abnormal, then third block chain node directly touches Hair enters the process for deducting file destination mapped underlying mortgage layer unit, i.e. third block chain node and the first block at this time Chain node is same node.In other embodiments, judging that file destination deposits when abnormal, it can be by third block chain node It triggers the first block chain link point and enters the process for deducting file destination mapped underlying mortgage layer unit.It should be noted that In embodiment provided herein, triggering enters the process for deducting file destination mapped underlying mortgage layer unit, and It does not execute at once, it can be in the knot for judging whether to be met about the preset condition of file destination in the first preset time Fruit, further selection executes or cancels the process for deducting file destination mapped underlying mortgage layer unit.
If preset condition is met, step S403 can be executed, otherwise can execute step S404.
S403: cancel the process for deducting file destination mapped underlying mortgage layer unit or notify the first block chain node Cancel the process for deducting file destination mapped underlying mortgage layer unit.
If it is determined that obtaining in the first preset time, when obtaining meeting about the preset condition of file destination, then can The process for deducting file destination mapped underlying mortgage layer unit is not carried out according to intelligent contract, continues next time Poll monitoring.Specifically, when the execution node that mortgage deducts is current third block chain node, then deduction can directly be cancelled The process of file destination mapped underlying mortgage layer unit;If the execution node for deducting mortgage is the first block chain node When, then it can generate command information and the first block chain node is notified to deduct without mortgage;Or be third block chain node not Know that finally which block chain node to execute mortgage by deducts, third block chain node can be sent to all block chain links at this time Point, so that executing the block chain node that mortgage deducts cancels the stream for deducting file destination mapped underlying mortgage layer unit Journey.
S404: it determines and executes the process for deducting file destination mapped underlying mortgage layer unit or notify the first block chain Node executes the process for deducting file destination mapped underlying mortgage layer unit.
If it is determined that obtaining in the case where being still unsatisfactory for preset preset condition in the first preset time, then It can be triggered according to intelligent contract and enter the process for deducting file destination mapped underlying mortgage layer unit.Specifically, third area Block chain node, which can be, is directly deducted file destination mapped mortgage, is also possible to notice and is different from third block chain link First block chain link point of point carries out mortgage deduction, realizes and provides a kind of mortgage deduction mechanism with fault tolerance, improves The enthusiasm of block chain node.
Fig. 5 is referred to, Fig. 5 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application, The executing subject of method illustrated in Figure 5 is to execute the second block chain node for repairing file destination task.In present example In, this method comprises:
S501: the second block chain node obtains the Backup Data of file destination and preservation.
Wherein, the Backup Data of file destination include the initial data of file destination backup and/or file destination it is standby Part.Wherein, the second block chain node mapped underlying mortgage layer unit and the 4th block chain node mapped underlying mortgage Layer unit belongs to the secondary mortgage layer unit of at least one rank, is also possible to belong to the secondary mortgage layer list of multiple ranks Member.Such as, incorporated by reference to Fig. 8, it is assumed that the second block chain node mapped underlying mortgage layer unit is m1, the 4th block chain node institute The underlying mortgage layer unit of mapping is m3, at this time the second block chain node mapped underlying mortgage layer unit and the 4th block chain Node mapped underlying mortgage layer unit belongs to the secondary mortgage layer unit Actor1 and secondary mortgage layer list of different stage First Actor.Wherein the 4th block chain node is the block chain node for storing file destination, and secondary mortgage layer unit is underlying mortgage The higher level of layer mortgages layer unit.
Second block chain node can be the backup that file destination is obtained when the 4th block chain node executes store tasks Data are also possible to the Backup Data of the file destination obtained according to the synchronism of block chain network interior joint.Specifically, herein The mode that the second block chain node obtains the Backup Data of file destination is not limited.For the second block chain node when Obtain time and without limitation of the Backup Data of file destination, it is only necessary to can when obtaining and executing reconstruction file destination task To call to Backup Data.
S502: when receiving reparation file destination task, target is generated based on Backup Data and repairs file.Wherein, mesh It is file identical with file destination content that mark, which repairs file, it should be noted that target repairs the ID number and target text of file The ID number of part is not identical.
It further, then can be to file destination when the Backup Data of file destination is the initial data of file destination Initial data obtains target after being packaged and repairs file.
When the Backup Data of file destination is the backup of file destination, since the backup of file destination is to have completed to seal Dress but the file for not mapping to any underlying mortgage layer unit, so there is no need to the backups to file destination to be packaged, Ke Yizhi The backup that file destination is selected in selecting repairs file as target.
Further, in another embodiment, after step S502, a kind of central store of going provided herein Control method further include: repair file configuration ID number for target and upload, so that the first block chain node or other block chains Target is repaired the ID number of file to node and file destination mapped underlying mortgage layer unit establishes mapping relations.In other realities It applies in example, other block chain nodes, which are included at least, to be competed the block chain node won by block book keeping operation, preset is exclusively used in building Block chain node, the second block chain node or the 4th block chain link of vertical file destination and underlying mortgage layer unit mapping relations Point, the actual needs of concrete foundation are adjusted setting.By the way that resulting content reparation mesh identical with file destination will be repaired Mark file and file destination mapped underlying mortgage layer unit establish mapping relations, can preferably avoid depositing in file destination When abnormal, the mortgage layer unit of corresponding file destination is deducted, to improve the enthusiasm of block chain node.
S503: generating the data-link that target repairs the storage proof of file and is uploaded to the second block chain node, so that First block chain node is known and cancels the process for deducting file destination mapped underlying mortgage layer unit.
Since there are fault tolerance mechanism for method provided herein, therefore target reparation file is obtained in reparation and is stored Afterwards, the storage that file can be repaired by generating target proves and is uploaded to the data-link of the second block chain node, utilizes block chain The synchronism of node is at least so that the first block chain node has an opportunity to know that file destination is successfully repaired, so that One block chain node has an opportunity to cancel the process for deducting file destination mapped underlying mortgage layer unit.
Fig. 6 is referred to, Fig. 6 is a kind of flow diagram of one embodiment of control method of decentralization storage of the application. In the present example, the executing subject of the control method of decentralization provided herein storage is to execute mortgage and deduct to appoint First block chain node of business, this method comprises:
S601: the first block chain node monitors whether to be met about the preset condition of file destination.Wherein, first Block chain node is the block chain node for executing the process for deducting file destination mapped underlying mortgage layer unit, file destination It is to spot-check to obtain through third block chain node in the presence of abnormal file, preset condition includes at least file destination and successfully repaired.
In another embodiment, preset condition can also include: the text of file destination mapped secondary mortgage layer unit Part spoilage is less than preset threshold, and file destination is successfully repaired.Wherein, secondary mortgage layer unit is underlying mortgage layer unit Higher level mortgage layer unit, underlying mortgage layer unit is directly or indirectly inherited from secondary mortgage layer unit.Secondary mortgage layer unit It is also used to manage underlying mortgage layer unit, distributes resource or task for underlying mortgage layer unit.
In decentralization storage system (hereinafter referred system), exist when the first block chain node receives file destination Abnormal information, and when obtaining the deducting the underlying mortgage layer unit that file destination maps more of the task, the first block chain node The process for deducting file destination mapped underlying mortgage layer unit can then be entered.When the first block chain link point enters deduction target After the process of file mapped underlying mortgage layer unit, the first block chain node does not execute at once and deducts the of file destination One mortgage layer unit, and can execute step S601, and the result based on step S601 judges whether to execute and supports to file destination It gives as security and deducts process, wherein mortgage, which deducts process, refers to deduction file destination mapped underlying mortgage layer unit.First block chain Node need to monitor whether after entering the process for deducting file destination mapped underlying mortgage layer unit about file destination Preset condition met.
Further, the first block of step S601 chain node monitors whether to be expired about the preset condition of file destination Foot includes: to monitor whether that the storage for receiving target reparation file proves.Wherein, it is the second block chain node base that target, which repairs file, It repairs to obtain in the Backup Data of file destination, and file identical with file destination content.In technology provided herein In scheme, after the second block chain node is repaired to obtain target reparation file based on the Backup Data of file destination, then it can generate The storage that target repairs file proves and is uploaded to the data-link of the second block chain node, to notify in decentralization storage system Other block chain nodes be stored with target repair file, corresponding, the first block chain node can then be based on block chain link The synchronism of point knows that target identical with file destination content repairs the stored message of file.It is same due to block chain node Step property, therefore the first block chain node can be directly monitor whether to receive target reparation file storage prove;In other implementations It is also possible to access the data-link of the second block chain node in example.In the present example, file is repaired when receiving target Storage then can determine whether that file destination is successfully repaired when proving, then judges that preset condition is met.
Still further, in another embodiment, further limiting file destination and successfully being repaired within a certain period of time Step S602 can be executed, therefore step S601 includes: whether monitoring receives depositing for target reparation file in the first preset time Storage proves.Wherein, the first preset time is that the text of target transmitted by third block chain node is learnt from the first block chain node There is abnormal beginning timing in part, it is decentralization storage system for failure that the first preset time is set based on experience value The time of tolerance supports when successfully repairing file destination in the first preset time then and will not deduct file destination mapped first Give as security layer unit.
When step S601 monitors to obtain meeting about the preset condition of file destination, step S602 can be executed, it is on the contrary When the preset condition for judging file destination is not met for, step S603 can be executed.
S602: cancel the process for deducting file destination mapped underlying mortgage layer unit.
Since the second block chain node is after executing the repairing file destination of the task, obtain and file destination content phase Same target repairs file, and target can be repaired to file and can be established with file destination mapped underlying mortgage layer unit and mapped Relationship, therefore can be understood as storing file destination for whole block chain network of the task is still completed, therefore first Block chain node can then cancel the process for deducting file destination mapped underlying mortgage layer unit, i.e., will not deduct file destination Corresponding underlying mortgage layer unit.
S603: the process for deducting file destination mapped underlying mortgage layer unit is continued to execute.
If can then execute to deducting file destination mapped the conversely, when judging that preset condition is not met for The process of one mortgage layer unit, that is, remove the mortgage for deducting file destination, to punish the corresponding block chain node damage of file destination File destination.Further, when the first block chain node includes multiple, then the first all block chain nodes will continue to hold Row carries out the process of mortgage deduction to file destination, with and complete to deduct process to the mortgage of file destination.
Method provided in embodiment shown in fig. 6 is detected whether by the first block chain node about target text The preset condition of part is met, and is met if detecting about the preset condition of file destination, and deduction mesh can be cancelled Otherwise the process for marking file mapped underlying mortgage layer unit will continue to execute and deduct the underlying mortgage of file destination mapped The process of layer unit, compared with the prior art in be such as found file destination damage and execute mortgage at once and deduct, the application mentioned The technical solution of confession is after triggering mortgages and deducts process, by monitoring whether that the preset condition about file destination is expired Foot, and cancel the process for deducting file destination mapped underlying mortgage layer unit after preset condition is met, it provides Deduction mechanism is mortgaged with fault tolerance, and then improves the enthusiasm of block chain node.
Fig. 7 is referred to, Fig. 7 is a kind of process signal of another embodiment of control method of decentralization storage of the application Figure.In present example, the method comprising the steps of S701 to step S706.
In one embodiment, before executing step S701, method provided herein further include: the first block chain link Point learns that the file destination that third block chain node is sent has abnormal information.Wherein, third block chain node is detection The block chain node that the storage of file destination proves, when third block chain node detects that the storage of file destination proves that there are different File destination can be had abnormal message and is uploaded on the data-link of third block chain node by Chang Hou, the first block chain node It is abnormal can to know that file destination exists based on the synchronism of block chain node.
Further, in another embodiment, exist in the file destination for receiving the transmission of third block chain node abnormal Information while, the first block chain node will start carry out block book keeping operation power competition, with obtain execute deduct file destination institute The task of the underlying mortgage layer unit of mapping.
S701: obtaining and deduct file destination mapped underlying mortgage layer unit task, and triggers literary into target is deducted The process of part mapped underlying mortgage layer unit.
In embodiment shown in Fig. 7, the first block chain node include: block book keeping operation power competition win block chain node, Third block chain node presets block chain node for deducting file destination mapped underlying mortgage layer unit or removes the All block chain nodes other than four block chain nodes.
Wherein, the 4th block chain node is the block chain node for storing file destination.In one embodiment, storage target text The task of part is distributed from secondary mortgage layer unit to the 4th block chain node, specifically be can be and is directly distributed initial data extremely Each 4th block chain node is voluntarily packaged by the 4th block chain node and obtains file destination and store.Secondary mortgage Layer unit at least refers to the upper level mortgage layer unit of underlying mortgage layer unit, and secondary mortgage layer unit is at least used for its institute The underlying mortgage layer unit inherited out carries out Resource allocation and smoothing, the son mortgage layer unit or underlying mortgage layer list inherited out for it Member is allocated task.For 4th block chain node after storing file destination, the target that can be stored according to preset rules is literary Part sets an ID number, and ID number is uploaded, at least so that underlying mortgage layer unit distributes underlying mortgage layer list as file destination Member.
Further, it when running multiple block chain nodes in a block chain node device, then can be supported from same second Give as security the stored file destination corresponding first that layer unit inherits out all block chain nodes in the block chain node device respectively Layer unit is mortgaged, corresponding can also be that block chain node distributes new deposit in block chain node device by the secondary mortgage layer unit Storage task.Storage file destination task is otherwise allocated it should be understood that can also be in other embodiments
In one embodiment, when the first block chain node is the block chain node that block book keeping operation power competition is won, then After a certain block chain node is won in the block power of keeping accounts competes, which can obtain deduction file destination and be mapped Underlying mortgage layer unit task, become current first block chain node, corresponding first block chain node triggering, which enters, to be deducted The process of file destination mapped underlying mortgage layer unit.Enter in triggering and deducts file destination mapped underlying mortgage layer After the process of unit, the first block chain node can further determine whether to be met about the preset condition of file destination, Cancel the process for deducting file destination mapped underlying mortgage layer unit based on judging result again, or continues to execute deduction The process of file destination mapped underlying mortgage layer unit.Wherein, in the present example, preset condition includes: target text The file corruption rate of part mapped secondary mortgage layer unit is less than preset threshold, and file destination is successfully repaired.Specifically may be used Referring to step S702 to step S705.
In another embodiment, when setting, which carries out mortgage by the block chain link point of execution supervisory role, to be deducted, then the One block chain node and third block chain node are same block chain node.In the present example, when third block chain node It detects that file destination is deposited when abnormal, file destination can be had abnormal message and be sent to including third block chain node certainly All block chain nodes of body, the triggering after receiving file destination and there is abnormal message of third block chain node, which enters, to be deducted The process of file destination mapped underlying mortgage layer unit, and further judge whether the preset condition about file destination Met.
In another embodiment, when the first block chain node is to preset for deducting file destination mapped underlying mortgage The block chain node of layer unit connects when presetting the block chain node for deducting file destination mapped underlying mortgage layer unit After receiving the message that file destination has exception, deduction file destination mapped first is triggered into according to intelligent contract and is supported Give as security the process of layer unit.
In another embodiment, when the first block chain node is the either block chain link removed other than the 4th block chain node When point, it can determine that any node removed other than the 4th block chain node is the first block chain node based on intelligent contract.
S702: the first block chain node calculates file spoilage in the corresponding secondary mortgage layer unit of file destination.
Wherein, secondary mortgage layer unit is that the higher level of underlying mortgage layer unit mortgages layer unit, for managing secondary mortgage Layer, underlying mortgage layer unit are inherited from secondary mortgage layer unit.File corruption rate is secondary mortgage layer unit mapped target There is the ratio of the quantity of abnormal quantity and all file destinations of secondary mortgage layer unit mapped in file.
Refer to Fig. 8, the mortgage layer unit inheritance schematic diagram that Fig. 8 is proposed by the application, in the present example, Mortgage layer unit with inheritance can be referred to as to father and son and mortgage layer unit, in figure shown in Fig. 8, father mortgages layer unit Actor can inherit out son mortgage layer unit Actor1, sub- mortgage layer unit Actor2 and son mortgage layer unit Actor3, and son supports It gives as security layer unit Actor1 and inherits out underlying mortgage layer unit m1, m2 and m3, sub- mortgage layer unit Actor2 inherits out underlying mortgage Layer unit n1 and n2.
In this application will there is the mortgage layer unit of management and resource allocation function to be defined as secondary mortgage layer unit, it is right It answers in figure shown in Fig. 8, it is secondary mortgage layer list that the higher level of underlying mortgage layer unit m1, m2 and m3, which mortgage layer unit Actor1, Member.But in technical solution provided herein, multiple direct management or indirect control underlying mortgage layer can have The higher level of unit m1 mortgages layer unit, therefore can be corresponding with the secondary mortgage layer unit of different ranks.Such as secondary mortgage layer unit It is also secondary mortgage layer unit that the higher level of Actor1, which mortgages layer unit Actor, although mortgage layer unit Actor1 and mortgage layer list First Actor is secondary mortgage layer unit, but the rank for mortgaging management and the distribution of layer unit Actor is higher than mortgage layer list First Actor1, i.e. mortgage layer unit Actor1 can manage mortgage layer unit Actor1.
It should be noted that mortgage this integrated relationship of layer unit theoretically can integrate plurality of layers, illustrated in Figure 8 is The mortgage layer unit of three layers of inheritance, it is possible to understand that, mortgage layer unit in other embodiments may include multilayer after Relationship is held, such as may include 4 layers, 5 layers or more layers, herein and without limitation.
In the present example, underlying mortgage layer unit, which refers to, also not to have followed by son mortgage layer unit is held out The mortgage layer unit of management and distribution function, while being also the minimum mortgage layer unit of rank.Each underlying mortgage layer unit with File destination can be one-to-one, and be that underlying mortgage layer unit and target text are distributed by least one secondary mortgage layer unit Part establishes mapping relations task to underlying mortgage layer unit.After each block chain node completes storage file destination, it can correspond to The ID number that a label identity is assigned to each file destination, is at least uploaded to secondary mortgage layer unit, secondary mortgage layer for ID number Unit, can be by the ID number of each file destination and a underlying mortgage layer list not distributed after receiving the ID number of file destination Member establishes mapping relations.
Specifically, Fig. 9 is referred to, Fig. 9 is by the mapping relations between the application mortgage layer unit proposed and encapsulated layer Schematic diagram.In the present example, the memory block of the 4th block chain node encapsulation gained file destination of store tasks will be executed It is defined as encapsulated layer, in the present example, the structure of encapsulated layer can correspond to the structure of proposed mortgage layer unit, wherein by Fig. 8 is it is known that file destination S11 is corresponding with underlying mortgage layer unit m1, m3 pairs of file destination S12 and underlying mortgage layer unit It answers, file destination S13 is corresponding with underlying mortgage layer unit m2, and underlying mortgage layer unit m4 is the underlying mortgage layer list not distributed Member, D1, D2 and D3 are the backup of the initial data backup either file of file destination S11, S12 and S13.In present example Provided in technical solution in, by corresponding each file destination and underlying mortgage layer unit, preferably in fact Show and has been precisely controlled for what the mortgage of stored file destination in each block chain node deducted.
Wherein, the secondary mortgage layer unit in step S702, which refers to, does not upload first corresponding to the file destination that storage proves The higher level for mortgaging layer unit mortgages layer unit.And secondary mortgage layer unit can be the secondary mortgage layer unit across rank, such as exist In Fig. 9, the secondary mortgage layer unit of underlying mortgage layer unit m1 can refer to mortgage layer unit Actor1, may also mean that across grade Other mortgage layer unit Actor.What is calculated in step S702 is each first in the interior secondary mortgage layer unit of current slot Mortgage the probability that mapped file destination in layer unit has damage.Specifically, file corruption rate is equal in current slot Underlying mortgage layer unit mapped file destination included by secondary mortgage layer unit damages quantity and the secondary mortgage layer list The quantity ratio of all file destinations of the mapping of member.Such as, in the mortgage layer unit of meaning shown in Fig. 9, wherein each first supports It gives as security layer unit to map with a file destination, if only having underlying mortgage layer unit m1 to reflect in secondary mortgage layer unit Actor1 Penetrate file destination damage, then can the corresponding layer unit of secondary mortgage at this time Actor1 file corruption rate be equal to one third, About 33.33%, but the file corruption rate of the secondary mortgage layer unit Actor of higher level is but 1/5th, i.e., 20%.Therefore It is corresponding it is possible thereby to the secondary mortgage layer unit of different stage can be set with different file corruption rates by learning, when with Different stage mortgage layer unit is to judge then correspond to when benchmark to set different preset thresholds.
S703: judge whether file corruption rate is less than preset threshold.
Wherein, preset threshold is preset value, can be executed based on intelligent contract, preset threshold, which is intended to indicate that, to be worked as The maximum file corruption rate of mortgage layer unit acceptable of preceding mortgage layer unit either current level.It should be understood that The preset threshold, which can according to need, to be adjusted and sets, and the secondary mortgage layer unit of corresponding different stage can set difference Preset threshold.
If file corruption rate is less than preset threshold, step S704 can be executed.Conversely, when file corruption rate is greater than or equal to When preset threshold, then step S705 can be executed.
S704: execution monitors whether that the storage for receiving target reparation file proves.When file corruption rate is less than default threshold It when value, can also receive the report failed request of block chain link point according to setting the first block chain node of intelligent contract, give an event Hinder patient time to repair file destination.Within the given fault tolerance time, i.e., it can monitor whether to receive and target text The storage that the identical target of part content repairs file proves.Further, step 704 is also possible to execute to monitor and preset first The storage that target reparation file whether is received in time proves.
S705: the process for deducting file destination mapped underlying mortgage layer unit is continued to execute.When file corruption rate is big In or when being equal to preset threshold, according to setting the first block chain node of intelligent contract will not the failure that reports of recipient node ask It asks, then the first block chain node can directly execute the process for deducting file destination mapped underlying mortgage layer unit.
S706: cancel the process for deducting file destination mapped underlying mortgage layer unit.Step S706 can be found in figure 6 above The elaboration of the part step S602 in corresponding embodiment, details are not described herein.
It should be noted that when the file corruption rate of a certain secondary mortgage layer unit of previous moment is equal to preset threshold, but It is wherein to there is underlying mortgage layer unit mapped file destination in part to complete to repair after the time of setting, then at this time It is first pre- to will continue to give corresponding one fault tolerant of file destination of other underlying mortgage layer units for the secondary mortgage layer unit If the time, and execute monitoring whether received in the first preset time target repair file storage prove.
Specifically, reference can be made to Figure 10, Figure 10 are a kind of control method another embodiment of decentralization storage of the application Data repair schematic diagram.The illustrated in Figure 10 file destination task that will repair is distributed to being stored with file destination Backup Data Block chain node situation in other block chain node devices.In the present example, it is assumed that one in block chain node device A The corresponding file destination S31 damage of 4th block chain node, by judging on the second block chain node without storage target text Part Backup Data can then correspond to and distribute file destination reparation task to the block for being stored with file destination S31 Backup Data The second block chain node in chain node device B, when the original that the Backup Data on block chain node device B is file destination S31 When beginning data backup, then it is identical as the file destination S31 content of damage encapsulation generation to be re-started to initial data backup Target repair file S24, and the ID number that target repairs file S24 is uploaded to secondary mortgage layer unit Actor1, then root According to intelligent contract secondary mortgage layer unit Actor1 can by former file destination S31 mapped underlying mortgage layer unit m1 directly with Target is repaired file S24 and is mapped, and is deducted to avoid former file destination S31 mapped underlying mortgage layer unit m1.
Further, in another embodiment, when the file destination that the Backup Data on block chain node device B is damage When the file backup of S31, can directly select this document backup at this time is that target repairs file, then can be directly by the mesh of damage Mark file mapped underlying mortgage layer unit is mapped with this document backup, can directly omit the step for carrying out data encapsulation It suddenly, is the scheme of initial data compared to Backup Data, Backup Data is that the scheme processing speed of file backup is very fast.It needs It is bright, when Backup Data be packaged file when, then it is corresponding, the backup file execute repair file destination task it Before be that will not be linked to any one underlying mortgage layer unit.
Control method based on the decentralization storage that figure 3 above to Figure 10 is illustrated, please with further reference to Figure 11, Tu11Wei Each node interaction schematic diagram in a kind of control method another embodiment of decentralization storage of the application.In present example In, method provided herein includes step S1 to step S10.
Specific method includes the following steps:
S1. the 4th block chain node obtains store tasks, stores file destination, and generates storage proof and be uploaded to data Chain.
S2. the second block chain node obtains Backup Data and the preservation of file destination.
S3. the storage that whether the 4th block chain node of third block chain nodal test uploads file destination proves.
If S4. the detection of third block chain node obtains the 4th block chain node and does not upload the storage of file destination proving, It is abnormal then to judge that file destination exists.
S5. it distributes or triggers distribution and repair file destination task to the second block chain node.
S6. the data-link that file destination has abnormal message to third block chain node is uploaded.
S7. it triggers the first block chain link point and enters the process for deducting file destination mapped underlying mortgage layer unit.
S8. target is generated based on Backup Data and repairs file.
S9. the first block chain node monitors whether to be met about the preset condition of file destination.
S10. it monitors to be met about the preset condition of file destination, then cancels and deduct file destination mapped The process of underlying mortgage layer unit.
Step S1 to S10 is elaborated in each embodiment of Fig. 1 to Figure 10, is not repeated further herein. It should be noted that be for ease of description in the present example to first carry out step S5, then successively execute step S6 and S7, but It is the front and back step that step S5 and S6 execution are not limited in technical solution provided herein.Similarly for step S1 and S2 And the not sequence of particular step S1 and S2.
2, Figure 12 is a kind of schematic diagram of the another embodiment of control method of decentralization storage of the application referring to Figure 1, Figure 12, which is specifically described, repairs the mistake that file establishes mapping relations for file destination mapped underlying mortgage layer unit and target Journey.In the present example, method provided herein includes:
1. the 4th block chain node obtains the attribute information that target repairs file.
2. uploading adjustment underlying mortgage layer unit mapping relations to request to support with the attribute information of target reparation file to first Give as security the corresponding secondary mortgage layer unit of layer unit.
3. secondary mortgage layer unit obtains attribute information and the adjustment that the target that the 4th block chain node is sent repairs file The request of underlying mortgage layer unit mapping relations.
4. the response adjustment underlying mortgage layer unit mapping relations request of secondary mortgage layer unit.
5. distributing the adjusting underlying mortgage layer unit mapping relations of the task to underlying mortgage layer unit.
6. the task of underlying mortgage layer unit distribution adjustment mapping relations is distributed to the first block chain node.
7. the first block chain node executes the task of adjustment mapping relations, cancels underlying mortgage layer unit and reflected with file destination Relationship is penetrated, and establishes the mapping relations of underlying mortgage layer unit and target reparation file.
The application also provides a kind of storage medium, and 3, Figure 13 is a kind of one embodiment of storage medium of the application referring to Figure 1 In structural schematic diagram, in the present example, storage medium 1300 is stored with program data 1301, the program data stored 1301 are performed the controlling party that a kind of storage of decentralization as described in figure 3 above to Figure 12 and its each embodiment can be achieved Method.Specifically, the above-mentioned storage medium 1300 with store function can be memory, personal computer, server, network and set Standby or USB flash disk etc. is one such.
The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field similarly includes in the scope of patent protection of the application.

Claims (11)

1. a kind of control method of decentralization storage, which is characterized in that the described method includes:
First block chain node monitors whether to be met about the preset condition of file destination, wherein the preset condition The storage that file is repaired including receiving target proves;
If monitoring to be met about the preset condition of the file destination, cancels the deduction file destination and mapped Underlying mortgage layer unit process;
Otherwise the process for deducting underlying mortgage layer unit described in the file destination mapped is continued to execute;
The first block chain node monitors whether that obtaining meeting about the preset condition of file destination includes: to monitor whether to connect The storage for receiving the target reparation file proves, wherein it is described in the second block chain node is based on that the target, which repairs file, What the Backup Data of file destination was repaired, and file identical with the file destination content;
The first block chain node is the area for executing the process for deducting the file destination mapped underlying mortgage layer unit Block chain node, the second block chain node are to be stored with the Backup Data of the file destination and execute to repair file destination times The block chain node of business;
Before the first block chain node monitors whether to obtain satisfaction about the preset condition of file destination, the method is also Include:
It obtains and deducts the file destination mapped underlying mortgage layer unit task, and trigger into described and deduct the target The process of file mapped underlying mortgage layer unit.
2. the method according to claim 1, wherein described monitor whether to receive the storage that target repairs file Proof further comprises:
Whether monitoring receives the target in the first preset time, which is repaired the storage of file, proves, first preset time Since the first block chain link point enters the process for deducting underlying mortgage layer unit described in the file destination mapped Timing.
3. the method according to claim 1, wherein the first block chain node is monitored whether about target The preset condition of file obtains
The first block chain node calculates file spoilage in the corresponding secondary mortgage layer unit of the file destination, and described the Two mortgage layer units are that the higher level of the underlying mortgage layer unit mortgages layer unit, for managing the underlying mortgage layer unit, The underlying mortgage layer unit is inherited from the secondary mortgage layer unit, and the file corruption rate is the secondary mortgage layer unit There is abnormal quantity and the secondary mortgage layer in file destination described in the underlying mortgage layer unit mapped managed The ratio of the quantity of all file destinations of unit mapped;
Judge whether the file corruption rate is less than preset threshold;
If the file corruption rate is less than the preset threshold, monitor whether that receiving target repairs depositing for file described in execution Storage proves, if the file corruption rate is greater than or equal to the preset threshold, continues to execute the deduction file destination and is reflected The process for the underlying mortgage layer unit penetrated.
4. the method according to claim 1, wherein the first block chain node includes: that block book keeping operation power is competing The block chain node competed for first place out, third block chain node are preset and are supported for deducting described in the file destination mapped first It gives as security the block chain node of layer unit or removes the either block chain node other than the 4th block chain node, wherein the third area The supervision of block chain link dimension spot-check whether the 4th block chain node uploads the block that the storage of the corresponding file destination proves Chain node, the 4th block chain node are the block chain node for storing the file destination.
5. a kind of control method of decentralization storage, which is characterized in that the described method includes:
The storage whether the 4th block chain node of third block chain nodal test uploads file destination proves, to judge the target For file with the presence or absence of exception, the 4th block chain node is the block chain node for storing the file destination;
If detection, which obtains the storage that the 4th block chain node does not upload the file destination, to be proved, the target is judged File exists abnormal;Otherwise judging the file destination, there is no abnormal;
If it is abnormal to judge that the file destination exists, uploads the file destination and there is abnormal message to the third block chain The data-link of node, with trigger the first block chain node obtain deduct file destination mapped underlying mortgage layer unit task and Into the process for deducting the file destination mapped underlying mortgage layer unit, and distributes or trigger distribution and repair file destination Task is to the second block chain node, so that the second block chain node, which is based on Backup Data, generates target reparation file and institute The storage for stating target reparation file proves, and the storage proof that the target repairs file is uploaded to the second block chain link The data-link of point, so that the first block chain node knows that the target repairs file storage and proves and cancel to deduct the mesh Mark the process of file mapped underlying mortgage layer unit, wherein the second block chain node is to be stored with the target text The Backup Data of part and the block chain node for executing the reparation file destination task, the first block chain node is to execute button Except the block chain node of the process of underlying mortgage layer unit described in the file destination mapped, the target, which repairs file, is File identical with the file destination content.
6. a kind of control method of decentralization storage, which is characterized in that the described method includes:
Whether the 4th block chain node of third block chain nodal test uploads the storage card of file destination in the second preset time Bright, the 4th block chain node is the block chain node for storing the file destination;
If detecting, the 4th block chain node does not upload the institute of the corresponding file destination in second preset time Stating storage proves, triggers third block chain node or the first block chain node obtains and deducts the underlying mortgage of file destination mapped Layer unit task and the process for entering the deduction file destination mapped underlying mortgage layer unit, and do not execute first and deduct institute It states the process of file destination mapped underlying mortgage layer unit or does not notify first the first block chain node executes to deduct the mesh The process of underlying mortgage layer unit described in file mapped is marked, and voluntarily judges or the first block chain node is notified to judge Whether met about the preset condition of the file destination in the first preset time, the preset condition includes receiving The storage for repairing file to target identical with the file destination content proves that the first block chain node is to execute deduction The block chain node of the process of underlying mortgage layer unit described in the file destination mapped;
If the preset condition is met, cancels and deduct underlying mortgage layer unit described in the file destination mapped Process notifies the first block chain node is cancelled to deduct underlying mortgage layer unit described in the file destination mapped Otherwise process determines and executes the process for deducting underlying mortgage layer unit described in the file destination mapped or notify described the One block chain node executes the process for deducting underlying mortgage layer unit described in the file destination mapped.
7. a kind of control method of decentralization storage, which is characterized in that the described method includes:
Second block chain node obtains the Backup Data of file destination and preservation, wherein the backup data package of the file destination Include the backup of the initial data of the file destination and/or the backup of the file destination;
When receiving the reparation file destination task, target is generated based on the Backup Data and repairs file, the target It is identical as the file destination content to repair file;
The data-link that the target repairs the storage proof of file and is uploaded to the second block chain node is generated, so that the One block chain node is known and cancels the process for deducting file destination mapped underlying mortgage layer unit, the first block chain Node is the block chain node for executing the process for deducting the file destination mapped underlying mortgage layer unit;
Described in underlying mortgage layer unit described in the second block chain node mapped and the 4th block chain node mapped Underlying mortgage layer unit belongs to the secondary mortgage layer unit of at least one rank, wherein the 4th block chain node is storage The block chain node of the file destination, the secondary mortgage layer unit are that the higher level of the underlying mortgage layer mortgages layer unit, For managing the underlying mortgage layer unit, the underlying mortgage layer unit is inherited from the secondary mortgage layer unit.
8. the method according to the description of claim 7 is characterized in that described generate target reparation file based on the Backup Data Later, the method also includes: repair and file configuration ID number and upload for the target, so that the first block chain node Or other block chain nodes support the ID number that the target repairs file with described in the file destination mapped first It gives as security layer unit and establishes mapping relations.
9. a kind of block chain node device, which is characterized in that the block chain node device includes processor, memory and communication Circuit, the processor are connect with the memory and the telecommunication circuit;
Wherein, the memory is for storing program data;
The telecommunication circuit is used to be communicated under processor control with block chain node device described in other;
The processor is used to run the described program data of the memory storage, to execute such as any one of claim 1 to 8 The method.
10. a kind of decentralization storage system, which is characterized in that the system comprises multiple block chain node devices, the areas Block chain node device can run at least one block chain node, can carry out between the multiple block chain node device point-to-point logical Letter, the block chain node device are equipment as claimed in claim 9.
11. a kind of storage medium, which is characterized in that the storage medium is stored with program data, and described program data are performed Shi Shixian method as claimed in any one of claims 1 to 8.
CN201910310142.0A 2019-04-17 2019-04-17 Control method, system and the relevant device of decentralization storage Active CN109800211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910310142.0A CN109800211B (en) 2019-04-17 2019-04-17 Control method, system and the relevant device of decentralization storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910310142.0A CN109800211B (en) 2019-04-17 2019-04-17 Control method, system and the relevant device of decentralization storage

Publications (2)

Publication Number Publication Date
CN109800211A CN109800211A (en) 2019-05-24
CN109800211B true CN109800211B (en) 2019-08-13

Family

ID=66564463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910310142.0A Active CN109800211B (en) 2019-04-17 2019-04-17 Control method, system and the relevant device of decentralization storage

Country Status (1)

Country Link
CN (1) CN109800211B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414263A (en) * 2019-06-28 2019-11-05 深圳市先河系统技术有限公司 Control method, system and the relevant apparatus of decentralization storage
CN115022019A (en) * 2022-05-31 2022-09-06 中国银行股份有限公司 Abnormal file detection method, device and equipment based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826040A (en) * 2009-03-03 2010-09-08 闪联信息技术工程中心有限公司 Method and system for automatically detecting and restoring memory equipment
CN106383754A (en) * 2016-09-19 2017-02-08 北京众享比特科技有限公司 Database backup and recovery system based on block chain technology, and database backup method based on block chain technology, and database recovery method based on block chain technology
CN106886555A (en) * 2016-12-27 2017-06-23 苏州春禄电子科技有限公司 A kind of anti-loss of data based on block chain technology and the data-storage system for damaging
CN109271115A (en) * 2018-10-11 2019-01-25 重庆晨鲸科技有限公司 Store sharing method, device, block chain distributed network topology

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018232297A1 (en) * 2017-06-15 2018-12-20 Sweetbridge Solo-party collateralized liquidity
CN109427012B (en) * 2017-08-22 2021-06-01 汇链丰(北京)科技有限公司 Transaction and verification method based on block chain
CN109379189B (en) * 2018-12-17 2022-05-20 江苏恒宝智能系统技术有限公司 Block chain account key backup and recovery method, device, terminal and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826040A (en) * 2009-03-03 2010-09-08 闪联信息技术工程中心有限公司 Method and system for automatically detecting and restoring memory equipment
CN106383754A (en) * 2016-09-19 2017-02-08 北京众享比特科技有限公司 Database backup and recovery system based on block chain technology, and database backup method based on block chain technology, and database recovery method based on block chain technology
CN106886555A (en) * 2016-12-27 2017-06-23 苏州春禄电子科技有限公司 A kind of anti-loss of data based on block chain technology and the data-storage system for damaging
CN109271115A (en) * 2018-10-11 2019-01-25 重庆晨鲸科技有限公司 Store sharing method, device, block chain distributed network topology

Also Published As

Publication number Publication date
CN109800211A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
US7537523B2 (en) Dynamic player groups for interest management in multi-character virtual environments
US20180082170A1 (en) Structural plasticity in spiking neural networks with symmetric dual of an electronic neuron
CN109800211B (en) Control method, system and the relevant device of decentralization storage
US20200104091A1 (en) Automatic display unit backup during failures of one more display units through the utilization of graphic user interface objects defined for control transfer and reversion after resolution of the failures
CN108092794A (en) Network failure processing method and device
CN1666474B (en) Management node device, node device, network configuration management system, network configuration management method, node device control method, management node device control method
CN103491592A (en) Method and device for constructing paths of wireless mesh sensor network and gateway
CN109615058A (en) A kind of training method of neural network model
CN105912612A (en) Distributed file system and data equilibrium distribution method orienting same
CN107105049A (en) Data migration method and device
WO2010144947A1 (en) Construction and training of a recurrent neural network
CN109118097A (en) A kind of reliability and maintanability, r&m Supportability Evaluation method and apparatus
CN106357712A (en) Mobile terminal control method, device and system
US20230372812A1 (en) Method and apparatus for data synchronization, device and medium
CN110058968A (en) Control method, system and the relevant device of decentralization storage
CN106161490A (en) A kind of user's online behavior state update method, Apparatus and system
CN104486115B (en) The method and system of positioning failure
CN110414263A (en) Control method, system and the relevant apparatus of decentralization storage
CN110020844A (en) Control method, system and the relevant device of decentralization storage
CN110738392B (en) Single-terminal multi-user wind control modeling method based on Bayesian network model
CN107371125A (en) Wireless sensor network fault restorative procedure and device based on particle cluster algorithm
Skulimowski et al. Adaptive design of a cyber-physical system for industrial risk management decision support
CN115442216B (en) Network slice fault self-healing method, device, equipment and computer storage medium
CN113872924B (en) Multi-agent action decision method, device, equipment and storage medium
CN109218206B (en) Method and device for limiting link state advertisement quantity

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
GR01 Patent grant
GR01 Patent grant