WO2022166673A1 - Procédé et appareil de traitement de transaction dans une chaîne de blocs, et dispositif électronique - Google Patents

Procédé et appareil de traitement de transaction dans une chaîne de blocs, et dispositif électronique Download PDF

Info

Publication number
WO2022166673A1
WO2022166673A1 PCT/CN2022/073652 CN2022073652W WO2022166673A1 WO 2022166673 A1 WO2022166673 A1 WO 2022166673A1 CN 2022073652 W CN2022073652 W CN 2022073652W WO 2022166673 A1 WO2022166673 A1 WO 2022166673A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
transaction
consensus
blockchain
nth
Prior art date
Application number
PCT/CN2022/073652
Other languages
English (en)
Chinese (zh)
Inventor
李帅
Original Assignee
支付宝(杭州)信息技术有限公司
蚂蚁区块链科技(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司, 蚂蚁区块链科技(上海)有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2022166673A1 publication Critical patent/WO2022166673A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Definitions

  • This document relates to the field of blockchain technology, in particular to a method, device and electronic device for transaction processing in the blockchain.
  • the process of transaction processing can be shown in Figure 1, including the following four stages: collecting transactions ⁇ consensus ⁇ transaction execution ⁇ writing blocks. After the above process, a block can be generated. After a block (the Nth block in Figure 1) is generated, the transaction processing flow of the next block (the N+1th block in Figure 1) is entered.
  • the transaction processing flow of a block in a blockchain system consists of four stages. After the Nth block is generated, the transaction processing flow of the N+1th block is entered. With this transaction processing method, at any point in time, the consensus node can only process one stage corresponding to one block. This method cannot make good use of the processing resources of nodes. For example, it cannot make good use of the parallel computing characteristics of multiple cores, and it is difficult to improve the performance of the blockchain system.
  • Figure 1 shows the general process of transaction processing by consensus nodes in a blockchain system.
  • not all consensus nodes perform the transaction collection operations in the above four phases.
  • master consensus algorithms such as Practical Byzantine Fault Tolerance, PBFT, Practical Byzantine Fault Tolerance Algorithm
  • the consensus master node can perform the above four-stage operations, and the consensus non-master nodes can perform consensus ⁇ transaction execution ⁇ The operations of these three stages of writing blocks; it can also be that each consensus node performs all the operations of the above four stages.
  • the Chinese patent application publication number CN111522648A discloses a transaction processing method.
  • the block chain node executes the block writing operation of the Nth round of transactions and the consensus execution operation of the N+1th round of transactions in parallel.
  • a representative embodiment may be shown in Figure 2 (also Figure 2 of Patent Application Publication No. CN111522648A). As shown in Figure 2, the first thread and the second thread can be executed in parallel.
  • the second thread can execute the block writing operation of the N-1 round of transactions in parallel;
  • the second thread can perform the block writing operation of the Nth round of transactions in parallel; while the first thread performs N+2 rounds of consensus and transaction execution, the second thread can The block write operation of the N+1 round of transactions is performed in parallel.
  • the above examples are mainly aimed at the situation that the consensus stage and the transaction execution stage take a relatively short time in the transaction processing process of the blockchain system, and the block writing stage takes a relatively long time.
  • transactions collected in a certain round may include ordinary transfer transactions or transactions involving smart contracts.
  • the processing time is generally relatively short, while for transactions involving smart contracts, the contract logic may be more complicated, or there may be many transactions involving contracts, so the processing time is relatively long.
  • the processing time of the transaction execution link may be longer than that of the consensus link, and is closer to the processing time of the block writing operation. Even longer processing time than write block operations. In this way, only (consensus + transaction execution) and block writing are decoupled in this example, and there is still room for further optimization.
  • the embodiments of this specification provide a transaction processing method, device, and electronic device in a blockchain.
  • a transaction processing method in a blockchain comprising: a blockchain node executing a transaction execution operation corresponding to an Nth block, wherein the transaction corresponding to the Nth block has reached a consensus in a blockchain system; In the process of executing the transaction execution operation corresponding to the Nth block, the blockchain node executes the consensus operation on the transaction corresponding to the N+1th block in parallel, where N is a positive integer.
  • a transaction processing device applied to a blockchain node comprising: a transaction execution module that executes a transaction execution operation corresponding to an Nth block, wherein the transaction corresponding to the Nth block has been reached in a blockchain system Consensus; the consensus module, in the process of the transaction execution module executing the transaction execution operation corresponding to the Nth block, executes the consensus operation on the transaction corresponding to the N+1th block in parallel.
  • An electronic device comprising: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the following operations: execute a transaction execution corresponding to an Nth block operation, wherein the transaction corresponding to the Nth block has reached a consensus in the blockchain system; in the process of executing the transaction execution operation corresponding to the Nth block, the N+1th block is executed in parallel.
  • the block corresponds to the consensus operation of the transaction, where N is a positive integer.
  • the blockchain nodes can process different stages of the transaction corresponding to different blocks in parallel, using the computing power of the multi-core CPU, greatly It improves the operation efficiency and performance of the blockchain system.
  • FIG. 1 is a schematic diagram of a process of processing transactions in a blockchain system provided by the prior art
  • FIG. 2 is a schematic process diagram of a transaction processing method provided by the prior art
  • FIG. 3 is a schematic flowchart of the implementation of a transaction processing method in a blockchain provided by an embodiment of this specification;
  • FIG. 4 is a schematic diagram of an embodiment of a transaction processing method in a blockchain provided by an embodiment of this specification;
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of this specification.
  • FIG. 6 is a schematic structural diagram of a transaction processing apparatus according to an embodiment of the present specification.
  • One or more embodiments of this specification provide a transaction processing method in a blockchain.
  • the schematic diagram of the implementation process is shown in FIG. 3 , including: Step 310 , the blockchain node executes the transaction execution operation corresponding to the Nth block.
  • the transaction corresponding to the Nth block may be a transaction that has reached a consensus in the blockchain system. Furthermore, in step 310, the blockchain node may execute the transaction corresponding to the Nth block that has reached a consensus.
  • the above transaction execution operation can be processed by the transaction execution thread in the blockchain node.
  • the above consensus operations can be handled by consensus threads in blockchain nodes.
  • the transaction processing process in a blockchain system generally includes four different operations: transaction collection, transaction consensus, transaction execution, and block writing.
  • each consensus node may perform all the operations in the above four stages, or some consensus nodes may perform the operations in the last three stages above without performing the operation of collecting transactions.
  • this operation can also be performed by a separate thread in the consensus node, eg, called a transaction collection thread.
  • the consensus node can query whether the transactions collected in the transaction memory pool meet the preset transaction collection conditions through the transaction collection thread. If the preset transaction collection conditions are met, the consensus node packages the transactions collected by the transaction memory pool through the transaction collection thread. In this way, the consensus node can get the proposal to be consensus. Further, the consensus node can perform operations in the consensus stage through the consensus thread.
  • the consensus thread can collect transactions from Get the transaction corresponding to the Nth block in the thread. Further, a consensus proposal can be initiated based on the transaction, so as to perform the operation in the consensus stage, for example, the consensus operation can be performed by the consensus thread in the blockchain node.
  • the blockchain node responds to the consensus proposal sent by other consensus nodes for the transaction corresponding to the Nth block, and based on the consensus proposal of the Nth block
  • This consensus proposes a consensus operation.
  • consensus operations can be performed by consensus threads in blockchain nodes.
  • the consensus node since the consensus node responds to the sent consensus proposal, and the sent consensus proposal may include transactions to be agreed upon, the consensus node may not perform the operation of collecting transactions.
  • the blockchain node After the blockchain node completes the consensus operation on the transaction corresponding to the Nth block, it may perform the operation on the transaction corresponding to the Nth block in step 310 .
  • the transaction execution operation can be performed by the transaction execution thread in the blockchain node.
  • the consensus thread executes the consensus operation of the transaction corresponding to the Nth block, it transmits the consensus result to the transaction execution thread of the blockchain node. Therefore, the processing flow of the transaction corresponding to the same block is still the same. The order of consensus ⁇ transaction execution can be maintained.
  • Step 320 in the process of executing the transaction execution operation corresponding to the Nth block, the blockchain node executes the consensus operation on the transaction corresponding to the N+1th block in parallel.
  • the consensus node can query whether the transactions collected in the transaction memory pool meet the preset transaction collection conditions through the transaction collection thread. If the preset transaction collection conditions are met, the consensus node packages the transactions collected in the transaction memory pool through the transaction collection thread, thereby forming a transaction corresponding to the N+1th block. In this way, the node can get proposals to be consensus. Further, the consensus node can perform the operation in the consensus stage through the consensus thread, that is, the consensus operation on the transaction corresponding to the N+1th block is performed in step 320.
  • the consensus thread can collect transactions from Get the transaction corresponding to the N+1th block in the thread. Further, a consensus proposal can be initiated based on the transaction, so as to enter the operation of the consensus stage, for example, the consensus operation can be performed by the consensus thread in the blockchain node.
  • the blockchain node responds to the consensus proposal sent by other consensus nodes for the transaction corresponding to the N+1th block,
  • the consensus operation is performed based on the consensus proposal, for example, the consensus operation can be performed by the consensus thread in the blockchain node.
  • the consensus node since the consensus node responds to the sent consensus proposal, and the sent consensus proposal may include transactions to be agreed upon, the consensus node may not perform the operation of collecting transactions.
  • the order of transaction collection ⁇ consensus can still be maintained for the processing flow of transactions corresponding to the same block.
  • the blockchain node performs the process of collecting the transaction corresponding to the Nth block, and performs the process of collecting the transaction corresponding to the N+1th block, the blockchain node collects the transaction corresponding to the N+1th block. Then collect the transactions corresponding to the N+1th block. This is especially true when the blockchain node is assigned only one thread to collect transactions. Moreover, in the process of consensus on the transaction corresponding to the Nth block, the blockchain node performs the operation of collecting the transaction corresponding to the N+1th block in parallel.
  • the consensus operation of the blockchain node on the transaction corresponding to the N+1th block may be performed after a consensus is reached on the transaction corresponding to the Nth block. This is especially true when blockchain nodes are assigned only one consensus thread.
  • consensus proposal for the Nth block and the consensus proposal for the N+1th block may be initiated by the same consensus node, or may be initiated by different consensus nodes.
  • consensus operation of the block chain node on the Nth block may be initiated by the block chain node as the consensus master node, and the consensus operation on the N+1th block may be another block.
  • Blockchain nodes are initiated as consensus master nodes and vice versa.
  • the blockchain node After the blockchain node completes the consensus operation on the transaction corresponding to the N+1th block, it can perform the operation on the transaction corresponding to the N+1th block.
  • the transaction execution operation can be performed by the transaction execution thread in the blockchain node.
  • the consensus thread executes the consensus operation of the transaction corresponding to the N+1th block, it transmits the consensus result to the transaction execution thread of the blockchain node. Therefore, for the processing flow of the transaction corresponding to the same block, It is still possible to maintain the order of consensus ⁇ transaction execution.
  • the blockchain node can also write the result of the transaction execution into the Nth block of the blockchain ledger. That is, write block operations.
  • the block chain node executes the transaction execution operation corresponding to the N+1th block in parallel.
  • the blockchain node performs the operation on the transaction corresponding to the N+1th block, which may be performed after performing the operation on the transaction corresponding to the Nth block. This is especially true when a blockchain node is assigned only one transaction execution thread.
  • the blockchain node can also write the result of the transaction execution into the N+1th area of the blockchain ledger. in the block.
  • the block-writing operation corresponding to the N+1th block by the blockchain node may be performed after the block-writing operation corresponding to the Nth block. This is especially true when a blockchain node is assigned only one block writer thread.
  • the blockchain node When the blockchain node performs the collection transaction operation corresponding to the N+1th block, the consensus operation of the Nth block may not be completed, so the consensus operation for the N+1th block cannot be started. At this time, the blockchain node can store the collected transaction corresponding to the N+1th block in the memory, and extract the N+th block from the memory after the corresponding consensus operation of the Nth block is completed. The transaction corresponding to 1 block, and start the consensus operation on the transaction corresponding to the N+1th block.
  • the blockchain node can store the consensus result corresponding to the N+1th block in the memory, and extract the N+th block from the memory after the corresponding transaction execution operation of the Nth block is completed.
  • the consensus result corresponding to 1 block, and the transaction execution operation corresponding to the N+1th block is started.
  • the block chain node executes the transaction execution operation corresponding to the N+1th block
  • the block writing operation of the Nth block may not be completed, so the N+1th block cannot be started yet. write block operations.
  • the blockchain node can store the transaction execution result corresponding to the N+1th block in the memory, and extract the transaction execution result from the memory after the corresponding block write operation of the Nth block is completed. The transaction execution result corresponding to the N+1th block, and the block write operation corresponding to the N+1th block is started.
  • the blockchain nodes can process different stages of the transaction corresponding to different blocks in parallel, using the computing power of the multi-core CPU, greatly It improves the operation efficiency and performance of the blockchain system.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present specification.
  • the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory.
  • the memory may include memory, such as high-speed random-access memory (Random-Access Memory, RAM), or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random-Access Memory
  • non-volatile memory such as at least one disk memory.
  • the electronic equipment may also include hardware required for other services.
  • the processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Component Interconnect) bus. Industry Standard Architecture, extended industry standard structure) bus, etc.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bidirectional arrow is shown in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the program may include program code, and the program code includes computer operation instructions.
  • the memory may include memory and non-volatile memory and provide instructions and data to the processor.
  • the processor reads the corresponding computer program from the non-volatile memory into the memory and runs it, forming a transaction processing device on a logical level.
  • the processor executes the program stored in the memory, and is specifically configured to execute the following operations: execute the transaction execution operation corresponding to the Nth block, wherein the transaction corresponding to the Nth block has reached a consensus in the blockchain system ; During the process of executing the transaction execution operation corresponding to the Nth block, the consensus operation on the transaction corresponding to the N+1th block is performed in parallel, wherein N is a positive integer.
  • the blockchain node can process the different stages of the transaction corresponding to different blocks in parallel, using the multi-core
  • the computing power of the CPU greatly improves the operating efficiency and performance of the blockchain system.
  • the transaction processing method in the blockchain disclosed by the above-mentioned embodiments shown in FIGS. 3 to 4 of this specification may be applied to a processor, or implemented by a processor.
  • a processor may be an integrated circuit chip with signal processing capabilities.
  • each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with one or more embodiments of this specification may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
  • the electronic device can also execute the transaction processing method in the blockchain shown in FIG. 3 to FIG. 4 , which will not be repeated in this specification.
  • the electronic devices in this specification do not exclude other implementations, such as logic devices or the combination of software and hardware, etc. That is to say, the execution subjects of the following processing procedures are not limited to each logic unit. It can also be a hardware or logic device.
  • the embodiments of the present specification also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and the instructions, when used by a portable electronic device including a plurality of application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in FIG. 3 to FIG. 4 , and is specifically configured to execute the following operations: execute the transaction execution operation corresponding to the Nth block, wherein the Nth block The corresponding transaction has reached a consensus in the blockchain system; in the process of executing the transaction execution operation corresponding to the Nth block, the consensus operation on the transaction corresponding to the N+1th block is performed in parallel, wherein N is a positive integer.
  • FIG. 6 is a schematic structural diagram of a transaction processing apparatus 600 provided by an embodiment of the present specification.
  • the transaction processing apparatus 600 may be a blockchain node, or in other words, the transaction processing apparatus may be deployed on a blockchain node.
  • the transaction processing apparatus 600 includes: a transaction execution module 603, which executes a transaction execution operation corresponding to the Nth block, wherein the transaction corresponding to the Nth block is already in the block A consensus is reached in the chain system; the consensus module 602, in the process of the transaction execution module executing the transaction execution operation corresponding to the Nth block, executes the consensus operation on the transaction corresponding to the N+1th block in parallel.
  • the consensus module 602 further performs consensus on the transaction corresponding to the Nth block in the blockchain system.
  • the transaction processing apparatus 600 further includes a transaction collection module 601. Before the consensus module 602 makes a consensus on the transaction corresponding to the Nth block in the blockchain system, the transaction collection module 601 collects the transaction collection module 601. Transactions corresponding to N blocks.
  • the transaction processing apparatus 600 further includes a block writing module 604.
  • the block writing module 604 executes the transaction. The result is written into the Nth block of the blockchain ledger.
  • the consensus module 602 performs a consensus operation on the transaction corresponding to the N+1th block after reaching a consensus on the transaction corresponding to the Nth block.
  • the transaction collection module 601 performs an operation of collecting transactions corresponding to the N+1th block in parallel.
  • an operation of collecting the transaction corresponding to the N+1th block is performed.
  • the transaction execution module 603 executes the transaction execution operation corresponding to the N+1th block in parallel.
  • the transaction execution module 603 executes the operation on the transaction corresponding to the N+1th block after performing the operation on the transaction corresponding to the Nth block.
  • the block writing module 604 writes the result of the transaction execution into the Nth block of the blockchain ledger. +1 block.
  • the block writing module 604 performs the block writing operation corresponding to the N+1 th block after the block writing operation corresponding to the N th block.
  • the transaction collection module 601 finishes the operation of collecting transactions corresponding to the N+1th block, the consensus module 602 has not finished the consensus process corresponding to the Nth block, so The transaction collection module also stores the collected transaction corresponding to the N+1th block in the memory.
  • the consensus module 602 finishes executing the consensus operation corresponding to the N+1th block, and the transaction execution module 603 has not finished executing the transaction corresponding to the Nth block, the The consensus module also stores the consensus result for the N+1th block into memory.
  • the transaction execution module 603 finishes executing the transaction execution operation corresponding to the N+1th block, the block writing module 604 has not finished the block writing process corresponding to the Nth block, The transaction execution module also stores the transaction execution result corresponding to the N+1th block in the memory.
  • the blockchain node where the transaction processing device 600 is deployed can utilize the computing power of the multi-core CPU, Processing different stages of transactions corresponding to different blocks in parallel greatly improves the operating efficiency and performance of the blockchain system.
  • a typical implementation device is a computer.
  • the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Retry When Errors Occur (AREA)

Abstract

Des modes de réalisation de la présente invention concernent un procédé et un appareil de traitement de transaction dans une chaîne de blocs, ainsi qu'un dispositif électronique. Le procédé comprend les étapes suivantes : un nœud de chaîne de blocs exécute une opération d'exécution de transaction correspondant à un N-ième bloc, une transaction correspondant au N-ième bloc atteignant un consensus dans un système de chaîne de blocs ; et le nœud de chaîne de blocs exécute simultanément une opération de consensus sur une transaction correspondant à un (N +1)-ième bloc pendant l'exécution de l'opération d'exécution de transaction correspondant au N-ième bloc.
PCT/CN2022/073652 2021-02-03 2022-01-25 Procédé et appareil de traitement de transaction dans une chaîne de blocs, et dispositif électronique WO2022166673A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110146211.6 2021-02-03
CN202110146211.6A CN112506671B (zh) 2021-02-03 2021-02-03 区块链中的交易处理方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2022166673A1 true WO2022166673A1 (fr) 2022-08-11

Family

ID=74952910

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073652 WO2022166673A1 (fr) 2021-02-03 2022-01-25 Procédé et appareil de traitement de transaction dans une chaîne de blocs, et dispositif électronique

Country Status (2)

Country Link
CN (2) CN112506671B (fr)
WO (1) WO2022166673A1 (fr)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506671B (zh) * 2021-02-03 2021-05-07 支付宝(杭州)信息技术有限公司 区块链中的交易处理方法、装置及电子设备
CN112884588B (zh) * 2021-04-30 2021-08-03 支付宝(杭州)信息技术有限公司 区块链交易执行方法、区块链节点及控制装置
CN113761071B (zh) * 2021-10-09 2023-07-11 支付宝(杭州)信息技术有限公司 一种共识方法、区块链系统和共识节点
CN113630257B (zh) * 2021-10-09 2022-01-04 支付宝(杭州)信息技术有限公司 一种共识方法、区块链系统和共识节点
CN113744063B (zh) * 2021-11-04 2022-02-08 支付宝(杭州)信息技术有限公司 区块链中执行交易的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020859A (zh) * 2019-03-28 2019-07-16 杭州秘猿科技有限公司 一种并行执行的区块链共识方法、装置及电子设备
CN110648136A (zh) * 2019-09-10 2020-01-03 杭州秘猿科技有限公司 共识与交易同步的并行处理方法、装置和电子设备
CN111522648A (zh) * 2020-07-03 2020-08-11 支付宝(杭州)信息技术有限公司 一种区块链的交易处理方法、装置及电子设备
CN112506671A (zh) * 2021-02-03 2021-03-16 支付宝(杭州)信息技术有限公司 区块链中的交易处理方法、装置及电子设备

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454343C (zh) * 2006-01-18 2009-01-21 成都前锋电子电器集团股份有限公司 税控收款机数据存储系统
CN107402824B (zh) * 2017-05-31 2020-06-02 创新先进技术有限公司 一种数据处理的方法及装置
CN107528882B (zh) * 2017-07-14 2020-12-25 创新先进技术有限公司 区块链共识网络中处理共识请求的方法、装置和电子设备
KR20190009958A (ko) * 2017-07-20 2019-01-30 주식회사 더블체인 확장형 블록체인 시스템 및 블록체인 확장방법
CN107688999B (zh) * 2017-08-11 2020-11-13 杭州溪塔科技有限公司 一种基于区块链的并行交易执行方法
CN109213790B (zh) * 2018-08-10 2021-04-20 南京一目智能科技有限公司 一种基于区块链的数据流通分析方法和系统
EP3767514A1 (fr) * 2019-06-26 2021-01-20 Indian Institute of Technology Bombay Procédé de mise a l'échelle du calcul dans une chaîne de blocs en retardant l'exécution des transactions
CN110517141B (zh) * 2019-08-27 2023-06-13 深圳前海微众银行股份有限公司 一种基于区块链系统的共识方法及装置
CN110659988B (zh) * 2019-09-10 2022-11-18 杭州秘猿科技有限公司 区块链共识与执行的并行处理方法、装置和电子设备
CN110728578A (zh) * 2019-09-29 2020-01-24 南京金宁汇科技有限公司 区块链交易的并行执行方法、系统及存储介质
CN111475501B (zh) * 2020-06-24 2020-10-30 支付宝(杭州)信息技术有限公司 区块链网络的数据清理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020859A (zh) * 2019-03-28 2019-07-16 杭州秘猿科技有限公司 一种并行执行的区块链共识方法、装置及电子设备
CN110648136A (zh) * 2019-09-10 2020-01-03 杭州秘猿科技有限公司 共识与交易同步的并行处理方法、装置和电子设备
CN111522648A (zh) * 2020-07-03 2020-08-11 支付宝(杭州)信息技术有限公司 一种区块链的交易处理方法、装置及电子设备
CN112506671A (zh) * 2021-02-03 2021-03-16 支付宝(杭州)信息技术有限公司 区块链中的交易处理方法、装置及电子设备
CN113204432A (zh) * 2021-02-03 2021-08-03 支付宝(杭州)信息技术有限公司 区块链中的交易处理方法、装置及电子设备

Also Published As

Publication number Publication date
CN112506671B (zh) 2021-05-07
CN112506671A (zh) 2021-03-16
CN113204432A (zh) 2021-08-03

Similar Documents

Publication Publication Date Title
WO2022166673A1 (fr) Procédé et appareil de traitement de transaction dans une chaîne de blocs, et dispositif électronique
TWI752118B (zh) 一種區塊鏈共識方法及裝置
WO2020082871A1 (fr) Procédé, dispositif et système d'exécution de transactions de chaîne de blocs en parallèle
CN103729442B (zh) 记录事务日志的方法和数据库引擎
CN108846749B (zh) 一种基于区块链技术的分片化的交易执行系统及方法
CN110648136B (zh) 共识与交易同步的并行处理方法、装置和电子设备
CN112181902B (zh) 数据库的存储方法、装置及电子设备
CN112882663B (zh) 一种随机写的方法、电子设备及存储介质
CN109582398B (zh) 一种状态处理方法、装置及电子设备
WO2023160088A1 (fr) Procédé de traitement de transactions de chaîne de blocs, nœud de chaîne de blocs et dispositif électronique
WO2023160092A1 (fr) Procédé de traitement de transactions de chaîne de blocs, nœud de chaîne de blocs et dispositif électronique
WO2017020735A1 (fr) Procédé de traitement de données, serveur de sauvegarde et système de mémorisation
CN115408411A (zh) 数据写入方法、装置、电子设备及存储介质
EP3933639B1 (fr) Procédé de traitement de transaction, appareil et dispositif électronique pour chaîne de blocs
CN111861744A (zh) 一种实现区块链交易并行化的方法及区块链节点
CN113486109A (zh) 异构数据库的数据同步方法、装置及电子设备
WO2021227789A1 (fr) Procédé et dispositif d'attribution d'espace de stockage, terminal et support de stockage lisible par ordinateur
US7451182B2 (en) Coordinating operations of network and host processors
WO2023093335A1 (fr) Circuit de traitement de données, puce d'intelligence artificielle et procédé et appareil de traitement de données
EP3907624A1 (fr) Contrôleur de mémoire et de stockage avec interconnexion de cohérence de mémoire intégrée
CN115760405A (zh) 交易执行方法、装置、计算机设备及介质
CN110599139B (zh) 一种区块链共识算法中的出块方法和装置
WO2022041672A1 (fr) Procédé de sauvegarde complète et appareil pour système de base de données distribué et support de stockage lisible par ordinateur
CN109271277B (zh) 数据库宕机后的访问方法、装置和系统
CN112351085A (zh) 一种网络资源安全共享方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22748952

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22748952

Country of ref document: EP

Kind code of ref document: A1