Block chain data processing method and device, readable storage medium and program product
By utilizing the strategy matching and price difference filling mechanism between multiple sub-chains in the blockchain, the problem of business data being on the chain when blockchain resources are tight is solved, and efficient data processing and cost optimization are achieved.
Patent Information
- Application Number
- CN202410954038.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-12
AI Technical Summary
When blockchain resources are tight, it is difficult to meet the requirements for business data to be opened, and the existing technology cannot effectively process high-priority business data.
Through the strategy matching and price difference filling mechanism between multiple sub-chains in the blockchain, the business data is sent to the blockchain sub-chain with corresponding over-chain strategies according to the over-chain requirements of the over-chain, ensuring that the data can be stored differently Required to be on the link.
It can still meet the requirements of business data when blockchain resources are tight, improve the efficiency and speed of data processing, and reduce transaction fees.
Smart Images

Figure CN118939725A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a method, device, readable storage medium, and program product for processing blockchain data. Background Art
[0002] Blockchain technology is a technology in which several computing devices jointly participate in the distributed ledger and jointly maintain a complete distributed intelligent database. Blockchain technology has been widely used because of its decentralization, openness and transparency, each computing device can participate in database records, and each computing device can quickly synchronize data and execute consistency. Since each transaction data on the blockchain needs to be broadcast and verified in the blockchain node, the blockchain node has a lot of communication and computing work, which makes the processing resources of the blockchain node relatively tight. In related technologies, business data is processed by the priority of the transaction fee of business data. This processing method is difficult to meet the requirements of business data on the chain when blockchain resources are tight. Summary of the invention
[0003] The embodiments of the present application provide a blockchain data processing method, device, readable storage medium and program product to solve the problem that it is difficult to meet the requirements for uploading business data to the chain when blockchain resources are tight.
[0004] In a first aspect, an embodiment of the present application provides a method for processing blockchain data, which is executed by a first node in a blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the method includes:
[0005] Obtain business data that needs to be stored on the chain;
[0006] According to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the business data is sent to the block sub-chain of the blockchain.
[0007] Optionally, sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain includes:
[0008] Matching the first on-chain requirement of the business data with the on-chain strategies corresponding to the at least two block subchains;
[0009] When a first on-chain strategy that can meet the first on-chain requirement is matched, sending the business data to a first block subchain corresponding to the first on-chain strategy;
[0010] If the first on-chain strategy that can meet the first on-chain requirement is not matched, the business data is sent to a default block sub-chain in the blockchain, and the default block sub-chain corresponds to a default on-chain strategy. The default on-chain strategy includes on-chain processing of the business data based on the arrangement order of the transaction processing time corresponding to the business data.
[0011] Optionally, after sending the business data to the first block subchain corresponding to the first on-chain strategy, the method further includes:
[0012] When the first on-chain requirement of the business data is updated to the second on-chain requirement, the business data is sent to the second block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0013] Optionally, the method of the embodiment of the present application further includes:
[0014] Determine the fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0015] According to the fee difference, an indication message is sent, wherein the indication message is used to instruct the service party storing the service data to make up the fee difference.
[0016] Optionally, the method of the embodiment of the present application further includes:
[0017] Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0018] According to the on-chain strategy and the registration information, the block sub-chain to be added is added to the blockchain.
[0019] Optionally, before obtaining the business data to be stored on the chain, the method further includes:
[0020] Obtaining the qualification to execute the target function through the token pledge process and the node competition process, wherein the target function includes the first function, or includes the first function and the second function;
[0021] The first function includes sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain;
[0022] The second function includes, when the first on-chain requirement of the business data stored in the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0023] The embodiment of the present application further provides a method for processing blockchain data, which is executed by a second node in the blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the method includes:
[0024] Acquire the business data in the blockchain subchain, wherein the business data is sent by the first node based on the on-chain requirement of the business data and the on-chain strategy corresponding to the blockchain subchain;
[0025] When it is detected that the first on-chain requirement of business data of the first block sub-chain is updated to the second on-chain requirement, the business data is sent to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0026] Optionally, the method of the embodiment of the present application further includes:
[0027] Determine the fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0028] According to the fee difference, an indication message is sent, wherein the indication message is used to instruct the service party storing the service data to make up the fee difference.
[0029] Optionally, the method of the embodiment of the present application further includes:
[0030] Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0031] According to the on-chain strategy and the registration information, the block subchain to be added is added to the blockchain.
[0032] Optionally, the method of the embodiment of the present application further includes:
[0033] Obtain the qualification to perform the second function through the token pledge process and node competition process;
[0034] Among them, the second function includes, when it is detected that the first on-chain requirement of the business data of the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0035] The embodiment of the present application further provides a blockchain data processing device, which is applied to a first node in a blockchain for execution, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the device includes:
[0036] The first acquisition module is used to acquire business data that needs to be stored on the chain;
[0037] The first processing module is used to send the business data to the block sub-chain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain.
[0038] The embodiment of the present application further provides a blockchain data processing device, which is applied to a second node in a blockchain for execution, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the device includes:
[0039] A second acquisition module is used to acquire business data in the block subchain, wherein the business data is sent by the first node based on the on-chain requirements of the business data and the on-chain strategy corresponding to the block subchain;
[0040] The second processing module is used to send the business data to the second block subchain according to the second on-chain requirement and the on-chain strategy of the block subchain when it is detected that the first on-chain requirement of the business data of the first block subchain is updated to the second on-chain requirement, wherein the second on-chain strategy corresponding to the second block subchain can meet the second on-chain requirement.
[0041] An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the blockchain data processing method as described above when executed by the processor.
[0042] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for processing blockchain data as described above are implemented.
[0043] An embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the blockchain data processing method as described above.
[0044] In an embodiment of the present application, business data that needs to be stored on the chain is obtained; according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the business data is sent to the block sub-chain of the blockchain. Since different block sub-chains correspond to different on-chain strategies, different data on-chain strategies can meet different on-chain requirements. Therefore, by sending the business data to the block sub-chain through the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the purpose of sending the business data to the block sub-chain with different on-chain strategies according to the differentiated storage requirements of the business data can be achieved, thereby meeting the on-chain requirements of each business data. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 A flowchart of a method for processing blockchain data provided by an embodiment of the present application is shown;
[0047] Figure 2 One of the schematic diagrams showing a blockchain for implementing the method of the embodiment of the present application;
[0048] Figure 3 A second schematic diagram showing a blockchain for implementing the method of the embodiment of the present application;
[0049] Figure 4 A second flowchart diagram showing a method for processing blockchain data provided in an embodiment of the present application;
[0050] Figure 5 One of the module schematic diagrams showing the blockchain data processing device provided in the embodiment of the present application;
[0051] Figure 6 A second schematic diagram of a module showing a blockchain data processing device provided in an embodiment of the present application;
[0052] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0053] In order to make the technical problems, technical solutions and advantages to be solved by the application clearer, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help fully understand the embodiments of the application. Therefore, it should be clear to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. In addition, for clarity and brevity, the description of known functions and structures has been omitted.
[0054] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0055] In various embodiments of the present application, it should be understood that the order of execution of the following processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. In addition, the terms "system" and "network" are often used interchangeably in this article.
[0056] like Figure 1 As shown, an embodiment of the present application provides a method for processing blockchain data, which is executed by a first node in a blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements. The method includes:
[0057] Step 101: Obtain the business data that needs to be stored on the chain.
[0058] Optionally, the business data includes transaction information, user rights, order records and other data.
[0059] In the embodiment of the present application, the business system obtains business data after performing business processing and sends the business data to the above-mentioned first node.
[0060] Step 102: According to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block chain, the business data is sent to the block chain of the blockchain.
[0061] Optionally, the first uplink requirement includes at least one of the following:
[0062] Item A1: Confirmation time requirements for on-chain data.
[0063] For example, the confirmation time requirement for the on-chain data is to upload the business data to the chain and complete the transaction confirmation within 1 minute.
[0064] Item A2: Requirements for storage space occupied by on-chain data.
[0065] For example, the storage space requirement for the uplink data is no less than 300 bytes.
[0066] Item A3: Security level requirements for on-chain data.
[0067] The security level requirements include whether ring signatures or multi-signatures are required.
[0068] Item A4: Transaction fee requirements for on-chain data.
[0069] For example, the transaction fee is required to be no more than 0.1 token.
[0070] Optionally, the above-mentioned chain-up strategy includes but is not limited to at least one of the following:
[0071] Item B1: Confirmation time of data uploaded to the chain.
[0072] For example, the confirmation time for on-chain data is 10 minutes.
[0073] Item B2: The on-chain data storage space that can be provided.
[0074] For example, the uplink data storage space that can be provided is 0-300 bytes.
[0075] Item B3: Security level of data on the chain.
[0076] For example, the security level of on-chain data is such that on-chain data transactions do not require ring signatures and multi-signature mechanisms.
[0077] Item B4: Transaction fees for on-chain data.
[0078] For example, the transaction fee for on-chain data is 0.01 token.
[0079] In an embodiment of the present application, a smart contract for a business data distribution strategy is written in advance, and the smart contract distributed based on the strategy is stored in the full node of the blockchain. The above-mentioned data distribution strategy is the chain strategy of each block sub-chain.
[0080] In an embodiment of the present application, business data that needs to be stored on the chain is obtained; according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the business data is sent to the block sub-chain of the blockchain. Since different block sub-chains correspond to different on-chain strategies, different data on-chain strategies can meet different on-chain requirements. Therefore, by sending the business data to the block sub-chain through the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the purpose of sending the business data to the block sub-chain with different on-chain strategies according to the differentiated storage requirements of the business data can be achieved, thereby meeting the on-chain requirements of each business data.
[0081] The structure of the blockchain of the embodiment of the present application is described below.
[0082] The blockchain of the embodiment of the present application includes at least two block subchains, each of which corresponds to a distributed ledger. Figure 2 As shown, the blockchain includes two block subchains, block subchain 1-1 and block subchain 1-2, wherein block subchain 1-1 corresponds to distributed ledger 1, and block subchain 1-2 corresponds to distributed ledger 2. Each block subchain includes at least one accounting node, and the blockchain also includes a policy node and a conversion node, wherein the policy node is the first node mentioned above, and the conversion node is the second node mentioned above.
[0083] Among them, 1) Accounting nodes: They are interconnected through the network and compete for accounting rights through the consensus process. After the nodes that obtain accounting rights generate new blocks, the full nodes verify whether they meet the rules. The new blocks that pass the verification are added to the local distributed ledger of the full node. If the verification fails, the full node refuses to add the new blocks to the local ledger. In this application, there are separate accounting nodes for distributed ledger 1 and distributed ledger 2.
[0084] 2) Distributed Ledger 1 and Distributed Ledger 2: These are distributed ledger blocks used by blockchain to store data. Each blockchain full node locally stores a complete copy of the distributed ledger, and new blocks that pass verification are added to the local copy. Smart contract codes are also stored in the distributed ledger and run based on virtual machines deployed on blockchain full nodes.
[0085] 3) Full node: The blockchain full node stores the full amount of data of the blockchain distributed ledger, verifies whether the new blocks generated by the accounting node meet the rules, and adds the verified new blocks to the distributed ledger stored by the full node. In addition, the newly written smart contract code will also be stored in the full node and run through the virtual machine deployed on the full node. In this application, the full node stores multiple ledger data. Taking two ledgers as an example, the data of distributed ledgers 1 and 2 are all stored in the full node, and the accounting nodes corresponding to distributed ledgers 1 and 2 can obtain their respective ledger data from the full node.
[0086] 4) Policy nodes: The business data that the business system needs to upload to the chain is first submitted to the policy node. The policy node caches the business data in the cache pool and distributes the data to the accounting nodes of different blockchain distributed ledgers according to different confirmation time requirements, storage size restrictions on the business data on the chain, and security level requirements (whether the data transaction on the chain requires ring signatures, multiple signatures, etc.). Different blockchain accounting nodes have their own consensus mechanisms, and different consensus mechanisms have different operating costs, security levels, transaction confirmation times, etc.
[0087] 5) Cache pool: The business data that the business system needs to upload to the chain is first submitted to the policy node. The policy node caches the business data in the policy node cache pool and distributes the data to blockchain accounting nodes that provide different policy levels based on the different policy requirements of the business data.
[0088] 6) Conversion nodes: Data stored in different blockchain distributed ledgers can also be converted based on changes in business requirements. Based on the price difference filling mechanism of smart contracts, the data models of different blockchain sub-chains are converted through conversion nodes, and the price difference filling and data storage conversion are completed based on different billing strategies.
[0089] Optionally, sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain includes:
[0090] Matching the first on-chain requirement of the business data with the on-chain strategies corresponding to the at least two block subchains;
[0091] When a first on-chain strategy that can meet the first on-chain requirement is matched, sending the business data to a first block subchain corresponding to the first on-chain strategy;
[0092] If the first on-chain strategy that can meet the first on-chain requirement is not matched, the business data is sent to a default block sub-chain in the blockchain, and the default block sub-chain corresponds to a default on-chain strategy. The default on-chain strategy includes on-chain processing of the business data based on the arrangement order of the transaction processing time corresponding to the business data.
[0093] In the embodiment of the present application, the business data that needs to be stored on the chain is cached in the cache pool of the policy node by calling the blockchain application programming interface (Application Programming Interface, API). Based on the chain requirements of the business data, the policy node obtains different chain strategies provided by each block subchain from the full node, and distributes the business data to different block subchains. The accounting node of the corresponding block subchain receives the business data distributed by the policy node and caches it locally. Based on the different consensus mechanisms of the accounting nodes of each blockchain, the accounting node that obtains the accounting right generates a new block with the business data, and distributes the new block in the blockchain network. After the full node completes the block rule verification of the new block, it saves a copy of the new block.
[0094] For example, it is assumed that the block subchain 1-1 is based on the Proof of Work (PoW) consensus mechanism, the data chain strategy is that the transaction confirmation time is 10 minutes, and it can provide chain data storage in the range of 0-300 bytes. The chain data transaction does not need to go through the ring signature and multi-signature mechanism, and the chain transaction fee is 0.01 token per transaction. Block subchain 1-2 is based on the PoS consensus mechanism, the data chain strategy is that the transaction confirmation time is 30 seconds, and it can provide chain storage of data in the range of 0-600 bytes. The chain data transaction needs to go through the ring signature and multi-signature mechanism, and the chain transaction fee is 0.05 token per transaction.
[0095] like Figure 3 As shown, block subchain 1-1 includes three accounting nodes, namely accounting node 1, and block subchain 1-2 includes three accounting nodes, namely accounting node 2. After the business system completes the business processing, assuming that the first business data needs to be uploaded to the chain and the transaction confirmation is completed within 1 minute, a transaction fee of no more than 0.1 tokens can be paid. After the business data is requested to the policy node through the API interface, the policy node obtains the corresponding on-chain strategies of the deployed smart contract block subchain 1-1 and block subchain 1-2 from the full node, and matches the block subchain 1-2 to meet the first on-chain requirements of the first business data. The first business data is distributed to the accounting node of the block subchain 1-2. The accounting node of the block subchain 1-2 receives the data related to the first business data and caches it locally. The three accounting nodes of the block subchain 1-2 compete for the accounting right through the Proof of Stake (PoS) consensus mechanism. Assuming that the accounting node 2 obtains this round of accounting rights, the first business data is generated into a new block and the new block is distributed in the blockchain network. The full node completes the block rule verification of the new block and saves a copy of the new block.
[0096] Assuming that the second business data only needs to be uploaded to the chain and the transaction confirmation is completed within 10 minutes, a transaction fee of no more than 0.03 tokens can be paid. After the business data is requested to the policy node through the API interface, the on-chain strategy of the block subchain 1-1 is matched to meet the on-chain requirements of the second business data. Then, the second business data is distributed to the block subchain 1-1. The three accounting nodes of the block subchain 1-1 compete for the accounting right through the PoW consensus mechanism. The accounting node that obtains the accounting right generates a new block for the second business data. The full node completes the block rule verification of the new block and saves a copy of the new block.
[0097] In the embodiment of the present application, new policy nodes and conversion nodes are added to the blockchain architecture. According to the differentiated storage requirements of business data, based on the different on-chain strategies of the blockchain distributed ledger, policy analysis and data distribution of business data are performed through policy nodes. The data distributed to different distributed ledgers can be processed in parallel based on their respective strategies, which effectively solves the problem that transactions that pay less handling fees cannot be processed and confirmed, and greatly speeds up the processing and confirmation of on-chain data.
[0098] Optionally, after sending the business data to the first block subchain corresponding to the first on-chain strategy, the method further includes:
[0099] When the first on-chain requirement of the business data is updated to the second on-chain requirement, the business data is sent to the second block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0100] In the embodiment of the present application, the transfer of blockchain data is supported. For example, if the business data that has been chained to the block subchain 1-1 has changed its chain requirements, such as higher requirements for the security level, the different chaining strategies provided by all blockchains can be obtained from the full node through the policy node or the conversion node, and the block subchain 1-2 that meets its updated chaining requirements is matched, and the above business data is sent to the block subchain 1-2. Specifically, the business data on the block subchain 1-1 is converted into the data model of the block subchain 1-2, and the converted data is uploaded to the block subchain 1-2. The accounting nodes of the block subchain 1-2 receive the converted data and compete for the accounting rights. The accounting nodes that obtain the accounting rights will transfer the data to generate a new block. After the full node completes the verification of the new block, it will store a copy of the new block locally.
[0101] Optionally, the method of the embodiment of the present application further includes:
[0102] Determine the fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0103] According to the fee difference, an indication message is sent, wherein the indication message is used to instruct the service party storing the service data to make up the fee difference.
[0104] In the embodiment of the present application, after the business data is transferred to the blockchain, the corresponding fee difference is determined. For example, after the above business data is transferred from the block subchain 1-1 to the block subchain 1-2, it is necessary to support the corresponding fee difference of 0.04 tokens.
[0105] Optionally, the method of the embodiment of the present application further includes:
[0106] Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0107] According to the on-chain strategy and the registration information, the block sub-chain to be added is added to the blockchain.
[0108] like Figure 3 As shown, in addition to the accounting node 1 in the block subchain 1-1 and the accounting node 2 in the block subchain 1-2, there are new blockchain nodes, such as accounting node 3, which also hopes to provide business data on-chain services based on different policy rules. The full node, policy node and conversion node of the above blockchain can provide basic block capabilities and open northbound interfaces for accounting nodes to access. Accounting node 3 can access and provide data on-chain services through the open northbound interface, thereby realizing the dynamic expansion of accounting nodes. Specifically, the basic policy configuration interface can be called to configure and chain the policy rules to the full node, and then the accounting node registration interface can be called to register accounting node 3 to the policy node and conversion node. After completing the policy configuration and node registration through the interface call, the policy node can be used to match the on-chain business data demands and the policy rules that can be provided by accounting node 3, and the business data that meets the rules can be distributed to accounting node 3 to complete the business data on-chain.
[0109] Optionally, before obtaining the business data to be stored on the chain, the method further includes:
[0110] Obtaining the qualification to execute the target function through the token pledge process and the node competition process, wherein the target function includes the first function, or includes the first function and the second function;
[0111] The first function includes sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain;
[0112] The second function includes, when the first on-chain requirement of the business data stored in the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0113] The first function mentioned above is the function possessed by the policy node, and the second function mentioned above is the function possessed by the conversion node.
[0114] In the embodiment of the present application, if a node in the blockchain wants to become a policy node or a conversion node, it needs to pledge a certain number of tokens to obtain the candidate qualification of becoming a policy node and a conversion node. The relevant nodes that obtain the candidate qualification need to compete to become the policy node or conversion node of this round based on the Delegated Proof of Stake (DPoS) consensus mechanism. The purpose of staking tokens is to prevent policy nodes and conversion nodes from doing evil, not distributing data according to the matched strategy, or not converting the data model according to the original data when transferring block data, thereby effectively ensuring that the distribution strategy is not tampered with and effectively ensuring the reliability of the distribution strategy.
[0115] Optionally, the above-mentioned policy nodes and conversion nodes provide on-chain strategy matching, data distribution and data model conversion services on the blockchain, and charge a corresponding proportion (e.g. 10%) of transaction fees by providing services.
[0116] In addition, the policy nodes and conversion nodes are also based on a peer-to-peer (P2P) distributed architecture. The business data received by the policy nodes are synchronized to other policy nodes through the P2P network. The original data and converted data models stored by all conversion nodes are also synchronized to other conversion nodes to ensure that the nodes that are qualified for this round of data distribution and data conversion can send the data to be processed to the blockchain accounting nodes of the corresponding on-chain strategies.
[0117] The above scheme of the embodiment of the present application adds a policy node and a conversion node in the blockchain architecture. The policy node caches the business data in the cache pool, and distributes the data to the accounting nodes of different blockchain distributed ledgers according to different confirmation time requirements, storage size restrictions of the on-chain business data, and security level requirements. Different blockchain accounting nodes have different consensus mechanisms, and different consensus mechanisms have different operating costs, security levels, etc. The data stored in different blockchain distributed ledgers can also be converted based on changes in business demands. Based on the price difference filling mechanism of the smart contract, the data models of different blockchains are converted through the conversion node, and the price difference filling and data storage conversion are completed based on different billing strategies. Through this mechanism, according to the differentiated storage demands of business data, based on the different storage strategies deployed by the blockchain distributed ledger smart contract, the policy analysis and data distribution of business data are performed through the policy node, and the data distributed to different distributed ledgers can be processed in parallel based on their respective strategies, which effectively solves the problem that transactions that pay less handling fees cannot be processed and confirmed, and greatly speeds up the speed of on-chain data processing and confirmation. In addition, blockchain full nodes, policy nodes and conversion nodes can provide basic block capabilities and open northbound interfaces for accounting nodes to access. New accounting nodes can access through open northbound interfaces and provide data on-chain services, supporting dynamic expansion of the accounting module architecture, effectively improving the versatility of using blockchain systems for business processing.
[0118] like Figure 4 As shown, the embodiment of the present application also provides a method for processing blockchain data, which is executed by a second node in the blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the method includes:
[0119] Step 401: Acquire the business data in the block subchain, wherein the business data is sent by the first node based on the on-chain requirements of the business data and the on-chain strategy corresponding to the block subchain.
[0120] The second node is the above-mentioned conversion node.
[0121] Step 402: When it is detected that the first on-chain requirement of the business data of the first block sub-chain is updated to the second on-chain requirement, the business data is sent to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0122] The embodiment of the present application supports the transfer of blockchain data. For example, if the business data that has been chained to the block subchain 1-1 has changed its chain requirements, such as higher requirements for the security level, the different chain strategies provided by all blockchains can be obtained from the full node through the policy node or the conversion node, and the block subchain 1-2 that meets its updated chain requirements is matched, and the above business data is sent to the block subchain 1-2. Specifically, the business data on the block subchain 1-1 is converted into the data model of the block subchain 1-2, and the converted data is uploaded to the block subchain 1-2. The accounting nodes of the block subchain 1-2 receive the converted data and compete for the accounting rights. The accounting nodes that obtain the accounting rights will transfer the data to generate a new block. After the full node completes the verification of the new block, it will store a copy of the new block locally.
[0123] Optionally, the method of the embodiment of the present application further includes:
[0124] Determine the fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0125] According to the fee difference, an indication message is sent, wherein the indication message is used to instruct the service party storing the service data to make up the fee difference.
[0126] In the embodiment of the present application, after the business data is transferred to the blockchain, the corresponding fee difference is determined. For example, after the above business data is transferred from the block subchain 1-1 to the block subchain 1-2, it is necessary to support the corresponding fee difference of 0.04 tokens.
[0127] Optionally, the method of the embodiment of the present application further includes:
[0128] Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0129] According to the on-chain strategy and the registration information, the block sub-chain to be added is added to the blockchain.
[0130] Optionally, the method of the embodiment of the present application further includes:
[0131] Obtain the qualification to perform the second function through the token pledge process and node competition process;
[0132] Among them, the second function includes, when it is detected that the first on-chain requirement of the business data of the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0133] In the embodiment of the present application, if a node in the blockchain wants to become a policy node or a conversion node, it needs to pledge a certain number of tokens to obtain the candidate qualification of becoming a policy node and a conversion node. The relevant nodes that obtain the candidate qualification need to compete to become the policy node or conversion node of this round based on the Delegated Proof of Stake (DPoS) consensus mechanism. The purpose of staking tokens is to prevent policy nodes and conversion nodes from doing evil, not distributing data according to the matched strategy, or not converting the data model according to the original data when transferring block data, thereby effectively ensuring that the distribution strategy is not tampered with and effectively ensuring the reliability of the distribution strategy.
[0134] Optionally, the above-mentioned policy nodes and conversion nodes provide on-chain strategy matching, data distribution and data model conversion services on the blockchain, and charge a corresponding proportion (e.g. 10%) of transaction fees by providing services.
[0135] In the above scheme, the business data in the block subchain is obtained, wherein the business data is sent by the first node based on the on-chain requirements of the business data and the on-chain strategy corresponding to the block subchain; when it is detected that the first on-chain requirement of the business data of the first block subchain is updated to the second on-chain requirement, the business data is sent to the second block subchain according to the second on-chain requirement and the on-chain strategy of the block subchain, wherein the second on-chain strategy corresponding to the second block subchain can meet the second on-chain requirement. Thus, the purpose of transferring business data between different block subchains based on the on-chain requirements of business data and the on-chain strategy corresponding to the block subchain is achieved to meet the on-chain requirements of business data.
[0136] like Figure 5 As shown, the embodiment of the present application also provides a blockchain data processing device, which is applied to the first node in the blockchain for execution, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the device includes:
[0137] The first acquisition module 501 is used to acquire business data that needs to be stored on the chain;
[0138] The first processing module 502 is used to send the business data to the block sub-chain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain.
[0139] Optionally, the first processing module includes:
[0140] A matching submodule, used for matching the first on-chain requirement of the business data with the on-chain strategies corresponding to the at least two block subchains;
[0141] A first processing submodule, configured to send the business data to a first block subchain corresponding to the first chaining strategy when a first chaining strategy that can meet the first chaining requirement is matched;
[0142] The second processing submodule is used to send the business data to a default block subchain in the blockchain when a first on-chain strategy that can meet the first on-chain requirement is not matched, and the default block subchain corresponds to a default on-chain strategy. The default on-chain strategy includes on-chain processing of the business data based on the arrangement order of transaction processing time corresponding to the business data.
[0143] Optionally, the device of the embodiment of the present application further includes:
[0144] The third processing module is used to send the business data to the second block sub-chain when the first on-chain requirement of the business data is updated to the second on-chain requirement, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0145] Optionally, the device of the embodiment of the present application further includes:
[0146] A first determination module is used to determine a fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0147] The first sending module is used to send instruction information according to the fee difference, and the instruction information is used to instruct the business party storing the business data to make up the fee difference.
[0148] Optionally, the device of the embodiment of the present application further includes:
[0149] The third acquisition module is used to obtain the chain strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0150] The fourth processing module is used to add the block subchain to be added to the blockchain according to the chain-up strategy and the registration information.
[0151] Optionally, the device of the embodiment of the present application further includes:
[0152] A fourth acquisition module, used to obtain the qualification to execute the target function through the pledge token process and the node competition process, wherein the target function includes the first function, or includes the first function and the second function;
[0153] The first function includes sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain;
[0154] The second function includes, when the first on-chain requirement of the business data stored in the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0155] In an embodiment of the present application, business data that needs to be stored on the chain is obtained; and according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the business data is sent to the block sub-chain of the blockchain. Since different block sub-chains correspond to different on-chain strategies, different data on-chain strategies can meet different on-chain requirements. Therefore, by sending the business data to the block sub-chain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the purpose of sending the business data to the block sub-chain with different on-chain strategies according to the differentiated storage requirements of the business data can be achieved, thereby meeting the on-chain requirements of each business data.
[0156] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0157] like Figure 6 As shown, the embodiment of the present application also provides a blockchain data processing device, which is applied to the second node in the blockchain for execution, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements, and the device includes:
[0158] The second acquisition module 601 is used to acquire the business data in the block subchain, wherein the business data is sent by the first node based on the on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain;
[0159] The second processing module 602 is used to send the business data to the second block subchain according to the second on-chain requirement and the on-chain strategy of the block subchain when it is detected that the first on-chain requirement of the business data of the first block subchain is updated to the second on-chain requirement, wherein the second on-chain strategy corresponding to the second block subchain can meet the second on-chain requirement.
[0160] Optionally, the device of the embodiment of the present application further includes:
[0161] A second determination module is used to determine a fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0162] The second sending module is used to send instruction information according to the fee difference, and the instruction information is used to instruct the business party storing the business data to make up the fee difference.
[0163] Optionally, the device of the embodiment of the present application further includes:
[0164] A fifth acquisition module is used to acquire the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0165] The fifth processing module is used to add the block subchain to be added to the blockchain according to the chain-up strategy and the registration information.
[0166] Optionally, the device of the embodiment of the present application further includes:
[0167] The sixth acquisition module is used to obtain the qualification to perform the second function through the pledge token process and the node competition process;
[0168] Among them, the second function includes, when it is detected that the first on-chain requirement of the business data of the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0169] In an embodiment of the present application, the business data in the block subchain is obtained, wherein the business data is sent by the first node based on the on-chain requirements of the business data and the on-chain strategy corresponding to the block subchain; when it is detected that the first on-chain requirement of the business data of the first block subchain is updated to the second on-chain requirement, the business data is sent to the second block subchain according to the second on-chain requirement and the on-chain strategy of the block subchain, wherein the second on-chain strategy corresponding to the second block subchain can meet the second on-chain requirement. Thus, the purpose of transferring business data between different block subchains based on the on-chain requirements of business data and the on-chain strategy corresponding to the block subchain is achieved to meet the on-chain requirements of business data.
[0170] like Figure 7 As shown, an embodiment of the present application also provides an electronic device, including: a processor 701, a transceiver 704, a memory 703, and a computer program stored in the memory 703 and executable on the processor 701, and the processor 701 implements the steps of the above-mentioned blockchain data processing method when executing the computer program.
[0171] Specifically, in one embodiment of the present application, the processor 701 is used to obtain business data that needs to be stored on the chain; according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the business data is sent to the block sub-chain of the blockchain.
[0172] Optionally, the processor 701 is further configured to:
[0173] Matching the first on-chain requirement of the business data with the on-chain strategies corresponding to the at least two block subchains;
[0174] When a first on-chain strategy that can meet the first on-chain requirement is matched, sending the business data to a first block subchain corresponding to the first on-chain strategy;
[0175] If the first on-chain strategy that can meet the first on-chain requirement is not matched, the business data is sent to a default block sub-chain in the blockchain, and the default block sub-chain corresponds to a default on-chain strategy. The default on-chain strategy includes on-chain processing of the business data based on the arrangement order of the transaction processing time corresponding to the business data.
[0176] Optionally, the processor 701 is further configured to:
[0177] When the first on-chain requirement of the business data is updated to the second on-chain requirement, the business data is sent to the second block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0178] Optionally, the processor 701 is further configured to:
[0179] Determine the fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0180] According to the fee difference, an indication message is sent, wherein the indication message is used to instruct the service party storing the service data to make up the fee difference.
[0181] Optionally, the processor 701 is further configured to:
[0182] Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0183] According to the on-chain strategy and the registration information, the block sub-chain to be added is added to the blockchain.
[0184] Optionally, the processor 701 is further configured to:
[0185] Obtaining the qualification to execute the target function through the token pledge process and the node competition process, wherein the target function includes the first function, or includes the first function and the second function;
[0186] The first function includes sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain;
[0187] The second function includes, when the first on-chain requirement of the business data stored in the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0188] In another embodiment of the present application, the processor 701 is used to obtain business data in the block sub-chain, wherein the business data is sent by the first node based on the on-chain requirements of the business data and the on-chain strategy corresponding to the block sub-chain; when it is detected that the first on-chain requirement of the business data of the first block sub-chain is updated to the second on-chain requirement, the business data is sent to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0189] Optionally, the processor 701 is further configured to:
[0190] Determine the fee difference corresponding to the business data, where the fee difference refers to the difference between a first on-chain fee and a second on-chain fee, where the first on-chain fee is the fee for on-chain storage of the business data on the first blockchain subchain, and the second on-chain fee is the fee for on-chain storage of the business data on the second blockchain subchain;
[0191] According to the fee difference, an indication message is sent, wherein the indication message is used to instruct the service party storing the service data to make up the fee difference.
[0192] Optionally, the processor 701 is further configured to:
[0193] Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added;
[0194] According to the on-chain strategy and the registration information, the block sub-chain to be added is added to the blockchain.
[0195] Optionally, the processor 701 is further configured to:
[0196] Obtain the qualification to perform the second function through the token pledge process and node competition process;
[0197] Among them, the second function includes, when it is detected that the first on-chain requirement of the business data of the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
[0198] It should be noted that in Figure 7In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 701 and various circuits of memory represented by memory 703 are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface 702 provides an interface. The transceiver 704 may be a plurality of components, namely, a transmitter and a transceiver, providing a unit for communicating with various other devices on a transmission medium. For different terminals, the user interface 705 may also be an interface capable of externally connecting or internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, etc. The processor 701 is responsible for managing the bus architecture and general processing, and the memory 703 may store data used by the processor 701 when performing operations.
[0199] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing relevant hardware through a computer program, wherein the computer program includes instructions for executing part or all of the steps of the above method; and the computer program may be stored in a readable storage medium, and the storage medium may be any form of storage medium.
[0200] In addition, the specific embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by the processor, the steps of the above-mentioned blockchain data processing method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0201] The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, each process of the above-mentioned blockchain data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0202] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0203] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0204] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0205] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications are also within the scope of protection of the present application.
Claims
1. A method for processing blockchain data, It is characterized in that The method is executed by a first node in a blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements. The method includes: Obtain business data that needs to be stored on the chain; According to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain, the business data is sent to the block sub-chain of the blockchain.
2. The method according to claim 1, It is characterized in that The sending of the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain includes: Matching the first on-chain requirement of the business data with the on-chain strategies corresponding to the at least two block subchains; When a first on-chain strategy that can meet the first on-chain requirement is matched, sending the business data to a first block subchain corresponding to the first on-chain strategy; If the first on-chain strategy that can meet the first on-chain requirement is not matched, the business data is sent to a default block sub-chain in the blockchain, and the default block sub-chain corresponds to a default on-chain strategy. The default on-chain strategy includes on-chain processing of the business data based on the arrangement order of the transaction processing time corresponding to the business data.
3. The method according to claim 1, It is characterized in that Before obtaining the business data to be stored on the chain, the method further includes: Obtaining the qualification to execute the target function through the token pledge process and the node competition process, wherein the target function includes the first function, or includes the first function and the second function; The first function includes sending the business data to the block subchain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block subchain; The second function includes, when the first on-chain requirement of the business data stored in the first block sub-chain is updated to the second on-chain requirement, sending the business data to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
4. A method for processing blockchain data, It is characterized in that The method is executed by a second node in a blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements. The method includes: Acquire the business data in the blockchain subchain, wherein the business data is sent by the first node based on the on-chain requirement of the business data and the on-chain strategy corresponding to the blockchain subchain; When it is detected that the first on-chain requirement of business data of the first block sub-chain is updated to the second on-chain requirement, the business data is sent to the second block sub-chain according to the second on-chain requirement and the on-chain strategy of the block sub-chain, wherein the second on-chain strategy corresponding to the second block sub-chain can meet the second on-chain requirement.
5. The method according to claim 4, It is characterized in that Also includes: Obtain the chaining strategy corresponding to the block subchain to be added and the registration information of the nodes in the block subchain to be added; According to the on-chain strategy and the registration information, the block sub-chain to be added is added to the blockchain.
6. A blockchain data processing device, It is characterized in that The device is applied to a first node in a blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements. The device includes: The first acquisition module is used to acquire business data that needs to be stored on the chain; The first processing module is used to send the business data to the block sub-chain of the blockchain according to the first on-chain requirement of the business data and the on-chain strategy corresponding to the block sub-chain.
7. A blockchain data processing device, It is characterized in that The device is applied to a second node in a blockchain, wherein the blockchain includes at least two block subchains, and different block subchains correspond to different chain-up strategies, and different data chain-up strategies can meet different chain-up requirements. The device includes: A second acquisition module is used to acquire business data in the block subchain, wherein the business data is sent by the first node based on the on-chain requirements of the business data and the on-chain strategy corresponding to the block subchain; The second processing module is used to send the business data to the second block subchain according to the second on-chain requirement and the on-chain strategy of the block subchain when it is detected that the first on-chain requirement of the business data of the first block subchain is updated to the second on-chain requirement, wherein the second on-chain strategy corresponding to the second block subchain can meet the second on-chain requirement.
8. An electronic device, It is characterized in that include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the computer program implements the steps of the method for processing blockchain data as described in any one of claims 1 to 3, or implements the steps of the method for processing blockchain data as described in any one of claims 4 to 5.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the method for processing blockchain data as described in any one of claims 1 to 3 are implemented, or the steps of the method for processing blockchain data as described in any one of claims 4 to 5 are implemented.
10. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the method for processing blockchain data as described in any one of claims 1 to 3, or implement the steps of the method for processing blockchain data as described in any one of claims 4 to 5.
