CN109241365A - Building method, medium, computer equipment and the block catenary system of block catenary system - Google Patents
Building method, medium, computer equipment and the block catenary system of block catenary system Download PDFInfo
- Publication number
- CN109241365A CN109241365A CN201810969311.7A CN201810969311A CN109241365A CN 109241365 A CN109241365 A CN 109241365A CN 201810969311 A CN201810969311 A CN 201810969311A CN 109241365 A CN109241365 A CN 109241365A
- Authority
- CN
- China
- Prior art keywords
- task
- block
- catenary system
- node
- block catenary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C13/00—Voting apparatus
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention proposes a kind of building method of block catenary system, medium, computer equipment and block catenary system, block catenary system includes multiple nodes, and each node is configured with task operating table and Statistics table;Method includes the following steps: receiving task requests;After the corresponding project of task requests is identified, operation requests are received, is operated and is counted with the task to the project by query statistic information table to produce node according to operation requests, and after one operation requests of every completion, abandon the operation requests;Judge whether the block production power time limit for producing node reaches;If the block production power time limit for producing node reaches, it is packaged into block after executing accumulation operations, and carry out the whole network broadcast.The key message in operation requests is operated and counted to realize, and abandons operation requests after operation and statistics, to mitigate the storage load of block catenary system interior joint, guarantees the normal operation of block catenary system interior joint.
Description
Technical field
The present invention relates to block chain technical field, in particular to a kind of building method, medium, the computer of block catenary system
Equipment and block catenary system.
Background technique
Block chain is a kind of scheme that authentic data library is safeguarded by decentralization and in a manner of going to trust, because it goes to center
Change, go to trust and data the characteristics of being difficult to tamper with and be widely applied.
In existing block catenary system, what is stored to operation (for example, vote by ballot, chess match score statistics etc.)
In the process, all procedural informations of operation can be stored, leads to the waste of a large amount of storage resources, especially when in block chain
When system is mobile terminal, easily causes node storage burden excessive and collapse.
Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, of the invention
One purpose is to propose a kind of building method of block catenary system, can be realized and grasp to the key message in operation requests
Make and count, and abandon operation requests after operation and statistics, to mitigate the storage load of block catenary system interior joint, guarantees
The normal operation of block catenary system interior joint.
Second object of the present invention is to propose a kind of computer readable storage medium.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of block catenary system.
In order to achieve the above objectives, first aspect present invention embodiment proposes a kind of building method of block catenary system, area
Block catenary system includes multiple nodes, and each node is configured with task operating table and Statistics table, wherein the task operating table
It is configured, be the described method comprises the following steps in a manner of not recording operation: receiving the task requests of any one node initiation, with
It is synchronous to carry out the whole network according to task requests production block that toilet states the production node in block catenary system;When the task
After requesting corresponding project to be identified, receives each node and asked by the operation that the task operating indicator initiates the project
It asks, so that the production node is carried out according to the operation requests by inquiring the Statistics table with the task to the project
Operation and statistics, and after one operation requests of every completion, abandon the operation requests;Judge the block production of the production node
Whether the power time limit reaches;If the block production power time limit of the production node reaches, pass through the production node pair
Statistical result is packaged into block after executing accumulation operations, and carries out the whole network broadcast, so as in the synchronous statistical result letter of each node
Breath.
The building method of block catenary system according to an embodiment of the present invention, block catenary system include multiple nodes, Mei Gejie
Point is configured with task operating table and Statistics table, wherein task operating table is configured in a manner of not recording operation, and method includes
Following steps: firstly, receive any one node initiation task requests, so as to the production node in block catenary system according to times
Business request production block is synchronous to carry out the whole network;Then, after the corresponding project of task requests is identified, it is logical to receive each node
The operation requests that task operating indicator initiates the project are crossed, pass through query statistic information to produce node according to operation requests
Table is operated and is counted with the task to the project, and after one operation requests of every completion, abandons the operation requests;So
Afterwards, judge whether the block production power time limit for producing node reaches;Then, if the block of production node produces the power time limit
It reaches, then block is packaged into after executing accumulation operations to statistical result by production node, and carry out the whole network broadcast, so as to every
The synchronous statistical result information of a node;The key message in operation requests is operated and counted to realize, and is being operated
Guarantee block catenary system interior joint with discarding operation requests after statistics to mitigate the storage load of block catenary system interior joint
Normal operation.
In addition, the building method of the block catenary system proposed according to that above embodiment of the present invention can also have following add
Technical characteristic:
Optionally, when the block catenary system is vote by ballot block catenary system, the task operating table includes being elected pair
The ID and ballot project task ID of elephant, the Statistics table include statistics source, objects of statistics and measurement type.
Optionally, the Statistics table is expressed as being carried out cumulative system by election object in the task operating table
The operation of meter.
Optionally, when the production node inquires the Statistics table according to the operation requests, if the system
Exist in meter information table for the content item for being carried out cumulative statistics by election object, then by searching in node local cache
Election task progressive schedule to judge the election task progressive schedule with the presence or absence of the content item of ballot project task, and described
When election task progressive schedule has the content item of ballot project task, judge whether deposit in the content item of the ballot project task
In the subitem by election object, wherein if it is present the statistical value by election object is added 1;If do not deposited
The subitem by election object is then being created, and the statistical value by election object is set to 1.
Optionally, the task operating table and Statistics table are loaded by the start node of the block catenary system, with
Just other nodes after wound generation block in the block catenary system are created by synchronizing the wound generation block in the start node
To be synchronized to the task operating table and Statistics table.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon
It is stored with the constructor of block catenary system, the constructor of the block catenary system realizes above-mentioned block when being executed by processor
The building method of catenary system.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of computer equipment, including memory, place
The computer program managing device and storage on a memory and can running on a processor, the processor execute the computer journey
When sequence, the building method of above-mentioned block catenary system is realized.
In order to achieve the above objectives, fourth aspect present invention embodiment proposes a kind of block catenary system, including multiple nodes,
Each node is configured with task operating table and Statistics table, wherein the task operating table is matched in a manner of not recording operation
Set, each node further include memory, processor and storage on a memory and the computer program that can run on a processor,
When the processor executes the computer program, the building method of above-mentioned block catenary system is realized.
Detailed description of the invention
Fig. 1 is the flow diagram according to the building method of the block catenary system of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the building method of the block catenary system of another embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In existing block catenary system, what is stored to operation (for example, vote by ballot, chess match score statistics etc.)
In the process, all procedural informations of operation can be stored, leads to the waste of a large amount of storage resources;The embodiment of the present invention proposes
A kind of block catenary system building method, including multiple nodes, each node is configured with task operating table and Statistics table,
Wherein, task operating table is configured in a manner of not recording operation, and method is the following steps are included: firstly, receive any one node
The task requests of initiation are synchronized so that the production node in block catenary system produces block according to task requests with carrying out the whole network;
Then, after the corresponding project of task requests is identified, receive what each node initiated the project by task operating indicator
Operation requests, so as to produce node according to operation requests by query statistic information table with the task to the project carry out operation and
Statistics, and after one operation requests of every completion, abandon the operation requests;Then, judge that the block for producing node produces power
Whether the time limit reaches;Then, if the block production power time limit of production node reaches, by production node to statistical result
It is packaged into block after executing accumulation operations, and carries out the whole network broadcast, so as in the synchronous statistical result information of each node;To real
Now the key message in operation requests is operated and counted, and abandons operation requests after operation and statistics, to mitigate
The storage load of block catenary system interior joint guarantees the normal operation of block catenary system interior joint.
In order to better understand the above technical scheme, the exemplary reality that the present invention will be described in more detail below with reference to accompanying drawings
Apply example.Although showing exemplary embodiment of the present invention in attached drawing, it being understood, however, that may be realized in various forms this hair
It is bright and should not be limited by the embodiments set forth herein.It is to be able to thoroughly understand this on the contrary, providing these embodiments
Invention, and the scope of the present invention can be fully disclosed to those skilled in the art.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Fig. 1 is the flow diagram of the building method of the block catenary system proposed according to the embodiment of the present invention, wherein block
Catenary system includes multiple nodes, and each node is configured with task operating table and Statistics table, wherein task operating table is not to remember
Record operation mode configure, as shown in Figure 1, the building method of the block catenary system the following steps are included:
S101 receives the task requests of any one node initiation, so that the production node in block catenary system is asked according to task
It is synchronous to carry out the whole network to seek survival producing region block.
That is, the task requests that any one node is initiated in block catenary system are received, so as in block catenary system
Production node according to task requests to produce block synchronous to carry out the whole network.
Wherein, production node according to task requests produce block mode there are many, for example, production node take office in reception
After business request, which is cached, and reach default in the time difference of upper block timeline and current time
Time after, the task requests of upper block timeline and current time are packaged, to form block;Alternatively, production
Node caches the task requests after receiving task requests, and in upper block timeline and current time
After task requests quantity reaches preset quantity, the task requests of upper block timeline and current time are packaged,
To form block.
Wherein, the mode of task requests can there are many, for example, vote by ballot request, block chain athletics event victory or defeat system
Meter request, transaction count statistics request etc.;Therefore, the form of task requests is not defined herein.
S102 receives each node by task operating indicator to this after the corresponding project of task requests is identified
Mesh initiate operation requests, so as to produce node according to operation requests by query statistic information table with the task to the project into
Row operation and statistics, and after one operation requests of every completion, abandon the operation requests.
That is, then allowing block chain interior joint after the corresponding project of task requests is confirmed by block catenary system
The corresponding operation of the project is carried out, and receives each node in block chain and passes through the operation that task operating indicator initiates the project
Request, and after receiving operation requests, production node passes through query statistic information table according to the operation requests received
The task of the project is operated and counted, and after one operation requests of completion, abandons the operation requests.
Wherein it is determined that there are many modes whether corresponding project of task requests is identified, for example, being packaged in production node
Block and after being broadcasted, obtains the line node quantity in current block catenary system, and in block chain interior joint to block
The number of nodes for having synchronized the block is counted after synchronizing, and the node for having synchronized the block of judgement statistics
Whether the ratio of the line node quantity in quantity and current block catenary system reaches preset threshold value, if so, judging task
Corresponding project is requested to be identified;Alternatively, after production node is packaged block and is broadcasted, to the section for having synchronized the block
Point quantity counted, and judge synchronized the block number of nodes and block catenary system in node total number ratio whether
Reach preset threshold value, if so, judging that the corresponding project of task requests is identified.
It is specified it should be noted that task operating table is configured in a manner of not recording operation in the configuration task operation table referred to
Content be to need the content that needs to abandon after operation requests are by production nodal operation and statistics.
As an example, when block catenary system is vote by ballot block catenary system, task operating table includes being elected
The ID and ballot project task ID of object, Statistics table include statistics source, objects of statistics and measurement type.With a practical case
Example is illustrated, and in vote by ballot operation, defining the corresponding content format of this operation requests in task operating table is
Select(pid, oid);Wherein, select is function name, and oid refers to that the corresponding ID of the object elected, pid are referred to
Vote the corresponding ID of project task;Then according to task operating table, in production nodal operation and after counting the operation requests, by this
Operation requests select(pid, oid) it abandons.
Wherein, it receives each node and refers to block chain by the operation requests that task operating indicator initiates the project
In in each node checks task operating table item association corresponding with task requests operational format, and according to the operational format
Operation requests are initiated to block catenary system.
As an example, after the corresponding project of task requests is by the confirmation of block catenary system, user node is by appointing
It is select(pid, oid that business operation table, which finds operational format associated by the corresponding project of the task requests), then user saves
Point initiates operation requests to block catenary system according to the operational format;Wherein, select is function name, and oid refers to being chosen
The object of act corresponding ID, pid refer to the corresponding ID of ballot project task.
Wherein, production node according to operation requests by query statistic information table with the task to the project carry out operation with
There are many modes of statistics, for example, node is produced after receiving operation requests, according to operation requests in Statistics table
Foundation and operation requests respective items purpose project statistical items, and respective items purpose project statistical items are carried out according to the operation requests
Operation and statistics.
As an example, in vote by ballot operation, user node sends operation requests select(pid, oid), it is raw
Node is produced after receiving operation requests, the corresponding project of pid is established in Statistics table according to the pid in operation requests
Statistical items, and establish the corresponding subitem of oid in the corresponding project statistical items of pid, so as to according to operation requests to disparity items
Corresponding election object is counted respectively;Wherein, select is function name, and oid refers to that the object elected is corresponding
ID, pid refer to the corresponding ID of ballot project task.
S103, judges whether the block production power time limit for producing node reaches.
Wherein, judge that the block for producing node produces there are many modes whether the power time limit reaches, for example, judgement upper one
Whether the time difference of block timeline to current time has reached preset time threshold, if so, the area of judgement production node
The block production power time limit arrived, alternatively, whether the operation requests quantity of judgement upper block timeline to current time has reached
It is wished to preset quantity, if so, the block production power time limit of judgement production node arrived.
S104 executes statistical result by production node if the block production power time limit of production node reaches
It is packaged into block after accumulation operations, and carries out the whole network broadcast, so as in the synchronous statistical result information of each node.
That is, when reaching in the block production power time limit for producing node, by production node to the result of statistics
Accumulation operations are executed, and are packaged as block, and the block is subjected to the whole network broadcast, so that each node in block chain is synchronous
The statistical result information.
In conclusion the building method of block catenary system according to an embodiment of the present invention, block catenary system includes multiple sections
Point, each node are configured with task operating table and Statistics table, wherein task operating table is matched in a manner of not recording operation
It sets, method is the following steps are included: firstly, receive the task requests of any one node initiation, so as to the life in block catenary system
It is synchronous to carry out the whole network according to task requests production block to produce node;Then, it after the corresponding project of task requests is identified, connects
It receives each node and passes through the operation requests that task operating indicator initiates the project, pass through to produce node according to operation requests
Query statistic information table is operated and is counted with the task to the project, and after one operation requests of every completion, and abandoning should
Operation requests;Then, judge whether the block production power time limit for producing node reaches;Then, if the block of production node
The arrival of power time limit is produced, then is packaged into block after executing accumulation operations to statistical result by production node, and carry out the whole network
Broadcast, so as in the synchronous statistical result information of each node;To realize to the key message in operation requests carry out operation and
Statistics, and operation requests are abandoned after operation and statistics, to mitigate the storage load of block catenary system interior joint, guarantee block
The normal operation of catenary system interior joint.
Fig. 2 is the flow diagram of the building method of the block catenary system proposed according to another embodiment of the present invention, such as Fig. 2
It is shown, the building method of the block catenary system the following steps are included:
S201 is that each node configuration task in block catenary system operates table and Statistics table.
Wherein, task operating table is configured in a manner of not recording operation, task operating table include elected object ID and
Vote project task ID;Statistics table includes that statistics source, objects of statistics and measurement type, Statistics table are expressed as being directed to
The operation that cumulative statistics is carried out by election object in task operating table;In other words, Statistics table is used to be directed to task operating table
In cumulative statistics is carried out by election object.
S202 is loaded into task operating table and Statistics table by the start node of block catenary system, initially to save
Other nodes after point creation wound generation block in block catenary system are by synchronous wound generation block to believe task operating table and statistics
Breath table synchronizes.
That is, task operating table and Statistics table are loaded by the start node of block catenary system, so as to first
After beginning node creation wound generation block, other are connected into the node in block catenary system can be by synchronous wound generation block to task
Operation table and Statistics table synchronize, and it is synchronous with the configuration of Statistics table to carry out task operating table.
S203, receive any one node initiation task requests, so as to the production node in block catenary system according to times
Business request production block is synchronous to carry out the whole network.
S204 receives each node by task operating indicator to this after the corresponding project of task requests is identified
The operation requests that mesh is initiated.
S205 produces node according to operation requests query statistic information table, and judges whether deposited in the Statistics table
For the content item for being carried out cumulative statistics by election object.
That is, production node according to operation requests query statistic information table, and is sentenced after receiving operation requests
It is whether existing for the content item for being carried out cumulative statistics by election object in disconnected Statistics table, to judge that the operation requests are
The no operation to be counted.
S206 searches the election task progressive schedule of node local cache when the judgment result is yes to judge election task
Content item of the progressive schedule with the presence or absence of ballot project task.
That is, searching node sheet after production node judges the operation requests for the operation counted
The election task progressive schedule of ground caching is to judge election task progressive schedule with the presence or absence of the content item of ballot project task.
Wherein, when the judgment result is no, corresponding content item can be established for the ballot project task, to ballot project
Task is counted.
Wherein, the election task accumulation schedule of local cache refers to production node in block production process to current block
The election task accumulation schedule that generated election task is counted, for carrying out task items of voting caused by current block
Statistics;And the foundation that ballot task items are summarized as subsequent production node.
S207 judges in the content item of ballot project task with the presence or absence of by election object when the judgment result is yes
Subitem;If so, thening follow the steps S208;If it is not, thening follow the steps S209.
That is, there is ballot project task in the election task progressive schedule for judging node local cache in production node
When content item, according in the content item for being judged the ballot project task by election object for including in operation requests whether there is quilt
Elect the subitem of object.
S208 will add 1 by the statistical value of election object.
S209, creation are set to 1 by the subitem of election object, and by the statistical value by election object.
S210, judges whether the block production power time limit for producing node reaches.
S211, if the block production power time limit of production node reaches, by the production node to statistical result
It is packaged into block after executing accumulation operations, and carries out the whole network broadcast, so as in the synchronous statistical result information of each node.
Wherein, it is packaged into block after executing accumulation operations to statistical result by production node and refers to that will produce node works as
The election task progressive schedule of preceding local cache and the history election task statistical information of system add up, to obtain complete system
Information is counted, and complete statistical information is packaged as block.
As an example, in production node local cache election task progressive schedule (LT), and in the block of production node
When producing the arrival of power time limit, production node obtains the system task table (T) in block catenary system;And initiate cumulate
(LT) cumulative operation accumulates the statistical items in LT in T, with reach in block chain elect task statistical result it is complete
Statistics.
In conclusion the building method of block catenary system according to an embodiment of the present invention, firstly, in block catenary system
Each node configuration task operation table and Statistics table;Then, task operating is loaded by the start node of block catenary system
Table and Statistics table pass through synchronous wound generation to create other nodes after wound generation block in block catenary system in start node
Block is to synchronize task operating table and Statistics table;Then, the task requests of any one node initiation are received, with
Just the production node in block catenary system produces block according to task requests and is synchronized with carrying out the whole network;Then, when task requests pair
After the project answered is identified, receives each node and pass through the operation requests that task operating indicator initiates the project;Then, it produces
Node according to operation requests query statistic information table, and judge in the Statistics table whether it is existing for by election object into
The content item of the cumulative statistics of row;Then, when the judgment result is yes, the election task progressive schedule of node local cache is searched to sentence
Content item of the disconnected election task progressive schedule with the presence or absence of ballot project task;Then, when the judgment result is yes, judge item of voting
With the presence or absence of by the subitem of election object in the content item of mesh task;Then, if so, by adding 1 by the statistical value of election object;If
No, creation is set to 1 by the subitem of election object, and by the statistical value by election object;Then, judge the production node
Whether the block production power time limit reaches;Then, if the block production power time limit of the production node reaches, pass through institute
It states after production node executes accumulation operations to statistical result and is packaged into block, and carry out the whole network broadcast, so as to same in each node
Walk statistical result information;The key message in operation requests is operated and counted to realize, and is operating and is counting it
After abandon operation requests, to mitigate the storage load of block catenary system interior joint, guarantee the normal fortune of block catenary system interior joint
Row.
In order to realize above-described embodiment, the embodiment of the present invention proposes a kind of computer readable storage medium, stores thereon
There is the constructor of block catenary system, the constructor of the block catenary system realizes above-mentioned block linkwork when being executed by processor
The building method of system.
In order to realize above-described embodiment, the embodiment of the present invention proposes a kind of computer equipment, including memory, processor
And the computer program that can be run on a memory and on a processor is stored, the processor executes the computer program
When, realize the building method of above-mentioned block catenary system.
In order to realize above-described embodiment, the embodiment of the present invention proposes a kind of block catenary system, including multiple nodes, each
Node is configured with task operating table and Statistics table, wherein the task operating table is configured in a manner of not recording operation, often
A node further includes memory, processor and stores the computer program that can be run on a memory and on a processor, described
When processor executes the computer program, the building method of above-mentioned block catenary system is realized.
It should be noted that the above-mentioned description as described in block catenary system building method in Fig. 1 is equally applicable to the computer
Readable storage medium storing program for executing, computer equipment and block catenary system, this will not be repeated here.
It should be understood by those skilled in the art that, the embodiment of the present invention 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 present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, 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 present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
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.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power
The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component
Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components
It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled
Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not
Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include one or more of the features.In the description of the present invention,
The meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary
The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings
Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It is interpreted as that identical embodiment or example must be directed to.Moreover, particular features, structures, materials, or characteristics described
It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this
The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples
Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (8)
1. a kind of building method of block catenary system, which is characterized in that the block catenary system includes multiple nodes, each node
Configured with task operating table and Statistics table, wherein the task operating table is configured in a manner of not recording operation, the side
Method the following steps are included:
The task requests of any one node initiation are received, so that the production node in the block catenary system is according to the task
Request production block is synchronous to carry out the whole network;
After the corresponding project of the task requests is identified, each node is received by the task operating indicator to the project
The operation requests of initiation inquire the Statistics table to this so that the production node passes through according to the operation requests
Purpose task is operated and is counted, and after one operation requests of every completion, abandons the operation requests;
Judge whether the block production power time limit of the production node reaches;
If the block production power time limit of the production node reaches, statistical result is executed by the production node tired
It is packaged into block after add operation, and carries out the whole network broadcast, so as in the synchronous statistical result information of each node.
2. the building method of block catenary system as described in claim 1, which is characterized in that when the block catenary system is ballot
When electing block catenary system, the task operating table includes the ID and ballot project task ID for being elected object, the statistics letter
Ceasing table includes statistics source, objects of statistics and measurement type.
3. the building method of block catenary system as claimed in claim 2, which is characterized in that the Statistics table is expressed as needle
To the operation for being carried out cumulative statistics by election object in the task operating table.
4. the building method of block catenary system as claimed in claim 2, which is characterized in that when the production node is according to
Operation requests inquire the Statistics table when, if in the Statistics table exist for it is described carried out by election object it is tired
Add the content item of statistics, then by searching for the election task progressive schedule in node local cache to judge that the election task is accumulative
Table whether there is the content item of ballot project task, and there is the content item of ballot project task in the election task progressive schedule
When, judge in the content item of the ballot project task with the presence or absence of the subitem by election object, wherein
If it is present the statistical value by election object is added 1;
If it does not exist, then the creation subitem by election object, and the statistical value by election object is set to 1.
5. such as the building method of block catenary system of any of claims 1-4, which is characterized in that pass through the block
The start node of catenary system is loaded into the task operating table and Statistics table, to create wound generation block in the start node
Other nodes in the block catenary system are by synchronizing the wound generation block to the task operating table and statistical information afterwards
Table synchronizes.
6. a kind of computer readable storage medium, which is characterized in that be stored thereon with the constructor of block catenary system, the block
The construction of block catenary system according to any one of claims 1 to 5 is realized when the constructor of catenary system is executed by processor
Method.
7. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that when the processor executes the computer program, realize such as any one of claim 1-5
The building method of the block catenary system.
8. a kind of block catenary system, which is characterized in that including multiple nodes, each node is configured with task operating table and statistics letter
Cease table, wherein the task operating table is configured in a manner of not recording operation, each node further include memory, processor and
The computer program that can be run on a memory and on a processor is stored, when the processor executes the computer program,
Realize the building method of block catenary system according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810969311.7A CN109241365B (en) | 2018-08-23 | 2018-08-23 | Block chain system construction method, medium, computer equipment and block chain system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810969311.7A CN109241365B (en) | 2018-08-23 | 2018-08-23 | Block chain system construction method, medium, computer equipment and block chain system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109241365A true CN109241365A (en) | 2019-01-18 |
CN109241365B CN109241365B (en) | 2020-11-20 |
Family
ID=65069457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810969311.7A Active CN109241365B (en) | 2018-08-23 | 2018-08-23 | Block chain system construction method, medium, computer equipment and block chain system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109241365B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008665A (en) * | 2019-03-05 | 2019-07-12 | 深圳前海微众银行股份有限公司 | A kind of authority control method and device of block chain |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106406896A (en) * | 2016-09-27 | 2017-02-15 | 北京天德科技有限公司 | Block chain block-building method based on parallel PipeLine technology |
CN106649838A (en) * | 2016-12-29 | 2017-05-10 | 先锋支付有限公司 | Data transmission method, block chain node and distributed database |
CN108418622A (en) * | 2018-02-11 | 2018-08-17 | 西安电子科技大学昆山创新研究院 | A kind of unmanned aerial vehicle group body decision method based on block chain |
-
2018
- 2018-08-23 CN CN201810969311.7A patent/CN109241365B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106406896A (en) * | 2016-09-27 | 2017-02-15 | 北京天德科技有限公司 | Block chain block-building method based on parallel PipeLine technology |
CN106649838A (en) * | 2016-12-29 | 2017-05-10 | 先锋支付有限公司 | Data transmission method, block chain node and distributed database |
CN108418622A (en) * | 2018-02-11 | 2018-08-17 | 西安电子科技大学昆山创新研究院 | A kind of unmanned aerial vehicle group body decision method based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008665A (en) * | 2019-03-05 | 2019-07-12 | 深圳前海微众银行股份有限公司 | A kind of authority control method and device of block chain |
CN110008665B (en) * | 2019-03-05 | 2024-02-06 | 深圳前海微众银行股份有限公司 | Authority control method and device for blockchain |
Also Published As
Publication number | Publication date |
---|---|
CN109241365B (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110138588B (en) | Method and system for automatically managing configuration files, configuration management platform and client | |
CN104715001B (en) | The method and system of write operation is performed for the shared resource in the cluster to data handling system | |
CN111291060B (en) | Method, device and computer readable medium for managing blockchain nodes | |
CN112019369A (en) | Dynamic configuration management method and system under micro-service framework | |
CN101051924B (en) | Equipment managing method for user's networks and user's network managing entity | |
CN110798499A (en) | Distributed service coordination system and method | |
CN109525658A (en) | A kind of production method, server, equipment, storage medium and operation system | |
CN111800285B (en) | Instance migration method and device and electronic equipment | |
CN103207867A (en) | Method for processing data blocks, method for initiating recovery operation and nodes | |
CN108924252A (en) | Mitigate method, medium and the block catenary system of node storage load in block catenary system | |
CN103488526A (en) | System and method for locking business resource in distributed system | |
CN109241365A (en) | Building method, medium, computer equipment and the block catenary system of block catenary system | |
CN110442650A (en) | Database switching method, device, system, electronic equipment and storage medium | |
CN109684273A (en) | A kind of snapshot management method, apparatus, equipment and readable storage medium storing program for executing | |
CN107066480A (en) | Management method, system and its equipment in master/slave data storehouse | |
CN101873354A (en) | Data synchronization method and system thereof in interactive television | |
CN104768080B (en) | Real-time rebroadcasting synchronization method and real-time rebroadcasting synchronization system | |
CN102299814A (en) | Method and system for upgrading MIB (management information base) on SNMP (simple network management protocol) agent | |
CN110149352B (en) | Service request processing method and device, computer equipment and storage medium | |
CN111752861A (en) | Application multi-level caching method and device, client and storage medium | |
CN104969217A (en) | Predictive cache apparatus and method of cache prediction | |
CN113965538B (en) | Equipment state message processing method, device and storage medium | |
CN115002507A (en) | Video data updating method, device, equipment and readable storage medium | |
CN111193903B (en) | Method, device, electronic equipment and medium for monitoring resource update | |
CN109828977A (en) | The method, apparatus and storage medium and client, server-side of synchronous form data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 361000 B1F-065, Zone A, Huaxun Building, Software Park, Xiamen Torch Hi-tech Zone, Huli District, Xiamen City, Fujian Province Patentee after: Ke'an (Xiamen) Technology Co.,Ltd. Address before: B1f-065, zone a, Huaxun building, software park, torch hi tech Zone, Xiamen City, Fujian Province, 361000 Patentee before: TAILIAN (XIAMEN) TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |