Nothing Special   »   [go: up one dir, main page]

CN112087497B - Data synchronization method and device, electronic equipment and readable storage medium - Google Patents

Data synchronization method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112087497B
CN112087497B CN202010827493.1A CN202010827493A CN112087497B CN 112087497 B CN112087497 B CN 112087497B CN 202010827493 A CN202010827493 A CN 202010827493A CN 112087497 B CN112087497 B CN 112087497B
Authority
CN
China
Prior art keywords
blockchain network
transaction
node
new block
target transaction
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
Application number
CN202010827493.1A
Other languages
Chinese (zh)
Other versions
CN112087497A (en
Inventor
雷罡
李成才
高勇
邓柯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Quality Starker Technology Co Ltd
Original Assignee
Chengdu Quality Starker Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Quality Starker Technology Co Ltd filed Critical Chengdu Quality Starker Technology Co Ltd
Priority to CN202010827493.1A priority Critical patent/CN112087497B/en
Publication of CN112087497A publication Critical patent/CN112087497A/en
Application granted granted Critical
Publication of CN112087497B publication Critical patent/CN112087497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a data synchronization method, a data synchronization device, electronic equipment and a readable storage medium, and aims to realize data synchronization among different block chain networks. The data synchronization method is applied to a node of a first block chain network, and comprises the following steps: obtaining a new block generated by a second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block; obtaining a target transaction from a plurality of transactions recorded by the new block; and executing the target transaction to obtain a target transaction execution result, and recording the target transaction execution result into a block of the first block chain network. By executing the data synchronization method provided by the invention, the data synchronization between different block chain networks can be reliably realized.

Description

Data synchronization method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data synchronization method and apparatus, an electronic device, and a readable storage medium.
Background
The block chain technology is built on a transmission network (also called a block chain network), distributed nodes in the transmission network adopt a preset consensus strategy to generate and update data, and a chain data structure is used for verifying and storing the data, so that a data tamper-proof mechanism is realized.
The block chain technology can be applied to various service scenes, such as the financial field, the electronic commerce field, the commodity or raw material tracing field, the electronic evidence storage field and the like.
In the related art, with the evolution of data sharing requirements, data synchronization between nodes in the same blockchain network can be realized at present. But for data synchronization between different blockchain networks, there is currently no reliable solution. Therefore, it is a technical problem to be solved urgently to realize data synchronization between different blockchain networks.
Disclosure of Invention
Embodiments of the present invention provide a data synchronization method, an apparatus, an electronic device, and a readable storage medium, which aim to implement data synchronization between different blockchain networks. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present invention, a data synchronization method is provided, where the method is applied to a node of a first blockchain network, and the method includes:
obtaining a new block generated by a second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block;
obtaining a target transaction from a plurality of transactions recorded by the new block;
and executing the target transaction to obtain a target transaction execution result, and recording the target transaction execution result into a block of the first block chain network.
In a second aspect of the embodiments of the present invention, there is provided another data synchronization method, where the method is applied to a gateway, where the gateway is used to connect a first blockchain network and a second blockchain network, and the method includes:
obtaining a new block generated by the second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block;
and sending the new block to each node of the first blockchain network, so that each node obtains and executes the target transaction from the new block, and recording the target transaction execution result into the block of the first blockchain network.
In a third aspect of the embodiments of the present invention, there is provided a data synchronization apparatus, which is applied to a node of a first blockchain network, and includes:
a block obtaining module, configured to obtain a new block generated by a second blockchain network, where the new block records multiple transactions executed by the second blockchain network;
the target transaction obtaining module is used for obtaining a target transaction from a plurality of transactions recorded in the new block;
and the target transaction execution module is used for executing the target transaction to obtain a target transaction execution result and recording the target transaction execution result into the block of the first block chain network.
In a fourth aspect of the embodiments of the present invention, there is provided another data synchronization apparatus, where the apparatus is applied to a gateway, and the gateway is configured to connect a first blockchain network and a second blockchain network, and the apparatus includes:
a new block obtaining module, configured to obtain a new block generated by the second blockchain network, where the new block records multiple transactions executed by the second blockchain network;
and the new block sending module is used for sending the new block to each node of the first block chain network so that each node obtains and executes the target transaction from the new block and records the target transaction execution result into the block of the first block chain network.
In a fifth aspect of the embodiments of the present invention, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is used for realizing the data synchronization method provided by any embodiment of the invention when executing the program stored in the memory.
In a sixth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the data synchronization method provided by any of the embodiments of the present invention.
In the invention, the node of the first blockchain network obtains the new block generated by the second blockchain network, and because the new block of the second blockchain network records a plurality of transactions executed by the second blockchain network, the node of the first blockchain network obtains a plurality of transactions executed by the second blockchain network. Then, the node of the first blockchain network acquires target transactions from the transactions, and acquires target transaction execution results by executing the target transactions.
On the one hand, since the second blockchain network has already executed the target transactions recorded in the new block, and the corresponding target transaction execution results are obtained. Therefore, the node of the first blockchain network obtains the corresponding target transaction execution result by executing the target transactions, which is equivalent to synchronizing the target transaction execution result in the second blockchain network to the first blockchain network.
On the other hand, compared with directly synchronizing the transaction execution result of the second blockchain network, the transaction execution result is further stored in an uplink manner through complicated logic (such as mathematical computation, data reorganization, and computation of a data summary). The invention realizes the data synchronization of the first block chain network to the second block chain network in a mode of executing the transaction of the second block chain network and chaining and storing the transaction execution result, and the synchronization process is more concise and reliable.
On the other hand, in the present invention, since the second blockchain network is in a short time, a large number of transactions may be performed. If these transactions are synchronized one-by-one to the nodes of the first blockchain network, network communication pressure is significantly increased. Therefore, in the invention, the new block generated by the first blockchain network through synchronizing the second blockchain network comprises a plurality of transactions, so that the method is equivalent to the batch synchronous transaction of the first blockchain network from the second blockchain network, is favorable for obviously reducing the communication interaction times of the nodes, and further effectively avoids the increase of the network communication pressure.
In another aspect of the present invention, the first blockchain network obtains a target transaction from a plurality of transactions of a new block of the second blockchain network and performs the target transaction, instead of performing all transactions in the new block in full. The selected data synchronization of the first block chain network to the second block chain network is embodied, in other words, the first block chain network is equivalent to only synchronizing the required data, which is beneficial to reducing the data redundancy.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a block chain network system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data synchronization method according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a cross-chain transaction proposed by an embodiment of the present invention;
FIG. 4 is a flow chart of a data synchronization method according to another embodiment of the present invention;
FIG. 5 is a diagram of a data synchronization apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram of a data synchronization apparatus according to another embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The block chain technology is built on a transmission network (also called a block chain network), distributed nodes in the transmission network adopt a preset consensus strategy to generate and update data, and a chain data structure is used for verifying and storing the data, so that a data tamper-proof mechanism is realized. In the related art, with the evolution of data sharing requirements, data synchronization between nodes in the same blockchain network can be realized at present. But for data synchronization between different blockchain networks, there is currently no reliable solution. Therefore, it is a technical problem to be solved urgently to realize data synchronization between different blockchain networks.
To this end, the present invention provides a data synchronization method, an apparatus, an electronic device, and a readable storage medium through the following embodiments, which aim to implement data synchronization between different blockchain networks.
As shown in fig. 1, fig. 1 is a schematic diagram of a blockchain network system according to an embodiment of the present invention. As shown in fig. 1, the blockchain network system includes a first blockchain network and a second blockchain network, a gateway is disposed at a side of the first blockchain network, and the first blockchain network communicates with the second blockchain network through the gateway. As shown in fig. 1, the first blockchain network includes a plurality of distributed node devices (hereinafter, referred to as nodes), and the gateway communicates with the first blockchain network by communicating with any one of the nodes or designated nodes of the first blockchain network. Similarly, the second blockchain network also includes a plurality of distributed node devices (hereinafter referred to as nodes), and the gateway communicates with the second blockchain network by communicating with any one node or a designated node of the second blockchain network.
In some embodiments of the invention, the gateway may be configured to restrict the egress of data from the first blockchain network (i.e., to the second blockchain network). In particular, it may be used to restrict the outflow of sensitive class data of the first blockchain network. Therefore, the first blockchain network can be in a private state, and private transactions can be conducted in the first blockchain network.
In some embodiments of the invention, each node in the first blockchain network is configured to: receiving and processing the transaction to obtain a transaction processing result; storing the transaction processing result into a block; after the blocks are identified based on the predetermined identification policy, the blocks are accessed to the block chain of the first block chain network (i.e. block uplink). As shown in fig. 1, the first blockchain network may further include a master node, where the master node is one selected from a plurality of nodes of the first blockchain network. The master node, in addition to serving the functions of the other nodes (i.e., the above-described functions of this paragraph), is also configured to: receiving the transaction, sequencing the multiple transactions received in sequence, and sending the sequenced transactions to each node for execution so as to ensure that each node executes each transaction according to the same sequence.
In order to synchronize data of the second blockchain network with the first blockchain network, as shown in fig. 1, after the second blockchain network generates a new block, any node or designated node of the second blockchain network may send the new block to the gateway. The new block comprises a block head and a block body, and a plurality of transactions which are executed by the second blockchain network can be recorded in the block body. It should be noted that the new block referred to herein refers to a block of the latest uplink in the second blockchain network.
As shown in fig. 1, the gateway sends a synchronization prompt transaction to the master node in the first blockchain network in response to the acquisition of the new tile. And after receiving the synchronous prompt transaction, the main node sequences the synchronous prompt transaction and other transactions received in the current time period. And the master node sequentially sends the sequenced transactions to the nodes of the first block chain network for execution, and each node sequentially receives the transactions (including synchronous prompt transactions). It should be noted that in the present invention, the transactions are sequenced and distributed by the master node, so as to ensure that each node executes each transaction in turn according to the same transaction sequence, and the sequence of the transaction execution results obtained by each node is also consistent. Therefore, the sequence of the transaction execution results in the blocks of each node is consistent, so that the consensus passing rate of the blocks is improved, the block output efficiency of the whole first block chain network is improved, and the operation efficiency of the whole first block chain network is improved.
As shown in fig. 1, when a node receives a synchronization hint transaction, the node sends a synchronization request to the gateway in response to the synchronization hint transaction. And the gateway receives the synchronization request of each node successively, and returns the new block generated by the second block chain network to the node aiming at the synchronization request sent by each node in order to respond to the synchronization request.
In some embodiments of the present invention, in order to send the new block to each node of the first blockchain network, the gateway specifically: and after receiving the new block generated by the second block chain network, the gateway generates a synchronous prompt transaction, wherein the synchronous prompt transaction carries the block height information of the new block. And the gateway sends the synchronous prompt transaction carrying the block height information to the main node of the first block chain network. The master node distributes the synchronization hint transaction to each node of the first blockchain network. After each node in the first block network receives the synchronous prompt transaction distributed by the main node, extracting block height information carried in the synchronous prompt transaction, and generating a synchronous request according to the block height information, wherein the synchronous request carries the block height information. And the gateway responds to the synchronization request sent by the node, extracts the block height information carried in the synchronization request, and returns the corresponding height block of the second block chain network to the node. In this way, the node obtains a new block generated by the second blockchain network.
In other embodiments of the present invention, in order to send the new block to each node of the first blockchain network, the gateway specifically: when the gateway receives new blocks generated by the second block chain network successively, the gateway may store each new block in the first-in first-out queue according to the time when each new block reaches the gateway. The gateway may periodically send a synchronization hint transaction (which may not carry tile height information) to the master node of the first blockchain network, or the gateway may send a synchronization hint transaction (which may not carry tile height information) to the master node of the first blockchain network once it receives a new tile of the second blockchain network. The master node distributes the synchronization hint transaction to each node of the first blockchain network. Each node sends a synchronization request (which may not carry tile height information) to the gateway in response to a synchronization prompt transaction distributed by the master node. The gateway returns the new block that is the first-in the first-in first-out queue to the node in response to the synchronization request sent by the node. When the gateway determines that it has returned the new block to all nodes of the first blockchain network, the new block is released from the first-out queue.
As shown in fig. 1, after the node obtains a new tile generated by the second blockchain network, the node obtains a target transaction from a plurality of transactions recorded in the new tile. In some embodiments of the invention, the target transaction may include: the method comprises the steps of asset issuing intelligent contract deployment transaction, intelligent contract state change transaction, third block chain network freezing transaction, third block chain network unfreezing transaction and the like. The intelligent contract embodies the business rules, so that the transaction aiming at the intelligent contract in the second blockchain network is equivalent to the transaction aiming at the business rules. First blockchain network for understanding: deployment of business rules in the second blockchain network (particularly business rules of the asset issuance class), changes in the state of the intelligent contracts (e.g., whether the intelligent contracts are frozen), whether the third blockchain network is frozen, etc., in preparation for subsequent cross-chain transactions. Therefore, the first blockchain network can take the deployment transaction of the asset issuing-type intelligent contract, the change transaction of the intelligent contract state, the freezing transaction of the third blockchain network, the unfreezing transaction of the third blockchain network and the like as target transactions. Wherein, the third block chain network means: another blockchain network connected to the second blockchain network. The first blockchain network needs to know whether the third blockchain network is frozen or not in order to implement cross-chain transaction with the third blockchain network.
And after obtaining the target transaction from the new block, the node executes the target transaction to obtain a target transaction execution result, and records the target transaction execution result into a block of the first block chain network. In addition, after the block passes the consensus of the preset consensus strategy, the block is accessed to the block chain of the first block chain network.
It should be noted that, since the second blockchain network has already executed the target transactions recorded in the new block, and the corresponding target transaction execution result is obtained. Therefore, the node of the first blockchain network obtains the corresponding target transaction execution result by executing the target transactions, which is equivalent to synchronizing the target transaction execution result in the second blockchain network to the first blockchain network.
It should be further noted that, in the foregoing embodiment of the present invention, the gateway sends the synchronization hint transaction to the master node in the first blockchain network, and the master node distributes the synchronization hint transaction to each node in the first blockchain network. Each node sends a synchronization request to the gateway in response to the synchronization hint transaction, thereby obtaining a new tile of the second blockchain network. It can be seen that, in the above embodiment, each node of the first blockchain network directly obtains a new block of the second blockchain network from the gateway, instead of sending the new block to the master node by the gateway, and distributing the new block to each node by the master node. The beneficial effects of the above embodiment are as follows: the method can avoid the malicious behavior of the master node, and the transactions in the new block are tampered, so that each node receives the tampered new block. Thus, the above embodiment has higher security.
It should be understood that the present invention is not limited to the above embodiments, for example, in other embodiments, the gateway may send the new block to the master node, and the master node distributes the new block to each node. After each node obtains the new block distributed by the master node and extracts the target transaction, each node can communicate with the gateway to verify the correctness of the extracted target transaction and verify whether the quantity of the extracted target transaction is enough. These target transactions are only executed if they are validated.
Furthermore, in some embodiments of the present invention, after the node obtains the target transaction from the new block, if the number of the target transactions is multiple, the node may sequentially execute the multiple target transactions according to the order of the multiple target transactions in the new block. Because the new synchronous blocks of the nodes are the same, the nodes sort the target transactions in the same order, thereby ensuring that the nodes execute the target transactions in sequence according to the same transaction sequence and the sequence of the target transaction execution results obtained by the nodes is also consistent. Therefore, the consensus passing rate of the blocks is further improved, and the block output efficiency of the whole first block chain network is improved. Thus, the operation efficiency of the whole first block chain network is improved.
Furthermore, in some embodiments of the invention, it is contemplated that the target transaction is actually a transaction of the second blockchain network, while the first blockchain network also has many transactions of its own. In order to facilitate the first blockchain network to quickly distinguish the execution result of the self transaction and the target transaction execution result during the subsequent operation. After obtaining the target transaction execution result, the node of the first blockchain network may mark the target transaction execution result. Illustratively, the target transaction execution result may be stored in the database through a data structure of a key and a value. The target transaction execution result is used as a value, and the key of the target transaction execution result may include the network identifier of the second blockchain network.
In addition, there may be a need for cross-chain transactions between the first blockchain network and the second blockchain network. Whether a cross-chain transaction can be successfully executed depends on whether the first blockchain network and the second blockchain network can both execute the cross-chain transaction. If one blockchain network cannot execute the cross-chain transaction, or both blockchain networks cannot execute the cross-chain transaction, the cross-chain transaction cannot be executed successfully. In the related art, when performing a cross-link transaction between two blockchain networks, the following situation often occurs:
blockchain network a receives a cross-chain transaction, which is a cross-chain transaction for blockchain network a and blockchain network B. And the blockchain network A executes the cross-chain transaction and sends the cross-chain transaction to the blockchain network B for execution. But since blockchain network B does not support the execution of the cross-chain transaction, for example, the intelligent contract of blockchain network B does not support the cross-chain transaction. This results in a failure of the cross-chain transaction to execute in blockchain network B. At this time, the overall execution of the whole cross-chain transaction fails, and if the blockchain network a has successfully executed the cross-chain transaction, the cross-chain transaction needs to be rolled back. It can be seen that in the above situation, the cross-chain transaction is not successfully executed, and the blockchain network a and the blockchain network B (especially the blockchain network a) unnecessarily increase the data processing amount and the data interaction amount between the blockchain network a and the blockchain network B.
In order to avoid the above situation as much as possible, in some embodiments of the present invention, when the first blockchain network obtains the cross-chain transaction, and the cross-chain transaction is a cross-chain transaction for the first blockchain network and the second blockchain network, the first blockchain network may verify the feasibility of the second blockchain network for executing the cross-chain transaction according to the recorded target transaction execution result. In the event that it is determined that feasibility of the second blockchain network to perform the cross-chain transaction is not feasible, the first blockchain network denies performance of the cross-chain transaction.
For example, when the feasibility of performing the cross-chain transaction by the second blockchain network is verified, specifically, whether the intelligent contract of the second blockchain network supports the cross-chain transaction may be determined according to a target transaction execution result related to the intelligent contract of the second blockchain network in the target transaction execution result. And under the condition that the intelligent contract of the second blockchain network supports the cross-chain transaction, determining that the feasibility of the second blockchain network for executing the cross-chain transaction is feasible, otherwise, determining that the feasibility of the second blockchain network for executing the cross-chain transaction is not feasible.
In the invention, before the first block chain network executes the cross-chain transaction, the execution feasibility of the cross-chain transaction in the second block chain network is verified in advance according to the target transaction execution result, and the cross-chain transaction is refused to be executed under the condition that the feasibility is not feasible. Thus, the following situations can be effectively avoided: the first blockchain network successfully executes the cross-chain transaction, the second blockchain network fails to execute the cross-chain transaction, and the whole cross-chain transaction fails to be executed totally, so that the first blockchain network must roll back the cross-chain transaction. Therefore, the invention can effectively reduce invalid data processing amount and invalid data interaction amount.
The present invention provides a blockchain network system and a data synchronization method according to the preferred embodiments. In the following, the present invention provides other data synchronization methods according to other embodiments. These data synchronization methods may include some of the method steps in the preferred embodiments described above, or may include method steps not involved in the preferred embodiments described above. For a detailed introduction, please continue with the following.
Referring to fig. 2, fig. 2 is a flowchart of a data synchronization method according to an embodiment of the present invention, where the data synchronization method is applied to a node of a first blockchain network. As shown in fig. 2, the data synchronization method includes the steps of:
step S21: and obtaining a new block generated by a second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block.
In some embodiments of the invention, the first blockchain network is communicatively coupled to the second blockchain network through a gateway that is at least used to synchronize new blocks generated by the second blockchain network from the second blockchain network, as previously described. For example, the gateway may periodically send a synchronization transaction to a designated node in the second blockchain network, and the designated node sends a new block generated in the period to the gateway in response to the synchronization transaction. Or, for example, when the second blockchain network generates a new block, a designated node in the second blockchain network may also actively send the new block to the gateway. It should be noted that the present invention does not limit how the gateway synchronizes the new block of the second blockchain network.
In the embodiments described above, in order to obtain a new block generated by the second blockchain network, a node of the first blockchain network may obtain the new block generated by the second blockchain network from the gateway. As described above, each node of the first blockchain network directly obtains a new block from the gateway, instead of obtaining the new block in a manner distributed by the master node, which can prevent the master node from doing malicious activities and prevent the master node from tampering with transactions in the new block. Therefore, the data synchronization method is beneficial to improving the data synchronization safety.
Further, as mentioned above, in the foregoing embodiments, the first blockchain network may further include a master node, where the master node is configured to: and receiving the transactions, sequencing the received transactions, and sending the sequenced transactions to each node in the first blockchain network. Each node may specifically include the following sub-steps in order to obtain a new block generated by the second blockchain from the gateway:
substep S21-1: receiving a synchronous prompt transaction sent by the main node, wherein the synchronous prompt transaction is a transaction sent to the main node by the gateway after the gateway synchronizes to a new block generated by the second blockchain network;
substep S21-2: sending a synchronization request to the gateway in response to the synchronization hint transaction;
substep S21-3: receiving a new chunk generated by the gateway for the second blockchain network sent in response to the synchronization request.
For the specific explanation of the above substep S21-1 to substep S21-3, reference may be made to the above preferred embodiment, and the detailed description of the present invention is omitted here to avoid redundancy.
As mentioned above, in the present invention, the transactions are sequenced and distributed by the master node, so as to ensure that each node executes each transaction in turn according to the same transaction sequence, and the sequence of the transaction execution results obtained by each node is also consistent. Therefore, the sequence of the transaction execution results in the blocks of each node is consistent, so that the consensus passing rate of the blocks is improved, the block output efficiency of the whole first block chain network is improved, and the operation efficiency of the whole first block chain network is improved.
In addition, in other embodiments, each node of the first blockchain network may also adopt other manners in order to obtain a new block generated by the second blockchain network. For example, a master node in a first blockchain network first obtains a new block generated by a second blockchain network, and then the master node distributes the new block to nodes of the first blockchain network. In this way, a node of the first blockchain network obtains a new block generated by the second blockchain network. The master node may obtain a new tile generated by the second blockchain network from a gateway connecting the first blockchain network and the second blockchain network. Or a gateway may not be arranged between the first blockchain network and the second blockchain network, and the master node directly obtains a new block generated by the second blockchain network from a designated node in the second blockchain network.
It can be seen that, in the step S21, there are many options for the node to obtain the new tile generated by the second network of tile chains.
Step S22: and acquiring a target transaction from a plurality of transactions recorded by the new block.
In some embodiments of the invention, the target transaction may be, for example: transactions in the second blockchain network related to the smart contract, and transactions related to a third blockchain network state change. As mentioned above, the third blockchain network refers to: another blockchain network connected to the second blockchain network, that is, a blockchain network connected to the second blockchain network and different from the first blockchain network. The state of the third blockchain network includes: enabled or frozen.
Each node of the first block chain network stores a target transaction list, and the transaction type of each target transaction is recorded in the list. In the new block generated by the second blockchain network, a plurality of transactions and the transaction type of each transaction are recorded. After the node of the first blockchain network obtains the new block generated by the second blockchain network, it may determine, for each transaction recorded in the new block, whether the transaction type of the transaction is recorded in the target transaction list, if so, the transaction is regarded as the target transaction and acquired, and if not, the transaction is not acquired.
It should be noted that the type of target transaction may be, in addition to: transactions in the second blockchain network relating to smart contracts, and transactions relating to changes in the state of the third blockchain network may also be other types of transactions.
It should be further noted that, in the above embodiment, a manner for the node to obtain the target transaction is given. It should be understood that the specific manner in which the node acquires the target transaction in the present invention is not limited to the above specific embodiments.
Step S23: and executing the target transaction to obtain a target transaction execution result, and recording the target transaction execution result into a block of the first block chain network.
In some embodiments of the present invention, each node of the first blockchain network may perform consensus on the blocks based on a predetermined consensus policy, and after the blocks pass the consensus of the predetermined consensus policy, the blocks are accessed to the blockchain of the first blockchain network.
In some embodiments of the present invention, as described above, after the node obtains the target transactions from the new block, if the number of the target transactions is multiple, the node may sequentially execute the multiple target transactions according to the sequence of the multiple target transactions in the new block. Because the new synchronous blocks of the nodes are the same, the nodes sort the target transactions in the same order, thereby ensuring that the nodes execute the target transactions in sequence according to the same transaction sequence and the sequence of the target transaction execution results obtained by the nodes is also consistent. Therefore, the consensus passing rate of the blocks is further improved, and the block output efficiency of the whole first block chain network is improved. Thus, the operation efficiency of the whole first block chain network is improved.
By performing the above steps S21 to S23, on one hand, the target transactions recorded in the new tile have already been executed due to the second blockchain network, and the corresponding target transaction execution results are obtained. Therefore, the node of the first blockchain network obtains the corresponding target transaction execution result by executing the target transactions, which is equivalent to synchronizing the target transaction execution result in the second blockchain network to the first blockchain network.
On the other hand, compared with directly synchronizing the transaction execution result of the second blockchain network, the transaction execution result is stored in an uplink mode through a very complicated logic. The invention realizes the data synchronization of the first block chain network to the second block chain network in a mode of executing the transaction of the second block chain network and chaining and storing the transaction execution result, and the synchronization process is more concise and reliable.
On the other hand, in the present invention, since the second blockchain network is in a short time, a large number of transactions may be performed. If these transactions are synchronized one-by-one to the nodes of the first blockchain network, network communication pressure is significantly increased. Therefore, the new block generated by the first blockchain network through synchronizing the second blockchain network in the invention is equivalent to the batch synchronous transaction of the first blockchain network from the second blockchain network because the new block comprises a plurality of transactions, thereby being beneficial to obviously reducing the communication interaction times of the nodes and further effectively avoiding the increase of the network communication pressure.
In another aspect of the present invention, the first blockchain network obtains a target transaction from a plurality of transactions of a new block of the second blockchain network and performs the target transaction, instead of performing all transactions in the new block in full. The selected data synchronization of the first block chain network to the second block chain network is embodied, in other words, the first block chain network is equivalent to only synchronizing the required data, which is beneficial to reducing the data redundancy.
Furthermore, in some embodiments of the invention, as previously described, it is contemplated that the target transaction is actually a transaction of the second blockchain network, while the first blockchain network also has many transactions of its own. In order to facilitate the first blockchain network to quickly distinguish the execution result of the self transaction and the target transaction execution result during the subsequent operation. After obtaining the target transaction execution result, the node of the first blockchain network may mark the target transaction execution result. Illustratively, the target transaction execution result may be stored in the database in the form of a key and a value. The target transaction execution result is used as a value, and the key may include a network identifier of the second blockchain network.
Furthermore, as previously described, there may be a need for cross-chain transactions between the first blockchain network and the second blockchain network. In some embodiments of the invention, the method further comprises the step of performing a cross-chain transaction. Referring to fig. 3, fig. 3 is a flowchart of a cross-chain transaction applied to a node in a first blockchain network according to an embodiment of the present invention. As shown in FIG. 3, the cross-chain transaction includes the following steps:
step S31: obtaining a cross-chain transaction, the cross-chain transaction being a cross-chain transaction for the first blockchain network and the second blockchain network.
Step S32: and verifying the feasibility of the second blockchain network for executing the cross-chain transaction according to the recorded target transaction execution result.
Step S33: denying execution of the cross-chain transaction if it is determined that feasibility of the second blockchain network to execute the cross-chain transaction is not feasible.
For the detailed explanation and beneficial effects of the cross-link transaction, reference may be made to the above preferred embodiment, and the detailed description of the present invention is omitted here for the sake of avoiding repetition.
In addition, in order to further improve the execution efficiency of the step S32, the efficiency of the cross-chain transaction is further improved. In some embodiments of the invention, as previously described, the nodes of the first blockchain network may mark the target transaction execution result after obtaining it. Thus, in step S32, the node can quickly distinguish the target transaction execution result from the execution result of the transaction of the first blockchain network itself directly according to whether the transaction execution result carries the corresponding flag. And then verifying the feasibility according to the distinguished target transaction execution result.
Referring to fig. 4, fig. 4 is a flowchart of a data synchronization method according to another embodiment of the present invention, the data synchronization method is applied to a gateway, and the gateway is used for connecting a first blockchain network and a second blockchain network. As shown in fig. 4, the data synchronization method includes the steps of:
step S41: and obtaining a new block generated by the second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block.
In some embodiments of the invention, the gateway may periodically send a synchronization transaction to a designated node in the second blockchain network, and the designated node sends a new block generated in the period to the gateway in response to the synchronization transaction. Or, after the second blockchain network generates a new block, the designated node in the second blockchain network may also actively send the new block to the gateway. It should be noted that, how the gateway obtains the new block of the second blockchain network is not limited in the present invention.
Step S42: and sending the new block to each node of the first blockchain network, so that each node obtains and executes the target transaction from the new block, and recording the target transaction execution result into the block of the first blockchain network.
In some embodiments, after obtaining the new block generated by the second blockchain network, the gateway may perform the following sub-steps in order to send the new block to each node of the first blockchain network:
substep S42-1: in response to the acquisition of the new tile, sending a synchronization prompt transaction to a master node in the first blockchain network;
substep S42-2: receiving a synchronization request sent by each node of the first block chain network, wherein the synchronization request is a request sent to the gateway by the node after receiving the synchronization prompt transaction sent by the master node;
substep S42-3: and responding to the synchronization request sent by each node, and sending the new block generated by the second block chain network to the node.
For the detailed explanation and beneficial effects of the substep S42-1 to the substep S42-3, reference may be made to the above preferred embodiment, and the present invention is not repeated herein in order to avoid repetition.
By synchronizing the data in the manner of step S41 and step S42, the beneficial effects of the data can be seen in the beneficial effects of step S21 to step S23, and the description of the invention is omitted here for avoiding repetition.
Based on the same inventive concept, the embodiment of the invention also provides a data synchronization device. Referring to fig. 5, fig. 5 is a schematic diagram of a data synchronization apparatus applied to a node of a first blockchain network according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes:
a block obtaining module 51, configured to obtain a new block generated by a second blockchain network, where a plurality of transactions executed by the second blockchain network are recorded in the new block;
a target transaction obtaining module 52, configured to obtain a target transaction from the plurality of transactions recorded in the new block;
and a target transaction executing module 53, configured to execute the target transaction to obtain a target transaction execution result, and record the target transaction execution result in a block of the first blockchain network.
Optionally, the first blockchain network is communicatively connected to the second blockchain network through a gateway, and the gateway is configured to synchronize new blocks generated by the second blockchain network from the second blockchain network;
the block obtaining module is configured to, when obtaining a new block generated by a second blockchain network, specifically, obtain the new block generated by the second blockchain from the gateway.
Optionally, the first blockchain network includes a master node, where the master node is configured to receive transactions, sequence the received transactions, and send the sequenced transactions to each node in the first blockchain network;
the block obtaining module is specifically configured to receive a synchronization prompt transaction sent by the host node when the block obtaining module is configured to obtain a new block generated by the second blockchain from the gateway, where the synchronization prompt transaction is a transaction sent to the host node by the gateway after the gateway synchronizes with the new block generated by the second blockchain network; sending a synchronization request to the gateway in response to the synchronization hint transaction; receiving a new chunk generated by the gateway for the second blockchain network sent in response to the synchronization request.
Optionally, the apparatus further comprises:
and the marking module is used for marking the target transaction result after the block obtaining module obtains the target transaction execution result so as to distinguish the target transaction execution result from the transaction execution result of the first blockchain network self transaction.
Optionally, the apparatus further comprises:
a cross-chain transaction obtaining module, configured to obtain a cross-chain transaction, where the cross-chain transaction is a cross-chain transaction for the first blockchain network and the second blockchain network;
the feasibility verification module is used for verifying the feasibility of the second blockchain network for executing the cross-chain transaction according to the recorded target transaction execution result;
a cross-chain transaction execution module to deny execution of the cross-chain transaction if the feasibility of executing the cross-chain transaction by the second blockchain network is determined to be infeasible.
Based on the same inventive concept, the embodiment of the invention also provides another data synchronization device. Referring to fig. 6, fig. 6 is a schematic diagram of a data synchronization apparatus according to another embodiment of the present invention, which is applied to a gateway for connecting a first blockchain network and a second blockchain network. As shown in fig. 6, the apparatus includes:
a new block obtaining module 61, configured to obtain a new block generated by the second blockchain network, where the new block records multiple transactions executed by the second blockchain network;
a new block sending module 62, configured to send the new block to each node of the first blockchain network, so that each node obtains and executes the target transaction from the new block, and records the target transaction execution result in the block of the first blockchain network.
Optionally, the new block sending module includes:
a synchronization prompt transaction sending unit, configured to send a synchronization prompt transaction to a master node in the first blockchain network in response to obtaining the new block;
a synchronization request receiving unit, configured to receive a synchronization request sent by each node of the first blockchain network, where the synchronization request is a request sent to the gateway by a node after receiving the synchronization prompt transaction sent by the master node;
and the new block sending unit is used for responding to the synchronization request sent by each node and sending the new block generated by the second blockchain network to the node.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702 and the memory 703 complete communication with each other through the communication bus 704.
The memory 703 is used for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:
obtaining a new block generated by a second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block;
obtaining a target transaction from a plurality of transactions recorded by the new block;
and executing the target transaction to obtain a target transaction execution result, and recording the target transaction execution result into a block of the first block chain network.
Alternatively, when the processor 701 executes the program stored in the memory 703, the following steps are implemented:
obtaining a new block generated by the second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block;
and sending the new block to each node of the first blockchain network, so that each node obtains and executes the target transaction from the new block, and recording the target transaction execution result into the block of the first blockchain network.
Alternatively, the processor 701 may implement the steps of the data synchronization method provided by the above other method embodiments of the present invention when executing the program stored in the memory 703.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the computer-readable storage medium runs on a computer, the computer is caused to execute the data synchronization method described in any of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the data synchronization method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. A method for data synchronization, the method being applied to a node of a first blockchain network, the method comprising:
obtaining a new block generated by a second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block;
obtaining a target transaction from a plurality of transactions recorded by the new block;
executing the target transaction to obtain a target transaction execution result, and recording the target transaction execution result into a block of the first blockchain network;
in the data synchronization method, the second blockchain network has previously executed the target transaction recorded in the new block, and obtains the target transaction execution result.
2. The method of claim 1, wherein the first blockchain network is communicatively coupled to the second blockchain network through a gateway for synchronizing new blocks generated by the second blockchain network from the second blockchain network;
the obtaining of the new block generated by the second blockchain network includes:
obtaining the new chunk generated by the second blockchain from the gateway.
3. The method of claim 2, wherein the first blockchain network includes a master node configured to receive and sequence the transactions received and send the sequenced transactions to each node in the first blockchain network;
the obtaining the new block generated by the second blockchain from the gateway includes:
receiving a synchronous prompt transaction sent by the main node, wherein the synchronous prompt transaction is a transaction sent to the main node by the gateway after the gateway synchronizes to a new block generated by the second blockchain network;
sending a synchronization request to the gateway in response to the synchronization hint transaction;
receiving a new chunk generated by the gateway for the second blockchain network sent in response to the synchronization request.
4. The method of any of claims 1 to 3, wherein after obtaining the target transaction execution result, the method further comprises:
and marking the target transaction result to distinguish the target transaction execution result from the transaction execution result of the self transaction of the first blockchain network.
5. The method of any of claims 1 to 3, further comprising:
obtaining a cross-chain transaction, the cross-chain transaction being a cross-chain transaction for the first blockchain network and the second blockchain network;
verifying the feasibility of the second blockchain network in executing the cross-chain transaction according to the recorded target transaction execution result;
denying execution of the cross-chain transaction if it is determined that feasibility of the second blockchain network to execute the cross-chain transaction is not feasible.
6. A data synchronization method applied to a gateway for connecting a first blockchain network and a second blockchain network, the method comprising:
obtaining a new block generated by the second blockchain network, wherein a plurality of transactions executed by the second blockchain network are recorded in the new block;
sending the new block to each node of a first block chain network, so that each node obtains and executes the target transaction from the new block, and recording the target transaction execution result into the block of the first block chain network;
in the data synchronization method, the second blockchain network has previously executed the target transaction recorded in the new block, and obtains the target transaction execution result.
7. The method of claim 6, wherein the sending the new block to each node of the first blockchain network comprises:
in response to the acquisition of the new tile, sending a synchronization prompt transaction to a master node in the first blockchain network;
receiving a synchronization request sent by each node of the first block chain network, wherein the synchronization request is a request sent to the gateway by the node after receiving the synchronization prompt transaction sent by the master node;
and responding to the synchronization request sent by each node, and sending the new block generated by the second block chain network to the node.
8. A data synchronization apparatus, the apparatus being applied to a node of a first blockchain network, the apparatus comprising:
a block obtaining module, configured to obtain a new block generated by a second blockchain network, where the new block records multiple transactions executed by the second blockchain network;
the target transaction obtaining module is used for obtaining a target transaction from a plurality of transactions recorded in the new block;
the target transaction execution module is used for executing the target transaction to obtain a target transaction execution result and recording the target transaction execution result into a block of the first block chain network;
wherein the second blockchain network has previously executed the target transaction recorded in the new block and obtained the target transaction execution result.
9. A data synchronization apparatus applied to a gateway for connecting a first blockchain network and a second blockchain network, the apparatus comprising:
a new block obtaining module, configured to obtain a new block generated by the second blockchain network, where the new block records multiple transactions executed by the second blockchain network;
a new block sending module, configured to send the new block to each node of a first blockchain network, so that each node obtains and executes a target transaction from the new block, and records a target transaction execution result in a block of the first blockchain network;
wherein the second blockchain network has previously executed the target transaction recorded in the new block and obtained the target transaction execution result.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored in the memory, is adapted to carry out the method steps of any of claims 1 to 5 or to carry out the method steps of any of claims 6 to 7.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 5 or carries out the method steps of any one of claims 6 to 7.
CN202010827493.1A 2020-08-17 2020-08-17 Data synchronization method and device, electronic equipment and readable storage medium Active CN112087497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010827493.1A CN112087497B (en) 2020-08-17 2020-08-17 Data synchronization method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010827493.1A CN112087497B (en) 2020-08-17 2020-08-17 Data synchronization method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112087497A CN112087497A (en) 2020-12-15
CN112087497B true CN112087497B (en) 2021-04-27

Family

ID=73729661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010827493.1A Active CN112087497B (en) 2020-08-17 2020-08-17 Data synchronization method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112087497B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671908B (en) * 2020-12-25 2023-03-21 成都质数斯达克科技有限公司 Network management method and device, electronic equipment and readable storage medium
CN113064768B (en) * 2021-04-19 2022-08-09 支付宝(杭州)信息技术有限公司 Method and device for switching fragment nodes in block chain system
CN114092252B (en) * 2021-11-26 2024-06-25 成都质数斯达克科技有限公司 Block chain transaction execution method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679857A (en) * 2017-10-10 2018-02-09 马晶瑶 Across the chain method of commerce and storage medium of block chain
CN109189853A (en) * 2018-08-08 2019-01-11 众安信息技术服务有限公司 Method of data synchronization and device between a kind of block chain
CN109934592A (en) * 2019-03-22 2019-06-25 深圳市网心科技有限公司 A kind of across the chain communication means of block chain, system, electronic equipment and storage medium
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN111046109A (en) * 2019-12-27 2020-04-21 深圳市网心科技有限公司 Cross-chain task processing method, device and equipment and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066893B (en) * 2017-02-28 2018-11-09 腾讯科技(深圳)有限公司 The treating method and apparatus of account information in block chain
US20190251555A1 (en) * 2018-02-12 2019-08-15 Bank Of America Corporation Distributed ledger system for standby guarantee resources
CN109784881A (en) * 2018-12-29 2019-05-21 广州蓝石信息技术有限公司 General across chain payment scheme based on decentralization gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679857A (en) * 2017-10-10 2018-02-09 马晶瑶 Across the chain method of commerce and storage medium of block chain
CN109189853A (en) * 2018-08-08 2019-01-11 众安信息技术服务有限公司 Method of data synchronization and device between a kind of block chain
CN109934592A (en) * 2019-03-22 2019-06-25 深圳市网心科技有限公司 A kind of across the chain communication means of block chain, system, electronic equipment and storage medium
CN110266655A (en) * 2019-05-30 2019-09-20 中国工商银行股份有限公司 A kind of across chain interconnected method, equipment and system based on block chain
CN111046109A (en) * 2019-12-27 2020-04-21 深圳市网心科技有限公司 Cross-chain task processing method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN112087497A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN112087497B (en) Data synchronization method and device, electronic equipment and readable storage medium
CN108848119B (en) Cross-block-chain interaction method, device, system and electronic equipment
CN107809484B (en) Block chain transaction information processing method and block chain link point
EP3812920A1 (en) Blockchain certificate storage method and apparatus, and computer device
CN111756601B (en) Microservice architecture monitoring method and device, computer equipment and readable storage medium
CN108734028B (en) Data management method based on block chain, block chain link point and storage medium
CN109543455A (en) A kind of data archiving method and device of block chain
CN111339141B (en) Data transmission method, block chain node equipment and medium
CN112184436B (en) Data synchronization method, electronic device and readable storage medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN109727132A (en) Acquisition methods, device, electronic equipment and the storage medium of block chain common recognition node
CN111177257A (en) Data storage and access method, device and equipment of block chain
CN112671908B (en) Network management method and device, electronic equipment and readable storage medium
CN110519287B (en) Information management method and related equipment
CN111010284A (en) Processing method of block to be identified, related device and block chain system
CN108833133A (en) Network configuration management method, apparatus and storage medium based on system for cloud computing
CN112436962B (en) Block chain consensus network dynamic expansion method, electronic device, system and medium
CN111190754B (en) Block chain event notification method and block chain system
CN110458541B (en) Object replacement method and device based on block chain
CN112202863B (en) Data synchronization method and device, electronic equipment and readable storage medium
CN113420050B (en) Data query management method, device, computer equipment and readable storage medium
CN113592645B (en) Data verification method and device
CN111666132B (en) Distributed transaction implementation method, device, computer system and readable storage medium
US20200358597A1 (en) Blockchain-based data processing
CN112258184A (en) Method and device for freezing area block chain network, electronic equipment and readable 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