Transaction processing method and device, electronic equipment and storage medium

By migrating transaction execution and verification in the blockchain system to off-chain processing, and only transaction sorting and data storage are performed on the chain, the problem of low transaction processing efficiency in high transaction throughput scenarios is solved, and higher transaction processing efficiency and system scalability are achieved.

CN119648399APending Publication Date: 2025-03-18AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411612559.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

Blockchain systems have low transaction processing efficiency in scenarios with high transaction throughput demand, and the computational complexity and latency of on-chain execution and verification make it difficult to scale performance.

Method used

Migrate transaction execution and verification to off-chain processing, and only order transactions and data storage are performed on-chain, thereby reducing the transaction process on-chain.

Benefits of technology

By reducing the transaction links processed on-chain, the transaction processing efficiency of the blockchain system is improved, and the concurrency capability and throughput of the system are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119648399A_ABST
    Figure CN119648399A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction processing method and device, electronic equipment and a storage medium, and belongs to the technical field of blockchains, in the method, transaction information of multiple transactions is acquired from a memory pool, the multiple transactions are sorted, and the transaction information and the sorting information of the multiple transactions are written into an account book of a blockchain system and are stored by the blockchain system. Therefore, transaction sorting and data storage are only carried out on the chain, transaction execution and verification are not carried out, and transaction links needing to be processed on the chain are few, so that the transaction processing efficiency of the block chain system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a transaction processing method, device, electronic device and storage medium. Background Art

[0002] Whether it is a traditional public chain or a consortium chain, transaction processing on the blockchain generally includes three key stages: execution, order, and validation. These stages play an important role in ensuring the security and consistency of the blockchain system.

[0003] However, whether it is a public chain or a consortium chain, the on-chain execution and verification model has performance bottlenecks, especially in scenarios with high transaction throughput requirements, the transaction processing efficiency of the blockchain system is even lower. The computational complexity and latency of on-chain processing make it difficult for the performance of the blockchain system to scale linearly with the increase in the number of nodes. Summary of the invention

[0004] The embodiments of the present application provide a transaction processing method, device, electronic device and storage medium to solve the problem of low business processing efficiency of blockchain systems in related technologies.

[0005] In a first aspect, an embodiment of the present application provides a transaction processing method, including:

[0006] Get transaction information of multiple transactions from the memory pool;

[0007] sorting the plurality of transactions;

[0008] The transaction information and sorting information of the multiple transactions are written into the ledger of the blockchain system and stored by the blockchain system.

[0009] In some embodiments, it also includes:

[0010] According to the demand, obtain transaction information and sorting information of at least part of the transactions from the consensus ledger in the blockchain system;

[0011] Based on the acquired transaction information of at least part of the transactions, the transactions are executed in the virtual machine sandbox environment according to the sorting information to obtain the execution result of each transaction.

[0012] In some embodiments, it also includes:

[0013] receiving a transaction result query request from a user terminal and determining a target transaction, wherein the target transaction is any transaction among the multiple transactions;

[0014] Acquire transaction information of the target transaction from the consensus ledger in the blockchain system;

[0015] Based on the transaction information of the target transaction, execute the transaction in the virtual machine sandbox environment to obtain the execution result of the target transaction;

[0016] The execution result of the target transaction is sent to the user terminal.

[0017] In some embodiments, before writing the transaction information and sorting information of the multiple transactions into the ledger of the blockchain system, the method further includes:

[0018] The plurality of transactions are signed.

[0019] In some embodiments, the blockchain system is a public chain or a consortium chain.

[0020] In a second aspect, an embodiment of the present application provides a transaction processing device, including:

[0021] The acquisition module is used to obtain transaction information of multiple transactions from the memory pool;

[0022] A sorting module, used for sorting the multiple transactions;

[0023] The writing module is used to write the transaction information and sorting information of the multiple transactions into the ledger of the blockchain system, which is stored by the blockchain system.

[0024] In some embodiments, the system further includes an execution module for:

[0025] According to the demand, obtain transaction information and sorting information of at least part of the transactions from the consensus ledger in the blockchain system;

[0026] Based on the acquired transaction information of at least part of the transactions, the transactions are executed in the virtual machine sandbox environment according to the sorting information to obtain the execution result of each transaction.

[0027] In some embodiments, a query module is further included for:

[0028] receiving a transaction result query request from a user terminal and determining a target transaction, wherein the target transaction is any transaction among the multiple transactions;

[0029] Acquire transaction information of the target transaction from the consensus ledger in the blockchain system;

[0030] Based on the transaction information of the target transaction, execute the transaction in the virtual machine sandbox environment to obtain the execution result of the target transaction;

[0031] The execution result of the target transaction is sent to the user terminal.

[0032] In some embodiments, the writing module is further configured to:

[0033] Before writing the transaction information and sorting information of the multiple transactions into the ledger of the blockchain system, the multiple transactions are signed.

[0034] In some embodiments, the blockchain system is a public chain or a consortium chain.

[0035] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein:

[0036] The memory stores a computer program executable by at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the transaction processing method.

[0037] In a fourth aspect, an embodiment of the present application provides a storage medium. When a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned transaction processing methods.

[0038] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any of the above-mentioned transaction processing methods when executed by a processor.

[0039] In the embodiment of the present application, the transaction information of multiple transactions is obtained from the memory pool, the multiple transactions are sorted, and the transaction information and sorting information of the multiple transactions are written into the account book of the blockchain system, and stored by the blockchain system. In this way, only the sorting and data storage of transactions are performed on the chain, and the execution and verification of transactions are not performed. Since fewer transaction links need to be processed on the chain, the transaction processing efficiency of the blockchain system can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0041] Figure 1 A flowchart of a transaction processing method provided in an embodiment of the present application;

[0042] Figure 2 A schematic diagram of a transaction processing process provided in an embodiment of the present application;

[0043] Figure 3 A schematic diagram of the structure of a transaction processing device provided in an embodiment of the present application;

[0044] Figure 4A schematic diagram of the hardware structure of an electronic device for implementing a transaction processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to solve the problem of low business processing efficiency of blockchain systems in related technologies, the embodiments of the present application provide a transaction processing method, device, electronic device and storage medium.

[0046] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0047] In order to facilitate the understanding of this application, the technical terms involved in this application are:

[0048] User refers to the initiator of the transaction. The user can initiate a transaction through the client and enter the transaction processing flow;

[0049] Mempool is a temporary storage area for transactions, used to store transactions initiated by users. It is mainly responsible for temporarily storing unconfirmed transactions, waiting for further processing by the scheduler;

[0050] Scheduler is used to extract transactions from the memory pool and assign a unique incrementing nonce value to each transaction to ensure the order and uniqueness of the transaction. Then, the transaction with the assigned nonce and the signature of the scheduler is written into the ledger of the blockchain system. It plays a key role in coordinating and scheduling transactions in the processing process;

[0051] The Executor is used to obtain transactions with order from the ledger and execute the transactions of the smart contract in order. It uses a deterministic and isolated virtual machine sandbox environment to ensure the correctness and consistency of transaction execution;

[0052] Ledger is where transaction sets are stored. All sorted transactions will be written into the ledger, forming an unalterable record of the blockchain system.

[0053] Generally, a blockchain system includes multiple nodes, such as nodes 1-100. Assuming that node 1 generates a block, this block includes multiple sorted transactions, each transaction has a unique nonce value. After the block is generated, nodes 2-100 need to reach a consensus on this block. Among them, the process of node 1 generating a block is the process of transaction execution, and the process of nodes 2-100 reaching a consensus is the process of transaction verification. These processes are all carried out on the chain, which will inevitably affect the transaction efficiency on the chain.

[0054] To this end, in an embodiment of the present application, the execution of transactions is migrated to off-chain processing, and transaction sorting and data storage are performed on the chain. In this way, fewer transaction links need to be processed by the blockchain system, thereby improving the transaction processing efficiency of the blockchain system.

[0055] See also Figure 1 , Figure 1 A flowchart of a transaction processing method provided for an embodiment of the present application includes the following steps.

[0056] In step 101, transaction information of multiple transactions is obtained from a memory pool.

[0057] In actual applications, transaction information of multiple transactions can be obtained from the memory pool regularly.

[0058] In step 102, a plurality of transactions are sorted.

[0059] For example, a transaction identifier such as a nonce value is assigned to each transaction. Since the nonce value is unique and incremented, the purpose of sorting multiple transactions can be achieved.

[0060] In step 103, the transaction information and sorting information of the multiple transactions are written into the ledger of the blockchain system and stored by the blockchain system.

[0061] Among them, the sorting information of each transaction is such as the nonce value of this transaction. The blockchain system can be a public chain system or a consortium chain system.

[0062] In some embodiments, before the transaction information and sorting information of multiple transactions are written into the ledger of the blockchain system, the multiple transactions may also be signed to ensure the traceability of the business processing process on the blockchain system.

[0063] In this way, transactions are sorted and data is stored on the chain instead of being executed. Since there are fewer business links that need to be processed by the blockchain system, the transaction processing efficiency of the blockchain system can be improved.

[0064] In some embodiments, the verification phase of the transaction can also be moved off-chain, so the above process can also include the following steps:

[0065] In step 104, as required, the transaction information and sorting information of at least part of the transactions are obtained from the consensus ledger in the blockchain system.

[0066] Among them, requirements include what type of transactions to verify, which users initiate transactions to verify, etc. In short, requirements are used to describe the characteristics of transactions that need to be verified.

[0067] In step 105, based on the acquired transaction information of at least part of the transaction, the transaction is executed in the virtual machine sandbox environment according to the sorting information to obtain the execution result of each transaction.

[0068] That is, according to the transaction execution order indicated by the sorting information and based on the transaction information of each transaction, the transaction is executed in the virtual machine sandbox environment to obtain the execution result of the transaction.

[0069] Since the virtual machine sandbox environment is deterministic and isolated, the correctness and consistency of transaction execution can be ensured.

[0070] In addition, it is also possible to receive a transaction result query request from the user end, determine the target transaction, which is any transaction among multiple transactions, and then obtain the transaction information of the target transaction from the consensus ledger in the blockchain system. Then, based on the transaction information of the target transaction, the transaction is executed in the virtual machine sandbox environment to obtain the execution result of the target transaction, and the execution result of the target transaction is sent to the user end.

[0071] That is, off-chain verification can be performed in batches or individually when a user needs to view the execution results of a transaction. In either case, there is no need for on-chain verification, thus reducing the computational burden on the chain.

[0072] In this way, by separating the execution and verification of transactions from the chain and transferring them to the off-chain, the chain is only responsible for transaction sorting and data storage, which can effectively reduce the computing burden on the chain and improve the transaction processing concurrency and throughput capacity of the blockchain system.

[0073] The embodiment of the present application provides a public chain or alliance chain consensus acceleration solution based on data availability (DA), which migrates the execution and verification of transactions to off-chain processing, and only performs transaction sorting and data storage on the chain. The original three necessary processes of execution, sorting and verification are split into a two-layer structure of on-chain and off-chain, thereby improving the processing efficiency of on-chain transactions while ensuring the order and consistency of transactions.

[0074] See also Figure 2 , Figure 2 A schematic diagram of a transaction processing process provided for an embodiment of the present application, wherein the Scheduler can be deployed in a server cluster, the Executor can also be deployed in a server cluster, and the server clusters where the Scheduler and the Executor are deployed can be the same or different, including the following steps.

[0075] 1. The user sends a transaction to the memory pool.

[0076] The user initiates a transaction request through the client and sends the transaction to the memory pool, which acts as a buffer for transactions and is responsible for managing the collection of pending transactions. This is the starting point of the entire process.

[0077] 2. The scheduler periodically obtains transaction sets from the memory pool.

[0078] The scheduler can periodically obtain a batch of transaction sets (including multiple transactions) from the memory pool according to the scheduling strategy.

[0079] 3. The scheduler assigns a nonce value.

[0080] The scheduler assigns a unique and increasing nonce value to each transaction in the transaction set. The nonce value is a key field to ensure the order of transactions, which can ensure that the same transaction will not be processed repeatedly in the blockchain system and is executed in the correct order.

[0081] Here, the scheduler assigns a unique incrementing nonce to each transaction, which ensures that transactions are executed in sequence and avoids duplicate processing. This mechanism effectively guarantees the consistency and order of transactions and is the core design for achieving the stability and reliability of the blockchain system.

[0082] 4. The scheduler writes the signed transaction with the nonce value into the ledger.

[0083] After assigning the nonce value, the scheduler can broadcast the signed transaction to reach consensus and finally write it to the ledger.

[0084] The above 1 to 4 are equivalent to the transaction sorting and data storage stage, that is, the transaction sorting and data storage are carried out on the chain.

[0085] 5. The executor gets the transaction.

[0086] The executor obtains transactions from the consensus ledger and can obtain all or part of the related transactions with order according to demand, where the order refers to the nonce value.

[0087] 6. The executor executes the transaction.

[0088] The executor executes the relevant smart contract logic in the order of nonce values ​​from small to large. It can calculate the state based on the content of the transaction and dynamically maintain the state in the executor's memory.

[0089] The above 5 to 6 are equivalent to the execution and verification stage of the transaction. This process is carried out off-chain, which can reduce the computational burden on the chain.

[0090] 7. Return the transaction execution result.

[0091] Finally, the executor will feed back the execution result to the user. The user can understand the final status of the transaction through the execution result. This marks the end of the entire transaction processing process.

[0092] Here, the executor processes transactions in parallel off-chain, which can greatly improve business processing capabilities. Off-chain execution and verification can not only reduce the computing burden on the chain, but also process more transactions in parallel, improving transaction processing efficiency in high-concurrency scenarios.

[0093] The beneficial effects of the embodiments of the present application are as follows:

[0094] Improve transaction processing efficiency: By migrating execution and verification operations to the off-chain and using the on-chain as a data availability layer, the computational pressure on the chain can be significantly reduced, and the transaction processing speed and the overall throughput of the blockchain system can be improved;

[0095] Enhanced system scalability: Off-chain execution and verification can be flexibly expanded to support larger-scale concurrent transaction processing, which is very suitable for enterprise alliance chain scenarios;

[0096] Ensure data integrity and consistency: Only transactions are sorted and stored on the chain, ensuring the persistence and availability of transaction data.

[0097] Based on the same technical concept, an embodiment of the present application also provides a transaction processing device. The principle of solving the problem by the transaction processing device is similar to that of the above-mentioned transaction processing method. Therefore, the implementation of the transaction processing device can refer to the implementation of the transaction processing method, and the repeated parts will not be repeated.

[0098] Figure 3 A schematic diagram of the structure of a transaction processing device provided in an embodiment of the present application includes:

[0099] An acquisition module 301 is used to acquire transaction information of multiple transactions from a memory pool;

[0100] A sorting module 302, configured to sort the multiple transactions;

[0101] The writing module 303 is used to write the transaction information and sorting information of the multiple transactions into the ledger of the blockchain system, which is stored by the blockchain system.

[0102] In some embodiments, an execution module 304 is further included, which is used to:

[0103] According to the demand, obtain transaction information and sorting information of at least part of the transactions from the consensus ledger in the blockchain system;

[0104] Based on the acquired transaction information of at least part of the transactions, the transactions are executed in the virtual machine sandbox environment according to the sorting information to obtain the execution result of each transaction.

[0105] In some embodiments, a query module 305 is further included for:

[0106] receiving a transaction result query request from a user terminal and determining a target transaction, wherein the target transaction is any transaction among the multiple transactions;

[0107] Acquire transaction information of the target transaction from the consensus ledger in the blockchain system;

[0108] Based on the transaction information of the target transaction, execute the transaction in the virtual machine sandbox environment to obtain the execution result of the target transaction;

[0109] The execution result of the target transaction is sent to the user terminal.

[0110] In some embodiments, the writing module 303 is further used to:

[0111] Before writing the transaction information and sorting information of the multiple transactions into the ledger of the blockchain system, the multiple transactions are signed.

[0112] In some embodiments, the blockchain system is a public chain or a consortium chain.

[0113] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional modules in the embodiments of the present application may be integrated in a processor, or may exist physically separately, or two or more modules may be integrated in one module. The coupling between the modules may be achieved through some interfaces, which are usually electrical communication interfaces, but it is not excluded that they may be mechanical interfaces or other forms of interfaces. Therefore, the modules described as separate components may or may not be physically separated, and may be located in one place or distributed to different locations of the same or different devices. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0114] After introducing the transaction processing method and apparatus according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0115] Refer to the following Figure 4 The electronic device 130 implemented according to this embodiment of the present application is described. Figure 4 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0116] like Figure 4As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).

[0117] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0118] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .

[0119] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0120] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0121] In an exemplary embodiment, a storage medium is also provided, and when a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can perform the above-mentioned transaction processing method. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0122] In an exemplary embodiment, the electronic device of the present application may include at least one processor and a memory communicatively connected to the at least one processor, wherein the memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor may execute the steps of any transaction processing method provided in the embodiments of the present application.

[0123] In an exemplary embodiment, a computer program product is also provided. When the computer program product is executed by an electronic device, the electronic device can implement any exemplary method provided in the present application.

[0124] Furthermore, the computer program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0125] The program product for transaction processing in the embodiment of the present application may adopt a CD-ROM and include program code, and may be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0126] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0127] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0128] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network such as a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0129] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0130] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0132] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatus (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0133] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0135] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0136] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application also includes these modifications and variations.

Claims

1. A transaction processing method, characterized in that: include: Get transaction information of multiple transactions from the memory pool; sorting the plurality of transactions; The transaction information and sorting information of the multiple transactions are written into the ledger of the blockchain system and stored by the blockchain system.

2. The method according to claim 1, characterized in that Also includes: According to the demand, obtain transaction information and sorting information of at least part of the transactions from the consensus ledger in the blockchain system; Based on the acquired transaction information of at least part of the transactions, the transactions are executed in the virtual machine sandbox environment according to the sorting information to obtain the execution result of each transaction.

3. The method according to claim 1, characterized in that Also includes: receiving a transaction result query request from a user terminal and determining a target transaction, wherein the target transaction is any transaction among the multiple transactions; Acquire transaction information of the target transaction from the consensus ledger in the blockchain system; Based on the transaction information of the target transaction, execute the transaction in the virtual machine sandbox environment to obtain the execution result of the target transaction; The execution result of the target transaction is sent to the user terminal.

4. The method according to any one of claims 1 to 3, characterized in that: Before writing the transaction information and the sorting information of the multiple transactions into the ledger of the blockchain system, the method further includes: The plurality of transactions are signed.

5. The method according to claim 1, characterized in that The blockchain system is a public chain or a consortium chain.

6. A transaction processing device, characterized in that: include: The acquisition module is used to obtain transaction information of multiple transactions from the memory pool; A sorting module, used for sorting the multiple transactions; The writing module is used to write the transaction information and sorting information of the multiple transactions into the ledger of the blockchain system, which is stored by the blockchain system.

7. The device according to claim 6, characterized in that Also includes: A second acquisition module is used to acquire transaction information and sorting information of at least part of the transactions from the consensus ledger in the blockchain system according to demand; The execution module is used to execute the transactions according to the sorting information in the virtual machine sandbox environment based on the acquired transaction information of at least part of the transactions, so as to obtain the execution result of each transaction.

8. An electronic device, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor, wherein: The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 5.

9. A storage medium, characterized in that: When the computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the method according to any one of claims 1 to 5.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when executed by a processor.