CN109144969A - For the data processing method of block chain network system, device and storage medium - Google Patents
For the data processing method of block chain network system, device and storage medium Download PDFInfo
- Publication number
- CN109144969A CN109144969A CN201811171354.7A CN201811171354A CN109144969A CN 109144969 A CN109144969 A CN 109144969A CN 201811171354 A CN201811171354 A CN 201811171354A CN 109144969 A CN109144969 A CN 109144969A
- Authority
- CN
- China
- Prior art keywords
- block chain
- chain network
- sub
- data
- write
- 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.)
- Pending
Links
Abstract
This application provides for the data processing method of block chain network system, device and storage medium.The block chain network system includes root zone block chain network and at least one sub-block chain network with root zone block chain network communication connection.It can be applied to block chain technical field according to method provided herein.According to the application, the data processing method for block chain network system includes: to receive the first write request for being directed to the block chain network system at the root chain node of the root zone block chain network;The first metadata is generated according to information associated at least one described sub-block chain network;By handling according to first metadata first write request, the second write request associated with the first sub-block chain network at least one described sub-block chain network is obtained;And second write request is sent to the subchain node of the first sub-block chain network.
Description
Technical field
Present invention relates generally to information technology fields, at the data for block chain network system
Reason method, data processing equipment and computer storage medium.
Background technique
Block chain (Blockchain) has obtained extensive discussion and research as the emerging technology risen in recent years.Area
Block chain is with the intelligent peer-to-peer network of distributed data base identification, propagation and information-recording, also referred to as value internet.Block
Chain technology includes being guaranteed transmission and access safety etc. with block structure storing data using cryptography, it is consistent can be realized data
Property storage, tamper-resistant, the technical system for going to center.But compared with the handling capacity of centralized system, block catenary system is gulped down
It is huge to spit capacity gap, thus brings huge obstacle to the development of block chain technology.
Summary of the invention
Embodiments herein is related to the data processing method for block chain network system, for block chain network system
Data processing equipment and corresponding computer storage medium.
The first aspect of the application is related to the data processing method for block chain network system, block chain network system
System includes root zone block chain network and at least one sub-block chain network with root zone block chain network communication connection, the method
It include: to receive the first write request for being directed to the block chain network system at the root chain node of the root zone block chain network;
The first metadata is generated according to information associated at least one described sub-block chain network;By according to first yuan of number
It handles, obtains and the first sub-block link network at least one described sub-block chain network according to first write request
Associated second write request of network;And second write-in is sent to the subchain node of the first sub-block chain network and is asked
It asks.
The second aspect of the application is related to a kind of data processing equipment for block chain network system, the block link network
Network system include root zone block chain network and with the root zone block chain network communication connection at least one sub-block chain network, it is described
Data processing equipment includes: processor;And memory, be coupled to the processor and be stored with instruction, described instruction by
The processor makes the processor execute following movement when executing: at the root chain node of the root zone block chain network, connecing
The first write request narrowed to the block chain network system;According to associated at least one described sub-block chain network
Information generates the first metadata;By being handled according to first metadata first write request, acquisition and institute
State associated second write request of the first sub-block chain network at least one sub-block chain network;And to described first
The subchain node of sub-block chain network sends second write request.
The third aspect of the application is related to a kind of computer readable storage medium.The computer readable storage medium, which has, to be deposited
The computer executable instructions of storage on it.The computer executable instructions execute described device when running in a device
Method or process according to an embodiment of the present application.
According to an embodiment of the present application, it is easy to accomplish thus the extension of block chain network system promotes block chain network system
The handling capacity of system.
Detailed description of the invention
It refers to the following detailed description in conjunction with the accompanying drawings, the feature, advantage and other aspects of present embodiments will become
Must be more obvious, show several embodiments of the application by way of example rather than limitation herein, in the accompanying drawings:
Fig. 1 shows system architecture schematic diagram according to an embodiment of the present application;
Fig. 2 shows the streams according to the data processing method for block chain network system of one embodiment of the application
Cheng Tu;
Fig. 3 shows showing for the data processing equipment for block chain network system of one embodiment according to the application
It is intended to;And
Fig. 4 shows the schematic block diagram of the equipment for the method according to embodiments herein.
Specific embodiment
Each exemplary embodiment of the application is described in detail below with reference to attached drawing.Although be described below illustrative methods,
Device includes the software and/or firmware executed in other components on hardware, it should be noted that these examples are only illustrative
, it should not see and be restricted.For example, it is contemplated that within hardware exclusively, in software exclusively or at any group of hardware and software
Any or all hardware, software and fastener components can be implemented in conjunction.Therefore, although illustrative methods and device are described below,
But those skilled in the art should be easily understood that, the example provided is not only for these method and apparatus modes of realization.
In addition, flowcharts and block diagrams in the drawings show according to the method and systems of the various embodiments of the application can
The architecture, function and operation being able to achieve.It should be noted that function marked in the box can also be according to different from attached drawing
The sequence marked occurs.For example, two boxes succeedingly indicated can actually be basically executed in parallel or they have
When can also execute in a reverse order, this depend on related function.It should also be noted that flow chart and/or
Function as defined in execution or behaviour can be used in the combination of each box in block diagram and the box in flowchart and or block diagram
The dedicated hardware based system made is realized, or the combination of specialized hardware and computer instruction can be used to realize.
Before the specific embodiment according to the application is discussed in detail, first to some terms used in the application into
Row explanation.
In this application, term " root zone block chain network " refers in block chain network system, one end and client communication
The block chain network that the sub-block chain network of connection, the other end and block chain network system communicates to connect.In block chain network system
In system, root zone block chain network only one, and all of block chain network system are stored in the account book of root zone block chain network
The metadata of affairs.
In this application, term " root chain node " refers to the block chain node in root zone block chain network.Root zone block chain network
Including two or more root chain nodes.
In the application, term " sub-block chain network " refer in block chain network system and with root zone block chain network it
Between the block chain network that communicates to connect.Sub-block chain network does not interact directly with client.It is deposited in the account book of sub-block chain network
Contain the data of all affairs occurred in the sub-block chain network.According to the application, have in block chain network system
One or more sub-block chain networks.
In this application, term " subchain node " refers to the block chain node in sub-block chain network.Each sub-block chain
Network includes two or more subchain nodes.
Currently, the technology that block chain is breakthrough as one, has many advantages, such as decentralization, can not distort.But in
The problems such as system of the heart is compared, and that there are handling capacities is poor for block chain, is not easy dilatation.In the prior art, usually pass through increase
The quantity of the block chain network of block chain network system is come for block chain network System Expansion.But so client meeting
In face of more block chain network, thus the interaction to client and block chain network system brings complexity.
Generally, embodiments herein is related to accessing the technical solution of block chain network system.According to the application, block
Chain network system is deployed as including a root zone block chain network and the one or more with root zone block chain network communication connection
Sub-block chain network.According to an embodiment of the present application, disposed as follows to block chain network system: root zone block chain network only has
One and communication connection between client and sub-block chain network.Own in root zone block chain network memory block chain network system
The metadata of affairs.The area that sub-block chain network is located in block chain network system and communicates to connect between root zone block chain network
Block chain network.Sub-block chain network does not interact directly with client.Sub-block chain network has one or more, and is stored in this
The data of all things occurred in sub-block chain network.When block chain network system needs dilatation, using increase sub-block
The mode of the quantity of chain network, such dilatation operation is easy to accomplish, and will not bring any influence to client, because objective
Family end is only interacted with root zone block chain network.Therefore, according to the technical solution of the application, it is easy to accomplish the expansion of block chain network system
Thus exhibition promotes the handling capacity of block chain network system.
It further, according to an embodiment of the present application, can be according to the letter in the metadata stored in root zone block chain network
(for example, the write-in data priority information of sub-block chain network or storable value information etc.) is ceased to write to sub-block chain network
Enter data, the efficiency to block chain network system write-in data is which thereby enhanced, to improve the service of block network system
Ability.
It further, according to an embodiment of the present application, can be respectively from multiple sub-block chain networks or a sub-block chain
Multiple subchain nodes of network read data, it is thus achieved that the load balancing of block chain network system, while also improve from
Block chain network system reads the efficiency of data, to improve the service ability of block chain network system.
In the following, each embodiment of the application is described in detail in conjunction with attached drawing.
Referring now to Fig. 1, it illustrates system architectures 100 according to an embodiment of the present application.As shown in Figure 1, system architecture
100 include client 110 and block chain network system 120.Block chain network system 120 includes a root zone block chain network 130
With the sub-block chain network 140,150 communicated to connect with root zone block chain network 130.Root zone block chain network 130 is including two or more
Multiple chain nodes, for example, root chain node 132,134.Sub-block chain network 140 includes two or more subchain nodes, example
Such as, subchain node 142,144.Sub-block chain network 150 includes two or more subchain nodes, for example, subchain node 152,
154。
Although it should be appreciated that be illustrated two sub-block chain networks 140,150 in Fig. 1, sub-block chain network
Quantity can be one, be also possible to any number according to practical application scene.It should be appreciated that root zone block chain network or sub-district
The quantity of block chain node included by block chain network can be any amount according to practical application scene.
In cloud application environment, each block chain node can correspond to virtual machine instance, and phase is run in virtual machine instance
The node application program answered.
In some embodiments, the communication in block chain network system 120 and in client 110 and block chain network
Communication between system 120 can be based on any wired and or wireless network, including but not limited to internet, wide area network, metropolitan area
Net, local area network, Virtual Private Network (VPN), wireless network, etc..
In some embodiments, client 110 and each block chain node 132 in block chain network system 120,
134,142,144,152,154 electronic equipment, such as fixed equipment (such as server or desktop computer) be can be, or mobile
Equipment (such as smart phone, tablet computer, portable computer etc.).
Interaction between client 110 and block chain network system 120 specifically includes that the request based on client 110, to
Block chain network system 120 is written data and reads data from block chain network system 120.Hereinafter, specifically describing client
Interactive process between 110 and block chain network system 120.
Firstly, client 110 generates the first write request for being directed to block chain network system 120.In root zone block chain network
At 130 root chain node (for example, first chain node 132), first write request from client 110 is received.First
Write request includes the data of request write-in block chain network system 120.
After receiving the first write request, the root chain node of root zone block chain network 130 is (for example, first chain node
132) the first metadata is generated according to information associated at least one sub-block chain network.
In some embodiments, information associated at least one sub-block chain network includes at least one sub-block chain
The precedence information of each sub-block chain network in network.Precedence information indicates that the suitable of data is written to sub-block chain network
Sequence and write-in share corresponding with the sequence.For example, according to precedence information, the write sequence of sub-block chain network 140 is
First and write-in share be 60%, and the write sequence of sub-block chain network 150 be second and write-in share be 40%.Also
It is institute, sub-block chain network 140 accounts for total amount of data by the data volume that first is written data and write-in sub-block chain network 140
60%.Sub-block chain network 150 is by second write-in data and write-in 150 data volume of sub-block chain network accounts for the 60% of total amount.
In some embodiments, information associated at least one sub-block chain network further includes sub-block chain network
Storable value.In this application, the storable value of sub-block chain network can refer to all subchains of each sub-block chain network
The smallest amount of storage of residual storage capacity in node.The storable value of sub-block chain network can also refer to each sub-block link network
The average residual memory capacity of all subchain nodes of network.
Then, the root chain node (for example, first chain node 132) of root zone block chain network 130 is according to generated first
Metadata handles the first write request, to obtain and the first sub-block chain network at least one sub-block chain network
(for example, sub-block chain network 140) associated second write request.Also, the root chain node (example of root zone block chain network 130
Such as, first chain node 132) the second acquired write request is sent to the first sub-block chain network.
In some embodiments, the root chain node (for example, first chain node 132) of root zone block chain network 130 is according to excellent
First write request is requested the data of write-in to be divided into multiple data portions by first grade information.For the multiple numbers divided
According to part, the quantity of multiple data portions is less than or equal to the quantity of sub-block chain network.That is, working as multiple data portions
Quantity when being equal to the quantity of sub-block chain network, according to the sequence in precedence information, successively send each data point to phase
The sub-block chain network answered.When the quantity of multiple data portions is less than the quantity of sub-block chain network, preferentially believe to priority
The preceding sub-block chain network of sequence sends data portion in breath.Each data portion of multiple data portions have number and
The data portion accounts for the percentage of request write-in data, wherein the number of data portion is opposite with the sequence in precedence information
It answers and the percentage of data portion is corresponding with the write-in share in precedence information.For example, the first data portion have with
The corresponding number 1 of the first sub-block chain network 140 that sequence is first, the write sequence of sub-block chain network 140 for first and
It is 60% that share, which is written, then the percentage of the first data portion is also 60%, i.e., is divided into the first data portion and accounts for total write-in
Data 60% and the first data portion is sent to the first sub-block chain network 140.For other data portions, class is also carried out
As handle.In this embodiment, the second write request may include multiple write requests, i.e., is divided into the first write request
Multiple write requests, each write request include the corresponding data portion sent to a corresponding sub-block chain network.
In some embodiments, the root chain node (for example, first chain node 132) of root zone block chain network 130 obtains every
The storable value of one sub-block chain network, and write acquired storable value is corresponding with the share of the sub-block chain network
Enter data volume to be compared.When comparison result write-in data volume corresponding greater than share for storable value, continue according to above-mentioned
Precedence information divides data and the data portion divided is sent to corresponding sub-block chain network.When comparison result is
When storable value is less than share corresponding write-in data volume, according to storable value come by the request be written data be divided into it is multiple
Data portion.The quantity of multiple data portions is less than or equal to the quantity of the sub-block chain network.For example, storable value is big
Sub-block chain network sends the biggish data portion of data volume, and to send data volume smaller for the small sub-block chain network of storable value
Data portion;Alternatively, the big sub-block chain network of storable value sends the data portion of more number, and storable value is small
Sub-block chain network sends the data portion of less number.
After the data of request write-in are all sent to sub-block chain network, the root chain link of root zone block chain network 130
Point (for example, first chain node 132) is by the range of each data portion of multiple data portions and its transmitted sub-district arrived
The corresponding relationship of block network is stored as the second metadata into the account book of root zone block chain network.For example, the second metadata includes
Mapping table, the sub-block link network for indicating the range of each data portion of above-mentioned multiple data portions and being arrived transmitted by it
Corresponding relationship between network.
Then, the root chain node (for example, first chain node 132) of root zone block chain network 130, which generates, indicates to be written successfully
Instruction, and return to instruction generated to client 110.
To sub-block chain network be written data and store about write-in data corresponding relationship the second metadata it
Afterwards, client 110 can read data be written from block chain network system 120.Hereinafter, specifically describing from block chain network
The process of the reading data of system 120.
Read requests are received at the root chain node (for example, first chain node 132) of root zone block chain network 130, are read
Reading parameter relevant to the data that request is read from the block chain network system that request includes.Then, root zone block chain network
130 root chain node (for example, first chain node 132) is according to the data for reading parameter and the determining request reading of the second metadata
One or more sub-block chain networks at place;The reading parameter is sent to identified sub-block chain network;And receive institute
Request the data read.
In some embodiments, the root chain node (for example, first chain node 132) of root zone block chain network 130 is according to
Being stored in multiple sub-block chain networks to relationship, being determined as the data that request is read in binary data.That is,
The multiple portions of the data read are requested to be respectively stored in multiple sub-block chain networks.Then, root zone block chain network 130
Root chain node (for example, first chain node 132) receives request from each of determined multiple sub-block chain networks respectively and reads
The part that the data taken are stored in the sub-block chain network, and received data part is merged to obtain completely
Request read data.Then, the data that request obtained is read are returned into client 110.
In some embodiments, the root chain node (for example, first chain node 132) of root zone block chain network 130 is according to
Being stored in a sub-block chain network to relationship, being determined as the data that request is read in binary data.Root zone block chain
The root chain node (for example, first chain node 132) of network 130 can be from multiple subchain nodes of determined sub-block chain network
The a part for the data that request is read is received respectively, and received data part is merged to obtain complete request and read
The data taken.Then, the data that request obtained is read are returned into client 110.
It should be appreciated that according to an embodiment of the present application, being used to interact (example with client 110 in root zone block chain network 130
Such as, from client 110 receive information and to client 110 send information) root chain node be preset.In some implementations
In example, the root chain node for interacting with client 110 can be one, be also possible to multiple.For example, in multiple chain nodes
Place, while the different requests from client 110 are received, for each request, can be executed according to above-mentioned interactive process.
It should be appreciated that the preset root chain node interacted with client 110 is also that can change.For example, working as area
When block chain network 120 dilatation of system, increase new root chain node in root zone block chain network 130, at this moment, may change original
The root chain node for being interacted with client 110 of setting.
It should be appreciated that according to an embodiment of the present application, to sub-block chain network send request root chain node can with from
The root chain node that client 110 receives request is same root chain node, for example, first chain node 132.In some embodiments
In, the root chain node of request and the root chain node that request is received from client 110 are sent to the subchain node of sub-block chain network
It is also possible to different root chain nodes, for example, second chain node 134.In this case, different root chain node, i.e., first
Root chain node 132 and the information interaction of second chain node 134 be by account book synchronize realize.
Fig. 2 shows the data processing methods 200 for block chain network system according to one embodiment of the application.
It should be appreciated that data processing method 200 for example can be shown in Fig. 1 block chain network system 120 in root chain node at
It executes.
At the root chain node of root zone block chain network 130, (frame 210) is directed to block chain network system 120 first is received
Write request.After receiving the first write request, generated according to information associated at least one sub-block chain network
(frame 220) first metadata.
In some embodiments, information associated at least one sub-block chain network may include indicating to sub-block
The sequence of data and the precedence information of write-in share corresponding with the sequence is written in chain network.With at least one sub-block chain
The associated information of network can also include the storable value of sub-block chain network.Storable value indicates the sub-block chain network
Remaining storage in the subchain node of the smallest memory capacity or the sub-block chain network in residual storage capacity in subchain node
The average residual memory capacity of capacity.
Then, by handling according to the first metadata the first write request, (frame 230) and at least one son are obtained
Associated second write request of the first sub-block chain network 140 in block chain network, and to the first sub-block chain network 140
Subchain node send (frame 240) second write request.
In some embodiments, according to precedence information or storable value, number is written into the request in the first write request
According to multiple data portions are divided into, the quantity of multiple data portions is less than or equal to the quantity of sub-block chain network.Second write-in
Request may include multiple write requests, and wherein write request includes a data portion in the multiple data portions divided
Point.Then, according to precedence information or storable value, each data portion in multiple data portions is sent to corresponding son
Block chain network.
According to one embodiment of the application, method 200 further include root zone block chain network 130 root chain node (for example,
First chain node 132) at, by the range of each data portion of multiple data portions and its transmitted sub-block network arrived
Corresponding relationship as the second metadata store into the account book of root zone block chain network.Then, the root chain of root zone block chain network 130
Node (for example, first chain node 132), which generates, indicates write-in successfully instruction, and returns to finger generated to client 110
Show.
According to one embodiment of the application, method 200 further includes that the step of data is read from block chain network system 120
Suddenly.
Read requests are received at the root chain node (for example, first chain node 132) of root zone block chain network 130, are read
Reading parameter relevant to the data that request is read from the block chain network system that request includes.Then, root zone block chain network
130 root chain node (for example, first chain node 132) is according to the data for reading parameter and the determining request reading of the second metadata
One or more sub-block chain networks at place;The reading parameter is sent to identified sub-block chain network;And receive institute
Request the data read.
In some embodiments, according to, to relationship, the data for being determined as request reading are stored in the second metadata
In multiple sub-block chain networks.The root chain node (for example, first chain node 132) of root zone block chain network 130 is from determining
Multiple sub-block chain networks receive respectively request read data a part, and by received data part merge with
Obtain the data that complete request is read.Then, the data that request obtained is read are returned into client 110.
In some embodiments, according to, to relationship, the data for being determined as request reading are stored in the second metadata
In a sub-block chain network.The root chain node (for example, first chain node 132) of root zone block chain network 130 is from determining
Multiple subchain nodes of sub-block chain network receive a part for the data that request is read respectively, and by received data part
It merges to obtain the data that complete request is read.Then, the data that request obtained is read are returned into client
110。
Fig. 3 schematically shows the device for being used to access block chain network system 120 according to an embodiment of the present application
300.It should be appreciated that method 200 as described in any embodiment in Fig. 2 may be implemented in device 300.Device 300 may include
Processor 310 and the memory 320 for being coupled to processor 310.
Memory 320 is stored with instruction.Instruction makes processor 310 execute following movement when being executed by processor 310:
At the root chain node of root zone block chain network 130, the first write request for being directed to block chain network system 120 is received;According to
The associated information of at least one sub-block chain network generates the first metadata;By being write according to first metadata to first
Enter request to be handled, obtains the second write-in associated with the first sub-block chain network at least one sub-block chain network
Request;And the second write request is sent to the subchain node of the first sub-block chain network.
In some embodiments, information associated at least one sub-block chain network includes at least one sub-block chain
The precedence information of each sub-block chain network in network, wherein precedence information indicates that number is written to sub-block chain network
According to sequence and with the corresponding write-in share of sequence.By according to first metadata to the first write request at
Reason is come to obtain the second write request associated with the first sub-block chain network at least one sub-block chain network include: root
According to precedence information, the data of write-in are requested to be divided into multiple data portions the first write request, multiple data portions
Quantity is less than or equal to the quantity of the sub-block chain network, each data portion of multiple data portions has number and should
Data portion accounts for the percentage of the request write-in data;Wherein, the number of data portion and the sequence phase in precedence information
The percentage of the corresponding and described data portion is corresponding with the write-in share in the precedence information.
In some embodiments, information associated at least one described sub-block chain network also includes sub-block link network
The storable value of network.Storable value indicates that the smallest storage is held in residual storage capacity in the subchain node of the sub-block chain network
The average residual memory capacity of residual storage capacity in the subchain node of amount or the sub-block chain network.By according to first yuan
Data handle the first write request to obtain and the first sub-block chain network phase at least one sub-block chain network
Associated second write request includes: the storable value for obtaining each sub-block chain network;By acquired storable value with
The corresponding write-in data volume of share is compared;When comparison result write-in data volume corresponding less than share for storable value,
According to storable value will request write-in data be divided into multiple data portions, wherein the quantity of multiple data portions be less than or
Equal to the quantity of sub-block chain network.
In some embodiments, instruction also makes processor 310 execute following movement when being executed by processor 310: will
The corresponding relationship of the range of each data portion of multiple data portions and its transmitted sub-block network arrived is as second yuan
Data are stored into the account book of root zone block chain network.
In some embodiments, instruction also makes processor 310 execute following movement when being executed by processor 310: raw
It is successfully indicated at indicating to be written;And return to instruction generated.
In some embodiments, instruction also makes processor 310 execute following movement when being executed by processor 310: connecing
Read requests are received, reading parameter relevant to the data that request is read from block chain network system that read requests include;According to reading
Parameter and the second metadata is taken to determine one or more sub-block chain networks where the data that request is read;To identified son
Block chain network, which is sent, reads parameter;And receive the data for requesting to read.
In some embodiments, receiving and requesting the data read includes distinguishing from identified multiple sub-block chain networks
Receive it is described request read data part, and instruct by processor 310 execute when also make processor 310 execute with
Lower movement: the data for requesting to read are obtained by the way that the part of received data to be combined to;And it returns and is requested
The data of reading.
In some embodiments, receiving and requesting the data read includes from the more of an identified sub-block chain network
A sub- chain node receives the part of the request data, and instructs and hold processor 310 when being executed by processor 310
The following movement of row: the part of received data is merged, to obtain the data for requesting to read;And it returns and is requested
The data of reading.
It should be appreciated that device 300 according to an embodiment of the present application can in hardware or special circuit, software, firmware, patrol
Volume, or any combination thereof in implement.Some aspects can be implemented within hardware, and other aspect can by controller,
Implement in the firmware or software that microprocessor or other calculating equipment execute.
In some embodiments, processor 310 according to an embodiment of the present application can use general processor, digital signal
Processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device are divided
Any combination of door or transistor logic, discrete hardware components etc. is found to realize.General processor can be microprocessor, or
Person, processor are also possible to any common processor, controller, microcontroller or state machine.Processor also may be implemented
For calculate equipment combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors with
The combination or any other such structure of DSP core.
In some embodiments, memory 320 according to an embodiment of the present application can use portable computer diskette, hard
Disk, random access memories (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), light
Store equipment, magnetic storage apparatus, cloud storage or its any appropriate combination are realized.
In some embodiments, device 300 according to an embodiment of the present application passes through communication interface (not shown) and outside
It interacts.It should be appreciated that device 300 according to an embodiment of the present application can be with by the communication between communication interface and outside
Based on any wired and or wireless network, including but not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network
Network (VPN), wireless network, etc..
Fig. 4 illustrates the schematic block diagram that can be used to implement the electronic equipment 400 of embodiments herein.It should manage
Solution, electronic equipment 400 can be to any module in either block chain node described in Fig. 1 or block chain node.Such as Fig. 4 institute
Show, equipment 400 includes central processing unit (CPU) 401 (such as processor), can be according to being stored in read-only memory
(ROM) computer program instructions in 402 or the meter in random access storage device (RAM) 403 is loaded into from storage unit 408
Calculation machine program instruction, to execute various movements appropriate and processing.In RAM 403, can also store equipment 400 operate it is required
Various programs and data.CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) connects
Mouth 405 is also connected to bus 404.
Multiple components in equipment 400 are connected to I/O interface 405, comprising: input unit 406, such as keyboard, mouse etc.;
Output unit 407, such as various types of displays, loudspeaker etc.;Storage unit 408, such as disk, CD etc.;And it is logical
Believe unit 409, such as network interface card, modem, wireless communication transceiver etc..Communication unit 409 allows equipment 400 by such as
The computer network of internet and/or various telecommunication networks exchange information/data with other equipment.
Various methods described above, such as method 200 can be executed by processing unit 401.For example, in some embodiments
In, method 200 can be implemented as computer software programs, be tangibly embodied in machine readable media, such as storage unit
408.In some embodiments, computer program it is some or all of can via ROM 402 and/or communication unit 409 and
It is loaded into and/or is installed in equipment 400.When computer program is loaded into RAM403 and is executed by CPU 401, can hold
One or more movements or step in row method as described above 200.
Computer program product may include computer readable storage medium, containing for executing each of the application
The computer-readable program instructions of aspect.Computer readable storage medium, which can be, can keep and store by instruction execution equipment
The tangible device of the instruction used.Computer readable storage medium for example can be-- but be not limited to-- storage device electric,
Magnetic storage apparatus, light storage device, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Meter
The more specific example (non exhaustive list) of calculation machine readable storage medium storing program for executing includes: portable computer diskette, hard disk, arbitrary access
Memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random-access
Memory (SRAM), Portable compressed disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, machine
Tool encoding device, the punch card for being for example stored thereon with instruction or groove internal projection structure and above-mentioned any appropriate group
It closes.Computer readable storage medium used herein above is not interpreted instantaneous signal itself, such as radio wave or other
The electromagnetic wave of Free propagation, the electromagnetic wave propagated by waveguide or other transmission mediums are (for example, pass through the light arteries and veins of fiber optic cables
Punching) or pass through electric wire transmit electric signal.
Computer-readable program instructions described herein can be downloaded to from computer readable storage medium it is each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network
Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing teachings herein operation can be assembly instruction, instruction set architecture (ISA)
Instruction, machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programmings
The source code or object code that any combination of language is write, the programming language include the programming language-of object-oriented such as
Java, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer-readable journey
Sequence instruction can be executed fully on the user computer, partly execute on the user computer, be independent soft as one
Part packet executes, part executes on the remote computer or completely in remote computer or service on the user computer for part
It is executed on device.In situations involving remote computers, remote computer can include local by the network-of any kind
Net (LAN) or wide area network (WAN)-are connected to subscriber computer, or, it may be connected to outer computer (such as using because of spy
Service supplier is netted to connect by internet).In some embodiments, pass through the state using computer-readable program instructions
Information carrys out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or programmable patrols
It collects array (PLA), which can execute computer-readable program instructions, to realize each side of teachings herein
Face.
It should be appreciated that equipment according to an embodiment of the present application can use various modes to realize.For example, in certain realities
It applies in example, which can be realized by the combination of hardware, software or software and hardware.Wherein, hardware components can benefit
It is realized with special logic;Software section then can store in memory, by instruction execution system appropriate, such as micro process
Device or special designs hardware execute.It will be understood by those skilled in the art that above-mentioned method and system can be used
It computer executable instructions and/or is included in the processor control code to realize, such as is situated between in such as disk, optical disk carrier
It is provided in the data medium of the programmable memory of matter, such as read-only memory or such as optics or electrical signal carrier
Such code.The equipment and device of embodiments herein not only can by such as ultra large scale integrated circuit or gate array,
The semiconductor or field programmable gate array of logic chip, transistor etc., programmable logic device etc. are compiled
The hardware circuit of journey hardware device is realized, can also be used such as software realization as performed by various types of processors, may be used also
It is realized with combination by above-mentioned hardware circuit and software.
It should be noted that although being referred to several modules or submodule of equipment in the detailed description above, it is this
Division is only exemplary rather than enforceable.In fact, according to an embodiment of the present application, two or more above-described moulds
The feature and function of block can embody in a module.Conversely, the feature and function of an above-described module can be with
Further division is to be embodied by multiple modules.
Alternative embodiment above is only an example of the present application, the embodiment being not intended to limit this application, for
For those skilled in the art, embodiments herein can have various modifications and variations.It is all in embodiments herein
Within spirit and principle, made any modification, equivalence replacement, improvement etc. should be included in the protection of embodiments herein
Within the scope of.
Although describing embodiments herein by reference to several specific embodiments, it should be appreciated that, the application's
Embodiment is not limited to disclosed specific embodiment.Embodiments herein be intended to cover appended claims spirit and
Included various modifications and equivalent arrangements in range.The range of the attached claims meets broadest explanation, to wrap
Containing all such modifications and equivalent structure and function.
Claims (21)
1. a kind of data processing method for block chain network system, the block chain network system includes root zone block chain network
With at least one the sub-block chain network communicated to connect with the root zone block chain network, which comprises
At the root chain node of the root zone block chain network, the first write request for being directed to the block chain network system is received;
The first metadata is generated according to information associated at least one described sub-block chain network;
By being handled according to first metadata first write request, obtain and at least one described sub-block
Associated second write request of the first sub-block chain network in chain network;And
Second write request is sent to the subchain node of the first sub-block chain network.
2. data processing method according to claim 1, wherein associated at least one described sub-block chain network
Information includes the precedence information of each sub-block chain network at least one described sub-block chain network, wherein described excellent
First grade information indicates sequence and write-in share corresponding with the sequence that data are written to sub-block chain network.
3. data processing method according to claim 2, wherein by being write according to first metadata to described first
Enter request to be handled to obtain associated with the first sub-block chain network at least one described sub-block chain network the
Two write requests include:
According to the precedence information, the data of write-in are requested to be divided into multiple data portions first write request,
The quantity of the multiple data portion be less than or equal to the sub-block chain network quantity, the multiple data portion it is each
The percentage that there is a data portion number and the data portion to account for the request write-in data;Wherein, the data portion
It numbers in the percentage and the precedence information of the data portion corresponding and described with the sequence in the precedence information
Write-in share it is corresponding.
4. data processing method according to claim 2 or 3, wherein related at least one described sub-block chain network
The information of connection also includes the storable value of the sub-block chain network, and the storable value indicates the subchain of the sub-block chain network
Residual storage capacity in the subchain node of the smallest memory capacity or the sub-block chain network in residual storage capacity in node
Average residual memory capacity.
5. data processing method according to claim 4, wherein by being write according to first metadata to described first
Enter request to be handled to obtain associated with the first sub-block chain network at least one described sub-block chain network the
Two write requests include:
Obtain the storable value of each sub-block chain network;
Acquired storable value write-in data volume corresponding with the share is compared;
When comparison result is that the storable value is less than the corresponding write-in data volume of the share, according to the storable value come
Request write-in data are divided into multiple data portions, wherein the quantity of the multiple data portion is less than or equal to institute
State the quantity of sub-block chain network.
6. according to the method described in claim 5, the method also includes:
By the range of each data portion of the multiple data portion and its corresponding relationship of the transmitted sub-block network arrived
As the storage of the second metadata into the account book of the root zone block chain network.
7. according to the method described in claim 6, the method also includes:
Generating indicates write-in successfully instruction;And
Return to instruction generated.
8. according to the method described in claim 6, the method also includes:
Read requests are received, reading relevant to the data that request is read from the block chain network system that the read requests include
Take parameter;
One or more sub-blocks where the data that request is read are determined according to the reading parameter and second metadata
Chain network;
The reading parameter is sent to identified sub-block chain network;And
Receive the data for requesting to read.
9. according to the method described in claim 8, wherein, receiving and requesting the data read includes from identified multiple sub-districts
Block chain network receive respectively it is described request read data part, and the method also includes:
By the way that the part of received data is combined to obtain the data for requesting to read;And it returns and requests to read
Data.
10. according to the method described in claim 8, wherein, receiving and requesting the data read includes from an identified son
Multiple subchain nodes of block chain network receive the part of the request data, and the method also includes:
The part of received data is merged, to obtain the data for requesting to read;And
Return to the data for requesting to read.
11. a kind of data processing equipment for block chain network system, the block chain network system includes root zone block link network
Network and at least one the sub-block chain network communicated to connect with the root zone block chain network, the data processing equipment include:
Processor;With
Memory is coupled to the processor and is stored with instruction, and described instruction makes institute when being executed by the processor
It states processor and executes following movement:
At the root chain node of the root zone block chain network, the first write request for being directed to the block chain network system is received;
The first metadata is generated according to information associated at least one described sub-block chain network;
By being handled according to first metadata first write request, obtain and at least one described sub-block
Associated second write request of the first sub-block chain network in chain network;And
Second write request is sent to the subchain node of the first sub-block chain network.
12. data processing equipment according to claim 11, wherein associated at least one described sub-block chain network
Information include each sub-block chain network at least one described sub-block chain network precedence information, wherein it is described
Precedence information indicates sequence and write-in share corresponding with the sequence that data are written to sub-block chain network.
13. data processing equipment according to claim 12, wherein by according to first metadata to described first
Write request is handled associated with the first sub-block chain network at least one described sub-block chain network to obtain
Second write request includes:
According to the precedence information, the data of write-in are requested to be divided into multiple data portions first write request,
The quantity of the multiple data portion be less than or equal to the sub-block chain network quantity, the multiple data portion it is each
The percentage that there is a data portion number and the data portion to account for the request write-in data;Wherein, the data portion
It numbers in the percentage and the precedence information of the data portion corresponding and described with the sequence in the precedence information
Write-in share it is corresponding.
14. data processing equipment according to claim 12 or 13, wherein at least one described sub-block chain network phase
Associated information also includes the storable value of the sub-block chain network, and the storable value indicates the son of the sub-block chain network
Remaining storage is held in the subchain node of the smallest memory capacity or the sub-block chain network in residual storage capacity in chain node
The average residual memory capacity of amount.
15. data processing equipment according to claim 14, wherein by according to first metadata to described first
Write request is handled associated with the first sub-block chain network at least one described sub-block chain network to obtain
Second write request includes:
Obtain the storable value of each sub-block chain network;
Acquired storable value write-in data volume corresponding with the share is compared;
When comparison result is that the storable value is less than the corresponding write-in data volume of the share, according to the storable value come
Request write-in data are divided into multiple data portions, wherein the quantity of the multiple data portion is less than or equal to institute
State the quantity of sub-block chain network.
16. data processing equipment according to claim 15, wherein the step further include:
By the range of each data portion of the multiple data portion and its corresponding relationship of the transmitted sub-block network arrived
As the storage of the second metadata into the account book of the root zone block chain network.
17. data processing equipment according to claim 16, wherein the step further include:
Generating indicates write-in successfully instruction;And
Return to instruction generated.
18. data processing equipment according to claim 16, wherein the step further include:
Read requests are received, reading relevant to the data that request is read from the block chain network system that the read requests include
Take parameter;
One or more sub-blocks where the data that request is read are determined according to the reading parameter and second metadata
Chain network;
The reading parameter is sent to identified sub-block chain network;And
Receive the data for requesting to read.
19. data processing equipment according to claim 18, wherein receiving and requesting the data of reading includes from determining
Multiple sub-block chain networks receive the parts of the data that the request is read, and the step respectively further include:
By the way that the part of received data is combined to obtain the data for requesting to read;And it returns and requests to read
Data.
20. data processing equipment according to claim 18, wherein receiving and requesting the data of reading includes from determining
Multiple subchain nodes of a sub-block chain network receive the part of the request data, and the step further include:
The part of received data is merged, to obtain the data for requesting to read;And
Return to the data for requesting to read.
21. a kind of computer readable storage medium has the computer executable instructions being stored thereon, the computer can
Described device is made to execute method according to claim 1 to 10 when executing instruction operation in a device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811171354.7A CN109144969A (en) | 2018-10-09 | 2018-10-09 | For the data processing method of block chain network system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811171354.7A CN109144969A (en) | 2018-10-09 | 2018-10-09 | For the data processing method of block chain network system, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144969A true CN109144969A (en) | 2019-01-04 |
Family
ID=64811006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811171354.7A Pending CN109144969A (en) | 2018-10-09 | 2018-10-09 | For the data processing method of block chain network system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144969A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110334148A (en) * | 2019-05-23 | 2019-10-15 | 深圳壹账通智能科技有限公司 | The method and device of data write-in block chain network in enterprise resource planning |
CN111125187A (en) * | 2019-11-29 | 2020-05-08 | 立旃(上海)科技有限公司 | Data management method and device based on block chain |
CN111460504A (en) * | 2020-03-31 | 2020-07-28 | 腾讯科技(深圳)有限公司 | Service processing method, device, node equipment and storage medium |
CN112232819A (en) * | 2020-10-28 | 2021-01-15 | 上海优扬新媒信息技术有限公司 | Data processing method and block link point |
CN112364371A (en) * | 2020-10-16 | 2021-02-12 | 杭州甘道智能科技有限公司 | Block chain-based vaccine transfer monitoring device and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107241360A (en) * | 2017-08-04 | 2017-10-10 | 北京明朝万达科技股份有限公司 | A kind of data safety shares exchange method and data safety shares switching plane system |
US20170364700A1 (en) * | 2015-06-02 | 2017-12-21 | ALTR Solutions, Inc. | Immutable logging of access requests to distributed file systems |
CN107911421A (en) * | 2017-10-30 | 2018-04-13 | 上海点融信息科技有限责任公司 | For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain |
CN108323200A (en) * | 2018-01-25 | 2018-07-24 | 深圳前海达闼云端智能科技有限公司 | Data training method and device based on block chain, storage medium and block chain link points |
CN108540568A (en) * | 2018-04-23 | 2018-09-14 | 移康智能科技(上海)股份有限公司 | Computing capability sharing method and smart machine |
CN108616427A (en) * | 2018-05-11 | 2018-10-02 | 北京奇虎科技有限公司 | One kind tests the speed capacity judging method, apparatus and system |
-
2018
- 2018-10-09 CN CN201811171354.7A patent/CN109144969A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170364700A1 (en) * | 2015-06-02 | 2017-12-21 | ALTR Solutions, Inc. | Immutable logging of access requests to distributed file systems |
CN107241360A (en) * | 2017-08-04 | 2017-10-10 | 北京明朝万达科技股份有限公司 | A kind of data safety shares exchange method and data safety shares switching plane system |
CN107911421A (en) * | 2017-10-30 | 2018-04-13 | 上海点融信息科技有限责任公司 | For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain |
CN108323200A (en) * | 2018-01-25 | 2018-07-24 | 深圳前海达闼云端智能科技有限公司 | Data training method and device based on block chain, storage medium and block chain link points |
CN108540568A (en) * | 2018-04-23 | 2018-09-14 | 移康智能科技(上海)股份有限公司 | Computing capability sharing method and smart machine |
CN108616427A (en) * | 2018-05-11 | 2018-10-02 | 北京奇虎科技有限公司 | One kind tests the speed capacity judging method, apparatus and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110334148A (en) * | 2019-05-23 | 2019-10-15 | 深圳壹账通智能科技有限公司 | The method and device of data write-in block chain network in enterprise resource planning |
CN111125187A (en) * | 2019-11-29 | 2020-05-08 | 立旃(上海)科技有限公司 | Data management method and device based on block chain |
CN111460504A (en) * | 2020-03-31 | 2020-07-28 | 腾讯科技(深圳)有限公司 | Service processing method, device, node equipment and storage medium |
CN111460504B (en) * | 2020-03-31 | 2021-11-05 | 腾讯科技(深圳)有限公司 | Service processing method, device, node equipment and storage medium |
CN112364371A (en) * | 2020-10-16 | 2021-02-12 | 杭州甘道智能科技有限公司 | Block chain-based vaccine transfer monitoring device and method |
CN112364371B (en) * | 2020-10-16 | 2024-04-16 | 杭州甘道智能科技有限公司 | Vaccine transfer monitoring device and method based on block chain |
CN112232819A (en) * | 2020-10-28 | 2021-01-15 | 上海优扬新媒信息技术有限公司 | Data processing method and block link point |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109144969A (en) | For the data processing method of block chain network system, device and storage medium | |
CN109086140A (en) | The method, apparatus and storage medium of data processing are carried out in block chain | |
CN105518611B (en) | A kind of remote direct data access method, equipment and system | |
CN108255614A (en) | A kind of interface calling system and method based on micro services framework | |
CN109995713A (en) | Service processing method and relevant device in a kind of micro services frame | |
CN108616578A (en) | Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain | |
CN110196889A (en) | Data processing method, device, electronic equipment and storage medium | |
CN109033001A (en) | Method and apparatus for distributing GPU | |
CN109379418A (en) | Method, equipment and the storage medium of file based on block chain processing business system | |
CN110058987A (en) | Method, equipment and computer-readable medium for being tracked to computing system | |
CN106330779B (en) | Server, physical switch, and communication system | |
CN109213694A (en) | Method and apparatus for cache management | |
CN109447641A (en) | To the method and apparatus of block chain browser transport block chain data | |
CN108984542A (en) | Distribution type data collection method and system | |
CN109697120A (en) | Method, electronic equipment for application migration | |
CN110096584A (en) | A kind of answer method and device | |
CN108509514A (en) | A kind of big data analysis method and system based on block chain | |
CN103677983B (en) | The dispatching method and device of application | |
CN108052569A (en) | Data bank access method, device, computer readable storage medium and computing device | |
CN109474449A (en) | A kind of method and device of processing network slice example | |
CN107368583A (en) | A kind of method and system of more cluster information inquiries | |
CN108984125A (en) | A kind of method, apparatus and storage medium of resource allocation | |
CN110034944A (en) | Network splitting and disposing method and device thereof | |
CN109218356A (en) | The method and apparatus of stateful application in management server | |
CN110058937A (en) | For dispatching the method, equipment and computer program product of dedicated processes resource |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190104 |
|
WD01 | Invention patent application deemed withdrawn after publication |