Alliance chain system and method for alliance chain system
By adopting a combination of decentralization and centralized models in the alliance chain system and using the organization's trusted services to optimize resource utilization, the problem of organizational node resource waste is solved, the alliance chain business processing efficiency and storage efficiency are improved, and the alliance chain is maintained The network’s trust system.
Patent Information
- Application Number
- CN202011613475.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In the alliance chain system, the same organization deploys multiple peer nodes to perform functions such as accounting, querying, and endorsement, resulting in a waste of computing resources and storage resources, but the system performance is not improved.
Adopt a decentralized model to allow the organization node collection to execute alliance chain services, and deploy organizational trusted services in the organization node collection, allowing the nodes to execute business logic in a centralized model, through event processing services, routing services, and accounting Services, endorsement services, data storage services and resource scheduling services optimize resource utilization.
It improves the efficiency of alliance chain business processing, reduces resource waste, improves the storage efficiency of ledger data through centralized storage control, and maintains the trust system in the alliance chain network.
Smart Images

Figure CN112712371B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of blockchain technology, and in particular, to a consortium chain system and a method for the consortium chain system. Background Art
[0002] There are three main types of blockchain technology, namely public chain, private chain and alliance chain, among which alliance chain has a wider range of applications. Alliance chain network is usually jointly managed by several institutions or organizations. Institutions and organizations can each run one or more nodes. The data in the alliance chain is only allowed to be read by different institutions in the system, and transaction data is recorded together.
[0003] In related scenarios, the same organization may deploy multiple peer nodes, each of which stores a copy of the ledger in the consortium chain network. At the same time, each peer node must also implement functions such as accounting, query, and endorsement. This consumes more computing and storage resources of the organization, but there is no improvement in system performance. Summary of the invention
[0004] The purpose of the present disclosure is to provide a consortium chain system and a method for the consortium chain system to solve the above-mentioned related technical problems.
[0005] In order to achieve the above-mentioned purpose, according to the first aspect of the embodiment of the present disclosure, a consortium chain system is provided, including a sorting node set and multiple organization node sets, each node in one of the organization node sets belongs to the same organization, and the nodes in the sorting node set are used to generate blocks, wherein:
[0006] The alliance chain business is executed in a decentralized mode between the sets of organization nodes;
[0007] A first organization node set among the multiple organization node sets is deployed with an organization trusted service, and the first organization node set is any organization node set among the multiple organization node sets;
[0008] Based on the organization trusted service, each node in the first organization node set can use a centralized mode to execute the business logic corresponding to the first organization node set.
[0009] Optionally, the organization trusted service includes an event processing service for processing different alliance chain business events, and a routing service deployed on each node in the first organization node set;
[0010] Based on the routing service, each node in the first organization node set can determine the first event processing service for processing the alliance chain business event upon receiving any of the alliance chain business events, and send the alliance chain business event to the node where the first event processing service is deployed, so that the node processes the alliance chain business event through the first event processing service.
[0011] Optionally, the organization trusted service includes a routing service, and a plurality of event processing services for processing target events;
[0012] Based on the routing service, each node in the first organization node set can respond to the target event, determine a second event processing service from the multiple event processing services whose resource occupancy rate is less than the first resource occupancy rate threshold according to the status information of the multiple event processing services, and send the target event to the node where the second event processing service is deployed, so that the node processes the target event through the second event processing service.
[0013] Optionally, the organization trusted service includes a data storage service and a plurality of accounting services;
[0014] When a node in the first organization node set receives a new block generated by a node in the sorting node set, it is able to determine a target accounting service from the multiple accounting services, the target accounting service is used to verify the transaction data in the block, and the data storage service is used to save the block and add it to the blockchain stored in the first organization node set when the target accounting service successfully verifies the transaction data.
[0015] Optionally, the organizational trusted service includes one or more endorsement services;
[0016] When a node in the first organization node set receives a transaction request, it can endorse the transaction request based on the one or more endorsement services so that the node sends the endorsement result of the transaction request to the node corresponding to the transaction request.
[0017] Optionally, the organization trusted service includes a data storage service and one or more query services;
[0018] When a node in the first organization node set receives a data query request, it can call the data storage service through the one or more query services to obtain the data information corresponding to the data query request, so that the node can send the data information to the node corresponding to the data query request.
[0019] Optionally, the organization trusted service includes a resource scheduling service;
[0020] The resource scheduling service is used to obtain status information of each service included in the organization trusted service, and adjust the services included in the organization trusted service according to the status information of each service.
[0021] Optionally, the resource scheduling service is specifically used to regenerate the service when the status information of the service included in the organization's trusted service indicates that the service is in a downtime state.
[0022] Optionally, the resource scheduling service is specifically used to generate one or more services of the target type when the resource occupancy rate of the service of the target type in the state information representing the organization's trusted service is greater than a second resource occupancy rate threshold; or,
[0023] In the state information representing the organization's trusted service, when the resource occupancy rate of a target type of service is less than a third resource occupancy rate threshold, one or more services of the target type are deregistered, and the third resource occupancy rate threshold is less than the second resource occupancy rate threshold.
[0024] Optionally, the resource scheduling service is specifically used to perform one or more of the following operations:
[0025] Adjusting the deployment location of the query service in the organization's trusted service to an input / output I / O intensive node in the first organization's node set;
[0026] The deployment location of the endorsement service in the organization's trusted service is adjusted to a central processing unit (CPU) intensive node in the first organization's node set.
[0027] Optionally, the data storage service includes a file storage module and an account information maintenance module.
[0028] The file storage module is used to, in response to successful verification of the transaction data, save and add the block to the blockchain stored by the first set of organization nodes;
[0029] The account book information maintenance module is used to establish an association relationship between the identity ID of each transaction data in each block saved by the file storage module and the storage address information of the transaction data, and save each of the association relationships.
[0030] According to a second aspect of an embodiment of the present disclosure, a method for a consortium chain system is provided, which is applied to the consortium chain system described in any one of the first aspects above, and the method includes:
[0031] The first node in the first organization node set determines a target endorsement service from one or more endorsement services included in the organization trusted service in response to receiving a transaction request sent by a second node in the organization node set;
[0032] The first node endorses the transaction through the target endorsement service to obtain an endorsement result;
[0033] The first node sends the endorsement result to the second node.
[0034] According to a third aspect of an embodiment of the present disclosure, a method for a consortium chain system is provided, which is applied to the consortium chain system described in any one of the first aspects above, and the method includes:
[0035] The third node in the first set of organization nodes, in response to receiving a new block generated by a node in the set of sorting nodes, determines a target accounting service from a plurality of accounting services included in the organization trusted service;
[0036] The third node verifies the transaction data in the block through the target accounting service;
[0037] When the transaction data is successfully verified, the third node saves the block and adds it to the blockchain stored by the first organization node set through the data storage service included in the organization's trusted service.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a method for a consortium chain system is provided, which is applied to the consortium chain system described in any one of the first aspects above, and the method includes:
[0039] The fourth node in the first organization node set determines a target query service from a plurality of query services included in the organization trusted service in response to receiving a data query request sent by a fifth node in the organization node set;
[0040] The fourth node calls the data storage service included in the organization trusted service through the target query service to obtain data information corresponding to the data query request;
[0041] The fourth node sends the data information to the fifth node.
[0042] In the above technical solution, the organization node sets corresponding to each organization in the alliance chain system can conduct alliance chain business in a decentralized manner, thereby maintaining the trust system between the organizations in the alliance chain network. In addition, in the first organization node set, each node can execute the business logic corresponding to the first organization node set in a centralized manner, thereby improving business processing efficiency. For example, when storing the ledger, the nodes in the first organization node set can improve the storage efficiency of the ledger data by centralizing the storage control of the ledger.
[0043] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0045] Figure 1 It is a schematic diagram of a consortium chain system shown in an exemplary embodiment of the present disclosure.
[0046] Figure 2 It is a schematic diagram of an organization trusted service shown in an exemplary embodiment of the present disclosure.
[0047] Figure 3 It is a flowchart of a method for a consortium chain system shown in an exemplary embodiment of the present disclosure.
[0048] Figure 4 It is a flowchart of a method for a consortium chain system shown in an exemplary embodiment of the present disclosure.
[0049] Figure 5 It is a flowchart of a method for a consortium chain system shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0050] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0051] Before introducing the alliance chain system and the method for the alliance chain system of the present disclosure, the application scenario of the present disclosure is first introduced. The various embodiments provided by the present disclosure can be applied to the alliance chain scenario. Among them, the alliance chain network can usually include multiple organizations, each of which can run a corresponding peer node, and each peer node stores a copy of the account book in the alliance chain network. At the same time, each peer node also needs to implement functions such as accounting, query, and endorsement, which consumes more computing resources and storage resources of the organization, but does not improve the system performance.
[0052] To this end, the present disclosure provides a consortium chain system, including a sorting node set and multiple organization node sets.
[0053] The nodes in the sorting node set are used to generate blocks. Each of the organization node sets may correspond to an organization, and each of the organization node sets may include multiple nodes. In a specific implementation, these nodes may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (such as a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone, a wearable computing device (for example, a smart watch, smart glasses, etc.) or other types of mobile devices, or a stationary computing device such as a desktop computer, a server, and the like.
[0054] In addition, the alliance chain business can be executed in a decentralized mode between the node sets of each organization. For example, transactions initiated in the alliance chain system can be saved in the blockchain ledger after endorsement by the endorsement node and verification by the accounting node, thereby maintaining the trust system between the organizations.
[0055] The multiple organization node sets also include a first organization node set, and the first organization node set deploys an organization trusted service. In a specific implementation, the first organization node set can be any organization node set in the multiple organization node sets. Figure 1 A schematic diagram of a consortium chain system is shown in Figure 1 In the example of , the alliance chain system may include a first organization node set 1 and a first organization node set 2 (not shown in the figure). The first organization node set 1 may correspond to organization 1, and the first organization node set 1 may also deploy an organization trusted service 1; the first organization node set 2 may correspond to organization 2, and the first organization node set 2 may also deploy an organization trusted service 2.
[0056] Furthermore, based on the organization trusted service, each node in the first organization node set can execute the business logic corresponding to the first organization node set in a centralized mode.
[0057] For example, in one possible implementation, the organization trusted service includes an event processing service for processing different alliance chain business events, and a routing service deployed on each node in the first organization node set.
[0058] The event processing service may include, for example, one or more accounting services, one or more endorsement services, one or more query services, etc. Each of the event processing services may be deployed in each node device in the first organization node set.
[0059] Based on the routing service, each node in the first organization node set can determine the first event processing service for processing the alliance chain business event upon receiving any of the alliance chain business events, and send the alliance chain business event to the node where the first event processing service is deployed, so that the node processes the alliance chain business event through the first event processing service.
[0060] For example, when a node in the first organization node set receives a consortium chain business event, it can determine the event type of the consortium chain business event based on the information of the consortium chain business event. When the event type of the consortium chain business event is a transaction proposal, the node can forward the consortium chain business event to the corresponding node deployed with the endorsement service, so that the node processes the consortium chain business event through the deployed endorsement service.
[0061] In some possible implementations, the organization trusted service further includes a plurality of endorsement services;
[0062] When a node in the first organization node set receives a transaction request, it can endorse the transaction request based on the multiple endorsement services so that the node sends the endorsement result of the transaction request to the node corresponding to the transaction request.
[0063] For example, the multiple endorsement services can be deployed in multiple nodes. Therefore, when a node in the first organization node set receives multiple endorsement business events, each of the endorsement business events can be forwarded to the corresponding node deployed with the endorsement service, so that multiple endorsement business events can be processed in parallel through multiple endorsement services, thereby improving the processing efficiency of alliance chain transactions. Of course, in some implementation scenarios, when a node in the first organization node set receives an endorsement business event, it can also determine the target endorsement service from the multiple endorsement services, so that the node endorses the transaction request based on the target endorsement service, thereby obtaining an endorsement result. In addition, the node can also send the endorsement result of the transaction request to the node corresponding to the transaction request, thereby completing the transaction.
[0064] Reference Figure 1 In another possible implementation, the organization trusted service includes a data storage service and a plurality of accounting services. The plurality of accounting services may be deployed in a plurality of nodes in the first organization node set, for example.
[0065] When a node in the first organization node set receives a new block generated by a node in the sorting node set, it is possible to determine a target accounting service from the multiple accounting services, and the target accounting service is used to verify the transaction data in the block. By way of example, the nodes in the first organization node set can, for example, obtain a newly generated block from the sorting node, and determine a target accounting service from the multiple accounting services, and then verify the transaction data in the block based on the node where the target accounting service is deployed. The target accounting service can be determined, for example, based on the number of task loads of each accounting service and the status information of the node device where the accounting service is deployed, and the status information can be, for example, the CPU (Central Processing Unit) occupancy rate.
[0066] The data storage service may be deployed, for example, on a node in the first set of organization nodes, and is used to save and add the block to the blockchain stored in the first set of organization nodes when the target accounting service successfully verifies the transaction data. For example, after the node deploying the target accounting service successfully verifies the transaction data in the block, it may call the data storage service to save and add the block to the blockchain stored in the first set of organization nodes.
[0067] In some possible implementations, the data storage service also includes a file storage module and a ledger information maintenance module, and the file storage module is used to save and add the block to the blockchain stored by the first organization node set in response to successful verification of the transaction data.
[0068] For example, the file storage module can use a distributed file system to store blockchain ledger data. Through this storage method, blockchain ledger data can be dynamically expanded, thereby alleviating the data expansion phenomenon in the storage of ledger data. In some embodiments, the file storage module can also generate one or more data copies for the stored blockchain ledger data and save them to different storage devices. For example, three data copies of the blockchain ledger data can be generated, thereby improving data security while ensuring system performance.
[0069] The file storage module also includes a ledger information maintenance module, which is used to establish an association relationship between the ID (Identity) of each transaction data in each block saved by the file storage module and the storage address information of the transaction data, and save each of the association relationships.
[0070] For example, the account information maintenance module may use a distributed key-value database to store transaction data index information. The transaction ID and account ID may be used as keys, and the value may correspond to the physical address, file pointer, address offset, and other information of the account file (e.g., block) in the file storage module. The account information maintenance module may maintain the meta information of the transaction data (e.g., file pointer, address offset, and other information), and store the transaction data through the file storage module.
[0071] In this way, when a query request is received, the ledger information maintenance module can be accessed through the transaction ID and ledger ID to obtain the pointer and offset of the ledger file, and then the corresponding ledger file can be accessed for query or write operations, thereby increasing the query speed.
[0072] In response to the query request, in a possible implementation, the organization trusted service also includes a data storage service and one or more query services. The function of the data storage service is described in the above embodiment. For the sake of brevity, this disclosure will not elaborate on it here. The query service can be deployed in one or more nodes in the first organization node set, for example.
[0073] When a node in the first organization node set receives a data query request, it can call the data storage service through the one or more query services to obtain the data information corresponding to the data query request, so that the node can send the data information to the node corresponding to the data query request.
[0074] For example, when a node in the first organization node set receives multiple query business events, each of the query business events can be forwarded to a corresponding node deployed with a query service, so that multiple query business events can be processed in parallel through multiple query services, thereby improving the processing efficiency of data query events. Of course, in some implementation scenarios, when a node in the first organization node set receives a query business event, a target query service can also be determined from the multiple query services, so that the node can query the transaction request based on the target query service to obtain a query result. In addition, the node can also send the query result of the transaction request to the node corresponding to the data query request, thereby completing the transaction.
[0075] In the above technical solution, the organization node sets corresponding to each organization in the alliance chain system can conduct alliance chain business in a decentralized manner, thereby maintaining the trust system between the organizations in the alliance chain network. In addition, in the first organization node set, each node can execute the business logic corresponding to the first organization node set in a centralized manner, thereby improving business processing efficiency.
[0076] Reference Figure 2 A schematic diagram of an organization trusted service is shown. In some possible implementations, the organization trusted service also includes a routing service and a plurality of event processing services for processing target events.
[0077] The routing service can be deployed in each node in the first set of organization nodes, for example. In this way, each node in the first set of organization nodes can respond to the target event based on the routing service, determine a second event processing service whose resource occupancy rate is less than the first resource occupancy rate threshold from the multiple event processing services according to the status information of the multiple event processing services, and send the target event to the node where the second event processing service is deployed, so that the node processes the target event through the second event processing service.
[0078] For example, the node can implement a reverse proxy function based on the routing service, that is, when the node receives the target event, it can route the target event to a node where a service corresponding to the type of the target event is deployed according to the type of the target event (such as endorsement, data query, etc.). Of course, since the number of services of the same type can also be multiple, in this case, the node can also determine a second event processing service whose resource occupancy rate is less than the first resource occupancy rate threshold from the multiple event processing services of the same type, and send the target event to the node where the second event processing service is deployed, so that the node processes the target event through the second event processing service. Among them, the resource occupancy rate can be computing resources, storage resources, etc. according to application requirements, and the present disclosure does not limit this.
[0079] In addition, in some implementation scenarios, the second event processing service can also be determined from multiple event processing services of the same type according to the number of service tasks (for example, the target event is evenly distributed to each service), so as to achieve load balancing. Alternatively, the second event processing service can also be determined from multiple event processing services of the same type according to both the resource occupancy rate and the number of service tasks, which is not limited in this disclosure.
[0080] It is worth noting that, in some embodiments, the routing service may also be deployed in a node in the first set of organization nodes, so as to receive each target event and centrally manage each target event.
[0081] For status information of each service, refer to Figure 2 In a possible implementation, the organization trusted service also includes a resource scheduling service, and the resource scheduling service is used to obtain status information of each service included in the organization trusted service.
[0082] The status information may include, for example, resource occupancy rate corresponding to each service, whether the service is running, etc. The organization trusted service may also save the status information of each service to the registration center so that the routing service can obtain the status information of each service.
[0083] In addition, the resource scheduling service may also adjust the services included in the organization trusted service according to the status information of each service.
[0084] Specifically, in one embodiment, the resource scheduling service is specifically used to regenerate the service when the status information of the service included in the organization's trusted service indicates that the service is in a downtime state. For example, when the service operation indicator of the endorsement service indicates that the endorsement service is downtime, the resource scheduling service can generate an endorsement service, thereby restoring the function of the endorsement service, thereby ensuring the stable operation of the system.
[0085] In another embodiment, the resource scheduling service is specifically used to generate one or more services of the target type when the resource occupancy rate of the service of the target type is greater than a second resource occupancy rate threshold in the state information representing the organization's trusted service. The resource occupancy rate of the service of the target type may be, for example, the average resource occupancy rate of the service of the target type, and the second resource occupancy rate threshold may be set according to application requirements, which is not limited in the present disclosure. Still taking the endorsement service as an example, if the resource occupancy rate of the endorsement service in the first organization node set is greater than the second resource occupancy rate threshold, it can be determined that the endorsement service in the first organization node set has a performance bottleneck. In this case, one or more endorsement services can be generated to improve the processing efficiency of endorsement transactions.
[0086] Of course, in another embodiment, the resource scheduling service can also be specifically used to cancel one or more services of the target type in the organization trusted service represented by the status information, so as to reduce resource occupancy when the resource occupancy rate of the target type service (for example, the average resource occupancy rate within a preset time period) is less than a third resource occupancy rate threshold. The third resource occupancy rate threshold is less than the second resource occupancy rate threshold.
[0087] In another embodiment, the resource scheduling service may be specifically configured to perform one or more of the following operations:
[0088] The deployment location of the query service in the organization's trusted service is adjusted to an input / output I / O intensive node in the first organization's node set. Since the query service involves more I / O operations and occupies a larger cache, the query service can be scheduled to an I / O intensive device.
[0089] The deployment location of the endorsement service in the organization's trusted service is adjusted to a CPU-intensive node in the first organization's node set. Since endorsement nodes involve fewer I / O operations and more logical operations, endorsement nodes can be scheduled to CPU-intensive devices.
[0090] In this way, by adjusting the deployment location of each service through the resource scheduling service, the utilization rate of system resources can be improved.
[0091] The present disclosure also provides a method for a consortium chain system, which is applied to the consortium chain system provided by the present disclosure, referring to Figure 3 A flowchart of a method for a consortium chain system is shown, the method comprising:
[0092] S31, a first node in the first organization node set determines a target endorsement service from one or more endorsement services included in the organization trusted service in response to receiving a transaction request sent by a second node in the organization node set.
[0093] Wherein, the first node may be any node in the first organization node set, and the transaction request may be one or more. When the organization trusted service includes an endorsement service, the first node may determine the endorsement service as the target endorsement service. When the organization trusted service includes multiple endorsement services, the first node may determine the target endorsement service from the multiple endorsement services for each transaction request. For example, in some implementation scenarios, the target endorsement service may be determined from the multiple endorsement services included in the organization trusted service based on the routing service included in the organization trusted service. Wherein, for the method of determining the event processing service through the routing service, please refer to the above-mentioned description of the embodiment of the alliance chain system, which will not be elaborated in this disclosure.
[0094] S32, the first node endorses the transaction through the target endorsement service to obtain an endorsement result. For example, the first node may send each transaction request to a node where the target endorsement service corresponding to the transaction request is deployed, thereby endorsing the transaction by calling the node to obtain an endorsement result.
[0095] In addition, in S33, the first node may also send the endorsement result to the second node, thereby completing the transaction.
[0096] By adopting the above technical solution, an organization can deploy multiple endorsement services to process multiple endorsement business events in parallel, thereby improving the processing efficiency of alliance chain transactions.
[0097] The present disclosure also provides a method for a consortium chain system, which is applied to the consortium chain system provided by the present disclosure, referring to Figure 4 A flowchart of a method for a consortium chain system is shown, the method comprising:
[0098] S41, a third node in the first organization node set generates a new block in response to receiving a request from a node in the sorting node set to determine a target accounting service from a plurality of accounting services included in the organization's trusted service.
[0099] Among them, the third node can be any node in the first organization node set, and when the organization trusted service includes an accounting service, the third node can determine the accounting service as the target accounting service. When the organization trusted service includes multiple accounting services, the third node can determine the target accounting service from the multiple accounting services. For example, in some implementation scenarios, the target accounting service can be determined from the multiple accounting services included in the organization trusted service based on the routing service included in the organization trusted service. For the method of determining the event processing service through the routing service, please refer to the above-mentioned description of the embodiment of the alliance chain system, which will not be repeated in this disclosure.
[0100] S42, the third node verifies the transaction data in the block through the target accounting service. For example, the third node may send a data verification request to a node where the target accounting service is deployed, thereby verifying the transaction data in the block by calling the node.
[0101] S43, when the transaction data is successfully verified, the third node saves the block and adds it to the blockchain stored by the first organization node set through the data storage service included in the organization's trusted service.
[0102] In this way, when the transaction data is successfully verified, any node in the first set of organization nodes can save the block through the data storage service and add it to the blockchain stored by the first set of organization nodes. Compared with the method of storing each peer node separately, storage efficiency can be improved.
[0103] The present disclosure also provides a method for a consortium chain system, which is applied to the consortium chain system provided by the present disclosure, referring to Figure 5A flowchart of a method for a consortium chain system is shown, the method comprising:
[0104] S51, the fourth node in the first organization node set determines a target query service from a plurality of query services included in the organization trusted service in response to receiving a data query request sent by the fifth node in the organization node set.
[0105] Wherein, the fourth node may be any node in the first organization node set, and the data query request may be one or more. When the organization trusted service includes a query service, the fourth node may determine the query service as the target query service. When the organization trusted service includes multiple query services, the fourth node may determine the target query service from the multiple query services for each data query request. For example, in some implementation scenarios, the target query service may be determined from the multiple query services included in the organization trusted service based on the routing service included in the organization trusted service. Wherein, for the method of determining the event processing service through the routing service, please refer to the above-mentioned description of the embodiment of the alliance chain system, which will not be elaborated in this disclosure.
[0106] S52, the fourth node calls the data storage service included in the organization trusted service through the target query service to obtain the data information corresponding to the data query request. For example, the fourth node can send each transaction request to the node where the target query service corresponding to the data query request is deployed, so as to obtain the data information corresponding to the data query request by calling the data storage service through the node.
[0107] In this way, in S53, the fourth node may also send the data information to the fifth node, thereby completing the transaction.
[0108] By adopting the above technical solution, the organization can deploy multiple data query services to process multiple data query requests in parallel, thereby improving the processing efficiency of alliance chain transactions.
[0109] The present disclosure also provides a computer program product, which includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing any of the above-mentioned methods for a consortium chain system when executed by the programmable device.
[0110] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0111] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0112] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A consortium chain system, characterized in that: It includes a sorting node set and multiple organization node sets, each node in the organization node set belongs to the same organization, and the nodes in the sorting node set are used to generate blocks, wherein: The alliance chain business is executed in a decentralized mode between the sets of organization nodes; A first organization node set among the multiple organization node sets is deployed with an organization trusted service, the first organization node set is any organization node set among the multiple organization node sets, and the organization trusted service is used for executing the business logic corresponding to the first organization node set in a centralized mode between the nodes in the first organization node set; The organization's trusted services include data storage services and multiple accounting services; When a node in the first organization node set receives a new block generated by a node in the sorting node set, it is able to determine a target accounting service from the multiple accounting services, the target accounting service is used to verify the transaction data in the block, and the data storage service is used to save the block and add it to the blockchain stored in the first organization node set when the target accounting service successfully verifies the transaction data.
2. The alliance chain system according to claim 1, characterized in that: The organization trusted service includes an event processing service for processing different alliance chain business events, and a routing service deployed on each node in the first organization node set; Based on the routing service, each node in the first organization node set can determine the first event processing service for processing the alliance chain business event upon receiving any of the alliance chain business events, and send the alliance chain business event to the node where the first event processing service is deployed, so that the node processes the alliance chain business event through the first event processing service.
3. The alliance chain system according to claim 1, characterized in that: The organization trusted service includes a routing service and a plurality of event processing services for processing target events; Based on the routing service, each node in the first organization node set can respond to the target event, determine a second event processing service from the multiple event processing services whose resource occupancy rate is less than the first resource occupancy rate threshold according to the status information of the multiple event processing services, and send the target event to the node where the second event processing service is deployed, so that the node processes the target event through the second event processing service.
4. The alliance chain system according to claim 1, characterized in that: The organizational trusted service includes one or more endorsement services; When a node in the first organization node set receives a transaction request, it can endorse the transaction request based on the one or more endorsement services so that the node sends the endorsement result of the transaction request to the node corresponding to the transaction request.
5. The alliance chain system according to claim 1, characterized in that: The organization trusted service includes a data storage service and one or more query services; When a node in the first organization node set receives a data query request, it can call the data storage service through the one or more query services to obtain the data information corresponding to the data query request, so that the node can send the data information to the node corresponding to the data query request.
6. The alliance chain system according to claim 4 or 5, characterized in that: The organization trusted service also includes resource scheduling service; The resource scheduling service is used to obtain status information of each service included in the organization trusted service, and adjust the services included in the organization trusted service according to the status information of each service.
7. The alliance chain system according to claim 6, characterized in that: The resource scheduling service is specifically used to regenerate the service when the status information of the service included in the organization's trusted service indicates that the service is in a downtime state.
8. The alliance chain system according to claim 6, characterized in that: The resource scheduling service is specifically used to generate one or more services of the target type when the resource occupancy rate of the service of the target type in the organization trusted service represented by the state information is greater than the second resource occupancy rate threshold; or, In the state information representing the organization's trusted service, when the resource occupancy rate of a target type of service is less than a third resource occupancy rate threshold, one or more services of the target type are deregistered, and the third resource occupancy rate threshold is less than the second resource occupancy rate threshold.
9. The alliance chain system according to claim 6, characterized in that: The resource scheduling service is specifically used to perform one or more of the following operations: Adjusting the deployment location of the query service in the organization's trusted service to an input / output I / O intensive node in the first organization's node set; The deployment location of the endorsement service in the organization's trusted service is adjusted to a central processing unit (CPU) intensive node in the first organization's node set.
10. The alliance chain system according to claim 1 or 5, characterized in that: The data storage service includes a file storage module and an account information maintenance module. The file storage module is used to, in response to successful verification of the transaction data, save and add the block to the blockchain stored by the first set of organization nodes; The account book information maintenance module is used to establish an association relationship between the identity ID of each transaction data in each block saved by the file storage module and the storage address information of the transaction data, and save each of the association relationships.
11. A method for a consortium chain system, characterized in that: Applied to the alliance chain system according to any one of claims 1 to 10, the method comprising: The first node in the first organization node set determines a target endorsement service from one or more endorsement services included in the organization trusted service in response to receiving a transaction request sent by a second node in the organization node set; The first node endorses the transaction through the target endorsement service to obtain an endorsement result; The first node sends the endorsement result to the second node.
12. A method for a consortium chain system, characterized in that: Applied to the alliance chain system according to any one of claims 1 to 10, the method comprising: The third node in the first set of organization nodes, in response to receiving a new block generated by a node in the set of sorting nodes, determines a target accounting service from a plurality of accounting services included in the organization trusted service; The third node verifies the transaction data in the block through the target accounting service; When the transaction data is successfully verified, the third node saves the block and adds it to the blockchain stored by the first organization node set through the data storage service included in the organization's trusted service.
13. A method for a consortium chain system, characterized in that: Applied to the alliance chain system according to any one of claims 1 to 10, the method comprising: The fourth node in the first organization node set determines a target query service from a plurality of query services included in the organization trusted service in response to receiving a data query request sent by a fifth node in the organization node set; The fourth node calls the data storage service included in the organization trusted service through the target query service to obtain data information corresponding to the data query request; The fourth node sends the data information to the fifth node.
