CN114092252A - Block chain transaction execution method, device, equipment and readable storage medium - Google Patents

Block chain transaction execution method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN114092252A
CN114092252A CN202111418268.3A CN202111418268A CN114092252A CN 114092252 A CN114092252 A CN 114092252A CN 202111418268 A CN202111418268 A CN 202111418268A CN 114092252 A CN114092252 A CN 114092252A
Authority
CN
China
Prior art keywords
transaction
data
consensus
node
block
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
CN202111418268.3A
Other languages
Chinese (zh)
Other versions
CN114092252B (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.)
Chengdu Quality Starker Technology Co Ltd
Original Assignee
Chengdu Quality Starker Technology 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 Chengdu Quality Starker Technology Co Ltd filed Critical Chengdu Quality Starker Technology Co Ltd
Priority to CN202111418268.3A priority Critical patent/CN114092252B/en
Priority claimed from CN202111418268.3A external-priority patent/CN114092252B/en
Publication of CN114092252A publication Critical patent/CN114092252A/en
Application granted granted Critical
Publication of CN114092252B publication Critical patent/CN114092252B/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
    • 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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Technology Law (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of block chains, in particular to a block chain transaction execution method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: sending first transaction data to a first consensus node, wherein the first transaction data is used for triggering the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data containing voting results of a plurality of consensus nodes, and the master node is used for distributing first execution data to the plurality of consensus nodes; synchronizing a block header of a public account book of a second consensus node; according to the method, the block chain network nodes are divided into the consensus nodes and the light nodes, the light nodes do not participate in voting consensus of the transaction, only the block header information of the consensus nodes is stored, and the newly added mechanism nodes are marked as the light nodes, so that the problems that the transaction consensus consumes longer and longer time and the service capacity of the block chain network is reduced due to the fact that more and more mechanism nodes are added are effectively solved.

Description

Block chain transaction execution method, device, equipment and readable storage medium
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a block chain transaction execution method, a block chain transaction execution device, block chain transaction execution equipment and a readable storage medium.
Background
With the gradual expansion of the blockchain service scale, more and more organizations participate in the blockchain network, and the transaction consensus of all nodes in the blockchain network transaction consumes a large amount of transaction duration, thereby causing the service capability of the blockchain network to be obviously reduced.
Disclosure of Invention
The present invention is directed to a method, an apparatus, a device and a readable storage medium for performing a blockchain transaction, so as to solve the above-mentioned problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides a method for performing a blockchain transaction, where the method is applied to any light node in a blockchain network, where the light node is a node that does not participate in consensus in the blockchain network, and the method includes:
sending first transaction data to a first consensus node, wherein the first transaction data is data reflecting transaction details, the first transaction data is used for triggering the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data containing voting results of a plurality of consensus nodes, the master node is used for distributing first execution data to the plurality of consensus nodes, and the first execution data comprises the first consensus transaction data; and synchronizing the block head of the public account book of a second consensus node, wherein the second consensus node is the consensus node which receives the account book synchronization request, and the block head is account book data containing block height and block hash.
Optionally, the synchronizing the block header of the public ledger of the consensus node includes:
sending an account book synchronization request to the second consensus node, wherein the account book synchronization request is used for triggering the second consensus node to send block header data of current blocks of a plurality of consensus nodes to a light node;
receiving block header data of a plurality of current blocks sent by the second consensus node;
and generating a new block head according to the block head data of the current blocks.
Optionally, after synchronizing the block header of the public ledger of the consensus node, the method further includes:
calling the first transaction data, wherein the first transaction data comprises a first transaction identifier and first transaction details;
generating a first transaction query instruction according to the first transaction identifier, and sending the first transaction query instruction to a third consensus node, wherein the first transaction query instruction is used for triggering the third consensus node to send first account book block data of a plurality of consensus nodes to a light node, the first account book block data is account book block data corresponding to the first transaction identifier, the account book block data comprises a plurality of transaction details, and each transaction detail corresponds to one transaction identifier;
and sequentially detecting whether a second transaction detail in each corresponding account book block data is the same as the first transaction detail, and if the second transaction details are the same as the first transaction detail, determining that the first transaction data is executed without errors.
In a second aspect, an embodiment of the present application provides a blockchain transaction execution apparatus, where the apparatus is applicable to any light node in a blockchain network, where the light node is a node that does not participate in consensus in the blockchain network, and the apparatus includes:
a first sending module, configured to send first transaction data to a first consensus node, where the first transaction data is data reflecting transaction details, the first transaction data is used to trigger the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data including voting results of multiple consensus nodes, the master node is used to distribute first execution data to the multiple consensus nodes, and the first execution data includes the first consensus transaction data;
the system comprises a first synchronization module and a second synchronization module, wherein the first synchronization module is used for synchronizing the block head of a public account book of a second consensus node, the second consensus node is the consensus node which receives the account book synchronization request, and the block head is account book block data containing block height and block hash.
Optionally, the first synchronization module includes:
a first sending unit, configured to send an account book synchronization request to the second consensus node, where the account book synchronization request is used to trigger the second consensus node to send block header data of current blocks of multiple consensus nodes to a light node;
a first receiving unit, configured to receive block header data of multiple current blocks sent by the second common node;
and the first calculation unit is used for generating a new block head according to the block head data of the current blocks.
Optionally, the first synchronization module further includes:
the first transfer unit is used for transferring the first transaction data, and the first transaction data comprises a first transaction identifier and a first transaction detail;
the second calculation unit is used for generating a first transaction query instruction according to the first transaction identifier and sending the first transaction query instruction to a third consensus node, wherein the first transaction query instruction is used for triggering the third consensus node to send first ledger block data of a plurality of consensus nodes to a light node, the first ledger block data is ledger block data corresponding to the first transaction identifier, the ledger block data comprises a plurality of transaction details, and each transaction detail corresponds to one transaction identifier;
and the third calculation unit is used for sequentially detecting whether the second transaction details in each corresponding account book block data are the same as the first transaction details, and if the second transaction details are the same as the first transaction details, determining that the first transaction data is executed without errors.
In a third aspect, an embodiment of the present application provides a blockchain transaction execution device, which includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the block chain transaction execution method when executing the computer program.
In a fourth aspect, the present application provides a readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the above block chain transaction execution method.
The invention has the beneficial effects that:
according to the method, the block chain network nodes are divided into the consensus nodes and the light nodes, the light nodes do not participate in voting consensus of the transaction, only the block header information of the consensus nodes is stored, and the newly added mechanism nodes are marked as the light nodes, so that the problems that the transaction consensus consumes longer and longer time and the service capacity of the block chain network is reduced due to the fact that more and more mechanism nodes are added are effectively solved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flow chart of a method for performing a blockchain transaction according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a light node listening to synchronization block header data according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for performing a blockchain transaction according to an embodiment of the present invention;
FIG. 4 is a block chain transaction execution device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a blockchain transaction execution apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a method for performing a blockchain transaction, which is applied to any light node in a blockchain network, where the light node is a node that does not participate in consensus in the blockchain network, and the method includes steps S1 and S2.
Step S1, a light node sends first transaction data to a first consensus node, wherein the first consensus node is any one of a plurality of consensus nodes, the first transaction data is data reflecting transaction details, the first transaction data is used for triggering the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data containing voting results of the plurality of consensus nodes, the master node is used for distributing first execution data to the plurality of consensus nodes, and the first execution data comprises the first consensus transaction data;
in this embodiment, after receiving the first transaction data, the first consensus node signs the first transaction data, then sends the signed first transaction data to each consensus node, each consensus node votes according to the transaction content, and feeds the voting result back to the first consensus node, the consensus nodes collect a plurality of voting results and package the voting results together with the first transaction data to obtain first consensus data, and send the first consensus data to the master node, it should be noted that the master node receives the consensus data sent by the plurality of consensus nodes in unit time, the first consensus data is only one of the plurality of consensus data, the master node sorts the plurality of consensus data, the sorted plurality of consensus data (including the first consensus data) is marked as first execution data, the master node sends the first execution data to each consensus node, after receiving the execution data, the consensus node sequentially executes a plurality of consensus data in the first execution data, so that the final execution results of the nodes are consistent, and the consistency of the public account book is further ensured;
it should be noted that, in the whole block chain transaction execution, when the master node sends execution data, it is necessary to confirm that each consensus node receives the execution data before sending the next execution data, and the more consensus nodes, the longer the time consumed for sending the execution data and ensuring that each consensus node receives the execution data, so the present invention adopts a part of authoritative nodes in the block chain network as the consensus nodes, and the other nodes as light nodes, which greatly reduces the number of nodes participating in consensus, makes the consensus speed faster, and effectively avoids the problem that the transaction consensus time is longer and longer with the addition of more and more organization nodes, and further the service capability of the block chain network is reduced.
Step s2, synchronizing a block header of a public ledger of a second consensus node, where the second consensus node is a consensus node that receives a ledger synchronization request, the second consensus node may be any one of a plurality of consensus nodes, the block header is ledger data including a block height and a block hash, it should be noted that the block-chain public ledger includes a plurality of blocks, each block is composed of a block header and a block body, the block body includes details (service data) of specific contents of each service transaction, the data size is relatively large, one of the block header information includes data of state-root, the data is used to record root hashes of all service state changes under the block, and the correctness of the service data state changes can be calculated and verified by using RLP hash values of an MPT tree (Merkle-PatricaTrie), so as to achieve the purpose of verifying consensus, the light nodes only synchronously store the block header information, so that the time consumption of executing data (second-level consensus) sent by the master node by each node in the block chain network is further reduced, and the problems that the transaction consensus consumes longer and longer time and the service capability of the block chain network is reduced due to the addition of more and more mechanism nodes are solved.
Secondly, the light node does not accept the execution data sent by the master node, so that a complete public account book cannot be obtained, the light node only stores block header information, and the block header information requests and synchronizes the block header data in the public account book of the common node without judging by the light node, so that the block header of the light node is synchronized with the block header information of other common nodes in the block chain network.
As shown in fig. 2, in an embodiment of the present disclosure, the specific operation of synchronizing the block header of the common ledger of the second consensus node in step S2 includes step S21, step S22 and step S23.
Step s21, the light node sends an account book synchronization request to the second consensus node, where the second consensus node may be any node in the consensus nodes, and the account book synchronization request is used to trigger the second consensus node to send block header data of current blocks of multiple consensus nodes to the light node, and the specific implementation manner may be:
the second common identification node sends a block head request instruction to other common identification nodes in the block chain network after receiving the account book synchronous request of the light node, the other common identification nodes send block head data of a block with the highest current height in the common account book to the second common identification node after receiving the block head request instruction, and the second common identification node packs the block head data of the block with the highest current height sent by the common identification nodes to obtain the block head data of the current blocks and forwards the block head data to the light node.
S22, receiving block header data of a plurality of current blocks sent by the second consensus node;
and S23, generating a new block head by the node according to the block head data of the current blocks.
The light node can sequentially judge the height of each block head data, if the block heights and the hash values in the block head data of a plurality of current blocks are the same, the current block heights of a plurality of common nodes are the same, the block data of the heights are the same, the fed back data is credible data, and then the block head data of the current block is copied and recorded as a new block head.
In an embodiment of the present disclosure, after the step S2, the method for the light node to verify whether the first transaction data submitted by the light node is accurately executed according to the transaction details includes steps S24, S25 and S26.
S24, calling the first transaction data, wherein the first transaction data comprises a first transaction identifier and a first transaction detail, and the transaction identifier can be a transaction ID and is unique;
step S25, generating a first transaction query instruction according to the first transaction identifier and sending the first transaction query instruction to a third consensus node, wherein the third consensus node can be any one of a plurality of consensus nodes, the first transaction query instruction is used for triggering the third consensus node to send first account book block data of the plurality of consensus nodes to a light node, the first account book block data is account book block data corresponding to the first transaction identifier, the account book block data comprises a plurality of transaction details, and each transaction detail corresponds to one transaction identifier;
the block data comprises block body data and block head data, and the block body data comprises detailed transaction details.
Step S26, whether second transaction details in each corresponding account book block data are the same as the first transaction details is detected in sequence, and if the second transaction details are the same as the first transaction details, it is determined that the first transaction data are executed without errors.
Example 2
As shown in fig. 2, the present embodiment provides a blockchain transaction execution apparatus, which is suitable for any light node in a blockchain network, where the light node is a node that does not participate in consensus in the blockchain network, and the apparatus includes a first sending module 71 and a first synchronization module 72.
A first sending module 71, configured to send first transaction data to a first consensus node, where the first transaction data is data reflecting transaction details, the first transaction data is used to trigger the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data including voting results of a plurality of consensus nodes, the master node is used to distribute first execution data to the plurality of consensus nodes, and the first execution data includes the first consensus transaction data;
the first synchronization module 72 is configured to synchronize a block header of a public ledger of a second consensus node, where the second consensus node is a consensus node that receives the ledger synchronization request, and the block header is ledger block data that includes a block height and a block hash.
In a specific embodiment of the present disclosure, the first synchronization module 72 may further include a first sending unit 721, a first receiving unit 722, and a first calculating unit 723.
A first sending unit 721, configured to send an accounting synchronization request to the second consensus node, where the accounting synchronization request is used to trigger the second consensus node to send block header data of current blocks of multiple consensus nodes to a light node;
a first receiving unit 722, configured to receive block header data of a plurality of current blocks sent by the second common node;
the first calculating unit 723 is configured to generate a new chunk header according to the chunk header data of the plurality of current chunks.
In one embodiment of the present disclosure, the first synchronization module may further include a first retrieving unit 724, a second calculating unit 725, and a third calculating unit 726.
A first retrieving unit 724, configured to retrieve the first transaction data, where the first transaction data includes a first transaction identifier and a first transaction detail;
the second calculation unit 725 is configured to generate a first transaction query instruction according to the first transaction identifier, and send the first transaction query instruction to a third consensus node, where the first transaction query instruction is used to trigger the third consensus node to send first ledger block data of multiple consensus nodes to a light node, where the first ledger block data is ledger block data corresponding to the first transaction identifier, the ledger block data includes multiple transaction details, and each transaction detail corresponds to one transaction identifier;
a third calculating unit 726, configured to detect whether a second transaction detail in each corresponding ledger block data is the same as the first transaction detail in sequence, and if a plurality of second transaction details are the same as the first transaction detail, determine that the first transaction data is executed without error.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
Example 3
Corresponding to the above method embodiments, the embodiments of the present disclosure further provide a blockchain transaction execution device, and a blockchain transaction execution device described below and a blockchain transaction execution method described above may be referred to in correspondence with each other.
Fig. 5 is a block diagram illustrating a blockchain transaction execution facility 800 according to an example embodiment. As shown in fig. 3, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800, so as to complete all or part of the steps in the above block chain transaction execution method. The memory 402 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, for performing the block chain transaction execution method.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the blockchain transaction execution method described above is also provided. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the electronic device 800 to perform the blockchain transaction execution method described above.
Example 4
Corresponding to the above method embodiment, the present disclosure further provides a readable storage medium, and a readable storage medium described below and a blockchain transaction execution method described above may be referred to in correspondence with each other.
A readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the block chain transaction execution method of the above-described method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for executing blockchain transaction, the method being applied to any light node in a blockchain network, wherein the light node is a node that does not participate in consensus in the blockchain network, and the method comprising:
sending first transaction data to a first consensus node, wherein the first transaction data is data reflecting transaction details, the first transaction data is used for triggering the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data containing voting results of a plurality of consensus nodes, the master node is used for distributing first execution data to the plurality of consensus nodes, and the first execution data comprises the first consensus transaction data;
and synchronizing the block head of the public account book of a second consensus node, wherein the second consensus node is the consensus node which receives the account book synchronization request, and the block head is account book data containing block height and block hash.
2. The blockchain transaction execution method of claim 1, wherein the synchronizing the blockhead of the common ledger of the consensus node comprises:
sending an account book synchronization request to the second consensus node, wherein the account book synchronization request is used for triggering the second consensus node to send block header data of current blocks of a plurality of consensus nodes to a light node;
receiving block header data of a plurality of current blocks sent by the second consensus node;
and generating a new block head according to the block head data of the current blocks.
3. The blockchain transaction execution method of claim 1, wherein after synchronizing the blockhead of the common ledger of the consensus node, further comprising:
calling the first transaction data, wherein the first transaction data comprises a first transaction identifier and first transaction details;
generating a first transaction query instruction according to the first transaction identifier, and sending the first transaction query instruction to a third consensus node, wherein the first transaction query instruction is used for triggering the third consensus node to send first account book block data of a plurality of consensus nodes to a light node, the first account book block data is account book block data corresponding to the first transaction identifier, the account book block data comprises a plurality of transaction details, and each transaction detail corresponds to one transaction identifier;
and sequentially detecting whether a second transaction detail in each corresponding account book block data is the same as the first transaction detail, and if the second transaction details are the same as the first transaction detail, determining that the first transaction data is executed without errors.
4. A blockchain transaction execution apparatus, adapted to any light node in a blockchain network, where the light node is a node that does not participate in consensus in the blockchain network, the apparatus comprising:
a first sending module, configured to send first transaction data to a first consensus node, where the first transaction data is data reflecting transaction details, the first transaction data is used to trigger the first consensus node to send first consensus data to a master node, the first consensus data is the first transaction data including voting results of multiple consensus nodes, the master node is used to distribute first execution data to the multiple consensus nodes, and the first execution data includes the first consensus transaction data;
the system comprises a first synchronization module and a second synchronization module, wherein the first synchronization module is used for synchronizing the block head of a public account book of a second consensus node, the second consensus node is the consensus node which receives the account book synchronization request, and the block head is account book block data containing block height and block hash.
5. The blockchain transaction execution apparatus of claim 4, wherein the first synchronization module comprises:
a first sending unit, configured to send an account book synchronization request to the second consensus node, where the account book synchronization request is used to trigger the second consensus node to send block header data of current blocks of multiple consensus nodes to a light node;
a first receiving unit, configured to receive block header data of multiple current blocks sent by the second common node;
and the first calculation unit is used for generating a new block head according to the block head data of the current blocks.
6. The blockchain transaction execution apparatus of claim 4, wherein the first synchronization module further comprises:
the first transfer unit is used for transferring the first transaction data, and the first transaction data comprises a first transaction identifier and a first transaction detail;
the second calculation unit is used for generating a first transaction query instruction according to the first transaction identifier and sending the first transaction query instruction to a third consensus node, wherein the first transaction query instruction is used for triggering the third consensus node to send first ledger block data of a plurality of consensus nodes to a light node, the first ledger block data is ledger block data corresponding to the first transaction identifier, the ledger block data comprises a plurality of transaction details, and each transaction detail corresponds to one transaction identifier;
and the third calculation unit is used for sequentially detecting whether the second transaction details in each corresponding account book block data are the same as the first transaction details, and if the second transaction details are the same as the first transaction details, determining that the first transaction data is executed without errors.
7. A blockchain transaction execution apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the blockchain transaction execution method of any one of claims 1 to 3 when executing the computer program.
8. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, carries out the steps of the blockchain transaction execution method according to any one of claims 1 to 3.
CN202111418268.3A 2021-11-26 Block chain transaction execution method, device, equipment and readable storage medium Active CN114092252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111418268.3A CN114092252B (en) 2021-11-26 Block chain transaction execution method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111418268.3A CN114092252B (en) 2021-11-26 Block chain transaction execution method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114092252A true CN114092252A (en) 2022-02-25
CN114092252B CN114092252B (en) 2024-06-25

Family

ID=

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114638706A (en) * 2022-03-22 2022-06-17 成都质数斯达克科技有限公司 Financial product registration system and method based on block chain
CN114866567A (en) * 2022-05-26 2022-08-05 成都质数斯达克科技有限公司 Disaster-tolerant multi-level block chain network block synchronization method and device
CN114938380A (en) * 2022-06-23 2022-08-23 成都质数斯达克科技有限公司 Data sharing system and method suitable for block chain
CN115037756A (en) * 2022-06-01 2022-09-09 蚂蚁区块链科技(上海)有限公司 Method for operating alliance chain network, alliance chain network and node equipment for alliance chain network

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110998556A (en) * 2019-03-21 2020-04-10 阿里巴巴集团控股有限公司 Data isolation in blockchain networks
CN111209339A (en) * 2020-01-03 2020-05-29 腾讯科技(深圳)有限公司 Block synchronization method, device, computer and storage medium
CN111258986A (en) * 2020-01-17 2020-06-09 杭州龙纪科技有限公司 Rollback method of block chain
WO2020158973A1 (en) * 2019-01-30 2020-08-06 주식회사 아티프렌즈 Hypothesis acceptance protocol-2 mode blockchain consensus system and method
CN112087497A (en) * 2020-08-17 2020-12-15 成都质数斯达克科技有限公司 Data synchronization method and device, electronic equipment and readable storage medium
CN112287034A (en) * 2020-12-24 2021-01-29 腾讯科技(深圳)有限公司 Data synchronization method, equipment and computer readable storage medium
CN112417001A (en) * 2020-11-19 2021-02-26 腾讯科技(深圳)有限公司 Data processing method based on block chain network and related equipment
CN113595724A (en) * 2021-07-29 2021-11-02 成都质数斯达克科技有限公司 Accounting method, device, equipment and readable storage medium based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020158973A1 (en) * 2019-01-30 2020-08-06 주식회사 아티프렌즈 Hypothesis acceptance protocol-2 mode blockchain consensus system and method
CN110998556A (en) * 2019-03-21 2020-04-10 阿里巴巴集团控股有限公司 Data isolation in blockchain networks
CN111209339A (en) * 2020-01-03 2020-05-29 腾讯科技(深圳)有限公司 Block synchronization method, device, computer and storage medium
CN111258986A (en) * 2020-01-17 2020-06-09 杭州龙纪科技有限公司 Rollback method of block chain
CN112087497A (en) * 2020-08-17 2020-12-15 成都质数斯达克科技有限公司 Data synchronization method and device, electronic equipment and readable storage medium
CN112417001A (en) * 2020-11-19 2021-02-26 腾讯科技(深圳)有限公司 Data processing method based on block chain network and related equipment
CN112287034A (en) * 2020-12-24 2021-01-29 腾讯科技(深圳)有限公司 Data synchronization method, equipment and computer readable storage medium
CN113595724A (en) * 2021-07-29 2021-11-02 成都质数斯达克科技有限公司 Accounting method, device, equipment and readable storage medium based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋琪杰 等: "面向物联网区块链的共识机制优化研究", 《电信科学》, vol. 36, no. 02, 20 February 2020 (2020-02-20), pages 1 - 12 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114638706A (en) * 2022-03-22 2022-06-17 成都质数斯达克科技有限公司 Financial product registration system and method based on block chain
CN114866567A (en) * 2022-05-26 2022-08-05 成都质数斯达克科技有限公司 Disaster-tolerant multi-level block chain network block synchronization method and device
CN114866567B (en) * 2022-05-26 2023-06-02 成都质数斯达克科技有限公司 Disaster-tolerant multi-level blockchain network block synchronization method and device
CN115037756A (en) * 2022-06-01 2022-09-09 蚂蚁区块链科技(上海)有限公司 Method for operating alliance chain network, alliance chain network and node equipment for alliance chain network
CN114938380A (en) * 2022-06-23 2022-08-23 成都质数斯达克科技有限公司 Data sharing system and method suitable for block chain
CN114938380B (en) * 2022-06-23 2023-08-22 成都质数斯达克科技有限公司 Data sharing system and method suitable for block chain

Similar Documents

Publication Publication Date Title
CN109831487B (en) Fragmented file verification method and terminal equipment
EP4033374A1 (en) Method and device for synchronizing node data
CN111818112B (en) Kafka system-based message sending method and device
CN109949111A (en) Electronic bill mark distributing method, electronic bill generation method, apparatus and system
CN103164523A (en) Inspection method, device and system of data consistency inspection
CN102857578B (en) A kind of file uploading method of network hard disc, system and net dish client
US10747776B2 (en) Replication control using eventually consistent meta-data
CN104579768A (en) Client upgrading method and device
EP4213038A1 (en) Data processing method and apparatus based on distributed storage, device, and medium
CN109299193A (en) Method of data synchronization and relevant device
CN112286723A (en) Computer room disaster recovery control method, terminal and storage medium
CN107729515A (en) The method, apparatus and storage medium of a kind of data syn-chronization
CN106557308A (en) A kind of software continuous integrated approach and device
CN111338834B (en) Data storage method and device
CN112579692A (en) Data synchronization method, device, system, equipment and storage medium
CN111339551B (en) Data verification method and related device and equipment
CN112835885B (en) Processing method, device and system for distributed form storage
CN114416868B (en) Data synchronization method, device, equipment and storage medium
CN114092253A (en) Block chain batch transaction method, device, equipment and readable storage medium
US20180060974A1 (en) Social networking relationships processing method, system, and storage medium
CN110609967A (en) List generation method and device and storage medium
CN113407551A (en) Data consistency determining method, device, equipment and storage medium
CN114092252A (en) Block chain transaction execution method, device, equipment and readable storage medium
CN114760240B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN112825525A (en) Method and apparatus for processing transactions

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