CN112019603B - A method and device for processing transaction data - Google Patents
A method and device for processing transaction data Download PDFInfo
- Publication number
- CN112019603B CN112019603B CN202010796486.XA CN202010796486A CN112019603B CN 112019603 B CN112019603 B CN 112019603B CN 202010796486 A CN202010796486 A CN 202010796486A CN 112019603 B CN112019603 B CN 112019603B
- Authority
- CN
- China
- Prior art keywords
- node
- blockchain
- transaction data
- transaction
- target
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Bioethics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种交易数据的处理方法及装置。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method and device for processing transaction data.
背景技术Background technique
目前,交易发送方设备可以将交易数据存入其缓存以及该交易发送方设备所在的区块链上的其他节点中。当该交易发送方设备不属于该区块链,或者由于某些原因(例如服务器故障等),该交易发送方设备无法与该区块链中的交易数据保持同步更新时,需要将该区块链中的交易数据发送至该交易发送方设备。具体的,可以由该区块链中的任一节点(简称目标节点)为该交易发送方设备提供该区块链中的交易数据。Currently, a transaction sender device can store transaction data in its cache and other nodes on the blockchain where the transaction sender device is located. When the transaction sender device does not belong to the blockchain, or due to some reasons (such as server failure, etc.), the transaction sender device cannot keep up with the transaction data in the blockchain. The transaction data in the chain is sent to the transaction sender device. Specifically, any node in the blockchain (referred to as a target node) can provide the transaction sender device with transaction data in the blockchain.
但是,当上述目标节点为外部数据网络中的服务器时,由于交易发送方设备需要通过5G核心网(5G core network,5GC)到该外部数据网络中的该服务器(即目标节点)获取该区块链的交易数据,如此可能使得交易发送方设备获取该区块链中的交易数据的时延较长,影响交易数据的处理效率。However, when the above-mentioned target node is a server in an external data network, the transaction sender device needs to obtain the block through the 5G core network (5G core network, 5GC) to the server (that is, the target node) in the external data network. The transaction data of the blockchain may cause a longer delay for the transaction sender device to obtain the transaction data in the blockchain, which affects the processing efficiency of the transaction data.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种交易数据的处理方法及装置,能够降低第一节点获取第一区块链对应的交易数据的时延,提升交易数据的处理效率。Embodiments of the present invention provide a method and device for processing transaction data, which can reduce the delay for a first node to acquire transaction data corresponding to a first blockchain and improve the processing efficiency of transaction data.
第一方面,本发明实施例提供一种交易数据的处理方法,包括:第一节点向网络控制设备发送交易请求消息和该第一节点的状态信息,该交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,该第二节点为该目标交易对应的接收方设备,该第一节点的状态信息包括该第一节点的位置信息,该第一节点存储的交易数据的区块高度以及该第一节点存储的交易数据的时间戳;该第一节点接收该网络控制设备的第一数据同步指示消息,该第一数据同步指示消息用于指示该第一节点从目标移动边缘计算(mobile edgecomputing,MEC)节点获取第一区块链对应的交易数据,该目标MEC节点是该网络控制设备根据该第一节点的位置信息确定的,该第一区块链为该目标MEC节点对应的区块链;该第一节点向该目标MEC节点发送第一数据同步请求消息,该第一数据同步请求消息用于请求获取该第一区块链对应的交易数据;该第一节点接收该目标MEC节点的第一数据同步响应消息,该第一数据同步响应消息中包括该第一区块链对应的交易数据。In a first aspect, an embodiment of the present invention provides a method for processing transaction data, including: a first node sends a transaction request message and state information of the first node to a network control device, where the transaction request message includes an account of the second node address and transaction data corresponding to the target transaction, the second node is the receiver device corresponding to the target transaction, the state information of the first node includes the location information of the first node, the block of transaction data stored by the first node height and the timestamp of the transaction data stored by the first node; the first node receives the first data synchronization instruction message of the network control device, and the first data synchronization instruction message is used to instruct the first node to calculate from the target mobile edge The (mobile edgecomputing, MEC) node obtains transaction data corresponding to the first blockchain, the target MEC node is determined by the network control device according to the location information of the first node, and the first blockchain corresponds to the target MEC node the blockchain; the first node sends a first data synchronization request message to the target MEC node, the first data synchronization request message is used to request the acquisition of transaction data corresponding to the first blockchain; the first node receives the The first data synchronization response message of the target MEC node, where the first data synchronization response message includes transaction data corresponding to the first blockchain.
第二方面,本发明实施例提供一种交易数据的处理方法,包括:网络控制设备接收第一节点的交易请求消息和该第一节点的状态信息,该交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,该第二节点为该目标交易对应的接收方设备,该第一节点的状态信息包括该第一节点的位置信息,该第一节点存储的交易数据的区块高度以及该第一节点存储的交易数据的时间戳;该网络控制设备根据该第一节点的位置信息确定与该第一节点的通信距离最短的目标MEC节点;该网络控制设备根据该第一节点存储的交易数据的区块高度和该第一节点存储的交易数据的时间戳确定该第一节点存储的交易数据与第一区块链对应的交易数据是否相同,该第一区块链为该目标MEC节点对应的区块链;在该第一节点存储的交易数据与该第一区块链对应的交易数据不相同的情况下,该网络控制设备向该第一节点发送第一数据同步指示消息,该第一数据同步指示消息用于指示该第一节点从该目标MEC节点获取该第一区块链对应的交易数据。In a second aspect, an embodiment of the present invention provides a method for processing transaction data, including: a network control device receives a transaction request message of a first node and state information of the first node, where the transaction request message includes an account of the second node address and transaction data corresponding to the target transaction, the second node is the receiver device corresponding to the target transaction, the state information of the first node includes the location information of the first node, the block of transaction data stored by the first node height and the timestamp of the transaction data stored by the first node; the network control device determines the target MEC node with the shortest communication distance with the first node according to the location information of the first node; The block height of the stored transaction data and the timestamp of the transaction data stored by the first node determine whether the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain, and the first blockchain is the The blockchain corresponding to the target MEC node; if the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device sends a first data synchronization instruction to the first node message, the first data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
第三方面,本发明实施例提供一种交易数据的处理装置,包括:发送模块和接收模块;该发送模块,用于向网络控制设备发送交易请求消息和第一节点的状态信息,该交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,该第二节点为该目标交易对应的接收方设备,该第一节点的状态信息包括该第一节点的位置信息,该第一节点存储的交易数据的区块高度以及该第一节点存储的交易数据的时间戳;该接收模块,用于接收该网络控制设备的第一数据同步指示消息,该第一数据同步指示消息用于指示该第一节点从目标MEC节点获取第一区块链对应的交易数据,该目标MEC节点是该网络控制设备根据该第一节点的位置信息确定的,该第一区块链为该目标MEC节点对应的区块链;该发送模块,还用于向该目标MEC节点发送第一数据同步请求消息,该第一数据同步请求消息用于请求获取该第一区块链对应的交易数据;该接收模块,还用于接收该目标MEC节点的第一数据同步响应消息,该第一数据同步响应消息中包括该第一区块链对应的交易数据。In a third aspect, an embodiment of the present invention provides a transaction data processing device, including: a sending module and a receiving module; the sending module is configured to send a transaction request message and state information of a first node to a network control device, the transaction request The message includes the account address of the second node and the transaction data corresponding to the target transaction, the second node is the receiver device corresponding to the target transaction, the state information of the first node includes the location information of the first node, the first node The block height of the transaction data stored by the node and the timestamp of the transaction data stored by the first node; the receiving module is used to receive the first data synchronization instruction message of the network control device, and the first data synchronization instruction message is used for Instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node, the target MEC node is determined by the network control device according to the location information of the first node, and the first blockchain is the target MEC the block chain corresponding to the node; the sending module is further configured to send a first data synchronization request message to the target MEC node, where the first data synchronization request message is used to request the acquisition of transaction data corresponding to the first block chain; the The receiving module is further configured to receive a first data synchronization response message of the target MEC node, where the first data synchronization response message includes transaction data corresponding to the first blockchain.
第四方面,本发明实施例提供一种交易数据的处理装置,包括:接收模块、确定模块以及发送模块;该接收模块,用于接收第一节点的交易请求消息和该第一节点的状态信息,该交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,该第二节点为该目标交易对应的接收方设备,该第一节点的状态信息包括该第一节点的位置信息,该第一节点存储的交易数据的区块高度以及该第一节点存储的交易数据的时间戳;该确定模块,用于根据该第一节点的位置信息确定与该第一节点的通信距离最短的目标MEC节点;并且根据该第一节点存储的交易数据的区块高度和该第一节点存储的交易数据的时间戳确定该第一节点存储的交易数据与第一区块链对应的交易数据是否相同,该第一区块链为该目标MEC节点对应的区块链;该发送模块,用于在该第一节点存储的交易数据与该第一区块链对应的交易数据不相同的情况下,向该第一节点发送第一数据同步指示消息,该第一数据同步指示消息用于指示该第一节点从该目标MEC节点获取该第一区块链对应的交易数据。In a fourth aspect, an embodiment of the present invention provides a transaction data processing device, including: a receiving module, a determining module, and a sending module; the receiving module is configured to receive a transaction request message of a first node and state information of the first node , the transaction request message includes the account address of the second node and the transaction data corresponding to the target transaction, the second node is the receiver device corresponding to the target transaction, and the state information of the first node includes the location information of the first node , the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node; the determining module is used to determine the shortest communication distance with the first node according to the location information of the first node and determine the transaction data corresponding to the transaction data stored by the first node and the first blockchain according to the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node Whether the first block chain is the block chain corresponding to the target MEC node; the sending module is used when the transaction data stored in the first node is different from the transaction data corresponding to the first block chain Next, send a first data synchronization instruction message to the first node, where the first data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
第五方面,本发明实施例提供另一种交易数据的处理装置,包括:处理器、存储器、总线和通信接口;存储器用于存储计算机执行指令,处理器与存储器通过总线连接,当交易数据的处理装置运行时,处理器执行上述存储器存储的上述计算机执行指令,以使交易数据的处理装置执行如上述第一方面所提供的交易数据的处理方法。In a fifth aspect, an embodiment of the present invention provides another transaction data processing device, including: a processor, a memory, a bus, and a communication interface; the memory is used to store computer execution instructions, and the processor and the memory are connected through a bus. When the processing device is running, the processor executes the computer execution instructions stored in the memory, so that the transaction data processing device executes the transaction data processing method provided in the first aspect.
第六方面,本发明实施例提供另一种交易数据的处理装置,包括:处理器、存储器、总线和通信接口;存储器用于存储计算机执行指令,处理器与存储器通过总线连接,当交易数据的处理装置运行时,处理器执行上述存储器存储的上述计算机执行指令,以使交易数据的处理装置执行如上述第二方面所提供的交易数据的处理方法。In a sixth aspect, an embodiment of the present invention provides another transaction data processing device, including: a processor, a memory, a bus, and a communication interface; the memory is used to store computer execution instructions, and the processor and the memory are connected through a bus. When the processing device is running, the processor executes the computer-executed instructions stored in the memory, so that the transaction data processing device executes the transaction data processing method provided in the second aspect.
第七方面,本发明实施例提供一种计算机可读存储介质,包括指令,当其在交易数据的处理装置上运行时,使得交易数据的处理装置执行上述第一方面所提供的一种交易数据的处理方法。In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, which includes instructions, when executed on a transaction data processing device, causing the transaction data processing device to execute the transaction data provided in the first aspect above. processing method.
第八方面,本发明实施例提供一种计算机可读存储介质,包括指令,当其在交易数据的处理装置上运行时,使得交易数据的处理装置执行上述第二方面所提供的一种交易数据的处理方法。In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, including instructions, which, when executed on a transaction data processing device, cause the transaction data processing device to execute the transaction data provided in the second aspect above processing method.
第九方面,本发明实施例提供了一种包含指令的计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第一方面及其任意一种实现方式的交易数据的处理方法。In a ninth aspect, an embodiment of the present invention provides a computer program product containing instructions, which, when the computer program product runs on a computer, causes the computer to execute the transaction data of the first aspect and any one of its implementations. processing method.
第十方面,本发明实施例提供了一种包含指令的计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第二方面及其任意一种实现方式的交易数据的处理方法。In a tenth aspect, an embodiment of the present invention provides a computer program product containing instructions, which, when the computer program product runs on a computer, enables the computer to execute the transaction data of the second aspect and any one of its implementations. processing method.
本发明实施例所提供的交易数据的处理方法及装置,第一节点向网络控制设备发送交易请求消息和第一节点的状态信息,该交易请求消息中包括第二节点(即目标交易对应的交易接收方设备)的账户地址和目标交易对应的交易数据,第一节点的状态信息包括第一节点的位置信息,第一节点存储的交易数据的区块高度以及第一节点存储的交易数据的时间戳;在网络控制设备接收到第一节点的交易请求消息和第一节点的状态信息之后,可以根据该第一节点的位置信息确定目标MEC节点(即与第一节点的通信距离最短的节点),并根据该第一节点存储的交易数据的区块高度和该第一节点存储的交易数据的时间戳,确定该第一节点存储的交易数据与第一区块链(即目标MEC节点对应的区块链)对应的交易数据是否相同。然后,在第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,网络控制设备向第一节点发送第一数据同步指示消息,该第一数据同于指示消息用于指示第一节点从目标MEC节点获取该第一区块链对应的交易数据。In the method and device for processing transaction data provided by the embodiment of the present invention, the first node sends a transaction request message and state information of the first node to the network control device, and the transaction request message includes the second node (that is, the transaction corresponding to the target transaction). The account address of the recipient device) and the transaction data corresponding to the target transaction, the state information of the first node includes the location information of the first node, the block height of the transaction data stored by the first node, and the time of the transaction data stored by the first node. stamp; after the network control device receives the transaction request message of the first node and the state information of the first node, it can determine the target MEC node (that is, the node with the shortest communication distance with the first node) according to the location information of the first node , and according to the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node, determine the transaction data stored by the first node and the first blockchain (that is, the target MEC node corresponding to the whether the transaction data corresponding to the blockchain) are the same. Then, in the case where the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device sends a first data synchronization instruction message to the first node, and the first data is the same as the instruction message. to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
第一节点在接收到网路控制设备发送的第一数据同步指示消息之后,可以向目标MEC节点发送第一数据同步指示消息,并在之后接收目标MEC节点发送的第一数据同步响应消息,该第一数据同步响应消息中包括第一区块链对应的交易数据。如此,第一节点可以获取到第一区块链对应的交易数据。本发明实施例中,网络控制设备可以基于第一节点的位置信息确定,可以为第一节点提供第一区块链对应的交易数据的目标MEC节点。进而,在第一节点更新数据不及时或者不属于第一区块链的情况下,指示第一节点从该目标MEC节点获取第一区块链对应的交易数据,能够降低第一节点获取第一区块链对应的交易数据的时延,提升交易数据的处理效率。After receiving the first data synchronization indication message sent by the network control device, the first node may send the first data synchronization indication message to the target MEC node, and then receive the first data synchronization response message sent by the target MEC node, the The first data synchronization response message includes transaction data corresponding to the first blockchain. In this way, the first node can obtain transaction data corresponding to the first blockchain. In this embodiment of the present invention, the network control device may determine, based on the location information of the first node, a target MEC node that may provide the first node with transaction data corresponding to the first blockchain. Furthermore, when the first node does not update the data in time or does not belong to the first blockchain, instructing the first node to obtain the transaction data corresponding to the first blockchain from the target MEC node can reduce the need for the first node to obtain the first blockchain. The delay of transaction data corresponding to the blockchain improves the processing efficiency of transaction data.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art.
图1为本发明实施例提供的5G通信系统的网络架构示意图;1 is a schematic diagram of a network architecture of a 5G communication system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种网络控制设备的硬件示意图;FIG. 2 is a schematic diagram of hardware of a network control device according to an embodiment of the present invention;
图3为本发明实施例提供的一种交易数据的处理方法的示意图一;3 is a schematic diagram 1 of a method for processing transaction data provided by an embodiment of the present invention;
图4为本发明实施例提供的一种交易数据的处理方法的示意图二;4 is a second schematic diagram of a method for processing transaction data provided by an embodiment of the present invention;
图5为本发明实施例提供的一种第一节点的结构示意图一;FIG. 5 is a schematic structural diagram 1 of a first node according to an embodiment of the present invention;
图6为本发明实施例提供的一种第一节点的结构示意图二;FIG. 6 is a second schematic structural diagram of a first node according to an embodiment of the present invention;
图7为本发明实施例提供的一种网络控制设备的结构示意图一;FIG. 7 is a schematic structural diagram 1 of a network control device according to an embodiment of the present invention;
图8为本发明实施例提供的一种网络控制设备的结构示意图二。FIG. 8 is a second schematic structural diagram of a network control device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合附图对本发明实施例提供的交易数据的处理方法及装置进行详细的描述。The method and apparatus for processing transaction data provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
本申请的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序,例如,第一节点和第二节点等是用于区别不同的节点,而不是用于节点的特定顺序。The terms "first" and "second" in the description and drawings of the present application are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first node and the second node are used for It is used to distinguish different nodes, not for a specific order of nodes.
此外,本申请的描述中所提到的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。Furthermore, references to the terms "comprising" and "having" in the description of this application, and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes other unlisted steps or units, or optionally also Include other steps or units inherent to these processes, methods, products or devices.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本申请中所述“和/或”,包括用两种方法中的任意一种或者同时使用两种方法。The expression "and/or" in this application includes the use of either or both of the two methods.
在本申请的描述中,除非另有说明,“多个”的含义是指两个或两个以上。In the description of this application, unless otherwise stated, the meaning of "plurality" refers to two or more.
下面对本发明实施例提供的一种交易数据的处理方法及装置所涉及的一些概念做解释说明。Some concepts involved in the method and apparatus for processing transaction data provided by the embodiments of the present invention are explained below.
MEC,移动边缘计算,是把移动网络技术和互联网技术融合在一起,在移动网络侧增加计算、存储以及数据处理等功能构建的开放式平台。MEC节点的部署,可以呈现业务数据传输的低时延和高带宽等特点,也可以为用户提供更加精准的位置信息服务。本发明实施例中,通过网络控制设备确定的目标MEC节点,能够降低第一节点获取第一区块链(即目标MEC节点对应的区块链)对应的交易数据的时延。MEC, mobile edge computing, is an open platform that integrates mobile network technology and Internet technology, and adds computing, storage, and data processing functions on the mobile network side. The deployment of MEC nodes can present the characteristics of low latency and high bandwidth of service data transmission, and can also provide users with more accurate location information services. In the embodiment of the present invention, the target MEC node determined by the network control device can reduce the delay for the first node to obtain transaction data corresponding to the first blockchain (ie, the blockchain corresponding to the target MEC node).
基于背景技术存在的问题,本发明实施例提供一种交易数据的处理方法及装置,第一节点向网络控制设备发送交易请求消息和第一节点的状态信息,该交易请求消息中包括第二节点(即目标交易对应的交易接收方设备)的账户地址和目标交易对应的交易数据,第一节点的状态信息包括第一节点的位置信息,第一节点存储的交易数据的区块高度以及第一节点存储的交易数据的时间戳;在网络控制设备接收到第一节点的交易请求消息和第一节点的状态信息之后,可以根据该第一节点的位置信息确定目标MEC节点(即与第一节点的通信距离最短的节点),并根据该第一节点存储的交易数据的区块高度和该第一节点存储的交易数据的时间戳,确定该第一节点存储的交易数据与第一区块链(即目标MEC节点对应的区块链)对应的交易数据是否相同。然后,在第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,网络控制设备向第一节点发送第一数据同步指示消息,该第一数据同于指示消息用于指示第一节点从目标MEC节点获取该第一区块链对应的交易数据。Based on the problems existing in the background technology, embodiments of the present invention provide a method and device for processing transaction data. A first node sends a transaction request message and state information of the first node to a network control device, and the transaction request message includes the second node. (that is, the transaction recipient device corresponding to the target transaction) account address and transaction data corresponding to the target transaction, the status information of the first node includes the location information of the first node, the block height of the transaction data stored by the first node, and the first node. The timestamp of the transaction data stored by the node; after the network control device receives the transaction request message of the first node and the state information of the first node, it can determine the target MEC node (that is, with the first node) according to the location information of the first node. The node with the shortest communication distance), and according to the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node, determine the transaction data stored by the first node and the first blockchain. Whether the transaction data corresponding to the target MEC node (that is, the blockchain corresponding to the target MEC node) is the same. Then, in the case where the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device sends a first data synchronization instruction message to the first node, and the first data is the same as the instruction message. to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
第一节点在接收到网路控制设备发送的第一数据同步指示消息之后,可以向目标MEC节点发送第一数据同步指示消息,并在之后接收目标MEC节点发送的第一数据同步响应消息,该第一数据同步响应消息中包括第一区块链对应的交易数据。如此,第一节点可以获取到第一区块链对应的交易数据。本发明实施例中,网络控制设备可以基于第一节点的位置信息确定,可以为第一节点提供第一区块链对应的交易数据的目标MEC节点。进而,在第一节点更新数据不及时或者不属于第一区块链的情况下,指示第一节点从该目标MEC节点获取第一区块链对应的交易数据,能够降低第一节点获取第一区块链对应的交易数据的时延,提升交易数据的处理效率。After receiving the first data synchronization indication message sent by the network control device, the first node may send the first data synchronization indication message to the target MEC node, and then receive the first data synchronization response message sent by the target MEC node, the The first data synchronization response message includes transaction data corresponding to the first blockchain. In this way, the first node can obtain transaction data corresponding to the first blockchain. In this embodiment of the present invention, the network control device may determine, based on the location information of the first node, a target MEC node that may provide the first node with transaction data corresponding to the first blockchain. Furthermore, when the first node does not update the data in time or does not belong to the first blockchain, instructing the first node to obtain the transaction data corresponding to the first blockchain from the target MEC node can reduce the need for the first node to obtain the first blockchain. The delay of transaction data corresponding to the blockchain improves the processing efficiency of transaction data.
本发明实施例提供的一种交易数据的处理方法及装置可以应用于无线通信系统,以该无线通信系统为5G通信系统为例,如图1所示,该5G通信系统包括节点101、网络控制设备102、区块链103、重叠数据存储系统104以及区块链105,其中,区块链103中包括节点1031和节点1032,重叠数据存储系统104中包括重叠节点1041,区块链105中包括节点1051和节点1052。通常,在实际应用中上述各个设备或服务功能之间的连接可以为无线连接,为了方便直观地表示各个设备之间的连接关系,图1中采用实线示意。The method and device for processing transaction data provided by the embodiments of the present invention can be applied to a wireless communication system. Taking the wireless communication system as a 5G communication system as an example, as shown in FIG. 1 , the 5G communication system includes a node 101, a network control system The
其中,图1中示出的多个节点(包括节点101、节点1031、节点1032、节点1051以及节点1052)可以作为交易发送方设备或交易接收方设备。例如,当节点101需要向节点1031发起交易时,节点101可以向控制设备102发送交易请求消息,在控制设备102确定节点101为区块链103中的节点的情况下,节点101可以与节点1031进行数据交互,例如,节点101可以将交易数据发送至节点1031,即同一个区块链的两个节点可以实现数据互通。Among them, a plurality of nodes (including node 101, node 1031, node 1032, node 1051, and node 1052) shown in FIG. 1 can be used as a transaction sender device or a transaction receiver device. For example, when the node 101 needs to initiate a transaction to the node 1031, the node 101 can send a transaction request message to the
网络控制设备102可以获取节点101的状态信息,以及区块链103和区块链105各自的数据状态信息,并确定节点101是否为区块链103或区块链105中的一个节点。本发明实施例中,网络控制设备102可以根据节点101的状态信息(具体为节点101存储的交易数据的区块高度和时间戳)确定节点101存储的交易数据与区块链103对应的交易数据(或区块链105对应的交易数据)是否相同。The
区块链103中的多个节点(包括节点1031和节点1032)和区块链105中的多个节点(包括节点1051和节点1052)中分别存储了区块链103对应的交易数据和区块链105对应的交易数据。应理解,同一个区块链上的不同节点存储的交易数据相同。The multiple nodes in the blockchain 103 (including the node 1031 and the node 1032 ) and the multiple nodes in the blockchain 105 (including the node 1051 and the node 1052 ) store the transaction data and blocks corresponding to the blockchain 103 respectively The transaction data corresponding to the chain 105. It should be understood that the transaction data stored by different nodes on the same blockchain are the same.
重叠数据存储系统104(具体为重叠节点1041)中存储了区块链103对应的交易数据和区块链105对应的交易数据。本发明实施例中,在网络控制设备102确定节点101为区块链103中的一个节点,但交易接收方设备(假设交易接收方设备为节点1051)为区块链105中的一个节点的情况下,网络控制设备102可以指示节点101从重叠节点1041中获取区块链105对应的交易数据。The overlapping data storage system 104 (specifically, the overlapping node 1041 ) stores transaction data corresponding to the blockchain 103 and transaction data corresponding to the blockchain 105 . In this embodiment of the present invention, the
可选地,上述5G通信系统中可以包括多个区块链,一个区块链上可以包括一个或多个节点,还可以包括一个或多个网络控制设备以及一个或多个重叠数据存储系统(或重叠节点)。本发明实施例对上述5G通信系统中的各个设备的数量不作限制。Optionally, the above-mentioned 5G communication system may include multiple blockchains, and one blockchain may include one or more nodes, and may also include one or more network control devices and one or more overlapping data storage systems ( or overlapping nodes). This embodiment of the present invention does not limit the quantity of each device in the above-mentioned 5G communication system.
为了方便示例,以下实施例中,将上述图1中的节点101统称为第一节点。For convenience of illustration, in the following embodiments, the above-mentioned node 101 in FIG. 1 is collectively referred to as the first node.
示例性的,图2为本发明实施例提供的网络控制设备的硬件结构示意图。如图2所示,该网络控制设备20包括处理器201、存储器202以及网络接口203等。Exemplarily, FIG. 2 is a schematic diagram of a hardware structure of a network control device according to an embodiment of the present invention. As shown in FIG. 2 , the
其中,处理器201是网络控制设备20的核心部件,处理器201用于运行网络控制设备20的操作系统与该网络控制设备20上的应用程序(包括系统应用程序和第三方应用程序),以实现该网络控制设备20进行交易数据的处理方法。The
本发明实施例中,处理器201可以是一个中央处理器(central processing unit,CPU),微处理器,数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(fieldprogrammable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合,其能够实现或执行结合本发明实施例公开的内容所描述的各种示例性的逻辑方框,模块和电路;处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。In this embodiment of the present invention, the
可选地,网络控制设备20的处理器201包括一个或多个CPU,该CPU为单核CPU(single-CPU)或多核CPU(multi-CPU)。Optionally, the
存储器202包括但不限于是随机存取存储器(random access memory,RAM)、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmableread-only memory,EPROM)、快闪存储器、或光存储器等。存储器202中保存有操作系统的代码。The
可选地,处理器201通过读取存储器202中保存的指令实现本发明实施例中的交易数据的处理方法,或者,处理器201通过内部存储的指令实现本发明实施例提供的交易数据的处理方法。在处理器201通过读取存储器保存的执行实现本发明实施例提供的交易数据的处理方法的情况下,存储器中保存实现本发明实施例提供的交易数据的处理方法的指令。Optionally, the
网络接口203是有线接口,例如光纤分布式数据接口(fiber distributed datainterface,FDDI)、千兆以太网(gigabit ethernet,GE)接口。或者,网络接口203是无线接口。网络接口203用于网络控制设备20与其他设备通信。The
存储器202用于存储多个区块链各自的数据状态信息,其中,一个区块链的数据状态信息包括该区块链对应的交易数据的区块高度和该交易数据的时间戳。可选地,存储器202还用于存储节点的账户地址与区块链的标识信息的对应关系等。至少一个处理器201进一步根据存储器202保存的多个区块链各自的数据状态信息和节点的账户地址与区块链的标识信息的对应关系来执行本发明实施例所描述的方法。处理器201实现上述功能的更多细节请参考下述各个方法实施例中的描述。The
可选地,网络控制设备20还包括总线,上述处理器201、存储器202通过总线204相互连接,或采用其他方式相互连接。Optionally, the
可选地,网络控制设备20还包括输入输出接口205,输入输出接口205用于与输入设备连接,接收用户通过输入设备输入的交易请求消息。输入设备包括但不限于键盘、触摸屏、麦克风等等。输入输出接口205还用于与输出设备连接,输出处理器201的交易数据的处理结果(即指示第一节点从目标MEC节点获取第一区块链对应的交易数据)。输出设备包括但不限于显示器、打印机等等。Optionally, the
应理解,本发明实施例中,上述第一节点的硬件结构与上述图2所示的网络控制设备的硬件结构是类似的,关于第一节点的硬件结构的描述可参考网络控制设备的硬件结构的描述,此处不予详述。It should be understood that, in this embodiment of the present invention, the hardware structure of the first node is similar to the hardware structure of the network control device shown in FIG. 2 . For the description of the hardware structure of the first node, reference may be made to the hardware structure of the network control device. description, which will not be described in detail here.
本发明实施例提供的交易数据的处理方法,应用于某一交易发送方设备(例如第一节点)与交易接收方设备(第二节点)之间存在目标交易的应用场景中。当第一节点需要向第二节点发送交易请求时,该第一节点需要首先向网络控制设备发送交易请求消息和该第一节点的状态信息,由网络控制设备确定第一节点是否为第一区块链上的一个节点,并且第一节点与第二节点是否处于同一区块链上。The transaction data processing method provided by the embodiment of the present invention is applied to an application scenario where a target transaction exists between a transaction sender device (eg, a first node) and a transaction receiver device (second node). When the first node needs to send a transaction request to the second node, the first node needs to first send a transaction request message and state information of the first node to the network control device, and the network control device determines whether the first node is the first zone A node on the blockchain, and whether the first node and the second node are on the same blockchain.
结合上述图1所示的通信系统,下面从通信系统中各个设备交互的角度完整地描述本发明实施例提供的交易数据的处理方法,以说明第一节点从目标MEC节点获取第一区块链对应的交易数据(即第一节点上链)的过程,以及第一节点将目标交易对应的交易数据存入其缓存中的过程。With reference to the communication system shown in FIG. 1, the following completely describes the transaction data processing method provided by the embodiment of the present invention from the perspective of the interaction of various devices in the communication system, so as to illustrate that the first node obtains the first blockchain from the target MEC node The process of the corresponding transaction data (that is, the first node uploading to the chain), and the process of the first node storing the transaction data corresponding to the target transaction in its cache.
如图3所示,本发明实施例提供的交易数据的处理方法可以包括S101-S114。As shown in FIG. 3 , the transaction data processing method provided by the embodiment of the present invention may include S101-S114.
S101、第一节点向网络控制设备发送交易请求消息和第一节点的状态信息。S101. The first node sends a transaction request message and state information of the first node to a network control device.
其中,交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,第二节点为目标交易对应的交易接收方设备。第一节点的状态信息包括第一节点的位置信息、第一节点存储的交易数据的区块高度以及第一节点存储的交易数据的时间戳。The transaction request message includes the account address of the second node and transaction data corresponding to the target transaction, and the second node is the transaction receiver device corresponding to the target transaction. The state information of the first node includes the location information of the first node, the block height of the transaction data stored by the first node, and the timestamp of the transaction data stored by the first node.
应理解,在第一节点需要向第二节点发起目标交易(例如,第一节点需要向第二节点转发一个比特币)时,需要先将交易请求消息和第一节点的状态信息发送至网络控制设备,由网络控制设备首先确定该第一节点目前的状态(即是否为某一区块链上的一个节点)。其中,第二节点的账户地址用于确定第二节点对应的区块链(以下简称第二区块链)的标识信息,第二区块链上的多个节点可以对该目标交易对应的交易数据进行交易验证,以确定是否将该交易数据存入该第二区块链上的多个节点各自的缓存中;第一节点的位置信息用于确定与第一节点的通信距离最短的目标MEC节点,进而第一节点可以从该目标MEC节点获取第一区块链对应的交易数据;第一节点存储的交易数据的区块高度和第一节点存储的交易数据的时间戳用于确定第一节点存储的交易数据与目标MEC对应的区块链(以下简称第一区块链)对应的交易数据是否相同。It should be understood that when the first node needs to initiate a target transaction to the second node (for example, the first node needs to forward a bitcoin to the second node), it needs to first send the transaction request message and the state information of the first node to the network control equipment, the network control equipment first determines the current state of the first node (that is, whether it is a node on a certain blockchain). Wherein, the account address of the second node is used to determine the identification information of the blockchain corresponding to the second node (hereinafter referred to as the second blockchain), and multiple nodes on the second blockchain can identify transactions corresponding to the target transaction. The data is subjected to transaction verification to determine whether to store the transaction data in the respective caches of multiple nodes on the second blockchain; the location information of the first node is used to determine the target MEC with the shortest communication distance with the first node node, and then the first node can obtain the transaction data corresponding to the first blockchain from the target MEC node; the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node are used to determine the first node. Whether the transaction data stored by the node is the same as the transaction data corresponding to the blockchain corresponding to the target MEC (hereinafter referred to as the first blockchain).
S102、网络控制设备接收第一节点的交易请求消息和第一节点的状态信息。S102. The network control device receives the transaction request message of the first node and the state information of the first node.
结合上述实施例的描述,应理解,第一节点的交易请求消息包括第二节点(即目标交易对应的接收方设备)的账户地址和目标交易对应的交易数据,第一节点的状态信息包括第一节点的位置信息,第一节点存储的交易数据的区块高度以及第一节点存储的交易数据的时间戳。With reference to the description of the above embodiments, it should be understood that the transaction request message of the first node includes the account address of the second node (ie, the recipient device corresponding to the target transaction) and the transaction data corresponding to the target transaction, and the status information of the first node includes the first node. The location information of a node, the block height of the transaction data stored by the first node, and the timestamp of the transaction data stored by the first node.
具体的,该位置信息可以为第一节点的经纬度,也可以为该第一节点的互联网协议(internet Protocol,IP)地址。第一节点存储的交易数据的区块高度可以理解为该第一节点存储的交易数据对应的区块的数量,示例性的,假设1个区块中包括10次交易的交易数据,又假设第一节点存储的交易数据的区块高度为5(即该交易数据对应的区块数量为5),则可以确定该第一节点至少存储了41次交易的交易数据。第一节点存储的交易数据的时间戳,为该第一节点存储的最近一次交易的交易数据的时间戳。Specifically, the location information may be the latitude and longitude of the first node, or may be an Internet Protocol (Internet Protocol, IP) address of the first node. The block height of the transaction data stored by the first node can be understood as the number of blocks corresponding to the transaction data stored by the first node. Exemplarily, it is assumed that one block includes the transaction data of 10 transactions, and the first The block height of the transaction data stored by a node is 5 (that is, the number of blocks corresponding to the transaction data is 5), then it can be determined that the first node has stored transaction data of at least 41 transactions. The timestamp of the transaction data stored by the first node is the timestamp of the transaction data of the latest transaction stored by the first node.
S103、网络控制设备根据第一节点的位置信息确定与第一节点的通信距离最短的目标MEC节点。S103: The network control device determines, according to the location information of the first node, the target MEC node with the shortest communication distance with the first node.
应理解,在网络中,存在多个节点,该多个节点均可以为第一节点提供交易数据。本发明实施例中,网络控制设备基于第一节点的位置信息,从该多个节点中,确定与第一节点的通信距离最短的一个节点,即该目标MEC。该目标MEC节点为第一区块链上的一个节点,该一个节点以MEC服务器作为基础设施,目标MEC节点存储了该第一区块链对应的交易数据。网络控制设备基于第一节点的位置信息确定该目标MEC节点,以使得该网络控制设备可以确定该第一节点是否为该第一区块链上的一个节点。It should be understood that there are multiple nodes in the network, and each of the multiple nodes can provide transaction data for the first node. In the embodiment of the present invention, the network control device determines a node with the shortest communication distance with the first node from the plurality of nodes, that is, the target MEC, based on the location information of the first node. The target MEC node is a node on the first blockchain, the node uses the MEC server as an infrastructure, and the target MEC node stores transaction data corresponding to the first blockchain. The network control device determines the target MEC node based on the location information of the first node, so that the network control device can determine whether the first node is a node on the first blockchain.
S104、网络控制设备根据第一节点存储的交易数据的区块高度和第一节点存储的交易数据的时间戳确定第一节点存储的交易数据与第一区块链对应的交易数据是否相同。S104. The network control device determines whether the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain according to the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node.
其中,该第一区块链为该目标MEC节点对应的区块链。Wherein, the first blockchain is the blockchain corresponding to the target MEC node.
应理解,目标MEC节点为第一区块链上的一个节点,该目标MEC节点中存储的交易数据即为该第一区块链对应的交易数据。由于网络控制设备存储(或可以获取)多个区块链各自的数据状态信息(一个区块链的数据状态信息包括该区块链对应的交易数据的区块高度和时间戳),因此,网络控制设备确定第一节点存储的交易数据与第一区块链对应的交易数据是否相同的过程可以包括步骤1-步骤3。It should be understood that the target MEC node is a node on the first blockchain, and the transaction data stored in the target MEC node is the transaction data corresponding to the first blockchain. Since the network control device stores (or can obtain) the respective data status information of multiple blockchains (the data status information of a blockchain includes the block height and timestamp of the transaction data corresponding to the blockchain), the network The process for the control device to determine whether the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain may include steps 1 to 3.
步骤1、网络控制设备确定第一节点存储的交易数据的区块高度与第一区块链对应的交易数据的区块高度是否相同。Step 1. The network control device determines whether the block height of the transaction data stored by the first node is the same as the block height of the transaction data corresponding to the first blockchain.
步骤2、网络控制设备确定第一节点存储的交易数据的时间戳与第一区块链对应的交易数据的时间戳是否相同。Step 2: The network control device determines whether the timestamp of the transaction data stored by the first node is the same as the timestamp of the transaction data corresponding to the first blockchain.
步骤3、在第一节点存储的交易数据的区块高度与第一区块链对应的交易数据的区块高度相同,并且第一节点存储的交易数据的时间戳与第一区块链对应的交易数据的时间戳相同的情况下,网络控制设备确定第一节点存储的交易数据与第一区块链对应的交易数据相同。否则,网络控制设备确定第一节点存储的交易数据与第一区块链对应的交易数据不相同。Step 3. The block height of the transaction data stored in the first node is the same as the block height of the transaction data corresponding to the first blockchain, and the timestamp of the transaction data stored in the first node is the same as that of the first blockchain. When the timestamps of the transaction data are the same, the network control device determines that the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain. Otherwise, the network control device determines that the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain.
示例性的,假设第一节点存储的交易数据的区块高度为4,该第一节点存储的交易数据的时间戳为2020年7月10日08:00;第一区块链对应的交易数据的区块高度为5,该第一区块链对应的交易数据的时间戳为2020年7月10日08:01。网络控制设备确定第一节点存储的交易数据与第一区块链对应的交易数据不相同。Exemplarily, it is assumed that the block height of the transaction data stored by the first node is 4, and the timestamp of the transaction data stored by the first node is 08:00 on July 10, 2020; the transaction data corresponding to the first blockchain The block height is 5, and the timestamp of the transaction data corresponding to the first blockchain is 08:01 on July 10, 2020. The network control device determines that the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain.
可以理解的是,同一个区块链上的所有节点在正常工作时应存储相同的交易数据。在网络控制设备确定第一节点存储的交易数据与第一区块链对应的交易数据(具体为第一区块链上的节点存储的交易数据)相同的情况下,说明第一节点是第一区块链上的一个节点。在网络控制设备确定第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,说明第一节点不是第一区块链上的一个节点,此时需要指示第一节点加入第一区块链,即指示第一节点获取第一区块链对应的交易数据。Understandably, all nodes on the same blockchain should store the same transaction data when working properly. In the case where the network control device determines that the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain (specifically, the transaction data stored by the nodes on the first blockchain), it means that the first node is the first node. A node on the blockchain. In the case that the network control device determines that the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, it indicates that the first node is not a node on the first blockchain. In this case, the first node needs to be instructed Joining the first blockchain means instructing the first node to obtain transaction data corresponding to the first blockchain.
需要说明的是,当某一节点(例如第一节点)在完成上次交易之后退出某一区块链(例如第一区块链),或者由于网络、服务器性能等原因,第一节点未能完成第一区块链对应的交易数据的实时更新,如此,网络控制设备可以确定第一节点并未真正成为该第一区块链上的一个节点(可以理解为第一节点并未上链),进而,需要指示第一节点完成上链(即加入第一区块链)的过程。It should be noted that when a node (such as the first node) exits a certain blockchain (such as the first blockchain) after completing the last transaction, or due to network, server performance and other reasons, the first node fails to Complete the real-time update of the transaction data corresponding to the first blockchain, so that the network control device can determine that the first node does not really become a node on the first blockchain (it can be understood that the first node is not on the chain) , and further, the first node needs to be instructed to complete the process of on-chain (ie, join the first blockchain).
S105、在第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,网络控制设备向第一节点发送第一数据同步指示消息。S105. In the case that the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device sends a first data synchronization instruction message to the first node.
其中,第一数据同步指示消息用于指示第一节点从目标MEC节点获取第一区块链对应的交易数据。The first data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
在另一种实现方式中,在第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,网络控制设备还可以指示目标MEC节点将第一区块链对应的交易数据发送至第一节点。In another implementation manner, when the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device may also instruct the target MEC node to transfer the transaction data corresponding to the first blockchain Data is sent to the first node.
S106、第一节点接收网络控制设备的第一数据同步指示消息。S106. The first node receives the first data synchronization indication message of the network control device.
结合上述实施例的描述,应理解,目标MEC节点是网络控制设备根据第一节点的位置信息确定的,第一区块链为目标MEC节点对应的区块链(目标MEC节点为第一区块链上的一个节点)。With reference to the description of the above embodiments, it should be understood that the target MEC node is determined by the network control device according to the location information of the first node, and the first block chain is the block chain corresponding to the target MEC node (the target MEC node is the first block chain). a node on the chain).
S107、第一节点向目标MEC节点发送第一数据同步请求消息。S107. The first node sends a first data synchronization request message to the target MEC node.
具体的,第一数据同步请求消息用于请求获取第一区块链对应的交易数据。Specifically, the first data synchronization request message is used to request acquisition of transaction data corresponding to the first blockchain.
S108、目标MEC节点接收第一节点的第一数据同步请求消息。S108. The target MEC node receives the first data synchronization request message of the first node.
S109、目标MEC节点向第一节点发送第一数据同步响应消息。S109. The target MEC node sends a first data synchronization response message to the first node.
其中,第一数据同步响应消息中包括第一区块链对应的交易数据。The first data synchronization response message includes transaction data corresponding to the first blockchain.
S110、第一节点接收目标MEC节点的第一数据同步响应消息。S110. The first node receives the first data synchronization response message of the target MEC node.
至此,第一节点可以获取到第一区块链对应的交易数据,即第一节点存储的交易数据与第一区块链对应的交易数据保持同步,第一节点可以作为该第一区块链上的一个节点,即第一节点完成上链的过程。So far, the first node can obtain the transaction data corresponding to the first blockchain, that is, the transaction data stored by the first node is synchronized with the transaction data corresponding to the first blockchain, and the first node can be used as the first blockchain. A node on the chain, that is, the first node to complete the process of on-chain.
需要说明的是,在上述S104之后,在第一节点存储的交易数据与第一区块链对应的交易数据相同的情况下,网络控制设备可以确定第一节点为第一区块链上的一个节点,即第一节点无需完成上述S105-S110的交易数据的同步过程。It should be noted that, after the above S104, in the case that the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain, the network control device can determine that the first node is one on the first blockchain. The node, that is, the first node, does not need to complete the synchronization process of the transaction data in the above S105-S110.
本发明实施例提供的交易数据的处理方法,第一节点向网络控制设备发送交易请求消息和第一节点的状态信息,该交易请求消息中包括第二节点(即目标交易对应的交易接收方设备)的账户地址和目标交易对应的交易数据,第一节点的状态信息包括第一节点的位置信息,第一节点存储的交易数据的区块高度以及第一节点存储的交易数据的时间戳;在网络控制设备接收到第一节点的交易请求消息和第一节点的状态信息之后,可以根据该第一节点的位置信息确定目标MEC节点(即与第一节点的通信距离最短的节点),并根据该第一节点存储的交易数据的区块高度和该第一节点存储的交易数据的时间戳,确定该第一节点存储的交易数据与第一区块链(即目标MEC节点对应的区块链)对应的交易数据是否相同。然后,在第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,网络控制设备向第一节点发送第一数据同步指示消息,该第一数据同于指示消息用于指示第一节点从目标MEC节点获取该第一区块链对应的交易数据。In the transaction data processing method provided by the embodiment of the present invention, the first node sends a transaction request message and state information of the first node to a network control device, and the transaction request message includes the second node (ie, the transaction receiver device corresponding to the target transaction). ) account address and the transaction data corresponding to the target transaction, the state information of the first node includes the location information of the first node, the block height of the transaction data stored by the first node and the time stamp of the transaction data stored by the first node; After receiving the transaction request message of the first node and the state information of the first node, the network control device can determine the target MEC node (that is, the node with the shortest communication distance with the first node) according to the location information of the first node, and determine the target MEC node according to the location information of the first node. The block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node determine the transaction data stored by the first node and the first blockchain (that is, the blockchain corresponding to the target MEC node). ) are the same transaction data. Then, in the case where the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device sends a first data synchronization instruction message to the first node, and the first data is the same as the instruction message. to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
第一节点在接收到网路控制设备发送的第一数据同步指示消息之后,可以向目标MEC节点发送第一数据同步指示消息,并在之后接收目标MEC节点发送的第一数据同步响应消息,该第一数据同步响应消息中包括第一区块链对应的交易数据。如此,第一节点可以获取到第一区块链对应的交易数据。本发明实施例中,网络控制设备可以基于第一节点的位置信息确定,可以为第一节点提供第一区块链对应的交易数据的目标MEC节点。进而,在第一节点更新数据不及时或者不属于第一区块链的情况下,指示第一节点从该目标MEC节点获取第一区块链对应的交易数据,能够降低第一节点获取第一区块链对应的交易数据的时延,提升交易数据的处理效率。After receiving the first data synchronization indication message sent by the network control device, the first node may send the first data synchronization indication message to the target MEC node, and then receive the first data synchronization response message sent by the target MEC node, the The first data synchronization response message includes transaction data corresponding to the first blockchain. In this way, the first node can obtain transaction data corresponding to the first blockchain. In this embodiment of the present invention, the network control device may determine, based on the location information of the first node, a target MEC node that may provide the first node with transaction data corresponding to the first blockchain. Furthermore, when the first node does not update the data in time or does not belong to the first blockchain, instructing the first node to obtain the transaction data corresponding to the first blockchain from the target MEC node can reduce the need for the first node to obtain the first blockchain. The delay of transaction data corresponding to the blockchain improves the processing efficiency of transaction data.
S111、网络控制设备根据第二节点的账户地址确定第二区块链的标识信息。S111. The network control device determines the identification information of the second blockchain according to the account address of the second node.
其中,第二区块链为第二节点对应的区块链,即第二节点为第二区块链上的一个节点。The second blockchain is a blockchain corresponding to the second node, that is, the second node is a node on the second blockchain.
结合上述实施例的描述,应理解,网络控制设备从第一节点接收到交易请求消息和第一节点的状态信息后,首先基于第一节点的状态信息确定第一节点是否为第一区块链上的一个节点。在网络控制设备确定第一节点为区块链上的一个节点,或者在上述第一节点从目标MEC节点中获取(或同步)到第一区块链对应的交易数据之后,网络控制设备再执行S111。With reference to the description of the above embodiments, it should be understood that after receiving the transaction request message and the state information of the first node from the first node, the network control device first determines whether the first node is the first blockchain based on the state information of the first node a node on . After the network control device determines that the first node is a node on the blockchain, or after the first node obtains (or synchronizes) the transaction data corresponding to the first blockchain from the target MEC node, the network control device executes the S111.
可以理解的是,网络控制设备中可以预先存储节点的账户地址与区块链的标识信息的对应关系,网络控制设备可以从该对应关系中确定与第二节点的账户地址对应的第二区块链的标识信息。It can be understood that the corresponding relationship between the account address of the node and the identification information of the blockchain can be pre-stored in the network control device, and the network control device can determine the second block corresponding to the account address of the second node from the corresponding relationship. The identification information of the chain.
具体的,可以将网络中所有的节点分为不同的区块链分片,一个区块链分片对应一个分片标识,该分片标识即为该区块链的标识信息。Specifically, all nodes in the network can be divided into different blockchain shards, one blockchain shard corresponds to a shard identifier, and the shard identifier is the identifier information of the blockchain.
示例性的,以下表1为节点的账户地址与区块链的标识信息的对应关系的一种示例。其中,账户地址1和账户地址2共同对应标识1,说明账户地址1对应的节点与账户地址2对应的节点均为标识1对应的区块链上的一个节点(即账户地址1对应的节点与账户地址2对应的节点属于同一个区块链),同理,账户地址4、账户地址5以及账户地址6对应的节点均为标识3对应的区块链上的一个节点。Exemplarily, the following Table 1 is an example of the correspondence between the account address of the node and the identification information of the blockchain. Among them, account address 1 and account address 2 jointly correspond to ID 1, indicating that the node corresponding to account address 1 and the node corresponding to account address 2 are both a node on the blockchain corresponding to ID 1 (that is, the node corresponding to account address 1 is the same as the node corresponding to account address 1). The nodes corresponding to account address 2 belong to the same blockchain). Similarly, the nodes corresponding to account address 4, account address 5, and account address 6 are all nodes on the blockchain corresponding to ID 3.
表1Table 1
假设第二节点的账户地址为账户地址1,由表1,网络控制设备确定第二区块链的标识信息为标识1。Assuming that the account address of the second node is account address 1, from Table 1, the network control device determines that the identification information of the second blockchain is identification 1.
S112、网络控制设备确定第二区块链的标识信息与第一区块链的标识信息是否相同。S112. The network control device determines whether the identification information of the second blockchain is the same as the identification information of the first blockchain.
应理解,网络控制设备中可以预先存储有第一区块链的标识信息,也可以获取第一区块链的标识信息。本发明实施例中,通过确定第二区块链的标识信息与第一区块链的标识信息是否相同,可以确定第二节点与第一节点是否处于同一个区块链。当网络控制设备确定第二节点与第一节点在同一个区块链的情况下,网络控制设备可以指示第一节点开始目标交易的验证过程。It should be understood that the identification information of the first blockchain may be pre-stored in the network control device, and the identification information of the first blockchain may also be acquired. In this embodiment of the present invention, by determining whether the identification information of the second blockchain is the same as the identification information of the first blockchain, it can be determined whether the second node and the first node are in the same blockchain. When the network control device determines that the second node and the first node are in the same blockchain, the network control device may instruct the first node to start the verification process of the target transaction.
S113、在第二区块链的标识信息与第一区块链的标识信息相同的情况下,网络控制设备向第一节点发送第一交易验证指示消息。S113. In the case that the identification information of the second blockchain is the same as the identification information of the first blockchain, the network control device sends a first transaction verification instruction message to the first node.
其中,该交易验证验证指示消息用于指示第一节点将上述目标交易对应的交易数据发送至第一区块链上的多个节点。The transaction verification verification instruction message is used to instruct the first node to send the transaction data corresponding to the target transaction to multiple nodes on the first blockchain.
应理解,第二区块链的标识信息与第一区块链的标识信息相同,说明第二区块链与第一区块链为同一区块链,即第二节点与第一节点处于同一个区块链,如此,网络控制设备可以指示第一节点向该第一区块链(或第二区块链,此时第二区块链为第一区块链)上的多个节点发送目标交易对应的交易数据,以对目标交易进行验证。It should be understood that the identification information of the second blockchain is the same as the identification information of the first blockchain, indicating that the second blockchain and the first blockchain are the same blockchain, that is, the second node and the first node are in the same A blockchain, in this way, the network control device can instruct the first node to send to multiple nodes on the first blockchain (or the second blockchain, in this case the second blockchain is the first blockchain) Transaction data corresponding to the target transaction to verify the target transaction.
可选地,该第一区块链上的多个节点可以为该第一区块链上的多个全节点,其中,一个全节点用于存储该第一区块链对应的交易数据的全部内容;并且,该第一区块链上还可以包括至少一个轻量化节点,该至少一个轻量化节点用于存储该第一区块链对应的交易数据的部分内容,当该至少一个轻量化节点需要存储该第一区块链对应的交易数据的全部内容时,可以从其临近的全节点中获取。Optionally, the multiple nodes on the first blockchain may be multiple full nodes on the first blockchain, wherein one full node is used to store all the transaction data corresponding to the first blockchain. In addition, the first blockchain may also include at least one lightweight node, the at least one lightweight node is used to store part of the content of the transaction data corresponding to the first blockchain, when the at least one lightweight node When the entire content of the transaction data corresponding to the first blockchain needs to be stored, it can be obtained from its adjacent full nodes.
S114、第一节点接收网络控制设备的第一交易验证指示消息。S114. The first node receives the first transaction verification indication message of the network control device.
本发明实施例中,在S114之后,第一节点可以向第一区块链上的多个节点发送目标交易对应的目标数据,以完成目标交易的验证过程,进而确定是否将目标交易对应的交易数据存入第一区块链中(具体为第一区块链的多个节点中)。该过程具体包括:步骤A-步骤B。In this embodiment of the present invention, after S114, the first node may send target data corresponding to the target transaction to multiple nodes on the first blockchain, so as to complete the verification process of the target transaction, and then determine whether to convert the transaction corresponding to the target transaction. The data is stored in the first blockchain (specifically, in multiple nodes of the first blockchain). The process specifically includes: step A-step B.
步骤A、第一节点向第一区块链上的多个节点分别发送第一验证请求消息。Step A: The first node sends a first verification request message to a plurality of nodes on the first blockchain, respectively.
其中,第一验证请求消息中包括目标交易对应的交易数据,该第一验证请求消息用于对第一节点的身份和目标交易对应的交易数据进行验证。The first verification request message includes transaction data corresponding to the target transaction, and the first verification request message is used to verify the identity of the first node and the transaction data corresponding to the target transaction.
具体的,第一节点可以采用私钥的方式,对目标交易对应的交易数据进行加密、签名以及添加时间戳等操作,形成目标数据块,并将该目标数据块存入该第一节点的缓存中;之后,将该目标数据块广播给该第一区块链上的多个节点。Specifically, the first node can use the private key to encrypt, sign, and add timestamps to the transaction data corresponding to the target transaction to form a target data block, and store the target data block in the cache of the first node. in; after that, broadcast the target data block to multiple nodes on the first blockchain.
步骤B、第一节点接收第一区块链上的多个节点各自的第一验证返回消息。Step B: The first node receives the respective first verification return messages of multiple nodes on the first blockchain.
其中,一个第一验证返回消息中包括第一区块链中的一个节点对目标交易的验证结果,验证结果为验证成功或验证失败。Wherein, a first verification return message includes a verification result of the target transaction performed by a node in the first blockchain, and the verification result is the verification success or the verification failure.
应理解,第一区块链上的多个节点在分别接收到上述第一验证请求消息之后,开始对目标交易进行验证。该多个节点中每个节点的验证结果可能是不同的,如此,第一节点在接收到多个节点各自的第一验证返回消息,即接收到多个节点各自的验证结果之后,第一节点需要与该第一区块链上的该多个节点达成共识,即根据多个节点各自的验证结果共同确定是否将该目标数据块记账,应理解,记账即为将该目标数据块存入该第一节点和该多个节点的缓存中。若第一节点与该多个节点共同确定需要将该目标数据块记账,则第一节点和该多个节点将该目标数据块(即目标交易对应的目标数据)存入其各自的缓存中,否则,丢弃该目标数据块。It should be understood that after receiving the above-mentioned first verification request message respectively, multiple nodes on the first blockchain start to verify the target transaction. The verification result of each node in the multiple nodes may be different. In this way, after the first node receives the respective first verification return messages of the multiple nodes, that is, after receiving the respective verification results of the multiple nodes, the first node It is necessary to reach a consensus with the plurality of nodes on the first blockchain, that is, according to the respective verification results of the plurality of nodes, jointly determine whether to bill the target data block. It should be understood that billing is to store the target data block. into the caches of the first node and the plurality of nodes. If the first node and the multiple nodes jointly determine that the target data block needs to be billed, the first node and the multiple nodes store the target data block (that is, the target data corresponding to the target transaction) in their respective caches , otherwise, discard the target data block.
本发明实施例中,在网络控制设备确定第二区块链的标识信息与第一区块链的标识信息相同的情况下,网络控制设备可以向第一节点发送第一交易验证指示消息,指示第一节点开始目标交易的验证过程,进而,在第一节点接收到第一区块链上的多个节点各自的第一验证返回消息之后,与该第一区块链上的多个节点共同确定是否将目标交易对应的目标数据存入其各自的缓存中,由于网络控制设备确定第二区块链的标识信息和第一区块链的标识信息相同,如此,网络控制设备确定第二区块链即为第一区块链,第一节点无需重复再从第二区块链中获取该第二区块链的交易数据,进而,能够提升了交易数据的处理效率。In this embodiment of the present invention, when the network control device determines that the identification information of the second blockchain is the same as the identification information of the first blockchain, the network control device may send a first transaction verification instruction message to the first node, indicating The first node starts the verification process of the target transaction, and further, after the first node receives the respective first verification return messages of the multiple nodes on the first blockchain, the first node shares the first verification return message with the multiple nodes on the first blockchain. Determine whether to store the target data corresponding to the target transaction in their respective caches. Since the network control device determines that the identification information of the second blockchain is the same as the identification information of the first blockchain, the network control device determines that the second blockchain is identical. The block chain is the first block chain, and the first node does not need to repeatedly acquire the transaction data of the second block chain from the second block chain, and further, the processing efficiency of the transaction data can be improved.
如图4所示,在一种实现方式中,本发明实施例提供的交易数据的处理方法包括S201-S218。As shown in FIG. 4 , in an implementation manner, the transaction data processing method provided by the embodiment of the present invention includes S201-S218.
S201、第一节点向网络控制设备发送交易请求消息和第一节点的状态信息。S201. The first node sends a transaction request message and state information of the first node to a network control device.
S202、网络控制设备接收第一节点的交易请求消息和第一节点的状态信息。S202. The network control device receives the transaction request message of the first node and the state information of the first node.
S203、网络控制设备根据第一节点的位置信息确定与第一节点的通信距离最短的目标MEC节点。S203. The network control device determines, according to the location information of the first node, the target MEC node with the shortest communication distance with the first node.
S204、网络控制设备根据第一节点存储的交易数据的区块高度和第一节点存储的交易数据的时间戳确定第一节点存储的交易数据与第一区块链对应的交易数据是否相同。S204. The network control device determines whether the transaction data stored by the first node is the same as the transaction data corresponding to the first blockchain according to the block height of the transaction data stored by the first node and the timestamp of the transaction data stored by the first node.
S205、在第一节点存储的交易数据与第一区块链对应的交易数据不相同的情况下,网络控制设备向第一节点发送第一数据同步指示消息。S205: In the case that the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, the network control device sends a first data synchronization instruction message to the first node.
S206、第一节点接收网络控制设备的第一数据同步指示消息。S206. The first node receives the first data synchronization indication message of the network control device.
S207、第一节点向目标MEC节点发送第一数据同步请求消息。S207. The first node sends a first data synchronization request message to the target MEC node.
S208、目标MEC节点接收第一节点的第一数据同步请求消息。S208. The target MEC node receives the first data synchronization request message of the first node.
S209、目标MEC节点向第一节点发送第一数据同步响应消息。S209. The target MEC node sends a first data synchronization response message to the first node.
S210、第一节点接收目标MEC节点的第一数据同步响应消息。S210. The first node receives the first data synchronization response message of the target MEC node.
S211、网络控制设备根据第二节点的账户地址确定第二区块链的标识信息。S211. The network control device determines the identification information of the second blockchain according to the account address of the second node.
S212、网络控制设备确定第二区块链的标识信息与第一区块链的标识信息是否相同。S212: The network control device determines whether the identification information of the second blockchain is the same as the identification information of the first blockchain.
应理解,S201-S212的解释说明可以参见上述S101-S112中的描述,此处不再赘述。It should be understood that for the explanation of S201-S212, reference may be made to the descriptions in the above-mentioned S101-S112, and details are not repeated here.
S213、在第二区块链的标识信息与第一区块链的标识信息不相同的情况下,网络控制设备向第一节点发送重叠数据获取指示消息。S213. In the case that the identification information of the second blockchain is different from the identification information of the first blockchain, the network control device sends an overlapping data acquisition instruction message to the first node.
其中,重叠数据指示消息用于指示第一节点从重叠节点获取第二区块链对应的交易数据,该重叠节点用于存储第一区块链对应的交易数据和第二区块链对应的交易数据。The overlapping data indication message is used to instruct the first node to obtain transaction data corresponding to the second blockchain from the overlapping node, and the overlapping node is used to store the transaction data corresponding to the first blockchain and the transaction corresponding to the second blockchain. data.
应理解,由于不同的区块链之间的数据不互通。例如,若第一区块链的标识信息与第二区块链的标识信息不相同,说明第一区块链与第二区块链不是同一个区块链,第一区块链上的节点不能直接与第二区块链上的节点进行数据交互,例如第一区块链的节点不能直接获取第二区块链对应的交易数据,同理,第二区块链上的节点也不能直接获取第一区块链对应的交易数据。此时,网络控制设备可以指示第一节点从重叠节点获取第二区块链对应的交易数据。该重叠节点可以理解为存储了第一区块链对应的交易数据和第二区块链对应的交易数据的数据库,第一节点可以从该数据库中获取第二区块链对应的交易数据。It should be understood that data between different blockchains is not interoperable. For example, if the identification information of the first blockchain is different from the identification information of the second blockchain, it means that the first blockchain and the second blockchain are not the same blockchain, and the nodes on the first blockchain are not the same. It is not possible to directly interact with the nodes on the second blockchain. For example, the nodes of the first blockchain cannot directly obtain the transaction data corresponding to the second blockchain. Similarly, the nodes on the second blockchain cannot directly Obtain transaction data corresponding to the first blockchain. At this time, the network control device may instruct the first node to obtain transaction data corresponding to the second blockchain from the overlapping node. The overlapping node can be understood as a database storing transaction data corresponding to the first blockchain and transaction data corresponding to the second blockchain, and the first node can obtain transaction data corresponding to the second blockchain from the database.
S214、第一节点接收网络控制设备的重叠数据获取指示消息。S214. The first node receives the overlay data acquisition instruction message of the network control device.
S215、第一节点向重叠节点发送重叠数据请求消息。S215. The first node sends an overlapping data request message to the overlapping node.
其中,重叠数据请求消息用于请求获取第二区块链对应的交易数据。The overlapping data request message is used to request to obtain transaction data corresponding to the second blockchain.
S216、重叠节点接收第一节点的重叠数据请求消息。S216. The overlapping node receives the overlapping data request message of the first node.
S217、重叠节点向第一节点发送重叠数据响应消息。S217. The overlapping node sends an overlapping data response message to the first node.
具体的,重叠数据响应消息中包括第二区块链对应的交易数据。Specifically, the overlapped data response message includes transaction data corresponding to the second blockchain.
S218、第一节点接收重叠节点的重叠数据响应消息。S218. The first node receives the overlapping data response message of the overlapping node.
至此,第一节点从重叠节点获取到了第二区块链对应的交易数据。So far, the first node has obtained the transaction data corresponding to the second blockchain from the overlapping node.
应理解,虽然第一节点为第一区块链上的一个节点,并且第一区块链与第二区块链不是同一区块链,但是第一节点通过从重叠节点获取到第二区块链对应的交易数据,使其具有了第二区块链上的节点的逻辑身份。即此时,虽然第一节点仍属于第一区块链,但是,第一节点可以与第二区块链上的节点进行数据交互(因为第一节点已经具有了区块链2对应的交易数据)。例如第一节点可以向第二区块链上的多个节点发送目标交易对应的目标数据,以完成目标交易的验证过程,进而确定是否将目标交易对应的交易数据存入第二区块链中(具体为第二区块链的节点中)。该过程具体包括:步骤C-步骤D。It should be understood that although the first node is a node on the first blockchain, and the first blockchain and the second blockchain are not the same blockchain, the first node obtains the second block by obtaining the second block from the overlapping node The transaction data corresponding to the chain has the logical identity of the node on the second blockchain. That is, at this time, although the first node still belongs to the first blockchain, the first node can exchange data with nodes on the second blockchain (because the first node already has transaction data corresponding to blockchain 2). ). For example, the first node can send the target data corresponding to the target transaction to multiple nodes on the second blockchain to complete the verification process of the target transaction, and then determine whether to store the transaction data corresponding to the target transaction in the second blockchain. (specifically in the nodes of the second blockchain). The process specifically includes: step C-step D.
步骤C、第一节点向第二区块链上的多个节点分别发送第二验证请求消息。Step C: The first node sends a second verification request message to a plurality of nodes on the second blockchain, respectively.
其中,第二验证请求消息中包括目标交易对应的交易数据,该第二验证请求消息用于对第一节点的身份和目标交易对应的交易数据进行验证。The second verification request message includes transaction data corresponding to the target transaction, and the second verification request message is used to verify the identity of the first node and the transaction data corresponding to the target transaction.
步骤D、第一节点接收第二区块链上的多个节点各自的第二验证返回消息。Step D: The first node receives the respective second verification return messages of multiple nodes on the second blockchain.
其中,一个第二验证返回消息中包括第二区块链上的一个节点对目标交易的验证结果,验证结果为验证成功或验证失败。Wherein, a second verification return message includes a verification result of the target transaction by a node on the second blockchain, and the verification result is verification success or verification failure.
应理解,上述步骤C-步骤D的过程与上述步骤A-步骤B的过程是相同或类似的,此处不再赘述。It should be understood that the processes of the above steps C to D are the same as or similar to the processes of the above steps A to B, and will not be repeated here.
本发明实施例中,在网络控制设备确定第二区块链的标识信息与第一区块链的标识信息不相同的情况下,网络控制设备可以向第一节点发送重叠数据获取指示消息,指示第一节点从重叠节点获取第二区块链对应的交易数据。如此,第一节点无需从第一区块链下链后,再上链到第二区块链。进而,在第一节点从重叠节点获取到第二区块链对应的交易数据之后,由于该第一节点此时具有了与第二区块链对应的交易数据相同的交易数据(即节点2无需加入第二区块链,就已经具有了第二区块链上的一个节点的逻辑身份),如此,第一节点可以与该第二区块链上的多个节点共同确定是否将目标交易对应的目标数据存入其各自的缓存中,解决了不同区块链之间数据不互通的问题,使第一节点可以直接与第二区块链(具体为第二区块链上的多个节点)进行数据交互,能够提升交易数据的处理实用性。In this embodiment of the present invention, when the network control device determines that the identification information of the second blockchain is different from the identification information of the first blockchain, the network control device may send an overlapping data acquisition instruction message to the first node, indicating The first node obtains transaction data corresponding to the second blockchain from the overlapping node. In this way, the first node does not need to be off-chain from the first blockchain and then on-chain to the second blockchain. Furthermore, after the first node obtains the transaction data corresponding to the second blockchain from the overlapping node, since the first node has the same transaction data as the transaction data corresponding to the second blockchain at this time (that is, node 2 does not need to If you join the second blockchain, you already have the logical identity of a node on the second blockchain). In this way, the first node can work with multiple nodes on the second blockchain to determine whether to match the target transaction. The target data is stored in its respective cache, which solves the problem of data incompatibility between different blockchains, so that the first node can directly communicate with the second blockchain (specifically, multiple nodes on the second blockchain). ) for data interaction, which can improve the practicability of transaction data processing.
在一种实现方式中,在上述S212之后,本发明实施例提供的交易数据的处理方法还包括S301-S306。In an implementation manner, after the above S212, the transaction data processing method provided by the embodiment of the present invention further includes S301-S306.
S301、在第二区块链的标识信息与第一区块链的标识信息不相同的情况下,网络控制设备向第一节点发送第二数据同步指示消息。S301. In the case that the identification information of the second blockchain is different from the identification information of the first blockchain, the network control device sends a second data synchronization indication message to the first node.
其中,第二数据同步指示消息用于指示第一节点从目标节点获取第二区块链对应的交易数据,该目标节点为第二区块链上多个节点中的一个。The second data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the second blockchain from a target node, where the target node is one of multiple nodes on the second blockchain.
结合上述实施例的描述,应理解,第二区块链的标识信息与第一区块链的标识信息不相同,说明第二区块链与第一区块链是不同的区块链(即第二节点和第一节点属于不同的区块链)。由于不同区块链上的节点无法进行数据交互,如此网络控制设备可以指示第一节点加入第二区块链,即指示第一节点获取第二区块链对应的交易数据。并且,第一节点可以从第二区块链上的多个节点中的任一节点获取该第二区块链对应的交易数据,即该第二区块链上的多个节点中的任一节点均可以作为本发明实施例中的目标节点。With reference to the description of the above embodiments, it should be understood that the identification information of the second blockchain is different from the identification information of the first blockchain, indicating that the second blockchain and the first blockchain are different blockchains (ie. The second node and the first node belong to different blockchains). Since nodes on different blockchains cannot perform data interaction, the network control device can instruct the first node to join the second blockchain, that is, instruct the first node to obtain transaction data corresponding to the second blockchain. In addition, the first node can obtain the transaction data corresponding to the second blockchain from any node of the multiple nodes on the second blockchain, that is, any one of the multiple nodes on the second blockchain. All nodes can be used as target nodes in this embodiment of the present invention.
S302、第一节点接收网络控制设备的第二数据同步指示消息。S302. The first node receives a second data synchronization indication message from the network control device.
其中,该第二数据同步指示消息用于指示第一节点从目标节点获取第二区块链对应的交易数据,该目标节点为第二区块链上的多个节点中的一个。The second data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the second blockchain from a target node, where the target node is one of multiple nodes on the second blockchain.
S303、第一节点向目标节点发送第二数据同步请求消息。S303. The first node sends a second data synchronization request message to the target node.
该第二数据同步请求消息用于请求获取第二区块链对应的交易数据。The second data synchronization request message is used to request to acquire transaction data corresponding to the second blockchain.
S304、目标节点接收第一节点的第二数据同步请求消息。S304. The target node receives the second data synchronization request message of the first node.
S305、目标节点向第一节点发送第二数据同步响应消息。S305. The target node sends a second data synchronization response message to the first node.
该第二数据同步响应消息中包括第二区块链对应的交易数据。The second data synchronization response message includes transaction data corresponding to the second blockchain.
S306、第一节点接收目标节点的第二数据同步响应消息。S306. The first node receives the second data synchronization response message of the target node.
应理解,上述第一节点从目标节点获取第二区块链对应的交易数据的过程(即S303-S306)与第一节点从目标MEC节点获取第一区块链对应的交易数据的过程(即S107-S110)是相同或类似的,S303-S306的解释说明可以参见上述S107-S110中的描述,在此不做赘述。It should be understood that the above-mentioned process of the first node acquiring the transaction data corresponding to the second blockchain from the target node (ie S303-S306) is the same as the process of acquiring the transaction data corresponding to the first blockchain by the first node from the target MEC node (that is, S303-S306). S107-S110) are the same or similar, and the explanation of S303-S306 can refer to the descriptions in the above-mentioned S107-S110, which will not be repeated here.
如此,第一节点可以获取到第二区块链对应的交易数据,即第一节点存储的交易数据与第二区块链对应的交易数据保持同步,第一节点已成为该第二区块链上的一个节点,即第一节点完成了从第一区块链上到第二区块链的过程。In this way, the first node can obtain the transaction data corresponding to the second blockchain, that is, the transaction data stored by the first node is kept in sync with the transaction data corresponding to the second blockchain, and the first node has become the second blockchain. A node on the blockchain, that is, the first node has completed the process from the first blockchain to the second blockchain.
进而,第一节点可以向第二区块链上的多个节点发送目标交易对应的目标数据,以完成目标交易的验证过程,进而确定是否将目标交易对应的交易数据存入第二区块链中(具体为第二区块链的节点中)。具体过程与上述步骤C-步骤D相同,此处不再赘述。Further, the first node can send target data corresponding to the target transaction to multiple nodes on the second blockchain to complete the verification process of the target transaction, and then determine whether to store the transaction data corresponding to the target transaction in the second blockchain. in (specifically, in the node of the second blockchain). The specific process is the same as the above step C-step D, which is not repeated here.
本发明实施例中,在网络控制设备确定第二区块链的标识信息与第一区块链的标识信息不相同的情况下,网络控制设备可以向第一节点发送第二数据同步指示消息,指示第一节点从目标节点(即第二区块链上的多个节点中的任一节点中)获取第二区块链对应的交易数据。即,指示第一节点从第一区块链下链后上链到第二区块链上,如此,第一节点成为了第二区块链上的一个节点,进而可以完成与该区块链上的其他节点(即该第二区块链上的多个节点)的数据交互。进而,第一节点可以通过该第二区块链上的多个节点共同完成目标交易的验证过程,解决了不同区块链之间数据不互通的问题。In this embodiment of the present invention, when the network control device determines that the identification information of the second blockchain is different from the identification information of the first blockchain, the network control device may send a second data synchronization instruction message to the first node, The first node is instructed to obtain transaction data corresponding to the second blockchain from the target node (that is, any node among the multiple nodes on the second blockchain). That is, the first node is instructed to go off the chain from the first blockchain and then upload it to the second blockchain. In this way, the first node becomes a node on the second blockchain, and can then complete the connection with the blockchain. data interaction with other nodes on the second blockchain (ie, multiple nodes on the second blockchain). Furthermore, the first node can jointly complete the verification process of the target transaction through a plurality of nodes on the second blockchain, which solves the problem of data incompatibility between different blockchains.
在一种实现方式中,在第二区块链的标识信息与第一区块链的标识信息不相同的情况下,网络控制设备还可以根据第一节点在预设时间内,与第二区块链上的至少一个节点的交易次数,确定是否向第一节点发送第二数据同步请求消息。In an implementation manner, in the case that the identification information of the second blockchain is different from the identification information of the first blockchain, the network control device may also, according to the first node within a preset time, connect with the second blockchain The number of transactions of at least one node on the blockchain determines whether to send a second data synchronization request message to the first node.
具体的,网络控制设备可以获取第一节点在预设时间内,与第二区块链上的至少一个节点(该至少一个节点包括第二节点)的交易次数。Specifically, the network control device may acquire the number of transactions between the first node and at least one node on the second blockchain (the at least one node includes the second node) within a preset time.
若该交易次数大于或等于交易次数阈值,说明第一节点与第二区块链上的至少一个节点的交易为高频事件,如此,可以指示第一节点加入第二区块链,即成为该第二区块链上的一个节点。进而,网络控制设备确定向第一节点发送第二数据同步请求消息。If the number of transactions is greater than or equal to the threshold of the number of transactions, it indicates that the transaction between the first node and at least one node on the second blockchain is a high-frequency event. In this way, the first node can be instructed to join the second blockchain, which is the A node on the second blockchain. Further, the network control device determines to send a second data synchronization request message to the first node.
若该交易次数小于交易次数阈值,说明第一节点与第二区块链上的至少一个节点的交易为低频事件,第一节点可能更适合作为第一区块链上的一个节点。如此,网络控制设备确定向第一节点发送上述重叠数据获取指示消息。If the number of transactions is less than the threshold of the number of transactions, it indicates that the transaction between the first node and at least one node on the second blockchain is a low-frequency event, and the first node may be more suitable as a node on the first blockchain. In this way, the network control device determines to send the above-mentioned overlapping data acquisition instruction message to the first node.
本发明实施例可以根据上述方法示例对第一节点和网络控制设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present invention, the first node, the network control device, etc. may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. in the module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图5示出了上述实施例中所涉及的第一节点的一种可能的结构示意图,如图5所示,第一节点30可以包括:发送模块301和接收模块302。In the case where each functional module is divided according to each function, FIG. 5 shows a possible schematic structural diagram of the first node involved in the above embodiment. As shown in FIG. 5 , the first node 30 may include: sending module 301 and receiving module 302.
发送模块301,用于向网络控制设备发送交易请求消息和第一节点的状态信息,该交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,该第二节点为该目标交易对应的接收方设备,该第一节点的状态信息包括该第一节点的位置信息,该第一节点存储的交易数据的区块高度以及该第一节点存储的交易数据的时间戳。The sending module 301 is used to send a transaction request message and the status information of the first node to the network control device, where the transaction request message includes the account address of the second node and the transaction data corresponding to the target transaction, and the second node is the target transaction. For the corresponding receiver device, the state information of the first node includes the location information of the first node, the block height of the transaction data stored by the first node, and the timestamp of the transaction data stored by the first node.
接收模块302,用于接收该网络控制设备的第一数据同步指示消息,该第一数据同步指示消息用于指示该第一节点从目标MEC节点获取第一区块链对应的交易数据,该目标MEC节点是该网络控制设备根据该第一节点的位置信息确定的,该第一区块链为该目标MEC节点对应的区块链。The receiving module 302 is configured to receive a first data synchronization instruction message of the network control device, where the first data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node, and the target The MEC node is determined by the network control device according to the location information of the first node, and the first blockchain is the blockchain corresponding to the target MEC node.
发送模块301,还用于向该目标MEC节点发送第一数据同步请求消息,该第一数据同步请求消息用于请求获取该第一区块链对应的交易数据。The sending module 301 is further configured to send a first data synchronization request message to the target MEC node, where the first data synchronization request message is used to request to acquire transaction data corresponding to the first blockchain.
接收模块302,还用于接收该目标MEC节点的第一数据同步响应消息,该第一数据同步响应消息中包括该第一区块链对应的交易数据。The receiving module 302 is further configured to receive a first data synchronization response message of the target MEC node, where the first data synchronization response message includes transaction data corresponding to the first blockchain.
在采用集成的单元的情况下,图6示出了上述实施例中所涉及的第一节点的一种可能的结构示意图。如图6所示,第一节点40可以包括:处理模块401和通信模块402。处理模块401可以用于对第一节点40的动作进行控制管理。通信模块402可以用于支持第一节点40与其他实体的通信,例如,通信模块402可以用于支持第一节点40执行上述方法实施例中的S101、S106、S107、S110以及S114等。可选地,如图6所示,该第一节点40还可以包括存储模块403,用于存储第一节点40的程序代码和数据。In the case of using an integrated unit, FIG. 6 shows a possible schematic structural diagram of the first node involved in the above embodiment. As shown in FIG. 6 , the first node 40 may include: a processing module 401 and a communication module 402 . The processing module 401 may be used to control and manage the actions of the first node 40 . The communication module 402 may be used to support the communication between the first node 40 and other entities. For example, the communication module 402 may be used to support the first node 40 to perform S101, S106, S107, S110, and S114 in the above method embodiments. Optionally, as shown in FIG. 6 , the first node 40 may further include a storage module 403 for storing program codes and data of the first node 40 .
其中,处理模块401可以是处理器或控制器(例如可以是上述如图2所示的处理器201)。通信模块402可以是收发器、收发电路或通信接口等(例如可以是上述如图2所示的网络接口203)。存储模块403可以是存储器(例如可以是上述如图2所示的存储器202)。Wherein, the processing module 401 may be a processor or a controller (for example, it may be the above-mentioned
其中,当处理模块401为处理器,通信模块402为收发器,存储模块403为存储器时,处理器、收发器和存储器可以通过总线连接。总线可以是外设部件互连标准(peripheralcomponent interconnect,PCI)总线或扩展工业标准结构(extended industry standardarchitecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。Wherein, when the processing module 401 is a processor, the communication module 402 is a transceiver, and the storage module 403 is a memory, the processor, the transceiver and the memory can be connected through a bus. The bus may be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on.
在采用对应各个功能划分各个功能模块的情况下,图7示出了上述实施例中所涉及的网络控制设备的一种可能的结构示意图,如图7所示,网络控制设备50可以包括:接收模块501、确定模块502以及发送模块503。In the case where each functional module is divided according to each function, FIG. 7 shows a possible schematic structural diagram of the network control device involved in the above embodiment. As shown in FIG. 7 , the network control device 50 may include: receiving Module 501 , determining module 502 and sending module 503 .
接收模块501,用于接收第一节点的交易请求消息和该第一节点的状态信息,该交易请求消息中包括第二节点的账户地址和目标交易对应的交易数据,该第二节点为该目标交易对应的接收方设备,该第一节点的状态信息包括该第一节点的位置信息,该第一节点存储的交易数据的区块高度以及该第一节点存储的交易数据的时间戳。A receiving module 501, configured to receive a transaction request message of a first node and state information of the first node, where the transaction request message includes an account address of a second node and transaction data corresponding to a target transaction, where the second node is the target For the receiver device corresponding to the transaction, the state information of the first node includes the location information of the first node, the block height of the transaction data stored by the first node, and the timestamp of the transaction data stored by the first node.
确定模块502,用于根据该第一节点的位置信息确定与该第一节点的通信距离最短的目标MEC节点;并且根据该第一节点存储的交易数据的区块高度和该第一节点存储的交易数据的时间戳确定该第一节点存储的交易数据与第一区块链对应的交易数据是否相同,该第一区块链为该目标MEC节点对应的区块链。The determining module 502 is used to determine the target MEC node with the shortest communication distance with the first node according to the location information of the first node; and according to the block height of the transaction data stored by the first node and the data stored by the first node The timestamp of the transaction data determines whether the transaction data stored by the first node is the same as the transaction data corresponding to the first block chain, and the first block chain is the block chain corresponding to the target MEC node.
发送模块503,用于在该第一节点存储的交易数据与该第一区块链对应的交易数据不相同的情况下,向该第一节点发送第一数据同步指示消息,该第一数据同步指示消息用于指示该第一节点从该目标MEC节点获取该第一区块链对应的交易数据。The sending module 503 is configured to send a first data synchronization instruction message to the first node when the transaction data stored by the first node is different from the transaction data corresponding to the first blockchain, and the first data synchronization The instruction message is used to instruct the first node to obtain transaction data corresponding to the first blockchain from the target MEC node.
可选地,确定模块502,还用于根据该第二节点的账户地址确定第二区块链的标识信息,该第二区块链为该第二节点对应的区块链;并且确定该第二区块链的标识信息与该第一区块链的标识信息是否相同。Optionally, the determining module 502 is further configured to determine the identification information of the second blockchain according to the account address of the second node, where the second blockchain is the blockchain corresponding to the second node; and determine the first blockchain Whether the identification information of the second blockchain is the same as the identification information of the first blockchain.
可选地,发送模块503,还用于在该第二区块链的标识信息与该第一区块链的标识信息相同的情况下,向该第一节点发送第一交易验证指示消息,该第一交易验证指示消息用于指示该第一节点将该目标交易对应的交易数据发送至该第一区块链中的多个节点。Optionally, the sending module 503 is further configured to send a first transaction verification instruction message to the first node when the identification information of the second blockchain is the same as the identification information of the first blockchain, the The first transaction verification instruction message is used to instruct the first node to send transaction data corresponding to the target transaction to multiple nodes in the first blockchain.
可选地,发送模块503,还用于在该第二区块链的标识信息与该第一区块链的标识信息不相同的情况下,向该第一节点发送第二数据同步指示消息,该第二数据同步指示消息用于指示该第一节点从目标节点获取该第二区块链对应的交易数据,该目标节点为该第二区块链中的一个节点。Optionally, the sending module 503 is further configured to send a second data synchronization instruction message to the first node when the identification information of the second blockchain is different from the identification information of the first blockchain, The second data synchronization instruction message is used to instruct the first node to obtain transaction data corresponding to the second blockchain from a target node, where the target node is a node in the second blockchain.
可选地,发送模块503,还用于在该第二区块链的标识信息与该第一区块链的标识信息不相同的情况下,向该第一节点发送重叠数据获取指示消息,该重叠数据指示消息用于指示该第一节点从重叠节点获取该第二区块链对应的交易数据,该重叠节点用于存储该第一区块链对应的交易数据和该第二区块链对应的交易数据。Optionally, the sending module 503 is further configured to send an overlapping data acquisition instruction message to the first node when the identification information of the second blockchain is different from the identification information of the first blockchain, the The overlapping data indication message is used to instruct the first node to obtain the transaction data corresponding to the second blockchain from the overlapping node, and the overlapping node is used to store the transaction data corresponding to the first blockchain and the second blockchain. transaction data.
在采用集成的单元的情况下,图8示出了上述实施例中所涉及的网络控制设备60的一种可能的结构示意图。如图8所示,网络控制设备60可以包括:处理模块601和通信模块602。处理模块601可以用于对网络控制设备60的动作进行控制管理,例如,处理模块601可以用于支持网络控制设备60执行上述方法实施例中的S103、S104、S111以及S112等。通信模块602可以用于支持网络控制设备60与其他实体的通信,例如,通信模块602可以用于支持网络控制设备60执行上述方法实施例中的S102、S105以及S113等。可选地,如图8所示,该网络控制设备60还可以包括存储模块603,用于存储网络控制设备60的程序代码和数据。In the case of using an integrated unit, FIG. 8 shows a possible schematic structural diagram of the network control device 60 involved in the above embodiment. As shown in FIG. 8 , the network control device 60 may include: a processing module 601 and a communication module 602 . The processing module 601 may be used to control and manage the actions of the network control device 60. For example, the processing module 601 may be used to support the network control device 60 to perform S103, S104, S111, and S112 in the above method embodiments. The communication module 602 may be used to support the communication between the network control device 60 and other entities. For example, the communication module 602 may be used to support the network control device 60 to perform S102, S105, and S113 in the foregoing method embodiments. Optionally, as shown in FIG. 8 , the network control device 60 may further include a storage module 603 for storing program codes and data of the network control device 60 .
其中,处理模块601可以是处理器或控制器(例如可以是上述如图2所示的处理器201)。通信模块602可以是收发器、收发电路或通信接口等(例如可以是上述如图2所示的网络接口203)。存储模块603可以是存储器(例如可以是上述如图2所示的存储器202)。Wherein, the processing module 601 may be a processor or a controller (for example, it may be the above-mentioned
其中,当处理模块601为处理器,通信模块602为收发器,存储模块603为存储器时,处理器、收发器和存储器可以通过总线连接。总线可以是PCI总线或EISA总线等。总线可以分为地址总线、数据总线、控制总线等。Wherein, when the processing module 601 is a processor, the communication module 602 is a transceiver, and the storage module 603 is a memory, the processor, the transceiver and the memory can be connected through a bus. The bus can be a PCI bus or an EISA bus or the like. The bus can be divided into address bus, data bus, control bus and so on.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the embodiments of the present invention. implementation constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户终端线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is performed by wire (eg, coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or data storage devices including one or more servers, data centers, etc. that can be integrated with the medium. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010796486.XA CN112019603B (en) | 2020-08-10 | 2020-08-10 | A method and device for processing transaction data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010796486.XA CN112019603B (en) | 2020-08-10 | 2020-08-10 | A method and device for processing transaction data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112019603A CN112019603A (en) | 2020-12-01 |
CN112019603B true CN112019603B (en) | 2022-04-08 |
Family
ID=73499357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010796486.XA Active CN112019603B (en) | 2020-08-10 | 2020-08-10 | A method and device for processing transaction data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112019603B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112667647B (en) * | 2020-12-11 | 2025-07-25 | 深圳前海微众银行股份有限公司 | Transaction data transmission method and device for blockchain |
CN114048270B (en) * | 2022-01-14 | 2022-05-13 | 北京大学深圳研究生院 | Method and computer-readable storage medium for blockchain data synchronization |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899680B (en) * | 2017-03-09 | 2019-07-30 | 深圳壹账通智能科技有限公司 | The fragment treating method and apparatus of multi-tiling chain |
US10708716B2 (en) * | 2018-10-16 | 2020-07-07 | Cisco Technology, Inc. | Methods and apparatus for selecting network resources for UE sessions based on locations of multi-access edge computing (MEC) resources and applications |
US11232446B2 (en) * | 2018-10-26 | 2022-01-25 | Hewlett Packard Enterprise Development Lp | Carrier grade telecom blockchain |
CN109361688B (en) * | 2018-11-16 | 2021-01-22 | 大唐高鸿信息通信(义乌)有限公司 | Evidence storing method and system based on 5G architecture and block chain |
CN111429134A (en) * | 2018-12-21 | 2020-07-17 | 北京京东尚科信息技术有限公司 | Blockchain-based data transaction method and device |
CN110232569B (en) * | 2019-05-07 | 2021-04-16 | 北京奇艺世纪科技有限公司 | Method and device for reading transaction record and storage medium |
CN110727712B (en) * | 2019-10-15 | 2021-06-04 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain network, electronic equipment and storage medium |
CN111382164B (en) * | 2020-03-06 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Service processing method based on block chain network |
-
2020
- 2020-08-10 CN CN202010796486.XA patent/CN112019603B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112019603A (en) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021249490A1 (en) | Communication method and service data transmission method in blockchain network | |
JP5741150B2 (en) | Relay device, relay program, and relay method | |
CN111460458B (en) | Data processing method, related device and computer storage medium | |
CN109547349B (en) | Traffic management method, device, terminal and storage medium based on virtual routing | |
WO2020134827A1 (en) | Path creation method and apparatus for network-on-chip and electronic device | |
CN114024876B (en) | Network dial testing method, device, equipment and storage medium | |
TWI718714B (en) | Request processing method, system, device and equipment in alliance chain | |
CN112188548B (en) | A business processing method and device | |
CN112019603B (en) | A method and device for processing transaction data | |
CN111064786B (en) | Account identifier management method and device | |
CN111741512B (en) | A kind of private network access method and device | |
CN108964961A (en) | A kind of method, apparatus and system of management transmission network slice | |
KR20210044281A (en) | Method and apparatus for ensuring continuous device operation stability in cloud degraded mode | |
WO2021197253A1 (en) | Service message transmission method and related device | |
CN107800738B (en) | Data updating method and device | |
WO2018050055A1 (en) | Data request processing method and system, access device, and storage device therefor | |
CN114297083B (en) | Proxy testing method, device, electronic device and readable medium | |
CN114125812B (en) | A data synchronization method, device, server and storage medium | |
CN107667513A (en) | System and method for remote topology discovery | |
WO2021087865A1 (en) | Addressing method, addressing system and addressing apparatus | |
CN118075278A (en) | Data transmission method, device, equipment and medium | |
CN106462421B (en) | Telecommunication device and method for updating software in a telecommunication device | |
CN113452732A (en) | Power Internet of things network management system and method | |
CN112988738A (en) | Data slicing method and device for block chain | |
CN114338669B (en) | Block chain-based data transmission method, device, equipment and storage medium |
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 |