CN110083437A - Handle the method and device of block chain affairs - Google Patents
Handle the method and device of block chain affairs Download PDFInfo
- Publication number
- CN110083437A CN110083437A CN201810073273.7A CN201810073273A CN110083437A CN 110083437 A CN110083437 A CN 110083437A CN 201810073273 A CN201810073273 A CN 201810073273A CN 110083437 A CN110083437 A CN 110083437A
- Authority
- CN
- China
- Prior art keywords
- block chain
- affairs
- chain affairs
- incidence relation
- processing
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method and devices for handling block chain affairs, are related to technical field of data processing, are able to solve the problem that serial process block chain transaction efficiency is low in the prior art.The method comprise the steps that obtaining the block chain affairs set to be processed of particular size, the particular size is less than or equal to the maximum capacity of each block in block chain;According to the execution logic of the executing rule for the block chain affairs formulated in block chain network and block chain affairs, the incidence relation of each block chain affairs in the block chain affairs set is determined;Block chain affairs parallel processing to not incidence relation, to the block chain affairs serial process with incidence relation;Processing result is written in the block chain.The present invention is mainly suitable in the scene handled the affairs in block chain.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method and device for handling block chain affairs.
Background technique
Block chain technology is a kind of decentralization and data storage, transmission and the method proved for residing in distributed frame,
Dependence with data block instead of current internet to central server, each node can be led to by point to point network
Letter.Affairs are the operating units of block chain technology bottom layer treatment.The block chain Floor layer Technology of mainstream at present, such as bit coin and ether
Mill has been all made of serial block chain Transaction processing technology, i.e., has successively handled each block chain affairs according to certain sequence, thus
Cause the treatment effeciency of entire block chain affairs lower.
Summary of the invention
In view of this, the method and device of processing block chain affairs provided by the invention, its object is to solve existing skill
The low problem of serial process block chain transaction efficiency in art.
To solve the above-mentioned problems, present invention generally provides following technical solutions:
In a first aspect, the present invention provides a kind of methods for handling block chain affairs, which comprises
The block chain affairs set to be processed of particular size is obtained, the particular size is less than or equal in block chain
The maximum capacity of each block;
According to the execution logic of the executing rule for the block chain affairs formulated in block chain network and block chain affairs, determine
The incidence relation of each block chain affairs in the block chain affairs set;
Block chain affairs parallel processing to not incidence relation, serially locates the block chain affairs with incidence relation
Reason;
Processing result is written in the block chain.
Optionally, the block chain affairs parallel processing of described pair of not no incidence relation, to the block chain with incidence relation
Affairs serial process includes:
Block chain affairs with incidence relation are divided into the same block chain affairs subset, so that each block chain thing
Incidence relation is not present between subset of being engaged in;
Parallel processing is carried out for each block chain affairs subset, for the block chain thing in each block chain affairs subset
Business carries out serial process.
Optionally, the block chain affairs parallel processing of described pair of not no incidence relation, to the block chain with incidence relation
Affairs serial process includes:
By no incidence relation and the block chain affairs in the same processing sequence are divided into the same block chain affairs
Subset;
Each block chain affairs subset is successively handled according to processing sequence, and to each block chain affairs subset
When reason, parallel processing is carried out to each block chain affairs in the block chain affairs subset.
Optionally, the block chain affairs parallel processing of described pair of not no incidence relation includes:
Using the multiple stage computers in computer cluster respectively to the block chain affairs parallel processing of not incidence relation;
Or using multiprocessor respectively to the block chain affairs parallel processing of not incidence relation;
Or starting multi-process is respectively to the block chain affairs parallel processing of not incidence relation;
Or starting multithreading is respectively to the block chain affairs parallel processing of not incidence relation.
Optionally, the block chain affairs set to be processed for obtaining particular size includes:
The block chain affairs set to be processed of the particular size is obtained from block chain affairs pond to be processed.
Second aspect, the present invention provides a kind of device for handling block chain affairs, described device includes:
Acquiring unit, for obtaining the block chain affairs set to be processed of particular size, the particular size be less than or
Person is equal to the maximum capacity of each block in block chain;
Determination unit, for according to the executing rules of the block chain affairs formulated in block chain network and block chain affairs
Logic is executed, determines the incidence relation of each block chain affairs in the block chain affairs set;
Processing unit, for the block chain affairs parallel processing to not incidence relation, to the block with incidence relation
Chain affairs serial process;
Writing unit, for processing result to be written in the block chain.
Optionally, the processing unit includes:
First division module, for the block chain affairs with incidence relation to be divided into same block chain affairs
Collection, so that incidence relation is not present between each block chain affairs subset;
First processing module, for carrying out parallel processing for each block chain affairs subset, for each block chain thing
Block chain affairs in subset of being engaged in carry out serial process.
Optionally, the processing unit includes:
Second division module, for will not have incidence relation and be divided into the block chain affairs of the same processing sequence
The same block chain affairs subset;
Second processing module, for successively handling each block chain affairs subset according to processing sequence, and to each area
When block chain affairs subset is handled, parallel processing is carried out to each block chain affairs in the block chain affairs subset.
Optionally, the processing unit, for using the multiple stage computers in computer cluster to close respectively to no association
The block chain affairs parallel processing of system;Or the block chain affairs of not incidence relation are located parallel respectively using multiprocessor
Reason;Or starting multi-process is respectively to the block chain affairs parallel processing of not incidence relation;Or starting multithreading is right respectively
There is no the block chain affairs parallel processing of incidence relation.
Optionally, the acquiring unit, for obtained from block chain affairs pond to be processed the particular size to
The block chain affairs set of processing.
The third aspect, the present invention provides a kind of storage medium, the storage medium includes the program of storage, wherein
Equipment described program controls the storage medium when running where executes the side of processing block chain affairs as described in relation to the first aspect
Method.
Fourth aspect, the present invention provides it is a kind of handle block chain affairs device, described device include storage medium and
Processor;
The processor is adapted for carrying out each instruction;
The storage medium is suitable for storing a plurality of instruction;
Described instruction is suitable for being loaded by the processor and being executed the side of processing block chain affairs as described in relation to the first aspect
Method.
By above-mentioned technical proposal, technical solution provided by the invention is at least had the advantage that
The method and device of processing block chain affairs provided by the invention, in the block to be processed for getting particular size
After chain affairs set, be not directly to each block chain affairs in the block chain affairs set in sequence one by one into
Row processing, but first according to the executing rule for the block chain affairs formulated in block chain and the execution logic of block chain affairs, really
The incidence relation of each block chain affairs in the fixed block chain affairs set, then to the block chain affairs of not incidence relation into
Row parallel processing just carries out serial process to the block chain affairs with incidence relation, to substantially increase entire block chain
The issued transaction efficiency of network, and then improve the throughput of entire block chain network, it can promote block chain network unit
The quantity of processing affairs in time.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of method for handling block chain affairs provided in an embodiment of the present invention;
Fig. 2 shows a kind of method flow diagrams of parallel processing block chain affairs provided in an embodiment of the present invention;
Fig. 3 shows the method flow diagram of another parallel processing block chain affairs provided in an embodiment of the present invention;
Fig. 4 shows a kind of composition block diagram of device for handling block chain affairs provided in an embodiment of the present invention;
Fig. 5 shows the composition block diagram of the device of another processing block chain affairs provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of methods for handling block chain affairs, as shown in Figure 1, the method is mainly wrapped
It includes:
101, the block chain affairs set to be processed of particular size is obtained.
Only have Partial Block chain node that just there is block chain permission is written in block chain network, and this node is called area
Block chain accounting nodes.Block chain accounting nodes can be real-time or periodically check whether pending thing from block chain affairs pond
Business generate, when determining pending affairs, can be obtained from block chain affairs pond to be processed particular size to from
The block chain affairs set of reason, and the affairs in the block chain affairs set are handled.Wherein, due to by block chain affairs
After being handled, processing result is packaged in one new block of write-in, so the particular size cannot be greater than block chain
In each block maximum capacity, that is, the size of data that all block chain affairs add up in the block chain affairs set obtained
Need to be less than or equal to block maximum capacity.
102, according to the execution logic of the executing rule for the block chain affairs formulated in block chain network and block chain affairs,
Determine the incidence relation of each block chain affairs in the block chain affairs set.
In practical applications, the executing rule about block chain affairs is formulated in each block chain network, and different
The executing rule that block chain network is formulated may be different because of demand difference.For example, some block chain networks require to deposit
Honeysuckle (i.e. same time spend twice) the case where, and some block chain networks are then without such requirement.In addition, user wants
Ask multiple block chain affairs of processing itself that may also there is sequencing, such as user requires first to buy article 1 with fund 1,
Article 2 is bought with remaining fund 2 again.Therefore, rule can be executed according to the block chain affairs formulated in current block chain network
Then with the execution logic of block chain affairs, the incidence relation of each block chain affairs in the block chain affairs set is determined, so as to
It is subsequent to be handled according to incidence relation.
103, serial to the block chain affairs with incidence relation to the block chain affairs parallel processing of not incidence relation
Processing.
Due to not no incidence relation block chain affairs no matter who first carry out or while all will not influence implementing result, and
Block chain affairs with incidence relation can violate the executing rule or block chain affairs of block chain affairs if being performed simultaneously
Execution logic, it is possible to the block chain affairs parallel processing to not incidence relation, to the block chain with incidence relation
Affairs serial process.
In practical applications, realize the method for above-mentioned treatment effect including but not limited to following two:
Method one: the block chain affairs with incidence relation are first divided into the same block chain affairs subset, so that respectively
Incidence relation is not present between a block chain affairs subset, then carries out parallel processing, needle for each block chain affairs subset
Serial process is carried out to the block chain affairs in each block chain affairs subset.
As shown in Fig. 2, block chain affairs set to be processed can be divided into N number of block chain thing by block chain accounting nodes
Be engaged in subset so that between each block chain affairs subset there is no incidence relation (such as make each block chain affairs subset it
Between the case where honeysuckle is not present), and there are incidence relation, then parallel processings for the block chain affairs of each block chain affairs subset
Block chain affairs subset 1, block chain affairs subset 2, block chain affairs subset 3 ... block chain affairs subset N are handling each area
Serial process can be carried out according to incidence relation when block chain affairs subset, finally collect the processing knot of each block chain affairs subset
Fruit, and processing result is written in block chain.
Method two: the same area first is divided by no incidence relation and in the block chain affairs of the same processing sequence
Then block chain affairs subset successively handles each block chain affairs subset according to processing sequence, and to each block chain affairs
When subset is handled, parallel processing is carried out to each block chain affairs in the block chain affairs subset.
As shown in figure 3, block chain affairs set to be processed can be divided into N number of block chain thing by block chain accounting nodes
It is engaged in subset, so that without incidence relation and the block chain affairs in the same processing sequence are in same block chain affairs
Collection, then starts each block chain affairs in parallel processing block chain affairs subset 1, further according in block chain affairs subset 1
Block chain affairs in the processing result parallel processing block chain affairs subset 2 of corresponding block chain affairs, until having handled block
All block chain affairs in chain affairs subset N, then will be in all processing result write-in block chains.For example, will can first need
It wants the block chain affairs 1,3 of first processing to be divided into the same block chain affairs subset, the block of second processing will be needed
Chain affairs 2,4 are divided into the same block chain affairs subset), then parallel processing block chain affairs 1 and 3, then based on to block
The processing result of chain affairs 1 handles block chain affairs 2, handles block chain affairs 4 based on the processing result to block chain affairs 3,
And block chain affairs 2 and block chain affairs 4 are then parallel processings.
In addition, including: using computer to the specific implementation of the block chain affairs parallel processing of not incidence relation
Multiple stage computers in cluster are respectively to the block chain affairs parallel processing of not incidence relation;Or distinguished using multiprocessor
Block chain affairs parallel processing to not incidence relation;Or starting multi-process is respectively to the block chain thing of not incidence relation
Business parallel processing;Or starting multithreading is respectively to the block chain affairs parallel processing of not incidence relation.That is,
During using the above method one, it can also be led to by each block chain affairs subset of multiple stage computers parallel processing
The each block chain affairs subset of multiple processor parallel processings using a computer is crossed, also can star a computer
Multiple each block chain affairs subsets of process (or multithreading) parallel processing;During stating method two in use, pass through
Each block chain affairs in multiple stage computers parallel processing current block chain affairs subset can also pass through computer
Each block chain affairs in multiple processor parallel processing current block chain affairs subsets can also pass through one calculating of starting
Each block chain affairs in multi-process (or multithreading) parallel processing current block chain affairs subset of machine.
You need to add is that the operation of processing block chain affairs includes but is not limited to: the verifying of digital signature, digital asset
Transfer and verifying, the execution of intelligent contract and verifying etc..
104, processing result is written in the block chain.
After being disposed to block chain affairs set, all processing results can be carried out being packaged write-in new block
In, and new block is broadcasted to entire block chain network, so that each block chain node users can check in new block
The content of record.
The method of processing block chain affairs provided in an embodiment of the present invention, in the block to be processed for getting particular size
After chain affairs set, be not directly to each block chain affairs in the block chain affairs set in sequence one by one into
Row processing, but first according to the executing rule for the block chain affairs formulated in block chain and the execution logic of block chain affairs, really
The incidence relation of each block chain affairs in the fixed block chain affairs set, then to the block chain affairs of not incidence relation into
Row parallel processing just carries out serial process to the block chain affairs with incidence relation, to substantially increase entire block chain
The issued transaction efficiency of network, and then improve the throughput of entire block chain network, it can promote block chain network unit
The quantity of processing affairs in time.
Further, according to above method embodiment, another embodiment of the invention additionally provides a kind of processing block
The device of chain affairs, as shown in figure 4, described device specifically includes that acquiring unit 21, determination unit 22, processing unit 23 and writes
Enter unit 24.Wherein,
Acquiring unit 21, for obtaining the block chain affairs set to be processed of particular size, the particular size is less than
Or the maximum capacity equal to each block in block chain;
Determination unit 22, for the executing rule and block chain affairs according to the block chain affairs formulated in block chain network
Execution logic, determine the incidence relation of each block chain affairs in the block chain affairs set;
Processing unit 23, for the block chain affairs parallel processing to not incidence relation, to the area with incidence relation
Block chain affairs serial process;
Writing unit 24, for processing result to be written in the block chain.
Optionally, as shown in figure 5, the processing unit 23 includes:
First division module 231, for will have the block chain affairs of incidence relation to be divided into the same block chain affairs
Subset, so that incidence relation is not present between each block chain affairs subset;
First processing module 232, for carrying out parallel processing for each block chain affairs subset, for each block chain
Block chain affairs in affairs subset carry out serial process.
Optionally, as shown in figure 5, the processing unit 23 includes:
Second division module 233, for that will not have incidence relation and the block chain affairs in the same processing sequence are drawn
Assign to the same block chain affairs subset;
Second processing module 234, for successively handling each block chain affairs subset according to processing sequence, and to each
When block chain affairs subset is handled, parallel processing is carried out to each block chain affairs in the block chain affairs subset.
Optionally, the processing unit 23, for using the multiple stage computers in computer cluster respectively to not being associated with
The block chain affairs parallel processing of relationship;Or the block chain affairs of not incidence relation are located parallel respectively using multiprocessor
Reason;Or starting multi-process is respectively to the block chain affairs parallel processing of not incidence relation;Or starting multithreading is right respectively
There is no the block chain affairs parallel processing of incidence relation.
Optionally, the acquiring unit 21, for obtaining the particular size from block chain affairs pond to be processed
Block chain affairs set to be processed.
The device of processing block chain affairs provided in an embodiment of the present invention, in the block to be processed for getting particular size
After chain affairs set, be not directly to each block chain affairs in the block chain affairs set in sequence one by one into
Row processing, but first according to the executing rule for the block chain affairs formulated in block chain and the execution logic of block chain affairs, really
The incidence relation of each block chain affairs in the fixed block chain affairs set, then to the block chain affairs of not incidence relation into
Row parallel processing just carries out serial process to the block chain affairs with incidence relation, to substantially increase entire block chain
The issued transaction efficiency of network, and then improve the throughput of entire block chain network, it can promote block chain network unit
The quantity of processing affairs in time.
The embodiment of the invention provides a kind of storage medium, the storage medium includes the program of storage, wherein described
The method that equipment program controls the storage medium when running where executes processing block chain affairs as described above.
Storage medium may include the non-volatile memory in computer-readable medium, random access memory (RAM)
With the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The instruction stored in storage medium provided in an embodiment of the present invention, in the block to be processed for getting particular size
After chain affairs set, be not directly to each block chain affairs in the block chain affairs set in sequence one by one into
Row processing, but first according to the executing rule for the block chain affairs formulated in block chain and the execution logic of block chain affairs, really
The incidence relation of each block chain affairs in the fixed block chain affairs set, then to the block chain affairs of not incidence relation into
Row parallel processing just carries out serial process to the block chain affairs with incidence relation, to substantially increase entire block chain
The issued transaction efficiency of network, and then improve the throughput of entire block chain network, it can promote block chain network unit
The quantity of processing affairs in time.
The embodiment of the invention provides a kind of devices for handling block chain affairs, and described device includes storage medium and processing
Device;
The processor is adapted for carrying out each instruction;
The storage medium is suitable for storing a plurality of instruction;
Described instruction is suitable for being loaded by the processor and being executed the method for processing block chain affairs as described above.
Include kernel in processor, is gone in storage medium to transfer corresponding program unit by kernel.Kernel can be set one
It is a or more, the treatment effeciency of block chain affairs is improved by adjusting kernel parameter.
The device of processing block chain affairs provided in an embodiment of the present invention, in the block to be processed for getting particular size
After chain affairs set, be not directly to each block chain affairs in the block chain affairs set in sequence one by one into
Row processing, but first according to the executing rule for the block chain affairs formulated in block chain and the execution logic of block chain affairs, really
The incidence relation of each block chain affairs in the fixed block chain affairs set, then to the block chain affairs of not incidence relation into
Row parallel processing just carries out serial process to the block chain affairs with incidence relation, to substantially increase entire block chain
The issued transaction efficiency of network, and then improve the throughput of entire block chain network, it can promote block chain network unit
The quantity of processing affairs in time.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program code of beginningization there are as below methods step:
The block chain affairs set to be processed of particular size is obtained, the particular size is less than or equal in block chain
The maximum capacity of each block;
According to the execution logic of the executing rule for the block chain affairs formulated in block chain network and block chain affairs, determine
The incidence relation of each block chain affairs in the block chain affairs set;
Block chain affairs parallel processing to not incidence relation, serially locates the block chain affairs with incidence relation
Reason;
Processing result is written in the block chain.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (12)
1. a kind of method for handling block chain affairs, which is characterized in that the described method includes:
The block chain affairs set to be processed of particular size is obtained, the particular size is less than or equal to each in block chain
The maximum capacity of block;
According to the execution logic of the executing rule for the block chain affairs formulated in block chain network and block chain affairs, determine described in
The incidence relation of each block chain affairs in block chain affairs set;
Block chain affairs parallel processing to not incidence relation, to the block chain affairs serial process with incidence relation;
Processing result is written in the block chain.
2. the method according to claim 1, wherein the block chain affairs of described pair of not no incidence relation are located parallel
It manages, includes: to the block chain affairs serial process with incidence relation
Block chain affairs with incidence relation are divided into the same block chain affairs subset, so that each block chain affairs are sub
Incidence relation is not present between collection;
For each block chain affairs subset carry out parallel processing, for the block chain affairs in each block chain affairs subset into
Row serial process.
3. the method according to claim 1, wherein the block chain affairs of described pair of not no incidence relation are located parallel
It manages, includes: to the block chain affairs serial process with incidence relation
By no incidence relation and the block chain affairs in the same processing sequence are divided into the same block chain affairs subset;
Each block chain affairs subset is successively handled according to processing sequence, and is handled to each block chain affairs subset
When, parallel processing is carried out to each block chain affairs in the block chain affairs subset.
4. according to the method in any one of claims 1 to 3, which is characterized in that the block of described pair of not no incidence relation
Chain affairs parallel processing includes:
Using the multiple stage computers in computer cluster respectively to the block chain affairs parallel processing of not incidence relation;
Or using multiprocessor respectively to the block chain affairs parallel processing of not incidence relation;
Or starting multi-process is respectively to the block chain affairs parallel processing of not incidence relation;
Or starting multithreading is respectively to the block chain affairs parallel processing of not incidence relation.
5. according to the method in any one of claims 1 to 3, which is characterized in that described to obtain the to be processed of particular size
Block chain affairs set include:
The block chain affairs set to be processed of the particular size is obtained from block chain affairs pond to be processed.
6. a kind of device for handling block chain affairs, which is characterized in that described device includes:
Acquiring unit, for obtaining the block chain affairs set to be processed of particular size, the particular size is less than or waits
The maximum capacity of each block in block chain;
Determination unit, for according to the executing rule for the block chain affairs formulated in block chain network and the execution of block chain affairs
Logic determines the incidence relation of each block chain affairs in the block chain affairs set;
Processing unit, for the block chain affairs parallel processing to not incidence relation, to the block chain thing with incidence relation
Business serial process;
Writing unit, for processing result to be written in the block chain.
7. device according to claim 6, which is characterized in that the processing unit includes:
First division module makes for the block chain affairs with incidence relation to be divided into the same block chain affairs subset
It obtains and incidence relation is not present between each block chain affairs subset;
First processing module, for carrying out parallel processing for each block chain affairs subset, for each block chain affairs
The block chain affairs of concentration carry out serial process.
8. device according to claim 6, which is characterized in that the processing unit includes:
Second division module, for by do not have incidence relation and in the same processing sequence block chain affairs be divided into it is same
A block chain affairs subset;
Second processing module, for successively handling each block chain affairs subset according to processing sequence, and to each block chain
When affairs subset is handled, parallel processing is carried out to each block chain affairs in the block chain affairs subset.
9. the device according to any one of claim 6 to 8, which is characterized in that the processing unit, for using calculating
Multiple stage computers in machine cluster are respectively to the block chain affairs parallel processing of not incidence relation;Or use multiprocessor point
The other block chain affairs parallel processing to not incidence relation;Or starting multi-process is respectively to the block chain of not incidence relation
Affairs parallel processing;Or starting multithreading is respectively to the block chain affairs parallel processing of not incidence relation.
10. the device according to any one of claim 6 to 8, which is characterized in that the acquiring unit, for to from
The block chain affairs set to be processed of the particular size is obtained in the block chain affairs pond of reason.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require 1 to the processing block chain described in any one of claim 5
The method of affairs.
12. a kind of device for handling block chain affairs, which is characterized in that described device includes storage medium and processor;
The processor is adapted for carrying out each instruction;
The storage medium is suitable for storing a plurality of instruction;
Described instruction is suitable for being loaded as the processor and being executed as described in any one of claim 1 to claim 5
The method for handling block chain affairs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810073273.7A CN110083437A (en) | 2018-01-25 | 2018-01-25 | Handle the method and device of block chain affairs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810073273.7A CN110083437A (en) | 2018-01-25 | 2018-01-25 | Handle the method and device of block chain affairs |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110083437A true CN110083437A (en) | 2019-08-02 |
Family
ID=67412177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810073273.7A Pending CN110083437A (en) | 2018-01-25 | 2018-01-25 | Handle the method and device of block chain affairs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110083437A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110675255A (en) * | 2019-08-30 | 2020-01-10 | 阿里巴巴集团控股有限公司 | Method and apparatus for concurrently executing transactions in a blockchain |
CN113205407A (en) * | 2021-05-28 | 2021-08-03 | 中国工商银行股份有限公司 | Distributed sub-transaction processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160259937A1 (en) * | 2015-03-02 | 2016-09-08 | Dell Products L.P. | Device reporting and protection systems and methods using a secure distributed transactional ledger |
CN106980649A (en) * | 2017-02-28 | 2017-07-25 | 阿里巴巴集团控股有限公司 | The method and apparatus and business subclass for writing block chain business datum determine method |
CN107360206A (en) * | 2017-03-29 | 2017-11-17 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method, equipment and system |
CN107402824A (en) * | 2017-05-31 | 2017-11-28 | 阿里巴巴集团控股有限公司 | A kind of method and device of data processing |
-
2018
- 2018-01-25 CN CN201810073273.7A patent/CN110083437A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160259937A1 (en) * | 2015-03-02 | 2016-09-08 | Dell Products L.P. | Device reporting and protection systems and methods using a secure distributed transactional ledger |
CN106980649A (en) * | 2017-02-28 | 2017-07-25 | 阿里巴巴集团控股有限公司 | The method and apparatus and business subclass for writing block chain business datum determine method |
CN107360206A (en) * | 2017-03-29 | 2017-11-17 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method, equipment and system |
CN107402824A (en) * | 2017-05-31 | 2017-11-28 | 阿里巴巴集团控股有限公司 | A kind of method and device of data processing |
Non-Patent Citations (1)
Title |
---|
蔡维德等: "基于区块链的应用系统开发方法研究", 《软件学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110675255A (en) * | 2019-08-30 | 2020-01-10 | 阿里巴巴集团控股有限公司 | Method and apparatus for concurrently executing transactions in a blockchain |
CN113205407A (en) * | 2021-05-28 | 2021-08-03 | 中国工商银行股份有限公司 | Distributed sub-transaction processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108595157B (en) | Block chain data processing method, device, equipment and storage medium | |
EP4328816A1 (en) | Machine learning service | |
US20150006316A1 (en) | System and method for parallel search on explicitly represented graphs | |
CN108984652A (en) | A kind of configurable data cleaning system and method | |
CN107688899A (en) | Business process monitoring method and device | |
CN105988930A (en) | Test case generation method and device | |
US10671607B2 (en) | Pipeline dependent tree query optimizer and scheduler | |
CN107783734A (en) | A kind of resource allocation methods, device and terminal based on super fusion storage system | |
CN108765159A (en) | A kind of cochain based on block chain and condition processing method, device and interacted system | |
Keshavarz et al. | Minimizing total completion time in the flexible flowshop sequence-dependent group scheduling problem | |
JP2018515844A (en) | Data processing method and system | |
CN108255628A (en) | A kind of data processing method and device | |
CN108241531A (en) | A kind of method and apparatus for distributing resource for virtual machine in the cluster | |
CN108415912A (en) | Data processing method based on MapReduce model and equipment | |
CN112035879A (en) | Information processing method and system for improving confidentiality of automatic logistics of cell | |
CN109857984A (en) | A kind of homing method and device of boiler load factor-efficacy curve | |
CN110083437A (en) | Handle the method and device of block chain affairs | |
US20090254319A1 (en) | Method and system for numerical simulation of a multiple-equation system of equations on a multi-processor core system | |
CN113144624B (en) | Data processing method, device, equipment and storage medium | |
CN106570005A (en) | Database cleaning method and device | |
CN106357418A (en) | Method and device for extracting features on basis of complex networks | |
CN112258129A (en) | Distribution path prediction network training and distribution resource scheduling method and device | |
CN108268316A (en) | The method and device of job scheduling | |
CN109582476A (en) | Data processing method, apparatus and system | |
CN108519909A (en) | A kind of stream data processing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190802 |
|
RJ01 | Rejection of invention patent application after publication |