CN110648136A - Consensus and transaction synchronous parallel processing method and device and electronic equipment - Google Patents

Consensus and transaction synchronous parallel processing method and device and electronic equipment Download PDF

Info

Publication number
CN110648136A
CN110648136A CN201910851317.9A CN201910851317A CN110648136A CN 110648136 A CN110648136 A CN 110648136A CN 201910851317 A CN201910851317 A CN 201910851317A CN 110648136 A CN110648136 A CN 110648136A
Authority
CN
China
Prior art keywords
transaction
transactions
pool
proposal
consensus
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201910851317.9A
Other languages
Chinese (zh)
Other versions
CN110648136B (en
Inventor
高亦民
万涔涔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Cryptape Co ltd
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 Cryptape Co ltd filed Critical Cryptape Co ltd
Priority to CN201910851317.9A priority Critical patent/CN110648136B/en
Publication of CN110648136A publication Critical patent/CN110648136A/en
Application granted granted Critical
Publication of CN110648136B publication Critical patent/CN110648136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The embodiment of the specification discloses a consensus and transaction synchronous parallel processing method, a device and electronic equipment, wherein the method comprises the following steps: in packaging the transactions, adding the transactions in the transaction cache pool to a synchronization portion of the proposal and adding the transactions in the transaction proposal pool to a sequencing portion of the proposal; in this way, when the proposal is identified, only the transaction of the sequence part is identified, and the transaction of the synchronization part is synchronized; after consensus is achieved, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool. Therefore, the transaction can be synchronously carried in the consensus processing process and executed in parallel, which is equivalent to the time of contending for one block to synchronize the transaction without a transaction body, thereby avoiding the situation that the consensus cannot be normally executed when the transaction lacks the transaction body, and improving the consensus efficiency and the consensus processing performance.

Description

Consensus and transaction synchronous parallel processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer software technologies, and in particular, to a method and an apparatus for concurrent processing of consensus and transaction synchronization, and an electronic device.
Background
In the blockchain system, after a transaction is sent out, the consensus node receiving the transaction broadcasts the transaction to other consensus nodes through the network. However, when the transaction amount is large, the problem that the transaction pools of the respective consensus nodes are not synchronized easily occurs, mainly because: there may be transactions that receive only the transaction hash and not the transaction body. In the process of consensus, the transaction body needs to be pulled, and if the transaction body is not received during verification, the verification cannot pass, so that the consensus efficiency and the consensus processing performance are influenced.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method, an apparatus and an electronic device for concurrent processing of consensus and transaction synchronization, so as to effectively improve consensus efficiency and consensus processing performance.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
in a first aspect, a method for parallel processing of consensus and transaction synchronization is provided, which is applied to a blockchain system, and includes:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
In a second aspect, a parallel processing apparatus for synchronization of consensus and transaction is provided, which is applied in a blockchain system, and includes:
a transaction packaging module for adding transactions in a transaction buffer pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal when a proposal packaging transaction is initiated; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
a consensus module for consensus of the transactions of the sequencing part and, at the same time, synchronizing the transactions of the synchronization part;
and the execution module is used for moving out the current transaction in the transaction proposal pool and moving the transaction in the transaction cache pool into the transaction proposal pool after consensus is achieved.
In a third aspect, an electronic device is provided, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
In a fourth aspect, a computer-readable storage medium is presented, the computer-readable storage medium storing one or more programs that, when executed by an electronic device that includes a plurality of application programs, cause the electronic device to:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
Through the technical scheme, when the transaction is packaged, the transaction in the transaction cache pool is added to the synchronous part of the proposal, and the transaction in the transaction proposal pool is added to the sequencing part of the proposal; in this way, when the proposal is identified, only the transaction of the sequence part is identified, and the transaction of the synchronization part is synchronized; after consensus is achieved, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool. Therefore, the transaction can be synchronously carried in the consensus processing process and executed in parallel, which is equivalent to the time of contending for one block to synchronize the transaction without a transaction body, thereby avoiding the situation that the consensus cannot be normally executed when the transaction lacks the transaction body, and improving the consensus efficiency and the consensus processing performance.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic diagram illustrating steps of a method for processing consensus and transaction synchronization in parallel according to an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification.
Fig. 3 is a schematic structural diagram of a parallel processing apparatus for synchronization of consensus and transaction according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
In consideration of the conventional consensus process, when the number of transactions is large, the transactions in the transaction pool are not synchronized due to network transmission delay. In order to avoid the influence of asynchronous transactions on consensus, the following configuration improvements are made in the embodiment of the specification:
1. the transaction pool is divided into two parts: a transaction cache pool and a transaction offer pool; the transaction cache pool is used for storing newly received transactions which are possible to receive only transaction hashes but not transaction bodies, so that the transactions can be distinguished from synchronized transactions and cached in the transaction cache pool; the transaction proposal pool is used for storing synchronized transactions which comprise both transaction hashes and transaction bodies.
2. The consensus proposal is divided into two parts: a synchronization portion and a sequencing portion; wherein the synchronization part is used for adding the transaction in the transaction cache pool; the sequencing portion is for adding a transaction in the transaction offer pool.
It should be understood that it is the improvement of the above configuration that the consensus and the transaction synchronization can be performed in a parallel processing manner, so that the time for pulling the transaction during consensus is saved, and the consensus processing performance is improved.
The following describes a parallel processing scheme resulting from the above configuration improvement with reference to a specific consensus process.
Referring to fig. 1, a schematic diagram of steps of a parallel processing method for consensus and transaction synchronization provided in an embodiment of the present disclosure, the parallel processing method being applicable to a blockchain system, and the parallel processing method may include the following steps:
step 102: upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions.
As the above configuration is improved, the transaction in the transaction buffer pool is a new transaction received by the block, and there may be an out-of-synchronization condition in this part of the transaction, so that this part of the transaction may be stored in the transaction buffer pool first, and when a proposal packaging transaction is initiated, the transaction in the transaction buffer pool is added to the synchronization part of the proposal, and the synchronized transaction in the transaction proposal pool is added to the sequencing part of the proposal.
Step 104: the transactions of the sequencing portion are agreed upon, while the transactions of the synchronization portion are synchronized.
In the process of identifying the proposal, the embodiment of the specification is different from the prior art in that only the transaction added by the sequencing part in the proposal is identified, and simultaneously, the transaction added by the synchronization part in the proposal is synchronized.
Optionally, in this embodiment of the present specification, when synchronizing the transaction added by the synchronization part in the proposal, the method may specifically perform: pulling a transaction body of the transaction of the synchronization portion, and/or pulling a transaction hash of the transaction of the synchronization portion. In other words, a transaction that does not have a transaction request transaction body for the unsynchronized transactions of the synchronization section requests a transaction hash for the unsynchronized transactions of the synchronization section.
Step 106: after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
Optionally, after step 106, the method may further include: the transaction of the sequencing portion is performed.
Through the technical scheme, when the transaction is packaged, the transaction in the transaction cache pool is added to the synchronous part of the proposal, and the transaction in the transaction proposal pool is added to the sequencing part of the proposal; in this way, when the proposal is identified, only the transaction of the sequence part is identified, and the transaction of the synchronization part is synchronized; after consensus is achieved, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool. Therefore, the transaction can be synchronously carried in the consensus processing process and executed in parallel, which is equivalent to the time of contending for one block to synchronize the transaction without a transaction body, thereby avoiding the situation that the consensus cannot be normally executed when the transaction lacks the transaction body and improving the performance of the consensus processing.
Example two
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring to fig. 2, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 2, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the shared resource access control device on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
The method performed by the parallel processing apparatus for recognizing and synchronizing with transaction as disclosed in the embodiment of fig. 1 in the present specification can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may also execute the method shown in fig. 1, and implement the functions of the embodiment of the parallel processing apparatus for consensus and transaction synchronization shown in fig. 1, which are not described herein again in this embodiment of the present disclosure.
Of course, besides the software implementation, the electronic device of the embodiment of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Through the technical scheme, when the transaction is packaged, the transaction in the transaction cache pool is added to the synchronous part of the proposal, and the transaction in the transaction proposal pool is added to the sequencing part of the proposal; in this way, when the proposal is identified, only the transaction of the sequence part is identified, and the transaction of the synchronization part is synchronized; after consensus is achieved, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool. Therefore, the transaction can be synchronously carried in the consensus processing process and executed in parallel, which is equivalent to the time of contending for one block to synchronize the transaction without a transaction body, thereby avoiding the situation that the consensus cannot be normally executed when the transaction lacks the transaction body and improving the performance of the consensus processing.
EXAMPLE III
Embodiments of the present specification also propose a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, are capable of causing the portable electronic device to perform the method of the embodiment shown in fig. 1, and in particular for performing the method of:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
Through the technical scheme, when the transaction is packaged, the transaction in the transaction cache pool is added to the synchronous part of the proposal, and the transaction in the transaction proposal pool is added to the sequencing part of the proposal; in this way, when the proposal is identified, only the transaction of the sequence part is identified, and the transaction of the synchronization part is synchronized; after consensus is achieved, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool. Therefore, the transaction can be synchronously carried in the consensus processing process and executed in parallel, which is equivalent to the time of contending for one block to synchronize the transaction without a transaction body, thereby avoiding the situation that the consensus cannot be normally executed when the transaction lacks the transaction body and improving the performance of the consensus processing.
Example four
Fig. 3 is a schematic structural diagram of a parallel processing apparatus 300 for synchronization of consensus and transaction according to an embodiment of the present disclosure. Referring to fig. 3, in one software implementation, a parallel processing apparatus 300 for recognizing and synchronizing transactions may include:
a transaction packaging module 302 for adding transactions in a transaction buffer pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal when a proposal packaging transaction is initiated; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
a consensus module 304 for consensus on the transactions of the sequencing part and, at the same time, synchronizing the transactions of the synchronization part;
the executing module 306 is configured to move out the current transaction in the transaction proposal pool and move the transaction in the transaction cache pool into the transaction proposal pool after the consensus is achieved.
Through the technical scheme, when the transaction is packaged, the transaction in the transaction cache pool is added to the synchronous part of the proposal, and the transaction in the transaction proposal pool is added to the sequencing part of the proposal; in this way, when the proposal is identified, only the transaction of the sequence part is identified, and the transaction of the synchronization part is synchronized; after consensus is achieved, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool. Therefore, the transaction can be synchronously carried in the consensus processing process and executed in parallel, which is equivalent to the time of contending for one block to synchronize the transaction without a transaction body, thereby avoiding the situation that the consensus cannot be normally executed when the transaction lacks the transaction body and improving the performance of the consensus processing.
Optionally, as an embodiment, the executing module 306 is further configured to execute the transaction of the sequencing part.
In a specific implementation manner of the embodiment of the present specification, the consensus module 304 is specifically configured to pull a transaction body of the transaction of the synchronization part and/or pull a transaction hash of the transaction of the synchronization part when the transaction of the synchronization part is synchronized.
In yet another specific implementation manner of the embodiment of the present specification, the transaction packaging module 302 is further configured to receive a transaction and store the transaction in the transaction cache pool before initiating a proposal packaging transaction.
It should be understood that the parallel processing apparatus for consensus and transaction synchronization according to the embodiments of the present disclosure may also perform the method performed by the parallel processing apparatus (or device) for consensus and transaction synchronization shown in fig. 1, and implement the functions of the parallel processing apparatus (or device) for consensus and transaction synchronization shown in fig. 1, which are not described herein again.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present specification shall be included in the protection scope of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, 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, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic 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. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (10)

1. A method for processing consensus and transaction synchronously in parallel is applied to a blockchain system and comprises the following steps:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while synchronizing the transactions of the synchronization part
After consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
2. The method of claim 1, after consensus is achieved, the method further comprising:
the transaction of the sequencing portion is performed.
3. The method of claim 1, synchronizing transactions of the synchronization portion, comprising in particular:
pulling a transaction body of the transaction of the synchronization portion, and/or pulling a transaction hash of the transaction of the synchronization portion.
4. The method of any of claims 1-3, prior to initiating a proposal packaging transaction, the method further comprising:
receiving a transaction and storing the transaction in the transaction cache pool.
5. A parallel processing device for synchronization of consensus and transaction is applied to a blockchain system and comprises:
a transaction packaging module for adding transactions in a transaction buffer pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal when a proposal packaging transaction is initiated; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
a consensus module for consensus of the transactions of the sequencing part and, at the same time, synchronizing the transactions of the synchronization part;
and the execution module is used for moving out the current transaction in the transaction proposal pool and moving the transaction in the transaction cache pool into the transaction proposal pool after consensus is achieved.
6. The apparatus of claim 5, the execution module further to:
the transaction of the sequencing portion is performed.
7. The apparatus of claim 5, wherein the consensus module, when synchronizing the transactions of the synchronization portion, is specifically configured to:
pulling a transaction body of the transaction of the synchronization portion, and/or pulling a transaction hash of the transaction of the synchronization portion.
8. The apparatus of any of claims 5-7, the transaction packaging module, prior to initiating the proposal packaging transaction, to further:
receiving a transaction and storing the transaction in the transaction cache pool.
9. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
10. A computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
upon initiating a proposal packaging transaction, adding transactions in a transaction cache pool to a synchronization portion of the proposal and adding transactions in a transaction proposal pool to a sequencing portion of the proposal; wherein the transactions in the transaction cache pool comprise uncompleted synchronized transactions, and the transactions in the transaction offer pool are synchronized transactions;
consensus is made on the transactions of the sequencing part while the transactions of the synchronization part are synchronized;
after consensus is reached, the current transaction in the transaction offer pool is moved out, and the transactions in the transaction cache pool are moved into the transaction offer pool.
CN201910851317.9A 2019-09-10 2019-09-10 Consensus and transaction synchronous parallel processing method and device and electronic equipment Active CN110648136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910851317.9A CN110648136B (en) 2019-09-10 2019-09-10 Consensus and transaction synchronous parallel processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910851317.9A CN110648136B (en) 2019-09-10 2019-09-10 Consensus and transaction synchronous parallel processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110648136A true CN110648136A (en) 2020-01-03
CN110648136B CN110648136B (en) 2022-06-03

Family

ID=68991720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910851317.9A Active CN110648136B (en) 2019-09-10 2019-09-10 Consensus and transaction synchronous parallel processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110648136B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522648A (en) * 2020-07-03 2020-08-11 支付宝(杭州)信息技术有限公司 Transaction processing method and device for block chain and electronic equipment
CN111556115A (en) * 2020-04-22 2020-08-18 财付通支付科技有限公司 Data processing method, device and equipment based on block chain and storage medium
CN112508577A (en) * 2021-02-04 2021-03-16 北京全息智信科技有限公司 Block generation and verification method and device, electronic equipment and readable storage medium
CN112529589A (en) * 2021-02-10 2021-03-19 北京全息智信科技有限公司 Processing method and device for long time-consuming blockchain transaction and electronic equipment
CN112884587A (en) * 2021-04-30 2021-06-01 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device
WO2022166673A1 (en) * 2021-02-03 2022-08-11 支付宝(杭州)信息技术有限公司 Transaction processing method and apparatus in blockchain, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149819A1 (en) * 2015-11-25 2017-05-25 International Business Machines Corporation Resisting replay attacks efficiently in a permissioned and privacy- preserving blockchain network
CN107402824A (en) * 2017-05-31 2017-11-28 阿里巴巴集团控股有限公司 A kind of method and device of data processing
CN107688945A (en) * 2017-08-11 2018-02-13 杭州秘猿科技有限公司 A kind of efficient license chain based on delaying state common recognition
CN109087098A (en) * 2018-07-27 2018-12-25 杭州复杂美科技有限公司 A kind of transaction processing method, system, equipment and storage medium for permitting chain
CN110020859A (en) * 2019-03-28 2019-07-16 杭州秘猿科技有限公司 A kind of block chain common recognition method, apparatus and electronic equipment executed parallel
CN110084601A (en) * 2019-04-30 2019-08-02 杭州复杂美科技有限公司 Parallel chain main chain stateful transaction synchronous method, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149819A1 (en) * 2015-11-25 2017-05-25 International Business Machines Corporation Resisting replay attacks efficiently in a permissioned and privacy- preserving blockchain network
CN107402824A (en) * 2017-05-31 2017-11-28 阿里巴巴集团控股有限公司 A kind of method and device of data processing
CN107688945A (en) * 2017-08-11 2018-02-13 杭州秘猿科技有限公司 A kind of efficient license chain based on delaying state common recognition
CN109087098A (en) * 2018-07-27 2018-12-25 杭州复杂美科技有限公司 A kind of transaction processing method, system, equipment and storage medium for permitting chain
CN110020859A (en) * 2019-03-28 2019-07-16 杭州秘猿科技有限公司 A kind of block chain common recognition method, apparatus and electronic equipment executed parallel
CN110084601A (en) * 2019-04-30 2019-08-02 杭州复杂美科技有限公司 Parallel chain main chain stateful transaction synchronous method, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
石翔: "区块链性能突破(四):共识与同步流程优化", 《INFOQ》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556115A (en) * 2020-04-22 2020-08-18 财付通支付科技有限公司 Data processing method, device and equipment based on block chain and storage medium
CN111522648A (en) * 2020-07-03 2020-08-11 支付宝(杭州)信息技术有限公司 Transaction processing method and device for block chain and electronic equipment
CN111522648B (en) * 2020-07-03 2020-10-09 支付宝(杭州)信息技术有限公司 Transaction processing method and device for block chain and electronic equipment
US11803447B2 (en) 2020-07-03 2023-10-31 Alipay (Hangzhou) Information Technology Co., Ltd. Transaction processing method, apparatus, and electronic device for blockchain
WO2022166673A1 (en) * 2021-02-03 2022-08-11 支付宝(杭州)信息技术有限公司 Transaction processing method and apparatus in blockchain, and electronic device
CN112508577A (en) * 2021-02-04 2021-03-16 北京全息智信科技有限公司 Block generation and verification method and device, electronic equipment and readable storage medium
CN112529589A (en) * 2021-02-10 2021-03-19 北京全息智信科技有限公司 Processing method and device for long time-consuming blockchain transaction and electronic equipment
CN112529589B (en) * 2021-02-10 2021-07-27 北京全息智信科技有限公司 Processing method and device for long time-consuming blockchain transaction and electronic equipment
CN112884587A (en) * 2021-04-30 2021-06-01 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device
CN112884587B (en) * 2021-04-30 2021-08-03 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device

Also Published As

Publication number Publication date
CN110648136B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN110648136B (en) Consensus and transaction synchronous parallel processing method and device and electronic equipment
CN108648078B (en) Transaction preprocessing method and device and electronic equipment
CN110659988B (en) Parallel processing method and device for block chain consensus and execution and electronic equipment
CN108846749B (en) Partitioned transaction execution system and method based on block chain technology
JP6876806B2 (en) Blockchain Consensus Formation Methods and Devices
US20200136804A1 (en) Data processing method and apparatus
CN110020859B (en) Parallel execution block chain consensus method and device and electronic equipment
CN112506671B (en) Transaction processing method and device in block chain and electronic equipment
CN111369358B (en) Block chain consensus method and device and electronic equipment
CN109379299B (en) Method, device and system for limiting data flow
CN109582398B (en) State processing method and device and electronic equipment
CN111698244B (en) Method and device for rapidly participating in consensus of newly added nodes and electronic equipment
CN110708163A (en) Block chain consensus method, device and system and electronic equipment
CN110648125B (en) Packaging transaction method and device, electronic equipment and storage medium
CN111882322A (en) Method and device for packaging transactions in sequence and electronic equipment
CN109345081B (en) Data acquisition method and device and electronic equipment
CN111522648B (en) Transaction processing method and device for block chain and electronic equipment
CN110675148B (en) Synchronization method and system for verification node set and electronic equipment
CN111709748A (en) Transaction execution method and device with service attribute and electronic equipment
CN110599139B (en) Block output method and device in block chain consensus algorithm
CN109615465B (en) Service order processing method and device and electronic equipment
CN112232954A (en) Dynamic adjustment method and device for proposal timeout threshold value and electronic equipment
CN110058881B (en) Fixed-point accumulation operation processing method and device and electronic equipment
CN110750271A (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN110704134A (en) Method and device for performing function expansion on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200103

Assignee: Hangzhou Xita Technology Co.,Ltd.

Assignor: CRYPTAPE Co.,Ltd.

Contract record no.: X2022330000450

Denomination of invention: Parallel processing method, device and electronic device for consensus and transaction synchronization

Granted publication date: 20220603

License type: Common License

Record date: 20220824

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231213

Address after: 10/F, Guotou Building, No. 398 Shaoxing Road, Gongshu District, Hangzhou City, Zhejiang Province, 310000

Patentee after: Hangzhou Xita Technology Co.,Ltd.

Address before: Room 1301, block a, Huaxing Times Square, 478 Wensan Road, Xihu District, Hangzhou City, Zhejiang Province, 310013

Patentee before: CRYPTAPE Co.,Ltd.