CN112258184A - Method and device for freezing area block chain network, electronic equipment and readable storage medium - Google Patents

Method and device for freezing area block chain network, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112258184A
CN112258184A CN202011176384.4A CN202011176384A CN112258184A CN 112258184 A CN112258184 A CN 112258184A CN 202011176384 A CN202011176384 A CN 202011176384A CN 112258184 A CN112258184 A CN 112258184A
Authority
CN
China
Prior art keywords
transaction
target
blockchain network
node
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011176384.4A
Other languages
Chinese (zh)
Other versions
CN112258184B (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 CN202011176384.4A priority Critical patent/CN112258184B/en
Publication of CN112258184A publication Critical patent/CN112258184A/en
Application granted granted Critical
Publication of CN112258184B publication Critical patent/CN112258184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for freezing a block chain network, electronic equipment and a readable storage medium. Wherein the method of freezing a blockchain network is applied to any node in the blockchain network, and the method comprises the following steps: receiving a transaction packet sent by a sequencing node in the blockchain network; detecting whether the transaction packet carries a freezing identifier or not; continuously acquiring target data from a target system outside the block chain network under the condition that the transaction packet carries the freezing identification; after the target data is acquired, generating a block corresponding to the transaction packet; and after the block corresponding to the transaction packet is generated, starting to process the next transaction packet of the transaction packet.

Description

Method and device for freezing area block chain network, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for freezing a block chain network, an electronic device, and a readable storage medium.
Background
The block chain technology is built on a transmission network (also called as a block chain network), distributed node equipment (hereinafter referred to as nodes) in the transmission network realizes generation, verification and uplink storage of block data by operating a block chain program, finally realizes a data tamper-proof mechanism, and provides a safe and reliable technical new idea for business development.
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.
During the conduct of a business with a blockchain network, in some cases, frozen demands for accounts, assets, or intelligent contracts within the blockchain network may arise. In the related art, freezing of accounts, assets, intelligent contracts, etc. within a blockchain network has been enabled. In other cases, the need to freeze the entire blockchain network may arise. However, in the related art, it is also difficult to efficiently freeze the entire block chain network.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a method, an apparatus, an electronic device, and a readable storage medium for freezing a block chain network, and the specific technical solution is as follows:
in a first aspect of the embodiments of the present invention, a method for freezing a blockchain network is provided, where the method is applied to any node in the blockchain network, and the method includes:
receiving a transaction packet sent by a sequencing node in the blockchain network;
detecting whether the transaction packet carries a freezing identifier or not;
continuously acquiring target data from a target system outside the block chain network under the condition that the transaction packet carries the freezing identification;
after the target data is acquired, generating a block corresponding to the transaction packet;
and after the block corresponding to the transaction packet is generated, starting to process the next transaction packet of the transaction packet.
In a second aspect of the embodiments of the present invention, there is provided an apparatus for freezing a blockchain network, the apparatus being applied to any node in the blockchain network, the apparatus including:
the transaction packet receiving module is used for receiving the transaction packet sent by the sequencing node in the block chain network;
the frozen identifier detection module is used for detecting whether the transaction packet carries a frozen identifier or not;
the target data acquisition module is used for continuously acquiring target data from a target system outside the block chain network under the condition that the transaction packet carries the frozen identifier;
the block generation module is used for generating a block corresponding to the transaction packet after the target data is acquired;
the frozen identifier detection module is further configured to start processing of a next transaction packet of the transaction packets after the block corresponding to the transaction packet is generated.
In a third 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 implementing the method for freezing the block chain network provided by any embodiment of the invention when executing the program stored in the memory.
In a fourth aspect of the embodiments of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of freezing a blockchain network provided by any of the embodiments of the present invention.
In the invention, after any node of the block chain network receives the transaction packet sent by the sequencing node, whether the transaction packet carries the frozen identifier or not is detected. If the transaction packet carries the frozen identity, the node will continuously obtain the target data from the target system outside the blockchain network. After acquiring the target data, the node generates a corresponding block for the transaction packet. After generating the corresponding tile for the transaction package, the node begins processing the next transaction package of the transaction package.
It can be seen that, during the period that the node continuously acquires the target data from the target system outside the blockchain network, since the node has not acquired the target data temporarily, the node cannot generate the corresponding block for the currently processed transaction packet and further cannot process the next transaction packet. Thus, the node is equivalently frozen. On the other hand, in the entire block chain network, since each node of the entire block chain network is frozen because the target data is temporarily not obtained, it corresponds to that the entire block chain network is frozen. In summary, by implementing the present invention, the freezing of the entire blockchain network can be effectively achieved.
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 schematic diagram of a transaction processing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of performing a cross-chain transaction, according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a freezing zone blockchain network during execution of a cross-chain transaction as set forth in an embodiment of the present invention;
FIG. 4 is a flow chart of a method of freezing a zone block chain network according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an apparatus for freezing a blockchain network according to an embodiment of the present invention;
fig. 6 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 as a block chain network), distributed node equipment (hereinafter referred to as nodes) in the transmission network realizes generation, verification and uplink storage of block data by operating a block chain program, finally realizes a data tamper-proof mechanism, and provides a safe and reliable technical new idea for business development.
In the related art, when a service is developed by using a blockchain network, optionally, in some embodiments, the service development process includes: real data generated in the physical world are constructed into a transaction format supported by a blockchain and are published to a blockchain network; after each node of the block chain network receives the transaction, executing the transaction, and generating a block according to the transaction and the execution result of the transaction; the plurality of nodes mutually agree on the respective generated blocks, and when agreement is achieved, each node adds the respective block to the end of the respective stored block chain.
It should be noted that how to use the block chain network to develop services in the present invention is not limited to the above embodiments. In addition to the specific embodiments described above, other solutions known to those skilled in the art can be used.
It can be seen that in the related art, the blockchain network implements the development of the service by processing one or more transactions related to the service. Optionally, in some embodiments, the blockchain network may process the transaction in the manner shown in fig. 1, and fig. 1 is a schematic diagram of a transaction processing manner according to an embodiment of the present invention.
As shown in fig. 1, the blockchain network includes a plurality of nodes, one of the plurality of nodes being a sorting node for sorting and packaging transactions to obtain transaction packages, and distributing the transaction packages to each node within the blockchain network.
Wherein the sorting node is selected from a plurality of nodes of the blockchain network. Optionally, in some embodiments, the sorting node may be elected as follows:
any node within the blockchain network will periodically (e.g., every 60 seconds) detect the presence of a sequencing node in the blockchain network. If the node does not exist or the existing sequencing node fails, the node participates in the sequencing node election and generates an election proposal (the election proposal is referred to as a propusal hereinafter), and the propusal comprises the node ID of the node. The node broadcasts the generated propusal to the blockchain network, and collects the respective propusals broadcast by other nodes within a preset time length (e.g., 5 seconds). The node judges whether the node ID of the node is the minimum node ID in the plurality of node IDs included in all the propofol according to the node ID included in each propofol. If the node ID of the node is the smallest node ID, the node generates an announcement (hereinafter, the announcement is simply called "declaration") and periodically (e.g., every 5 seconds) broadcasts the declaration to the blockchain network to declare itself a new sorting node, the declaration including the node ID of the node. In addition, if the node receives the declaration broadcasted by other nodes, and the node ID in the declaration broadcasted by other nodes is smaller than the node ID of the node, the node automatically abandons the identity of the sequencing node.
It should be noted that, in the specific implementation of the present invention, how to select the sorting node is not limited to the above specific implementation. In addition to the specific embodiments described above, other solutions known to those skilled in the art can be used.
As shown in fig. 1, when any node in the blockchain network receives a transaction, the received transaction is submitted to the sequencing node. The sequencing node sequences and packages a plurality of transactions received in a period of time to generate a transaction package. The transaction package comprises a plurality of transactions which are sequenced and packaged by the sequencing node in the period of time.
In addition, each time the sequencing node generates a transaction packet, the sequencing node assigns a height value to the transaction packet, wherein the assigned height value of the transaction packet is equal to the block height of the block generated by each node for the transaction packet in the future. For a plurality of transaction packets successively generated by the sorting node, the height values to which the plurality of transaction packets are each assigned are successive.
For ease of understanding, assuming that the sorting node generated a transaction packet at a first time, the transaction packet was assigned a height value equal to 1056, then after the transaction packet was processed by each node to generate a corresponding tile, the tile height of the tile was also equal to 1056. The sorting node at the second time generates another transaction package which is given a height value equal to 1057, and the tile height of the tile should be equal to 1057 after the transaction package is processed by the nodes to generate the corresponding tile in the future.
By analogy, for a plurality of transaction packages successively generated by the sorting node, the height values to which the plurality of transaction packages are each assigned are successive. And the height value assigned to a transaction packet is equal to the block height of the block generated by each node for the transaction packet in the future. It can be seen that, in order to ensure that the block heights of the blocks of the block chain are continuous, when processing the transaction packets, each node of the block chain network processes the transaction packets sequentially from low to high according to the height values of the transaction packets.
As shown in fig. 1, after each transaction packet is generated by the sorting node, the transaction packet is distributed to each node (including the sorting node itself) in the blockchain network. To simplify the drawing, only a part of the nodes receiving the transaction package is schematically shown in fig. 1.
As shown in fig. 1, after each node receives the transaction packet, it may, on the one hand, cache the received transaction packet. On the other hand, the transaction packet with the smallest height value is obtained from the buffered transaction packets (i.e. the plurality of transaction packets received successively), and the transaction packet is processed. To simplify the drawing, only a part of the process of processing a transaction package by a node is schematically shown in fig. 1.
When the node processes the transaction packet, the specific processing process comprises the following steps:
the node reads the transactions from the transaction package in sequence, executes the transactions to obtain the execution result of the transactions for each read transaction, and records the transactions and the execution results thereof into the block body of the block to be generated currently. Therefore, when the node sequentially reads all transactions of the transaction packet and executes all transactions, the block corresponding to the transaction packet is generated. Thereafter, the plurality of nodes agree on the generated blocks, and when agreement is achieved, each node adds the generated block to the end of the block chain stored in each node.
Optionally, in some embodiments, when the plurality of nodes mutually agree on the respective generated blocks, a specific agreement manner may be: and each node calculates a root hash value according to the block body of the generated block and sends the calculated root hash value to other nodes. Correspondingly, each node also receives the root hash value sent by other nodes. And each node compares the received root hash values with the self-calculated root hash values one by one, and if the root hash values exceeding the preset number are equal to the self-calculated root hash values, the nodes determine that the generated blocks pass consensus. For ease of understanding, the above-mentioned preset number may be equal to 51% of the total number of nodes of the blockchain network, for example.
As shown in fig. 1, each node begins processing the next transaction packet of the current transaction packet after generating a tile for the current transaction packet. For ease of understanding, it is assumed that a node is currently processing a transaction packet having a height value equal to 1056, and that the node will not begin processing a transaction packet having a height value equal to 1057 until it has generated a tile for the transaction packet.
In the above, the present invention provides, in conjunction with fig. 1, a manner of processing transactions in a blockchain network, which is an alternative and should not be construed as limiting the present invention. It should be further noted that some or all of the technical features in the related art are not equivalent to those in the prior art, and some or all of the technical features in the related art may be the technical features which are disclosed for the first time in the invention.
During the development of services using a blockchain network, in some cases, a need may arise to freeze the entire blockchain network. However, in the related art, it is also difficult to efficiently freeze the entire block chain network. To this end, the present invention provides a method, an apparatus, an electronic device and a readable storage medium for freezing a block chain network by the following embodiments.
For example, during a cross-chain transaction performed between two blockchain networks, a need may arise to freeze the entire blockchain network.
Referring to fig. 2, fig. 2 is a schematic diagram of performing a cross-chain transaction according to an embodiment of the present invention. As shown in fig. 2, after receiving the cross-chain transaction, the blockchain network sends the cross-chain transaction to another blockchain network participating in the cross-chain transaction.
Optionally, in some embodiments, the cross-chain transaction carries a cross-chain identification. The cross-chain transaction comprises a front transaction part and a back transaction part, wherein the front transaction part is as follows: and the part of the cross-chain transaction which needs to be executed in a blockchain network carries the network ID of the blockchain network which needs to execute the pre-transaction. Post-transaction means: and the part of the cross-chain transaction which needs to be executed in another blockchain network, and the post-transaction carries the network ID of the blockchain network which needs to execute the post-transaction.
For ease of understanding, assuming, by way of example, that account a of bank a needs to transfer 500 dollars to account B of bank B, the preceding transaction of the corresponding cross-chain transaction comprises the following two steps: account a of one blockchain network transfers 500 yuan to the primary account of the blockchain network; the 500 yen is then destroyed from the primary account of the blockchain network. The post-transaction comprises the following two steps: adding 500 elements to a main account of another blockchain network; the primary account of the other blockchain network then transfers 500 dollars to account b of the blockchain network. And the bank A participates in the operation and maintenance of the one block chain network, and the bank B participates in the operation and maintenance of the other block chain network.
After any node in the first block chain network receives a transaction, whether the transaction carries a cross-chain identifier is detected. And if the transaction carries the cross-chain identifier, determining that the transaction is the cross-chain transaction. For non-cross-chain transactions, the node may submit the transaction to the sort node in the manner illustrated in FIG. 1. For the cross-link transaction, the node may submit the cross-link transaction to each node in the blockchain network, and then the designated node in the blockchain network sends the cross-link transaction to the network corresponding to the network ID carried by the post-transaction, that is, to the blockchain network that needs to execute the post-transaction.
As shown in fig. 2, the blockchain network performs pre-execution on the pre-transaction in the cross-chain transaction, and obtains a pre-execution result of the pre-transaction. And the other blockchain network performs pre-execution on the post-transaction in the cross-chain transaction to obtain a pre-execution result of the post-transaction. And the other blockchain network returns the pre-execution result of the post-transaction to the blockchain network.
The block chain network performs pre-execution on the pre-transaction, specifically: each node in the block chain network executes the preposed transaction to obtain the execution result of the preposed transaction, and each node records the obtained execution result to the non-ledger database of the node. Since the result of the pre-transaction is recorded to the non-ledger database, not to the ledger database, the result of the pre-transaction has not been recorded to the blockchain of the blockchain network.
Similarly, another blockchain network performs pre-execution on the post-transaction, specifically: and each node in the other blockchain network executes the post-transaction to obtain an execution result of the post-transaction, and each node records the obtained execution result to a non-ledger database of the node. Since the execution result of the post-transaction is recorded to the non-ledger database, not to the ledger database, the execution result of the post-transaction has not been recorded to the blockchain of another blockchain network.
The pre-execution of the pre-transaction is equivalent to pre-calculating whether the pre-transaction can be successfully executed in the blockchain network. Similarly, the pre-execution of the post-transaction corresponds to pre-calculating whether the post-transaction can be successfully executed in another blockchain network. If the blockchain network can successfully execute the pre-transaction and the other blockchain network can successfully execute the post-transaction, each node of the blockchain network subsequently needs to record the pre-transaction execution result recorded in the non-ledger database into the blockchain, and each node of the other blockchain network subsequently needs to record the post-transaction execution result recorded in the non-ledger database into the blockchain.
It can be seen that the blockchain network needs to be frozen after the blockchain network pre-executes the pre-transaction and before the execution result of the pre-transaction is recorded into the blockchain. The purpose is to prevent the following from occurring:
the blockchain network successfully executes the preposition transaction and records the execution result of the preposition transaction to the non-ledger database, however, before the execution result of the preposition transaction is recorded to the blockchain, the asset transfer-out transaction of the account related to the preposition transaction occurs again, so that the balance of the account is not enough to support the execution of the preposition transaction. If the execution result of the preceding transaction is still recorded to the blockchain subsequently, the double-flower problem is finally caused.
Similarly, after the other blockchain network performs the post-transaction in advance, and before the execution result of the post-transaction is recorded into the blockchain, the other blockchain network needs to be frozen.
For how to freeze the blockchain network, please refer to the following, which is not described herein again.
In addition, as shown in fig. 2, after receiving the pre-execution result of the post-transaction returned by another blockchain network, the blockchain network sends the pre-execution result of the pre-transaction, the pre-execution result of the post-transaction, and the cross-chain transaction to the public blockchain network. And the public blockchain network judges whether the pre-execution of the pre-transaction and the post-transaction is successful according to the pre-execution result of the pre-transaction and the pre-execution result of the post-transaction. If yes, the public blockchain network executes cross-chain transaction, and returns the execution result of the cross-chain transaction to the two blockchain networks, so that the blockchain networks record the pre-execution result of the front transaction to the blockchain, and the other blockchain network records the execution result of the back transaction to the blockchain.
The execution of the cross-chain transaction by the public block chain network is equivalent to witness on the cross-chain transaction. An individual user or a bank user may verify that a pre-transaction and a post-transaction have been performed within the blockchain network and another blockchain network, respectively, by querying the blockchain of the common blockchain network.
It should be noted that the "pre-execution result of the pre-transaction" described in the partial content of the present disclosure, that is, the execution result recorded in the non-ledger database after the pre-transaction is pre-executed, and the "pre-execution result of the pre-transaction" and the "execution result of the pre-transaction" in the present disclosure actually refer to the same concept. Similarly, the "pre-execution result of the post-transaction", that is, the execution result recorded in the non-ledger database after the pre-execution of the post-transaction, is actually referred to as the same concept.
As mentioned above, after the blockchain network pre-executes the pre-transaction, and before the execution result of the pre-transaction is recorded into the blockchain, the blockchain network needs to be frozen. To implement freezing of a blockchain network, referring to fig. 3, fig. 3 is a schematic diagram of freezing a blockchain network during execution of a cross-chain transaction according to an embodiment of the present invention.
As shown in fig. 3, after receiving the cross-chain transaction, any node in the blockchain network submits the cross-chain transaction to each node in the blockchain network.
Optionally, in some embodiments, several voting nodes within the blockchain network also vote for the cross-chain transaction to characterize whether the voting nodes agree to perform the cross-chain transaction. A designated node of a blockchain network sends a cross-chain transaction and a number of votes to another blockchain network. The voting node of the other blockchain network votes for the cross-chain transaction, and the designated node of the other blockchain network sends the cross-chain transaction and a plurality of votes of the two blockchain networks to the common blockchain network.
After the public blockchain network receives the cross-chain transaction and the votes of the two blockchain networks, whether the two blockchain networks agree to execute the cross-chain transaction or not is judged according to the votes of the two blockchain networks. And the public block chain network records the judgment result and the cross-chain transaction into a block newly generated by the public block chain network. In addition, each node within the blockchain network will also continuously synchronize the newly generated common blocks of the common blockchain network.
When the public blockchain network judges whether both blockchain networks agree to execute the cross-chain transaction, specifically, if more than half of votes of the blockchain networks agree to execute the cross-chain transaction, the public blockchain network determines that the blockchain network agrees to execute the cross-chain transaction. If more than half of the votes of the other blockchain network agree to perform a cross-chain transaction, it is determined that the other blockchain network agree to perform the cross-chain transaction.
In order to simplify the drawing, the voting process, the judgment process of the common block chain network, and the process of the node synchronizing the common blocks are not shown in fig. 3.
As shown in fig. 3, in a specific situation, the sorting node of the blockchain network automatically packages two consecutive transaction packets and sends the two transaction packets to each node of the blockchain network (including the sorting node itself, and for simplifying the drawing, the process of receiving the transaction packets by the sorting node itself is not shown in fig. 3). And the two continuous transaction packages do not contain transactions, wherein the former transaction package carries the pre-execution identifier, and the latter transaction package carries the target identifier and the freezing identifier. For convenience of description, the former transaction package will be referred to as a first transaction package and the latter transaction package will be referred to as a second transaction package hereinafter and in fig. 3.
Optionally, in some embodiments, the sequencing node automatically packages two consecutive transaction packages in certain cases: when the judgment result is recorded in the common block (assuming that the common block is the block A) to which the sequencing node is synchronized and represents that both the two block chain networks agree to execute the cross-chain transaction, the sequencing node responds to the judgment result and automatically packs two continuous transaction packets. The first transaction packet carries a pre-execution identifier, and the second transaction packet carries a freezing identifier. In addition, the second transaction packet also carries the block height of the public block A, and the block height is used as the target identifier.
As shown in fig. 3, after receiving two transaction packets, each node of the blockchain network processes the first transaction packet first according to the order of the height values of the two transaction packets. When the node detects that the first transaction packet carries the pre-execution identifier during the processing of the first transaction packet, the node generates a block for the transaction packet.
After generating the block for the first transaction packet, the node executes the pre-transaction of the pre-received cross-chain transaction and obtains the execution result of the pre-transaction. The node records the execution result to a non-ledger database, and the node submits the execution result of the pre-transaction to a sequencing node of the blockchain network.
After receiving the execution result of the front transaction and the execution result of the back transaction submitted by the other blockchain network, the sequencing node sends the cross-chain transaction, the execution result of the front transaction, the execution result of the back transaction and the height of the block of the public block A to the public blockchain network. The process by which the sequencing node sends the above information to the common blockchain network is not shown in fig. 3 to simplify the drawing.
And the public block chain network judges whether the pre-transaction and the post-transaction are both executed successfully according to the execution result of the pre-transaction and the execution result of the post-transaction. If yes, the public blockchain network executes cross-chain transaction, and records the execution result of the cross-chain transaction into the newly generated public block (assuming that the public block is the block D). In addition, the public blockchain network records the block height of the public block A into the newly generated public block D.
As shown in fig. 3, after generating the tile for the first transaction packet, the node begins processing the second transaction packet. And when the node detects that the second transaction packet carries the freezing identification during the processing of the second transaction packet, the node indicates that the whole blockchain network needs to be frozen.
In a specific implementation, when the node detects that the second transaction packet carries the frozen identifier, the node further reads the target identifier (i.e., the block height of the public block a) from the second transaction packet. Thereafter, the node detects, for each common block synchronized thereto, whether the common block carries the block height of the common block a. In this way, when the node continuously detects whether each public block carries the target identifier (i.e. the block height of the public block a), since the node is always in the state of processing the second transaction packet and cannot process the next transaction packet of the second transaction packet, the node is equivalently frozen. For the whole block chain network, each node of the whole block chain network is frozen, so that the whole block chain network is frozen. In fig. 3, the stages enclosed by the thick dashed boxes are the stages where the entire blockchain network is frozen.
When the node detects that a certain public block carries the block height of the public block A, the node generates a block for the second transaction packet according to the execution result of the preposed transaction.
In the concrete implementation, after the node detects that a certain public block carries the block height of the public block A, the node acquires the cross-chain transaction from the public block A synchronized in advance, executes the pre-transaction of the cross-chain transaction, and takes the execution result of the pre-transaction as the block data corresponding to the second transaction packet, so as to generate the block for the second transaction packet. Or, after the node detects that a certain public block carries the block height of the public block a, the node reads the execution result of the corresponding pre-transaction from the non-account book database, and uses the execution result as the block data corresponding to the second transaction packet, thereby generating the block for the second transaction packet.
As shown in fig. 3, after generating the tile for the second transaction packet, the node begins processing the next transaction packet of the second transaction packet. Thus, when the node begins processing the next transaction packet of the second transaction packet, it is equivalent to the node being unfrozen. In the whole blockchain network, each node of the whole blockchain network is unfrozen, so that the whole blockchain network is unfrozen.
In the above, the present invention provides a way of freezing a blockchain network in a scenario of performing a cross-chain transaction through a plurality of embodiments. In the following, the present invention proposes, by other embodiments, a general manner of freezing a blockchain network in a general scenario. It should be noted that the following embodiments and the above embodiments can be referred to each other.
Referring to fig. 4, fig. 4 is a flowchart of a method for freezing a blockchain network according to an embodiment of the present invention, where the method is applied to any node in the blockchain network. As shown in fig. 4, the method comprises the steps of:
step S41: and receiving the transaction packet sent by the sequencing node in the blockchain network.
Step S42: and detecting whether the transaction packet carries a freezing identifier.
Alternatively, in some embodiments, the node may run a thread to receive the transaction packets sequentially sent by the sequencing node and buffer the transaction packets. The node may be configured to run another thread to obtain the transaction packet with the smallest height value from the buffered transaction packets, process the transaction packet, and retrieve the next transaction packet with the smallest height value from the buffered transaction packets after the transaction packet is processed. The specific process of processing the transaction package is the process of step S42, step S43 and step S44 in the present invention.
Alternatively, in other embodiments, the node may start processing the transaction packet immediately upon receiving the transaction packet.
In the present invention, the sorting node may be a node periodically selected from a plurality of nodes in the blockchain network. Alternatively, the sorting node may be a node pre-designated from a plurality of nodes of the blockchain network. The present invention does not limit the determination method of the sorting node.
In the invention, the form of the frozen mark can be as follows: a predetermined character, a predetermined number, a character string composed of predetermined characters, or a character string having a predetermined format. It should be noted that the specific form of the frozen flag is not limited in the present invention.
Step S43: and under the condition that the transaction packet carries the freezing identification, continuously acquiring target data from a target system outside the block chain network.
Alternatively, in some embodiments, the target system outside of the blockchain network may be another blockchain network. As previously mentioned, the target system may be, for example, a public blockchain network. Alternatively, the target system may be other blockchain networks, for example.
Optionally, in some embodiments, the target system other than the blockchain network may also be a non-blockchain network, for example, a centralized service system, a user terminal device, a server cluster, or an administrator terminal. Taking the centralized service system as an example, in step S43, the node of the blockchain network continuously acquires target data from the centralized service system. Until the target data of the centralized service system is obtained, the node of the blockchain network does not execute step S44 described below, and therefore does not process the transaction in the next transaction packet, and the whole blockchain network is equivalent to be in a frozen state. Thus, when the centralized service system generates and transmits the target data, the freezing duration of the block chain network is determined.
In the invention, the node continuously acquires target data. By "persistent," in some embodiments, a node may periodically send a data acquisition request to a target system until the target system returns target data. Alternatively, in other embodiments, the node continues to listen to its intended interface until the intended interface receives the target data sent by the target system. The present invention is not limited to the manner in which the node continuously acquires the target data from the target system.
In the present invention, the target data that the node needs to obtain may be: the processing result of the thing, the processing certificate of the thing, instruction information, prompt information, or other blocks generated by the blockchain network and containing the target identifier, etc.
Step S44: and after the target data is acquired, generating a block corresponding to the transaction packet.
Optionally, in some specific embodiments, after the node acquires the target data, the node starts to execute the transaction in the transaction package in response to the acquisition of the target data. And the node takes the transaction and the execution result of the transaction as the block data corresponding to the transaction packet, thereby generating a block for the transaction packet.
Optionally, in other embodiments, as described above, the transaction packet carrying the frozen identity does not contain a transaction. After acquiring the target data, the node reads a pre-execution result stored in advance from the non-account book database, and takes the pre-execution result as block data corresponding to the transaction packet, so as to generate a block for the transaction packet.
Optionally, in some further specific embodiments, after the node acquires the target data, the target data may be further used as the block data corresponding to the transaction packet, so as to generate a block for the transaction packet.
Step S45: and after the block corresponding to the transaction packet is generated, starting to process the next transaction packet of the transaction packet.
In specific implementation, after generating the block corresponding to the current transaction packet, the node starts to detect whether the next transaction packet carries the frozen identifier (that is, the step S42 is executed for the next transaction packet), so as to start processing of the next transaction packet.
Alternatively, the node has already performed the above step S42 for the next transaction package before generating the tile corresponding to the current transaction package. And if the next transaction packet does not carry the frozen identifier, the node starts to execute the transaction contained in the next transaction packet after generating the block corresponding to the current transaction packet.
In a word, before the node generates the block for the current transaction packet, the node does not execute the transaction in the next transaction packet, thereby achieving the effect of freezing the block chain network.
In the invention, after any node of the block chain network receives the transaction packet sent by the sequencing node, whether the transaction packet carries the frozen identifier or not is detected. If the transaction packet carries the frozen identity, the node will continuously obtain the target data from the target system outside the blockchain network. After acquiring the target data, the node generates a corresponding block for the transaction packet. After generating the corresponding tile for the transaction package, the node begins processing the next transaction package of the transaction package.
It can be seen that, during the period that the node continuously acquires the target data from the target system outside the blockchain network, since the node has not acquired the target data temporarily, the node cannot generate the corresponding block for the currently processed transaction packet and further cannot process the next transaction packet. Thus, the node is equivalently frozen. On the other hand, in the entire block chain network, since each node of the entire block chain network is frozen because the target data is temporarily not obtained, it corresponds to that the entire block chain network is frozen. In summary, by implementing the present invention, the freezing of the entire blockchain network can be effectively achieved.
Optionally, in some specific embodiments, if it is determined that the transaction packet does not carry the frozen identifier through the detection in step S42, the block corresponding to the transaction packet may be directly generated. The manner of generating the block may be: as described above, the transaction in the transaction packet is read, the read transaction is executed to obtain an execution result, and the transaction and the execution result are used as the block data corresponding to the transaction packet, so as to generate a block for the transaction packet. Likewise, after a tile is generated for the transaction package, processing of the next transaction package of the transaction package begins.
Optionally, in some embodiments, the target data is used to characterize: another blockchain network outside the blockchain network has successfully pre-executed the first target transaction. As previously described, in the context of performing a cross-chain transaction, the first target transaction may be a post-transaction in the cross-chain transaction.
When the step S44 is executed, the step S44 specifically includes: after the target data are obtained, executing a third target transaction to obtain an execution result of the third target transaction; generating a block corresponding to the transaction packet according to the execution result; wherein the third target transaction is a transaction associated with the first target transaction. As previously described, in the context of performing a cross-chain transaction, the third target transaction may be a preceding transaction in the cross-chain transaction.
Alternatively, when the step S44 is executed, the step S44 specifically includes: after the target data are acquired, acquiring a pre-stored pre-execution result; generating a block corresponding to the transaction packet according to the pre-execution result; the pre-execution result is an execution result obtained after the node pre-executes a second target transaction, and the second target transaction is a transaction related to the first target transaction. As previously described, in the context of performing a cross-chain transaction, the second target transaction may be a preceding transaction in the cross-chain transaction.
Illustratively, as previously mentioned, the target data may be a common block of a common blockchain network containing a target identification. After the nodes are synchronized to the public block containing the target identification, reading a pre-execution result stored in advance from a non-account book database, and taking the pre-execution result as block data corresponding to the transaction packet, so as to generate a block for the transaction packet.
Or for example, the target data may be a prompt message sent by the other blockchain network, where the prompt message is a message sent by the other blockchain network after the first target transaction is successfully pre-executed. After receiving the prompt message sent by another blockchain network, the node reads a pre-execution result stored in advance from the non-account book database, and uses the pre-execution result as the block data corresponding to the transaction packet, so as to generate a block for the transaction packet.
Optionally, in some embodiments, in order to pre-execute the second target transaction, the method comprises the following steps: executing the second target transaction to obtain an execution result of the second target transaction; and recording the execution result to a non-ledger database of the node. Wherein, the non-account book database means: a database independent of the blockchain. Since the execution result of the pre-executed second target transaction is recorded in the non-ledger database, it is equivalent to that the execution result of the second target transaction is not temporarily stored in the uplink. And after the node acquires the target data, namely after determining that another blockchain network successfully pre-executes the first target transaction, storing an execution result of the second target transaction in the non-ledger database into the blockchain.
In specific implementation, as described above, when the node receives the previous transaction packet of the transaction packet and detects that the previous transaction packet carries the pre-execution identifier, the block corresponding to the previous transaction packet is generated. And after the block corresponding to the previous transaction packet is generated, the node executes the second target transaction stored in advance. The node records the execution result of the second target transaction to a non-ledger database of the node itself.
Optionally, in some embodiments, as described above, the transaction packet carrying the frozen identifier further carries a target identifier; and the target system outside the block chain network is a public block chain network, and the public block chain network is simultaneously in communication connection with the block chain network and the other block chain network.
When the step S43 is executed, the step S43 specifically includes: continuously acquiring a public block generated by the public block chain network under the condition that the transaction packet carries the freezing identification; detecting whether the target identification carried by the transaction packet is contained in each public block or not; if one public block carries the target identification, determining the public block as the target data; wherein the public block chain network fills the target identifier into the public block if: the common blockchain network determines that the blockchain network successfully pre-executes the second target transaction and determines that the other blockchain network successfully pre-executes the first target transaction.
Optionally, in some embodiments, the first target transaction and the second target transaction are two identical transactions. Or, the first target transaction is a part of a cross-chain transaction that needs to be executed in the other blockchain network, and the second target transaction is a part of the cross-chain transaction that needs to be executed in the blockchain network.
Optionally, in some embodiments, the first target transaction and the third target transaction are two identical transactions; or, the first target transaction is a part of a cross-chain transaction that needs to be executed in the other blockchain network, and the third target transaction is a part of the cross-chain transaction that needs to be executed in the blockchain network.
Based on the same inventive concept, the embodiment of the invention also provides a device for freezing the area block chain network. Referring to fig. 5, fig. 5 is a schematic diagram of an apparatus for freezing a blockchain network according to an embodiment of the present invention, the apparatus being applied to any node in the blockchain network. As shown in fig. 5, the apparatus includes:
a transaction packet receiving module 51, configured to receive a transaction packet sent by a sorting node in the blockchain network;
a frozen identifier detecting module 52, configured to detect whether the transaction packet carries a frozen identifier;
a target data obtaining module 53, configured to continuously obtain target data from a target system outside the blockchain network when the transaction packet carries the frozen identifier;
the block generation module 54 is configured to generate a block corresponding to the transaction packet after the target data is acquired;
the frozen identity detection module 52 is further configured to: and after the block corresponding to the transaction packet is generated, starting to process the next transaction packet of the transaction packet.
Optionally, in some embodiments, the block generation module is further configured to: and under the condition that the transaction packet does not carry the freezing identification, generating a block corresponding to the transaction packet.
Optionally, in some embodiments, the target data is used to characterize: another blockchain network outside the blockchain network has successfully pre-executed the first target transaction; the block generation module includes:
the pre-execution result acquisition unit is used for acquiring a pre-execution result which is stored in advance after the target data is acquired, wherein the pre-execution result is an execution result obtained after the node pre-executes a second target transaction, and the second target transaction is a transaction related to the first target transaction;
and the block generating unit is used for generating a block corresponding to the transaction packet according to the pre-execution result.
Or optionally, in some embodiments, the target data is used to characterize: another blockchain network outside the blockchain network has successfully pre-executed the first target transaction; the block generation module includes:
the transaction execution unit is used for executing a third target transaction after the target data is acquired, and obtaining an execution result of the third target transaction; wherein the third target transaction is a transaction associated with the first target transaction;
and the block generating unit is used for generating a block corresponding to the transaction packet according to the execution result.
Optionally, in some specific embodiments, the apparatus further includes a pre-execution module, configured to: and executing the second target transaction to obtain an execution result of the second target transaction, and recording the execution result to a non-account book database of the node.
Optionally, in some embodiments, the pre-execution module has a module for: and under the condition that the previous transaction packet of the transaction packet is received and the fact that the previous transaction packet carries a pre-execution identifier is detected, generating a block corresponding to the previous transaction packet, and executing the pre-stored second target transaction after the block corresponding to the previous transaction packet is generated.
Optionally, in some specific embodiments, the transaction packet carrying the frozen identifier further carries a target identifier; a target system outside the blockchain network is a public blockchain network, and the public blockchain network is simultaneously in communication connection with the blockchain network and the other blockchain network; the target data acquisition module comprises:
a public block acquiring unit, configured to continuously acquire a public block generated by the public block chain network when the transaction packet carries the frozen identifier;
the target identification detection unit is used for detecting whether the target identification carried by the transaction packet is contained in each public block;
a target data determining unit, configured to determine a common block as the target data if the common block carries the target identifier; wherein the public block chain network fills the target identifier into the public block if: the common blockchain network determines that the blockchain network successfully pre-executes the second target transaction and determines that the other blockchain network successfully pre-executes the first target transaction.
Optionally, in some embodiments, the first target transaction and the second target transaction are two identical transactions; or, the first target transaction is a part of a cross-chain transaction that needs to be executed in the other blockchain network, and the second target transaction is a part of the cross-chain transaction that needs to be executed in the blockchain network.
Optionally, in some embodiments, the first target transaction and the third target transaction are two identical transactions; or, the first target transaction is a part of a cross-chain transaction that needs to be executed in the other blockchain network, and the third target transaction is a part of the cross-chain transaction that needs to be executed in the blockchain network.
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. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604.
The memory 603 is used for storing computer programs;
the processor 601 is configured to implement the following steps when executing the program stored in the memory 603:
receiving a transaction packet sent by a sequencing node in the blockchain network;
detecting whether the transaction packet carries a freezing identifier or not;
continuously acquiring target data from a target system outside the block chain network under the condition that the transaction packet carries the freezing identification;
after the target data is acquired, generating a block corresponding to the transaction packet;
and after the block corresponding to the transaction packet is generated, starting to process the next transaction packet of the transaction packet.
Alternatively, the processor 601 is configured to implement the method steps of the frozen area blockchain network provided by the above other method embodiments of the present invention when executing the program stored in the memory 603.
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, there is also provided a computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of freezing a blockchain network as described in 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 (10)

1. A method of freezing a blockchain network, applied to any node within the blockchain network, the method comprising:
receiving a transaction packet sent by a sequencing node in the blockchain network;
detecting whether the transaction packet carries a freezing identifier or not;
continuously acquiring target data from a target system outside the block chain network under the condition that the transaction packet carries the freezing identification;
after the target data is acquired, generating a block corresponding to the transaction packet;
and after the block corresponding to the transaction packet is generated, starting to process the next transaction packet of the transaction packet.
2. The method of claim 1, further comprising:
and under the condition that the transaction packet does not carry the freezing identification, generating a block corresponding to the transaction packet.
3. The method of claim 1, wherein the target data is used to characterize: another blockchain network outside the blockchain network has successfully pre-executed the first target transaction; after the target data is obtained, generating a block corresponding to the transaction packet includes:
after the target data are acquired, acquiring a pre-stored pre-execution result; generating a block corresponding to the transaction packet according to the pre-execution result; the pre-execution result is an execution result obtained after the node pre-executes a second target transaction, and the second target transaction is a transaction related to the first target transaction;
alternatively, the first and second electrodes may be,
after the target data are obtained, executing a third target transaction to obtain an execution result of the third target transaction; generating a block corresponding to the transaction packet according to the execution result; wherein the third target transaction is a transaction associated with the first target transaction.
4. The method of claim 3, wherein pre-executing the second targeted transaction comprises:
executing the second target transaction to obtain an execution result of the second target transaction;
and recording the execution result to a non-ledger database of the node.
5. The method of claim 4, wherein the performing the second targeted transaction comprises:
generating a block corresponding to a previous transaction packet when the previous transaction packet of the transaction packet is received and the previous transaction packet is detected to carry a pre-execution identifier;
and executing the second target transaction stored in advance after the block corresponding to the previous transaction packet is generated.
6. The method of claim 5, wherein the transaction packet carrying the frozen identity also carries a target identity; a target system outside the blockchain network is a public blockchain network, and the public blockchain network is simultaneously in communication connection with the blockchain network and the other blockchain network; the continuously acquiring target data from a target system outside the blockchain network under the condition that the transaction packet carries the frozen identifier includes:
continuously acquiring a public block generated by the public block chain network under the condition that the transaction packet carries the freezing identification;
detecting whether the target identification carried by the transaction packet is contained in each public block or not;
if one public block carries the target identification, determining the public block as the target data; wherein the public block chain network fills the target identifier into the public block if: the common blockchain network determines that the blockchain network successfully pre-executes the second target transaction and determines that the other blockchain network successfully pre-executes the first target transaction.
7. The method of any of claims 3 to 6, wherein the first target transaction and the second target transaction are two identical transactions; or, the first target transaction is a part of a cross-chain transaction that needs to be executed in the other blockchain network, and the second target transaction is a part of the cross-chain transaction that needs to be executed in the blockchain network;
the first target transaction and the third target transaction are two identical transactions; or, the first target transaction is a part of a cross-chain transaction that needs to be executed in the other blockchain network, and the third target transaction is a part of the cross-chain transaction that needs to be executed in the blockchain network.
8. An apparatus for freezing a blockchain network, the apparatus being applied to any node in the blockchain network, the apparatus comprising:
the transaction packet receiving module is used for receiving the transaction packet sent by the sequencing node in the block chain network;
the frozen identifier detection module is used for detecting whether the transaction packet carries a frozen identifier or not;
the target data acquisition module is used for continuously acquiring target data from a target system outside the block chain network under the condition that the transaction packet carries the frozen identifier;
the block generation module is used for generating a block corresponding to the transaction packet after the target data is acquired;
the frozen identifier detection module is further configured to start processing of a next transaction packet of the transaction packets after the block corresponding to the transaction packet is generated.
9. 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 perform the method steps of any of claims 1-7.
10. 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 7.
CN202011176384.4A 2020-10-28 2020-10-28 Method, apparatus, electronic device and readable storage medium for freezing blockchain network Active CN112258184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011176384.4A CN112258184B (en) 2020-10-28 2020-10-28 Method, apparatus, electronic device and readable storage medium for freezing blockchain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011176384.4A CN112258184B (en) 2020-10-28 2020-10-28 Method, apparatus, electronic device and readable storage medium for freezing blockchain network

Publications (2)

Publication Number Publication Date
CN112258184A true CN112258184A (en) 2021-01-22
CN112258184B CN112258184B (en) 2023-08-01

Family

ID=74262183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011176384.4A Active CN112258184B (en) 2020-10-28 2020-10-28 Method, apparatus, electronic device and readable storage medium for freezing blockchain network

Country Status (1)

Country Link
CN (1) CN112258184B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819634A (en) * 2021-02-25 2021-05-18 成都质数斯达克科技有限公司 Transaction processing method and device, electronic equipment and readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345387A (en) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, across chain communication device and storage medium
CN109409885A (en) * 2018-10-29 2019-03-01 深圳声笑科技有限公司 Across chain method of commerce, device and storage medium on block chain
CN109461076A (en) * 2018-10-09 2019-03-12 哈希(武汉)网络科技有限公司 A kind of block chain method of commerce
CN109493204A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Business bookkeeping methods and terminal device based on block chain
CN110070445A (en) * 2019-04-28 2019-07-30 深圳前海微众银行股份有限公司 A kind of transaction processing method and device based on block catenary system
CN110428332A (en) * 2019-07-29 2019-11-08 杭州复杂美科技有限公司 A kind of across the chain method of commerce of parallel chain, equipment and storage medium
CN110555765A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 Method and system for carrying out asset circulation among various block chains
EP3588415A1 (en) * 2017-02-27 2020-01-01 Tencent Technology (Shenzhen) Company Limited Account processing method and apparatus in block chain, storage medium, and computer device
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system
CN111311209A (en) * 2020-02-03 2020-06-19 腾讯科技(深圳)有限公司 Cross-block-chain data processing method, device, equipment and computer storage medium
CN111464631A (en) * 2020-03-31 2020-07-28 成都质数斯达克科技有限公司 Service consensus method and device in alliance block chain
CN111489154A (en) * 2019-01-29 2020-08-04 北京天德科技有限公司 Cross-chain transaction method based on multiple signatures

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3588415A1 (en) * 2017-02-27 2020-01-01 Tencent Technology (Shenzhen) Company Limited Account processing method and apparatus in block chain, storage medium, and computer device
CN110555765A (en) * 2018-06-01 2019-12-10 厦门本能管家科技有限公司 Method and system for carrying out asset circulation among various block chains
CN109345387A (en) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, across chain communication device and storage medium
CN109461076A (en) * 2018-10-09 2019-03-12 哈希(武汉)网络科技有限公司 A kind of block chain method of commerce
CN109493204A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Business bookkeeping methods and terminal device based on block chain
CN109409885A (en) * 2018-10-29 2019-03-01 深圳声笑科技有限公司 Across chain method of commerce, device and storage medium on block chain
CN111489154A (en) * 2019-01-29 2020-08-04 北京天德科技有限公司 Cross-chain transaction method based on multiple signatures
CN110070445A (en) * 2019-04-28 2019-07-30 深圳前海微众银行股份有限公司 A kind of transaction processing method and device based on block catenary system
CN110428332A (en) * 2019-07-29 2019-11-08 杭州复杂美科技有限公司 A kind of across the chain method of commerce of parallel chain, equipment and storage medium
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system
CN111311209A (en) * 2020-02-03 2020-06-19 腾讯科技(深圳)有限公司 Cross-block-chain data processing method, device, equipment and computer storage medium
CN111464631A (en) * 2020-03-31 2020-07-28 成都质数斯达克科技有限公司 Service consensus method and device in alliance block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李芳 等: "区块链跨链技术进展研究", 《软件学报》, vol. 30, no. 6, pages 1649 - 1660 *
魏昂: "一种改进的区块链跨链技术", 《网络空间安全》, vol. 10, no. 6, pages 40 - 45 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819634A (en) * 2021-02-25 2021-05-18 成都质数斯达克科技有限公司 Transaction processing method and device, electronic equipment and readable storage medium
CN112819634B (en) * 2021-02-25 2023-06-02 成都质数斯达克科技有限公司 Transaction processing method, device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112258184B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN109447810B (en) Parallel block chain consensus method, system, electronic device and computer-readable storage medium
CN110033244B (en) Intelligent contract execution method and device based on block chain and electronic equipment
US20210149885A1 (en) Blockchain-based content processing method and apparatus, device, and storage medium
CN108846673B (en) Block data processing method, device, equipment and storage medium
CN109614209B (en) Task processing method, application server and system
CN108710681B (en) File acquisition method, device, equipment and storage medium
CN108776616B (en) Method for determining credible state of block chain node, block chain link point and system
CN111899016A (en) Quality data processing method and device based on block chain
CN115859343A (en) Transaction data processing method and device and readable storage medium
CN111899019A (en) Method and system for cross validation and sharing of blacklist and multiple parties
CN112671908B (en) Network management method and device, electronic equipment and readable storage medium
CN111314174A (en) Network dial testing method and device based on block chain and SDN edge computing network system
CN112202633B (en) Block chain network testing method and device, electronic equipment and readable storage medium
CN110930254A (en) Data processing method, device, terminal and medium based on block chain
CN111209339B (en) Block synchronization method, device, computer and storage medium
CN114022151A (en) Block chain data visualization method and system, electronic device and storage medium
CN111224782A (en) Data verification method based on digital signature, intelligent device and storage medium
CN112258184A (en) Method and device for freezing area block chain network, electronic equipment and readable storage medium
CN112037062B (en) Transaction consensus method, device, electronic equipment and readable storage medium
CN112272114A (en) Method, device, equipment and storage medium for sending information across block chain network
CN112087497A (en) Data synchronization method and device, electronic equipment and readable storage medium
CN117061538A (en) Consensus processing method and related device based on block chain network
CN112202581A (en) Group joining method and device and electronic equipment
CN111242778B (en) Data processing method, device, computer equipment and storage medium
CN112202863A (en) Data synchronization method and device, 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