A consortium chain node consensus method and blockchain system
By dividing the alliance chain nodes into primary nodes and secondary nodes, and adopting a two-factor verification mechanism, the problems of waste of computing resources, concentrated rights and large network overhead of the existing blockchain consensus algorithm are solved, and faster and more stable user acquisition and transaction information verification are achieved.
Patent Information
- Application Number
- CN202210210571.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-04
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-03-04
AI Technical Summary
The existing blockchain consensus algorithms have problems such as waste of computing resources, concentrated rights and interests of the rich, and cheating risks. Especially in the alliance chain, the PBFT algorithm has a large network overhead when there are many nodes, and it is difficult to deal with dynamic joining and exiting nodes.
The nodes in the alliance chain are divided into primary nodes and secondary nodes. The primary node is responsible for the final decision on accounting rights and transaction information, and the secondary node is responsible for data preparation and preliminary verification. The secondary node establishes a relationship between the number of newly registered users and the hash value of the transaction information. The primary node randomly selects the accountant and ensures the legitimacy of the transaction information through two-factor verification.
It improves the user acquisition speed and system stability of the alliance chain, enhances the accuracy of verification of transaction information, reduces network overhead, and solves the problem of dynamic node management.
Smart Images

Figure CN114666342B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to an alliance chain node consensus method and a blockchain system. Background Art
[0002] Blockchain technology is a technology that integrates P2P network technology, encryption algorithm technology, consensus mechanism and distributed data storage technology; blockchain nodes jointly maintain the ledger in the blockchain and transmit information between nodes through the connections established by these technologies.
[0003] The core of the blockchain consensus mechanism is the consensus algorithm. The nodes on the blockchain process transaction information through a common algorithm and ultimately reach a consensus on the legitimacy of the transaction information, ensuring the consistency of the transaction information saved in the blockchain nodes. The blockchain selects bookkeepers through a consensus algorithm, enabling the blockchain to stably generate bookkeepers, who then complete the writing of transaction information in the newly formed blocks.
[0004] The blockchain consensus mechanism includes: Proof of Work (POW), Proof of Stake (POS) and Delegated Proof of Stake (DPOS) consensus algorithms commonly used in public chains; Proof of Work (POW) obtains the right to keep accounts by continuously trying random numbers, which will inevitably lead to a large waste of computing resources and electricity in the process of trying random numbers; Proof of Stake (POS) will inevitably lead to the problem of the rich getting richer and the poor getting poorer on the chain. At the same time, cheaters can also increase their rights and interests by accumulating coin age and increase the chance of obtaining account keepers.
[0005] With the development of blockchain technology, it is increasingly urgent to apply blockchain technology to practical scenarios. In the process of implementation, the limitations of public chains are increasingly reflected, so alliance chains and private chains have emerged; among them, alliance chains are a blockchain maintained by several interest organizations. The use of this blockchain must be restricted access with permissions, and relevant information will be protected, such as supply chain organizations or bank alliances; a commonly used consensus algorithm for alliance chains is the PBFT consensus algorithm, but in a network with N nodes during the consensus process, this algorithm has two nodes that need to transmit network messages, which is O(N 2 ), resulting in a lot of network overhead; at the same time, how the algorithm dynamically joins and exits consensus nodes during the consensus process is also an urgent problem to be solved.
[0006] Through the above introduction to blockchain technology and blockchain consensus mechanism, it can be seen that blockchain technology is still in its early stages of development. The continuous improvement and research of the consensus mechanism will be of great significance to the development of blockchain technology. Summary of the invention
[0007] The purpose of the present invention is to overcome the above problems existing in the prior art and to greatly improve its technical effect on the basis of the original technology; to this end, the present invention provides a consortium chain node consensus method and a blockchain system.
[0008] In order to achieve the above-mentioned purpose, the technical solution of the first aspect of the present invention provides a consortium chain node consensus method applicable to the consortium chain, the method comprising:
[0009] The nodes in the alliance chain are divided into primary nodes and secondary nodes. The primary nodes are connected to each other, and the secondary nodes are connected to their respective primary nodes. Each primary node is distributed in different institutions, and the primary nodes are the secondary nodes of the institutions.
[0010] The consensus of alliance chain nodes includes consensus on accounting rights and consensus on transaction information;
[0011] Among them, the consensus of bookkeeping rights is first established through the secondary nodes under each main node through the hash value generated by the number of newly registered users in the group and the verified transaction information;
[0012] The consensus reached by the secondary nodes in the group on the relationship between the number of newly registered users and the hash value generated by the verified transaction information is sent to each master node. The master nodes of each institution broadcast the consensus relationship reached by their respective secondary nodes to each other. Through certain algorithmic rules, a master node is selected as the account keeper to reach a consensus on the account keeping rights of the master nodes;
[0013] The consensus on transaction information is first reached by the secondary nodes in the group, and then the primary node transmits the consensus reached by the secondary nodes in each group to other primary nodes, so that all primary nodes reach a consensus on the transaction information.
[0014] Furthermore, the division of nodes in the alliance chain into primary nodes and secondary nodes includes: the alliance chain is a type of blockchain, and blockchain is divided into public chain, alliance chain and private chain according to different scales and application scenarios, wherein the alliance chain is jointly constructed by multiple institutions with related business interests, and each institution manages one or several nodes belonging to it relatively independently. Primary nodes are generally distributed in the alliance chain, and the normal operation of the alliance chain is jointly maintained by the primary nodes and other nodes.
[0015] Furthermore, the nodes in the alliance chain are divided into primary nodes and secondary nodes, including: the primary node is a node for the organization to make important decisions, and the primary nodes of each organization are interconnected; the secondary node is an ordinary node under the primary node of each organization, which is responsible for the preparatory work before making decisions for the primary node, usually including verification and analysis of transaction information, and the secondary node is connected to the client.
[0016] Furthermore, the consensus of the alliance chain nodes includes the consensus on accounting rights and the consensus on transaction information, including: the consensus on accounting rights refers to the nodes on the blockchain reaching a consensus on the nodes with the right to write new blocks, and the consensus on transaction information refers to the nodes on the blockchain reaching a consensus on whether the transaction information is legal, and writing the legal transaction information into the newly formed blocks.
[0017] Furthermore, the consensus of the bookkeeping right is first established through the secondary nodes under each main node through the hash value generated by the number of newly registered users in the group and the verified transaction information, including: the node network of the main node of each institution and the secondary node of the affiliated institution constitutes a group, that is, the main node and the secondary node of each institution constitute an independent group node; in the process of selecting bookkeepers, the main node of each institution randomly selects a part of the transaction information that has been verified to be qualified within the period of time for sorting, forming a transaction information sequence, and sends the sorted transaction information to the secondary node under the main node, the secondary node counts the number of new users registered in the node of the institution, and calculates the hash value of the transaction information sequence, and establishes a mathematical relationship through the number of newly registered new users and the calculated transaction information sequence hash value: i =a i h i , where a i The number of new users registered for the organization, h i The hash value calculated for each node; each secondary node will calculate M i The value of is broadcasted in the organization's network, and the M calculated by the secondary node is counted. i Whether the number of nodes with the same value exceeds 2 / 3 of the total number of sub-nodes of the organization, if so, the sub-nodes of the organization have the same M i consensus of the value and the same M i The value is passed to the master node of the institution.
[0018] Furthermore, the master nodes of each organization mutually broadcast the consensus relationship reached by their respective secondary nodes, and certain algorithm rules include: the certain algorithm rules are for each master node to obtain the M of other master nodes from each other. i value, each node selects the largest M i value, and the maximum M i The value is broadcast to other master nodes. If the largest M is selected i If the number of master nodes with the same value exceeds 2 / 3 of the number of master nodes competing for the accounting right, M i The master node corresponding to the value acts as the accountant of the new block formed, and broadcasts the master node to other master nodes, which are verified by other nodes to reach a consensus among all master nodes.
[0019] Furthermore, the consensus of the transaction information is first reached by the secondary nodes in the group, including: the secondary nodes under each main node obtain the transaction information of the entire network through the main node, and analyze the legitimacy of the transaction information, broadcast the verified legal transaction information on the institutional network, and verify whether the number of transaction information that verifies the legitimacy of the transaction information exceeds 2 / 3 of all secondary nodes. If so, the secondary nodes reach a consensus on the legitimacy of the transaction information, and the transaction information is transmitted to the main node of the institution, and the main node determines that the transaction information is legal; each main node broadcasts the transaction information on which the secondary nodes have reached consensus on the received transaction information on the main node exclusive network, and the blockchain counts whether the number of main nodes with legal transaction information in the main node exceeds 2 / 3 of the online main nodes. If so, the transaction information is deemed to be legal in the entire blockchain system, and the legal transaction information is broadcast in the main node network, reaching a consensus among all main nodes on the legal transaction information, and at the same time, each main node shares the legal transaction information with the secondary nodes under the main node, reaching a consensus on the transaction information among the main nodes and secondary nodes of the entire network.
[0020] The technical solution of the second aspect of the present invention is to provide a blockchain system, which includes:
[0021] A consortium chain system, the consortium chain includes a main node and a secondary node, the main nodes have their own organizations, and the secondary nodes are under their own main nodes; the main node is used to select bookkeepers and ultimately decide on the consensus on transaction information, and the selected bookkeepers write the legal transaction information into a new block of the blockchain; the secondary node is used to prepare data for the main node to select bookkeepers and to preliminarily analyze the legality of the transaction information; the main node and the main node are connected to each other to reach a consensus on the bookkeeping rights and transaction information on the main node.
[0022] Beneficial effects of the present invention:
[0023] The present invention divides the nodes in the alliance chain into primary nodes and secondary nodes, and realizes the random selection of primary nodes as bookkeepers through the established consensus algorithm, and writes transaction information; the legitimacy of transaction information is jointly verified by the successive verification of secondary nodes and primary nodes, and the double verification increases the accuracy of transaction information verification; by adding the factor of newly registered users of an institution in the process of selecting bookkeepers, the competitive relationship between institutions is increased, so that the alliance chain using the consensus algorithm can obtain users more quickly and stably. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above advantages and some hidden advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0025] Figure 1 A flow chart of a consortium chain node consensus method of the present invention is shown.
[0026] Figure 2 A schematic diagram of a blockchain system of the present invention is shown. DETAILED DESCRIPTION
[0027] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0028] It should be noted that many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention may also have other implementations and variations thereof. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0029] like Figure 1 As shown, a flowchart of a consortium chain node consensus method according to an embodiment of the present invention is applicable to the consortium chain, including: step S100, dividing the nodes in the consortium chain into primary nodes and secondary nodes, the primary nodes are connected to each other, the secondary nodes are respectively connected to their respective primary nodes, each primary node is distributed in a different organization, and the primary node is the secondary node of the organization; step S101, the consensus of the consortium chain nodes includes the consensus of the accounting right and the consensus of the transaction information; step S102, wherein the consensus of the accounting right is firstly achieved by the secondary nodes under each primary node through the number of newly registered users in the group and the transaction information verified The hash value generated by the information establishes a relationship; step S103, the consensus reached by the sub-nodes in the group on the relationship between the number of newly registered users and the hash value generated by the verified transaction information is sent to each master node, and the master nodes of each institution broadcast the consensus relationship reached by their respective sub-nodes to each other, and through certain algorithm rules, select a master node as the bookkeeper to reach a consensus on the bookkeeping rights of the master nodes; step S104, wherein the consensus on the transaction information is first reached by the sub-nodes in the group, and then the master node transmits the consensus reached by the sub-nodes in each group to other master nodes, so that all master nodes reach a consensus on the transaction information.
[0030] In this embodiment, specifically, when establishing a consortium chain, the nodes in the consortium chain are divided into main nodes and secondary nodes, the main nodes are connected to each other, and the secondary nodes are connected to their respective main nodes. Each main node is distributed in different institutions, and the main node is the secondary node of the institution; the consensus of the consortium chain nodes is divided into the consensus of the node accounting right and the consensus of the transaction information, and only the main node has the accounting right; wherein, the consensus of the node accounting right first establishes a relationship between the number of newly registered users in the group and the hash value generated by the verified transaction information through the secondary nodes under each main node, and then the consensus reached by the secondary nodes in the group on the relationship between the number of newly registered users and the hash value generated by the verified transaction information is sent to each main node, and the main nodes of each institution broadcast the consensus relationship reached by their respective secondary nodes to each other, and select a main node as the accountant through certain algorithm rules, and reach a consensus on the accounting right of the main node; wherein, the consensus of the transaction information is first reached by the secondary nodes in the group, and then the secondary nodes send the consensus reached to the main node to which they belong, and the main node transmits the consensus reached by the secondary nodes in each group to other main nodes, and reaches a consensus on the transaction information of all main nodes through the consensus algorithm.
[0031] Step S100, divide the nodes in the alliance chain into main nodes and secondary nodes, the main nodes are connected to each other, the secondary nodes are connected to their own main nodes, each main node is distributed in different institutions, and the main nodes are the secondary nodes of the institutions; specifically, according to the actual situation of the institutions that constitute the alliance chain, a node is established in each institution as the main node, and the other nodes in the institution are secondary nodes; then the main nodes of all institutions that constitute the alliance chain are connected, and the main node of each institution is individually connected to the secondary node of the institution.
[0032] Specifically, the alliance chain is a type of blockchain. Blockchains are divided into public chains, alliance chains and private chains according to their scale and application scenarios. The alliance chain is jointly constructed by multiple institutions with related business interests. Each institution manages one or several nodes belonging to it relatively independently. Master nodes are generally distributed in the alliance chain, and the master nodes and other nodes jointly maintain the normal operation of the alliance chain.
[0033] Preferably, the master node is the node where the organization makes important decisions. The master nodes of each organization are connected to each other, and information can be transmitted between the master nodes of each organization. The secondary node is an ordinary node under the master node of each organization, which is responsible for the preparatory work before making decisions for the master node, usually including the verification and analysis of transaction information. At the same time, the secondary node is connected to the client.
[0034] Step S101: The consensus of the alliance chain nodes includes the consensus on accounting rights and the consensus on transaction information.
[0035] Specifically, the consensus on accounting rights refers to the nodes on the blockchain reaching a consensus on the nodes with the right to write new blocks. After the blockchain generates an accountant, along with the formation of blocks, the nodes with accounting rights have the right to write information in the new blocks; the consensus on transaction information refers to the nodes on the blockchain reaching a consensus on whether the transaction information is legal, and writing the legal transaction information into the newly formed blocks.
[0036] Step S102, wherein the consensus of the bookkeeping right is first established through the secondary nodes under each primary node through the hash value generated by the number of newly registered users in the group and the verified transaction information.
[0037] Specifically, in the consensus process of blockchain accounting rights, first, the sub-nodes under each organization count the number of new registered users in the group, and establish a connection between the counted number of new users and the child paper generated by the transaction information verified during that period.
[0038] Preferably, the node network of the main node of each institution and the secondary nodes of the affiliated institutions form a group, and the secondary nodes under each main node establish a relationship through the hash value generated by the number of newly registered users in the group and the verified transaction information: in the process of selecting bookkeepers, the main node of each institution randomly selects a part of the transaction information that has been verified to be qualified within the period of time and sorts them to form a transaction information sequence, and sends the sorted transaction information to the secondary nodes under the main node. The secondary nodes count the number of new users registered at the institution node and calculate the hash value of the transaction information sequence. The mathematical relationship is established through the number of newly registered new users and the calculated hash value of the transaction information sequence: i =a i h i , where a i The number of new users registered for the organization, h i The hash value calculated for each node; each secondary node will calculate M i The value of is broadcasted in the organization's network, and the M calculated by the secondary node is counted. i Whether the number of nodes with the same value exceeds 2 / 3 of the total number of sub-nodes of the organization, if so, the sub-nodes of the organization have the same M i consensus of the value and the same M i The value is passed to the master node of the institution.
[0039] Step S103, the consensus reached by the secondary nodes in the group on the relationship between the number of newly registered users and the hash value generated by the verified transaction information is sent to each master node. The master nodes of each institution broadcast the consensus relationship reached by their respective secondary nodes to each other, and select a master node as the bookkeeper through certain algorithm rules to reach a consensus on the bookkeeping rights of the master nodes.
[0040] Specifically, the certain algorithm rule is based on each master node obtaining the M of other master nodes i value, each node selects the largest M i value, and the maximum M i The value is broadcast to other master nodes. If the largest M is selected i If the number of master nodes with the same value exceeds 2 / 3 of the number of master nodes competing for the accounting right, M i The master node corresponding to the value acts as the accountant of the new block formed, and broadcasts the master node to other master nodes, which are verified by other nodes to reach a consensus among all master nodes.
[0041] For the above embodiment, it is assumed that the alliance chain suitable for this embodiment is composed of 100 groups, and the M of the secondary node consensus of each group is i The set of values of is: {M1, M2, M3, …, M 100}; Each master node obtains all elements in the set, and judges the maximum value of the elements in the set, broadcasts the judgment result in the blockchain network, and each master node obtains the judgment results of all other nodes. Each master node sorts out the judgment results and counts whether there is a certain element, such as: M i , judge M i If the number of master nodes with the maximum value exceeds 2 / 3 of the total number of master nodes, the master nodes participating in the statistics are identified as M i The master node corresponding to the value is the bookkeeper of the new block and shares its results with other master nodes, and finally all master nodes reach a consensus on the bookkeeping rights.
[0042] Step S104, consensus on transaction information: first, the secondary nodes in the group reach a consensus, and then the primary node transmits the consensus reached by the secondary nodes in each group to other primary nodes, so that all primary nodes reach a consensus on the transaction information.
[0043] Specifically, the secondary nodes under each main node obtain the transaction information of the entire network through the main node, analyze the legitimacy of the transaction information, broadcast the verified legal transaction information on the institutional network, and verify whether the number of verified legal transaction information exceeds 2 / 3 of all secondary nodes. If so, the secondary nodes reach a consensus on the legitimacy of the transaction information, and the transaction information is transmitted to the main node of the institution, and the main node determines that the transaction information is legal; each main node broadcasts the transaction information received by the secondary nodes on the main node exclusive network, and the blockchain counts whether the number of main nodes with legal transaction information in the main node exceeds 2 / 3 of the online main nodes. If so, the transaction information is deemed to be legal in the entire blockchain system, and the legal transaction information is broadcast in the main node network, reaching a consensus among all main nodes on the legal transaction information. At the same time, each main node shares the legal transaction information with the secondary nodes under the main node, and reaches a consensus on the transaction information among the main nodes and secondary nodes of the entire network.
[0044] like Figure 2 As shown: a blockchain system of the present invention; specifically, a consortium chain system is provided, which divides the consortium chain nodes into main nodes and secondary nodes, the main nodes have their own organizations, and the secondary nodes are under their own main nodes; the main node is used to select bookkeepers and ultimately decide on the consensus on transaction information, and the selected bookkeepers write the legal transaction information into a new block of the blockchain; the secondary nodes are used to prepare data for the selection of bookkeepers by the main node and to preliminarily analyze the legality of the transaction information; the main node and the main node are connected to each other to reach a consensus on the bookkeeping rights and the transaction information on the main node.
[0045] Specifically, Figure 2 As shown in the figure: the main node 1, the main node 2 to the main node n are interconnected, and they belong to different institutions, so they can transmit transaction information between them; this node 1, the secondary node 2 to the secondary node a are all secondary nodes under each main node, and the secondary nodes are interconnected, but not directly connected to the secondary nodes under other institutions; the client 1, the client 2 to the client n are terminal servers that can transmit information to the secondary nodes of each institution, and the client can send the received user's transaction information to the secondary nodes under each institution; it should be pointed out in the figure that the values of a and n are both finite positive integers; the alliance chain reaches consensus on node accounting rights and consensus on transaction information through the connection between the main node and the secondary node, and the main node and the main node.
[0046] It should be understood that the above-mentioned embodiments are one or more embodiments of the present invention, and there are many other embodiments and variations thereof based on the present invention; the variations and modifications made by ordinary technicians in this industry through the present invention without making pioneering innovations all fall within the scope of protection of the present invention.
Claims
1. A consortium chain node consensus method, characterized in that: The method comprises: The nodes in the alliance chain are divided into primary nodes and secondary nodes. The primary nodes are connected to each other, and the secondary nodes are connected to their respective primary nodes. Each primary node is distributed in different institutions, and the primary nodes are the secondary nodes of the institutions. The consensus of alliance chain nodes includes consensus on accounting rights and consensus on transaction information; The consensus of the bookkeeping right includes: first, establishing a relationship between the number of newly registered users in the group and the hash value generated by the verified transaction information through the secondary nodes under each main node; the group refers to a group, and the node network of the main node of each institution and the secondary node of the affiliated institution constitutes a group, that is, the main node and the secondary node of each institution constitute an independent group node; in the process of selecting bookkeepers, the main node of each institution randomly sorts a part of the transaction information that has been verified to be qualified within a period of time, forming a transaction information sequence, and sends the sorted transaction information to the secondary nodes under the main node. The secondary nodes count the number of new users registered in the node of the affiliated institution, and calculate the hash value of the transaction information sequence, and establish a mathematical relationship through the number of newly registered new users and the calculated transaction information sequence hash value: , where a i The number of new users registered for the organization, h i The hash value calculated for each node; each secondary node will calculate M i The value of is broadcasted in the network of the organization to which it belongs, and the M calculated by the secondary node is counted. i Whether the number of nodes with the same value exceeds 2 / 3 of the total number of sub-nodes of the organization, if so, the sub-nodes of the organization have the same M i consensus of the value and the same M i The value is passed to the master node of the organization to which it belongs; The consensus reached by the secondary nodes under each master node on the relationship between the number of newly registered users in the group and the hash value generated by the verified transaction information is sent to each master node. The master nodes of each institution broadcast the consensus relationship reached by their respective secondary nodes to each other, and select a master node as the account keeper through certain algorithm rules to reach a consensus on the account keeping rights of the master nodes; the certain algorithm rules are for each master node to obtain the M of other master nodes from each other. i value, each node selects the largest M i value, and the maximum M i The value is broadcast to other master nodes. If the largest M is selected i If the number of master nodes with the same value exceeds 2 / 3 of the number of master nodes competing for the right to record, the blockchain system will broadcast M i The master node corresponding to the value is used as the accountant of the new block formed, and the M i The master node corresponding to the value broadcasts it to other master nodes, which verify it and reach a consensus among all master nodes. The consensus of the transaction information includes: first, the secondary nodes in the group reach a consensus, and then the primary node transmits the consensus reached by the secondary nodes in each group to other primary nodes, so that all primary nodes reach a consensus on the transaction information.
2. A consortium chain node consensus method according to claim 1, characterized in that: The division of nodes in the alliance chain into primary nodes and secondary nodes includes: the alliance chain is a type of blockchain, and blockchain is divided into public chain, alliance chain and private chain according to different scales and application scenarios, wherein the alliance chain is jointly constructed by multiple institutions with related business interests, and each institution manages one or several nodes belonging to it relatively independently. Primary nodes are distributed in the alliance chain, and the normal operation of the alliance chain is jointly maintained by the primary nodes and other nodes.
3. A consortium chain node consensus method according to claim 1, characterized in that: The division of nodes in the alliance chain into primary nodes and secondary nodes also includes: the primary node is a node for an institution to make important decisions, and the primary nodes of each institution are interconnected; the secondary node is an ordinary node under the primary node of each institution, which is responsible for the preparatory work before making decisions for the primary node, including verification and analysis of transaction information, and the secondary node is connected to the client.
4. A consortium chain node consensus method according to claim 1, characterized in that: The consensus of the alliance chain nodes includes the consensus on accounting rights and the consensus on transaction information, including: the consensus on accounting rights refers to the nodes on the blockchain reaching a consensus on the nodes with the right to write new blocks, and the consensus on transaction information refers to the nodes on the blockchain reaching a consensus on whether the transaction information is legal, and writing the legal transaction information into the newly formed blocks.
5. A consortium chain node consensus method according to claim 1, characterized in that: The consensus of the transaction information includes: the secondary nodes under each main node obtain the transaction information of the entire network through the main node, analyze the legality of the transaction information, broadcast the verified legal transaction information on the institutional network, and count whether the number of secondary nodes that verify the legality of the transaction information exceeds 2 / 3 of all secondary nodes. If so, the secondary nodes reach a consensus on the legality of the transaction information, and the transaction information is transmitted to the main node of the institution, and the main node determines that the transaction information is legal; each main node broadcasts the transaction information on which the secondary nodes have reached consensus on the received transaction information on the main node exclusive network, and the blockchain counts whether the number of main nodes with legal transaction information in the main node exceeds 2 / 3 of the online main nodes. If so, the transaction information is deemed to be legal in the entire blockchain system, and the legal transaction information is broadcast in the main node network, reaching a consensus among all main nodes on the legal transaction information. At the same time, each main node shares the legal transaction information with the secondary nodes under the main node, and reaches a consensus on the transaction information among the main nodes and secondary nodes of the entire network.
6. A blockchain system, characterized in that: The system executes the alliance chain node consensus method according to claim 1, and the system includes: A consortium chain system, the consortium chain includes a main node and a secondary node, the main nodes have their own organizations, and the secondary nodes are under their own main nodes; the main node is used to select bookkeepers and ultimately decide on the consensus on transaction information, and the selected bookkeepers write the legal transaction information into a new block of the blockchain; the secondary node is used to prepare data for the main node to select bookkeepers and to preliminarily analyze the legality of the transaction information.
7. A blockchain system according to claim 6, characterized in that: The system also includes: the master nodes and the master nodes are connected to each other to reach a consensus on the accounting rights and transaction information on the master nodes.
Citation Information
Patent Citations
Quick consensus bookkeeping method and system based on blockchain alliance chain
CN107146087A
Blockchain node data consistency consensus method and device, equipment and storage medium
CN113489681A