CN109218408A - Common recognition mechanism implementation method, medium, computer equipment and the block catenary system of block catenary system - Google Patents

Common recognition mechanism implementation method, medium, computer equipment and the block catenary system of block catenary system Download PDF

Info

Publication number
CN109218408A
CN109218408A CN201810932257.9A CN201810932257A CN109218408A CN 109218408 A CN109218408 A CN 109218408A CN 201810932257 A CN201810932257 A CN 201810932257A CN 109218408 A CN109218408 A CN 109218408A
Authority
CN
China
Prior art keywords
block
catenary system
node
topic
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
Application number
CN201810932257.9A
Other languages
Chinese (zh)
Other versions
CN109218408B (en
Inventor
吴胜文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ke'an (Xiamen) Technology Co.,Ltd.
Original Assignee
Thai Chain (xiamen) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Thai Chain (xiamen) Technology Co Ltd filed Critical Thai Chain (xiamen) Technology Co Ltd
Priority to CN201810932257.9A priority Critical patent/CN109218408B/en
Publication of CN109218408A publication Critical patent/CN109218408A/en
Application granted granted Critical
Publication of CN109218408B publication Critical patent/CN109218408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B7/00Electrically-operated teaching apparatus or devices working with questions and answers
    • G09B7/02Electrically-operated teaching apparatus or devices working with questions and answers of the type wherein the student is expected to construct an answer to the question which is presented or wherein the machine gives an answer to the question presented by a student
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention discloses common recognition mechanism implementation method, medium, computer equipment and the block catenary systems of a kind of block catenary system, method is the following steps are included: when producing current block, if block catenary system is in dpos exam pool and collects mode, receives topic information and be stored in exam pool queue;By obtaining M topic information, and M topic information is numbered;Random sequence is generated, and intercepts C random number from random sequence, and the road C topic is obtained for index from M topic information with C random number;Topic is announced, receives answer to obtain the answer accuracy rate and Reaction time of each node for participating in answer, and generate the node priority for possessing block production permission;To realize the node priority for determining block production permission in conjunction with dpos common recognition mechanism and pow common recognition mechanism, avoiding block catenary system interior joint is to strive for that block produces permission and carries out a large amount of meaningless calculating, and vast resources wastes caused by preventing block from producing authority distribution.

Description

Common recognition mechanism implementation method, medium, computer equipment and the block chain of block catenary system System
Technical field
The present invention relates to block chain technical field, in particular to the common recognition mechanism implementation method of a kind of block catenary system is situated between Matter, computer equipment and block catenary system.
Background technique
Block chain be it is a kind of safeguard the scheme in authentic data library in such a way that decentralization goes to trust, because its decentralization, Go to trust and data the characteristics of being difficult to tamper with and widely applied.
In existing block catenary system, there are many producing methods of node book keeping operation power, for example, POW proof of work machine System, DPOS share authorisation verification mechanism etc., node during using POW proof of work mechanism, in block catenary system Need to carry out a large amount of meaningless calculating, to strive for node book keeping operation power, although so that the POW proof of work mechanism scope of application compared with Extensively, but it be easy to cause a large amount of wasting of resources.
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 common recognition mechanism implementation method of block catenary system, can be realized in conjunction with dpos know together mechanism and Pow common recognition mechanism determines the node priority of block production permission, and avoiding block catenary system interior joint is to strive for that block produces Permission and carry out a large amount of meaningless calculating, vast resources wastes caused by preventing block from producing authority distribution.
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, the common recognition mechanism that first aspect present invention embodiment proposes a kind of block catenary system is realized Method, comprising the following steps: when the node for possessing production permission in block catenary system produces current block, if the block Catenary system is in dpos exam pool and collects mode, then receives the topic information that each node is sent in the block catenary system, and will The topic information deposit exam pool queue received;By inquiring the exam pool queue to obtain M topic information, and to the M A topic information is numbered, wherein M is the integer greater than 1;Random sequence is generated according to quantity 1 to M, and from described random C random number is intercepted in sequence, and the road C topic is obtained for index from the M topic information with the C random number, Wherein, C is the positive integer less than or equal to M;The road C topic is announced so as to any one in the block catenary system Node participates in answer, and the road C topic is deleted from the exam pool queue;It receives and participates in answer transmitted by the node of answer To obtain the answer accuracy rate and Reaction time of each node for participating in answer, and according to the answer accuracy rate and Reaction time Obtain the node priority for possessing block production permission.
The common recognition mechanism implementation method of block catenary system according to an embodiment of the present invention, firstly, being gathered around when in block catenary system When having the node production current block of production permission, if block catenary system is in dpos exam pool and collects mode, block is received The topic information that each node is sent in catenary system, and the topic information received is stored in exam pool queue;Then, pass through inquiry Exam pool queue is numbered M topic information with obtaining M topic information, wherein M is the integer greater than 1;Then, root Data bulk 1 arrives M and generates random sequence, and C random number is intercepted from random sequence, and a from M for index with C random number The road C topic is obtained in topic information, wherein C is the positive integer less than or equal to M;Then, the road C topic is announced so as to area Any one node in block catenary system participates in answer, and the road C topic is deleted from exam pool queue;Then, it receives and participates in answer Node transmitted by answer with obtain it is each participate in answer node answer accuracy rate and Reaction time, and according to answer standard True rate and Reaction time obtain the node priority for possessing block production permission;To realize in conjunction with dpos know together mechanism and Pow common recognition mechanism determines the node priority of block production permission, and avoiding block catenary system interior joint is to strive for that block produces Permission and carry out a large amount of meaningless calculating, vast resources wastes caused by preventing block from producing authority distribution.
In addition, the common recognition mechanism implementation method of the block catenary system proposed according to that above embodiment of the present invention can also have Following additional technical characteristic:
Optionally, when the block catenary system, which is not in dpos exam pool, collects mode, the topic in the exam pool queue is detected Whether quantity meets preset condition, and when topic quantity in the exam pool queue does not meet preset condition controls the block Catenary system opens the dpos exam pool and collects mode.
Optionally, when the block catenary system, which is in dpos exam pool, collects mode, to each in the block catenary system The topic quantity that node is sent is limited.
Optionally, the topic information includes judging topic and answer.
Optionally, before the production of each block, if the node of highest priority goes offline and lasting preset time, The node of secondary high priority obtains block and produces permission, and so on.
Optionally, when current block does not have the corresponding node priority for possessing block production permission, according to upper one The node priority for possessing block production permission corresponding to a block obtains the node for possessing block production permission.
Optionally, when node identical there are the answer accuracy rate, the node priority of the Reaction time morning It is high.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon The common recognition mechanism for being stored with block catenary system realizes that program, the common recognition mechanism of the block catenary system realize that program is executed by processor The common recognition mechanism implementation method of Shi Shixian above-mentioned block 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 common recognition mechanism implementation 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 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 common recognition mechanism implementation method of above-mentioned block catenary system is realized.
Detailed description of the invention
Fig. 1 is the flow diagram according to the common recognition mechanism implementation method of the block catenary system of the 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.
Section in existing block catenary system, during using POW proof of work mechanism, in block catenary system Point needs to carry out a large amount of meaningless calculating, to strive for node book keeping operation power, although so that the POW proof of work mechanism scope of application It is relatively wide, but it be easy to cause a large amount of wasting of resources;A kind of common recognition mechanism for block catenary system that the embodiment of the present invention proposes is realized Method, firstly, when the node for possessing production permission in block catenary system produces current block, if block catenary system is in Dpos exam pool collects mode, then receives the topic information that each node is sent in block catenary system, and the topic received is believed Breath deposit exam pool queue;Then, by inquiring question bank queue to obtain M topic information, and M topic information is compiled Number, wherein M is the integer greater than 1;Then, random sequence is generated according to quantity 1 to M, and intercept from random sequence C with Machine number, and the road C topic is obtained for index from M topic information with C random number, wherein C is just whole less than or equal to M Number;Then, the road C topic is announced so that any one node in block catenary system participates in answer, and from exam pool queue The middle road deletion C topic;Then, it receives and participates in answer transmitted by the node of answer to obtain answering for each node for participating in answer Accuracy rate and Reaction time are inscribed, and preferentially suitable according to the node that answer accuracy rate and Reaction time acquisition possess block production permission Sequence;To realize the node priority for determining block production permission in conjunction with dpos common recognition mechanism and pow common recognition mechanism, avoid Block catenary system interior joint is to strive for that block produces permission and carries out a large amount of meaningless calculating, prevents block from producing authority distribution Caused by vast resources waste.
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 that a kind of process of the common recognition mechanism implementation method of the block catenary system proposed according to the embodiment of the present invention is illustrated Figure, as shown in Figure 1, the common recognition mechanism implementation method of the block catenary system the following steps are included:
S101, when the node for possessing production permission in block catenary system produces current block, if block catenary system is in Dpos exam pool collects mode, then receives the topic information that each node is sent in block catenary system, and the topic received is believed Breath deposit exam pool queue.
That is, judging block chain when the node for possessing production permission in block catenary system carries out the production of block Whether system is in dpos exam pool and collects mode, and receives what each node in block catenary system was sent when the judgment result is yes Topic information, and the topic information received is stored in exam pool queue.
Wherein, judge block catenary system whether be in dpos exam pool collect mode mode there are many.
As an example, exam pool is configured for block catenary system exam pool and collect identifier, and at block catenary system exam pool Exam pool collection identifier is set to 1 when dpos exam pool collects mode, dpos exam pool is not in block catenary system exam pool and searches Exam pool collection identifier is set to 0 when integrated mode, to possess the node of production permission in block catenary system by checking this Exam pool collects the current state that identifier judges block catenary system exam pool.
As an example, when block catenary system, which is in dpos exam pool, collects mode, to each section in block catenary system The topic quantity that point is sent is limited.
That is, if current block catenary system exam pool is in dpos exam pool and collects mode, to every in block catenary system The topic quantity that a node is sent is limited, so, it is ensured that the situation of topic quantity abundance in block catenary system exam pool Under, further mitigate the storage load of block catenary system exam pool.
As an example, when block catenary system, which is not in dpos exam pool, collects mode, the topic in exam pool queue is detected Whether mesh number amount meets preset condition, and block catenary system is controlled when the topic quantity in exam pool queue does not meet preset condition It opens dpos exam pool and collects mode.
That is, when block catenary system is not in dpos exam pool and collects mode, further to the topic in exam pool queue Mesh number amount is detected, and judges whether the topic quantity in exam pool queue meets preset condition, and is in judging result Block catenary system is controlled when no opens dpos exam pool collection mode.
Wherein, there are many modes for presetting topic quantity term, for example, topic quantity needed for ought carrying out answer each time When for N, judge whether the topic quantity in current exam pool queue is less than 2N, if the topic quantity in current exam pool queue is less than 2N then judges that the topic quantity in exam pool queue does not meet preset condition, and opens dpos exam pool and collect mode;Alternatively, root Allow the total N for storing topic to carry out the setting of default topic quantity term according to exam pool, judges the topic in current exam pool queue Whether quantity is less than N/2, if the topic quantity in current exam pool queue is less than N/2, judges the topic quantity in exam pool queue Do not meet preset condition, and opens dpos exam pool and collect mode.
It should be noted that topic information includes but is not limited to judge topic and answer.
As an example, specifically, it is illustrated with the setting of practical topic, first, it is specified that the format of topic information Are as follows: judge topic+answer (1 indicates correct in answer, and 0 indicates mistake);Then, the transmittable topic of all nodes in block chain Mesh information is for example, topic is arranged are as follows: Picasso was born in for 9th century, and answer is arranged are as follows: 0.
It should be noted that the format of topic information may be arranged as: judging that topic+answer+dpos exam pool sends mark Symbol is known, by the way that dpos exam pool transmission identifier to be added into topic to be sent, in order to which block catenary system is inscribed by dpos Library sends the judgement that identifier carries out information category.
S102 by inquiring question bank queue to obtain M topic information, and is numbered M topic information, wherein M For the integer greater than 1.
That is, inquire block catenary system exam pool, to obtain M topic information, and to M topic information into Row number, so that each topic information possesses and itself unique corresponding number;Wherein, M is the integer greater than 1.
As an example, block catenary system exam pool queue is inquired, it is random to obtain M topic letter of preset quantity Breath, and M topic information is numbered, so that each topic information possesses and itself unique corresponding number.
As another example, block catenary system exam pool queue is inquired, to obtain block catenary system exam pool queue In topic quantity sum M, and M topic information is numbered.
S103 generates random sequence according to quantity 1 to M, and intercepts C random number from random sequence, and with C it is a with Machine number is that index obtains the road C topic from M topic information, wherein C is the positive integer less than or equal to M.
It is random to generate 1 sequence for arriving M that is, according to the topic quantity M in block catenary system exam pool, and from generation Random sequence in intercept C random number, and with C random number be index from M topic information acquisition the road C topic, In, C is the positive integer less than or equal to M.
As an example, when M is 5, C is 3, firstly, generating 1 to 5 random sequence (for example, random sequence can be with It is 3.1.2.4.5), then, according to the random sequence of generation, intercept 3 random numbers, it should be noted that the interception of random number It can be according to preset condition (for example, the preceding C random number in default interception random sequence;Alternatively, default interception is random Rear C random number in sequence) it is intercepted, if preset condition is each random number of preceding C intercepted in random sequence, intercept Random number be (3.1.2), then, according to the random number (3.1.2) of interception be index, obtain 3 problems from 5 topic informations Mesh.
S104 announces so that any one node in block catenary system participates in answer the road C topic, and from exam pool The road C topic is deleted in queue.
That is, the road the C topic of interception is announced in block catenary system, so as to all nodes in block chain Available topic simultaneously participates in answer, and deletes the road C topic from exam pool queue, to prevent the multiple of same topic It uses, guarantees the raw fairness of block manufacturing right limited production.
As an example, the road C topic is obtained from M topic information according to the random number of interception, and removes and gets The road C topic in answer information, and variable range is disclosed into such as block catenary system for the road the C topic for removing answer information addition, So that all nodes in block chain obtain the road the C topic of the taking-up answer information, and carry out answer;Then, according to random number The road C topic is deleted in block catenary system queue, and by the road C topic write area block.
S105, it is accurate to obtain the answer of each node for participating in answer to receive answer transmitted by the node for participating in answer Rate and Reaction time, and the node priority for possessing block production permission is obtained according to answer accuracy rate and Reaction time.
That is, receiving the section for participating in answer after being announced the road the C topic of interception in block catenary system The transmitted answer of point, and the answer according to transmitted by the node for participating in answer calculates and participates in the answer pair that the node of answer is sent The answer accuracy rate and Reaction time answered, and the section for possessing block production permission is obtained according to answer accuracy rate and Reaction time Point priority.
Wherein, the mode for possessing the node priority of block production permission is obtained according to answer accuracy rate and Reaction time There are many, for example, the scoring of answer accuracy rate is calculated according to preset answer accuracy rate respective weights value, when according to preset answer Between weighted value calculate Reaction time scoring, and then according to answer accuracy rate scoring and Reaction time scoring calculate participate in answer section The corresponding overall score of this answer of point, and carried out generating the node priority for possessing block production permission according to the overall score.
As an example, firstly, the answer accuracy rate for the answer submitted according to the node for participating in answer carries out possessing area Block produces the determination of the node priority of permission, when node identical there are answer accuracy rate, determines Reaction time morning Node priority is high.
It should be noted that preferentially suitable according to the node that answer accuracy rate and Reaction time acquisition possess block production permission After sequence, according to there are many modes of the node priority distribution block production permission for possessing block production permission.
As an example, when current block does not have the corresponding node priority for possessing block production permission, root The node for possessing block production permission is obtained according to the node priority for possessing block production permission corresponding to a upper block.
That is, when current block does not have the corresponding node priority for possessing block production permission, according to upper The node priority for possessing block production permission corresponding to one block obtains the node for possessing block production permission, then may be used Prevent the block production caused by the case where node priority of block production permission does not generate from can not continue;For example, wound Generation block by wound generation node found after, when the second block is corresponding possess block production permission node priority do not generate When, then the node of block production permission is obtained according to the corresponding node priority for possessing block production permission of wound generation block.
As another example, firstly, being carried out by configuration file to the node priority for possessing block production permission It is default, to generate manufacturing right priority sequence table, and is obtained according to answer accuracy rate and Reaction time and possess block production permission Node priority, and the node priority for possessing block production permission that will acquire are added into manufacturing right priority Table produces corresponding node priority with the subsequent block of determination.
As another example, when block chain is established, presetting the corresponding production node of wound generation block is original node, and It presets when block is without the corresponding node priority for possessing block production permission, the life of the block is carried out by originating node It produces, and when block chain interior joint reaches preset quantity, starting dpos exam pool collects mode, and receives in block catenary system The topic information that each node is sent;And topic information is stored in exam pool queue, and obtain topic according to preset rules;So Afterwards, the topic that will acquire is announced in block catenary system, so that all nodes in block chain carry out answer;And it receives The answer that all nodes are sent in block chain, to possess block according to the corresponding answer accuracy rate of each node and Reaction time determination Produce the node priority of permission;And it is excellent according to the node priority generation production permission for possessing block production permission First sequence list, with according to the production permission priority sequence table determine block produce corresponding block production node priority it is suitable Sequence.
It should be noted that before the production of each block, if the node of highest priority goes offline and persistently presets Time, then the node of secondary high priority obtains block and produces permission, and so on.
That is, according to possess block production permission node priority, if the node of highest priority because Network cause or failure cause go offline and the state continues the preset time, it is determined that the node of secondary high priority obtains area Block produces permission, and so on, to guarantee the normal production of block.
In conclusion the common recognition mechanism implementation method of block catenary system according to an embodiment of the present invention, firstly, working as block chain When possessing the node production current block of production permission in system, if block catenary system is in dpos exam pool and collects mode, The topic information that each node is sent in block catenary system is received, and the topic information received is stored in exam pool queue;Then, By inquiring question bank queue to obtain M topic information, and M topic information is numbered, wherein M is whole greater than 1 Number;Then, random sequence is generated according to quantity 1 to M, and intercepts C random number, and from random sequence with C random number The road C topic is obtained from M topic information to index, wherein C is the positive integer less than or equal to M;Then, the road C topic is carried out It announces so that any one node in block catenary system participates in answer, and deletes the road C topic from exam pool queue;Then, it connects It receives and participates in answer transmitted by the node of answer to obtain the answer accuracy rate and Reaction time of each node for participating in answer, and The node priority for possessing block production permission is obtained according to answer accuracy rate and Reaction time;It is total in conjunction with dpos to realize Knowledge mechanism and pow common recognition mechanism determine the node priority of block production permission, and avoiding block catenary system interior joint is to strive It takes block production permission and carries out a large amount of meaningless calculating, vast resources wave caused by preventing block from producing authority distribution Take.
In order to realize above-described embodiment, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, The common recognition mechanism for being stored thereon with block catenary system realizes that program, the common recognition mechanism of the block catenary system realize program by processor The common recognition mechanism implementation method of above-mentioned block catenary system is realized when execution.
In order to realize above-described embodiment, three aspect embodiments of the invention propose a kind of computer equipment, including memory, Processor and storage on a memory and the computer program that can run on a processor, when processor execution computer program, Realize the common recognition mechanism implementation method of above-mentioned block catenary system.
In order to realize above-described embodiment, fourth aspect present invention embodiment proposes a kind of block catenary system, including multiple Node, each node include memory, processor and storage on a memory and the computer program that can run on a processor, When processor executes computer program, the common recognition mechanism implementation method of above-mentioned block catenary system is realized.
It should be noted that the common recognition mechanism of the above-mentioned block catenary system proposed about the embodiment of the present invention in Fig. 1 is realized The description of method is equally applicable to the computer readable storage medium, computer equipment and block catenary system and does not therefore do herein It repeats.
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 (10)

1. a kind of common recognition mechanism implementation method of block catenary system, which comprises the following steps:
When the node for possessing production permission in block catenary system produces current block, if the block catenary system is in dpos Exam pool collects mode, then receives the topic information that each node is sent in the block catenary system, and the topic received is believed Breath deposit exam pool queue;
By inquiring the exam pool queue to obtain M topic information, and the M topic information is numbered, wherein M For the integer greater than 1;
Generate random sequence according to quantity 1 to M, and intercept C random number from the random sequence, and with the C it is a with Machine number is that index obtains the road C topic from the M topic information, wherein C is the positive integer less than or equal to M;
The road C topic is announced so that any one node in the block catenary system participates in answer, and from described The road C topic is deleted in exam pool queue;
It receives and participates in answer transmitted by the node of answer to obtain the answer accuracy rate and answer of each node for participating in answer Time, and the node priority for possessing block production permission is obtained according to the answer accuracy rate and Reaction time.
2. the common recognition mechanism implementation method of block catenary system as described in claim 1, which is characterized in that when the block linkwork System is not in dpos exam pool when collecting mode, detects the topic quantity in the exam pool queue and whether meets preset condition, and Topic quantity in the exam pool queue controls the block catenary system unlatching dpos exam pool and searches when not meeting preset condition Integrated mode.
3. the common recognition mechanism implementation method of block catenary system as described in claim 1, which is characterized in that when the block linkwork When system collects mode in dpos exam pool, the topic quantity sent to node each in the block catenary system is limited.
4. the common recognition mechanism implementation method of block catenary system as claimed in any one of claims 1-3, which is characterized in that described Topic information includes judging topic and answer.
5. the common recognition mechanism implementation method of block catenary system as described in claim 1, which is characterized in that produced in each block Before, if the node of highest priority goes offline and continues preset time, it is raw that the node of secondary high priority obtains block Property right limit, and so on.
6. the common recognition mechanism implementation method of block catenary system as described in claim 1, which is characterized in that do not have in current block When the corresponding node priority for possessing block production permission, block production permission is possessed according to corresponding to a upper block Node priority obtain possess block production permission node.
7. the common recognition mechanism implementation method of block catenary system as described in claim 1, which is characterized in that when there are the answers When the identical node of accuracy rate, the node priority of the Reaction time morning is high.
8. a kind of computer readable storage medium, which is characterized in that the common recognition mechanism for being stored thereon with block catenary system realizes journey Sequence, the common recognition mechanism of the block catenary system are realized and are realized as described in any one of claim 1-7 when program is executed by processor Block catenary system common recognition mechanism implementation method.
9. 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-7 The common recognition mechanism implementation method of the block catenary system.
10. a kind of block catenary system, including multiple nodes, each node includes memory, processor and stores on a memory And the computer program that can be run on a processor, which is characterized in that when the processor executes the computer program, realize Such as the common recognition mechanism implementation method of block catenary system of any of claims 1-7.
CN201810932257.9A 2018-08-16 2018-08-16 Method, medium, computer device and blockchain system for implementing consensus mechanism of blockchain system Active CN109218408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810932257.9A CN109218408B (en) 2018-08-16 2018-08-16 Method, medium, computer device and blockchain system for implementing consensus mechanism of blockchain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810932257.9A CN109218408B (en) 2018-08-16 2018-08-16 Method, medium, computer device and blockchain system for implementing consensus mechanism of blockchain system

Publications (2)

Publication Number Publication Date
CN109218408A true CN109218408A (en) 2019-01-15
CN109218408B CN109218408B (en) 2020-12-15

Family

ID=64988889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810932257.9A Active CN109218408B (en) 2018-08-16 2018-08-16 Method, medium, computer device and blockchain system for implementing consensus mechanism of blockchain system

Country Status (1)

Country Link
CN (1) CN109218408B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918044A (en) * 2019-02-26 2019-06-21 太原理工大学 A kind of lot/sort method based on block chain technology
CN109948799A (en) * 2019-04-03 2019-06-28 陕西医链区块链集团有限公司 A kind of dynamic random forest common recognition mechanism of block chain
CN110096523A (en) * 2019-05-16 2019-08-06 广州华多网络科技有限公司 A kind of method and apparatus generating unordered topic queue
CN110688410A (en) * 2019-09-23 2020-01-14 阿里巴巴集团控股有限公司 Suggestion processing method and device based on block chain and electronic equipment
CN111259298A (en) * 2020-01-16 2020-06-09 深圳市华海同创科技有限公司 Topic generation method based on block chain, node server and storage medium
CN111464542A (en) * 2020-04-01 2020-07-28 中国联合网络通信集团有限公司 Accounting method and device for block chain network
CN111510484A (en) * 2020-04-10 2020-08-07 金蝶软件(中国)有限公司 Block chain processing method, system, device, computer equipment and storage medium
CN111681145A (en) * 2020-06-12 2020-09-18 常州工业职业技术学院 Open type rapid question bank construction and use method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239050A (en) * 2014-09-10 2014-12-24 中国科学技术大学 Method and system for ranking users in online program evaluation system
CN104268084A (en) * 2014-10-23 2015-01-07 中国科学技术大学 User ranking method and system for online program evaluation system
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
US20170221052A1 (en) * 2015-07-14 2017-08-03 Fmr Llc Computationally Efficient Transfer Processing and Auditing Apparatuses, Methods and Systems
CN107273760A (en) * 2017-06-09 2017-10-20 济南浪潮高新科技投资发展有限公司 One kind is based on many CA application authentication methods of block chain
CN107424066A (en) * 2017-07-19 2017-12-01 武汉凤链科技有限公司 A kind of method and its system of mechanism of being built a consensus based on the magnitude of value
CN107943853A (en) * 2017-11-06 2018-04-20 浙江三米教育科技有限公司 Knowledge node selects test method and its institute's computation machine equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239050A (en) * 2014-09-10 2014-12-24 中国科学技术大学 Method and system for ranking users in online program evaluation system
CN104268084A (en) * 2014-10-23 2015-01-07 中国科学技术大学 User ranking method and system for online program evaluation system
US20170221052A1 (en) * 2015-07-14 2017-08-03 Fmr Llc Computationally Efficient Transfer Processing and Auditing Apparatuses, Methods and Systems
CN106603698A (en) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 Block chain consensus method based on DPOS and nodes
CN107273760A (en) * 2017-06-09 2017-10-20 济南浪潮高新科技投资发展有限公司 One kind is based on many CA application authentication methods of block chain
CN107424066A (en) * 2017-07-19 2017-12-01 武汉凤链科技有限公司 A kind of method and its system of mechanism of being built a consensus based on the magnitude of value
CN107943853A (en) * 2017-11-06 2018-04-20 浙江三米教育科技有限公司 Knowledge node selects test method and its institute's computation machine equipment and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918044B (en) * 2019-02-26 2021-03-30 太原理工大学 Block chain technology-based drawing/sorting method
CN109918044A (en) * 2019-02-26 2019-06-21 太原理工大学 A kind of lot/sort method based on block chain technology
CN109948799A (en) * 2019-04-03 2019-06-28 陕西医链区块链集团有限公司 A kind of dynamic random forest common recognition mechanism of block chain
CN110096523A (en) * 2019-05-16 2019-08-06 广州华多网络科技有限公司 A kind of method and apparatus generating unordered topic queue
CN110688410A (en) * 2019-09-23 2020-01-14 阿里巴巴集团控股有限公司 Suggestion processing method and device based on block chain and electronic equipment
CN111259298A (en) * 2020-01-16 2020-06-09 深圳市华海同创科技有限公司 Topic generation method based on block chain, node server and storage medium
CN111259298B (en) * 2020-01-16 2023-06-27 深圳市华海同创科技有限公司 Topic generation method based on block chain, node server and storage medium
CN111464542B (en) * 2020-04-01 2022-07-12 中国联合网络通信集团有限公司 Accounting method and device for block chain network
CN111464542A (en) * 2020-04-01 2020-07-28 中国联合网络通信集团有限公司 Accounting method and device for block chain network
CN111510484A (en) * 2020-04-10 2020-08-07 金蝶软件(中国)有限公司 Block chain processing method, system, device, computer equipment and storage medium
CN111510484B (en) * 2020-04-10 2023-07-04 金蝶软件(中国)有限公司 Block chain processing method, system, device, computer equipment and storage medium
CN111681145A (en) * 2020-06-12 2020-09-18 常州工业职业技术学院 Open type rapid question bank construction and use method
CN111681145B (en) * 2020-06-12 2023-04-28 常州工业职业技术学院 Open and rapid question bank construction and use method

Also Published As

Publication number Publication date
CN109218408B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN109218408A (en) Common recognition mechanism implementation method, medium, computer equipment and the block catenary system of block catenary system
Kecman et al. Rescheduling models for railway traffic management in large-scale networks
CN109255713A (en) In a kind of block chain network in certain time period book keeping operation power acquisition methods
CN109872152A (en) Block chain common recognition method and relevant device based on share authorisation verification mechanism
Monnier et al. A genetic algorithm for scheduling tasks in a real-time distributed system
CN111010278B (en) High-fault-tolerance layering consensus method based on DPoS
CN110602117B (en) Vehicle networking node consistency consensus method based on block chain
JPH1132085A (en) Communication network managing method and computer system for communication network management
Booler The solution of a railway locomotive scheduling problem
WO2016203714A1 (en) Management apparatus, management method, and management program
CN109347901A (en) The common recognition mechanism implementation method of block catenary system, medium, apparatus and system
CN112769657B (en) Flow control method and device
JP7025365B2 (en) Data linkage management method, data linkage management system, and node
CN109981326A (en) The method and device of home broadband perception fault location
CN106131244A (en) A kind of message transmitting method and device
CN109583601A (en) A kind of controller switching equipment repair based on condition of component policy optimization method
CN108123987A (en) The method and device of master scheduler is determined from cloud computing system
CN109379396A (en) Method, medium, device and the block catenary system of hard bifurcation are prevented in block catenary system
JP2020013310A (en) Information processing apparatus, traffic signal control system, and traffic signal control method
CN115499129A (en) Multimode trust cross-chain consensus method, system, medium, equipment and terminal
CN107894970A (en) Terminal leaves the port the Forecasting Methodology and system of number
CN107770024B (en) Method and device for generating bus cycle scanning table
CN111008835A (en) Method, apparatus, computer-readable storage medium and computer program product for determining transaction verification node of blockchain
CN109118227A (en) Construction method, medium, device and the block catenary system of bridge block catenary system
CN114756384B (en) Task scheduling method and system based on block chain

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
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.