WO2022021768A1 - Parallel chain transaction group execution method, and device and storage medium - Google Patents

Parallel chain transaction group execution method, and device and storage medium Download PDF

Info

Publication number
WO2022021768A1
WO2022021768A1 PCT/CN2020/138872 CN2020138872W WO2022021768A1 WO 2022021768 A1 WO2022021768 A1 WO 2022021768A1 CN 2020138872 W CN2020138872 W CN 2020138872W WO 2022021768 A1 WO2022021768 A1 WO 2022021768A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction group
transaction
chain
parachain
main chain
Prior art date
Application number
PCT/CN2020/138872
Other languages
French (fr)
Chinese (zh)
Inventor
马登极
王志文
吴思进
Original Assignee
江苏复杂美科技有限公司
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 江苏复杂美科技有限公司 filed Critical 江苏复杂美科技有限公司
Publication of WO2022021768A1 publication Critical patent/WO2022021768A1/en

Links

Images

Classifications

    • 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
    • G06F16/275Synchronous replication
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms

Abstract

A parallel chain transaction group execution method, and a device and a storage medium. The method comprises: during the execution of a first transaction group, determining whether the first transaction group comprises both a main chain-parallel chain cross-chain transaction and a non-main chain-parallel chain common transaction (S12); and if so, marking the first transaction group with an execution failure identifier (S14), such that when each parallel chain node of a first parallel chain is synchronized to the first transaction group marked with the identifier, the execution of the first transaction group fails. By means of the method, the successful execution of a cross-chain transaction can be ensured.

Description

平行链交易组执行方法、设备和存储介质Parachain transaction group execution method, device and storage medium 技术领域technical field
本申请涉及区块链技术领域,具体涉及一种平行链交易组执行方法、设备和存储介质。The present application relates to the field of blockchain technology, and in particular to a method, device and storage medium for executing a parallel chain transaction group.
背景技术Background technique
在现有技术中,用户甲在主链上开设有账户A,在第一平行链上开设有账户a,用户乙在第一平行链上开设有账户b,用户丙在第一平行链上开设有账户c;用户甲想要将主链上的10coin转账至用户乙,会生成两笔交易,tx1(将A中的10coin转账至a),tx2(将a中的10coin转账至b),用户甲还想将第一平行链的上的10coin转账至用户丙,会生成交易tx3(将a中的10coin转账至c);用户甲想要将3笔交易放入一个交易组中执行,生成交易组txgroup1{tx1、tx2、tx3};在现有的主链-平行链机制中,主链节点执行txgroup1{tx1、tx2、tx3}中的tx1,如果tx1在主链执行成功,则主链上A冻结10coin;平行链节点同步txgroup1后,执行tx2和tx3;tx2执行成功,假设tx3因余额不足或其它原因执行不成功,则由于交易组的原子性,txgroup1执行失败(即tx2也会执行失败);但主链上已经冻结账户A的10coin,无法通过平行链转移回来释放,,也就是说,账户A的10coin无法取回。In the prior art, user A has opened account A on the main chain, opened account a on the first parallel chain, user B has opened account b on the first parallel chain, and user C opened an account on the first parallel chain There is account c; user A wants to transfer 10coins on the main chain to user B, and two transactions will be generated, tx1 (transfer 10coins in A to a), tx2 (transfer 10coins in a to b), the user A also wants to transfer 10coins on the first parachain to user C, which will generate transaction tx3 (transfer 10coins in a to c); user A wants to put 3 transactions into a transaction group to execute, and generate transactions Group txgroup1{tx1, tx2, tx3}; in the existing main chain-parachain mechanism, the main chain node executes tx1 in txgroup1{tx1, tx2, tx3}, if tx1 is successfully executed in the main chain, then the main chain A freezes 10 coins; after the parachain node synchronizes txgroup1, executes tx2 and tx3; tx2 executes successfully, if tx3 fails to execute due to insufficient balance or other reasons, then due to the atomicity of the transaction group, txgroup1 fails to execute (that is, tx2 also fails to execute ); but the 10coin of account A has been frozen on the main chain and cannot be transferred back and released through the parachain, that is to say, the 10coin of account A cannot be retrieved.
发明内容SUMMARY OF THE INVENTION
鉴于现有技术中的上述缺陷或不足,期望提供一种成功执行跨链交易的平行链交易组执行方法、设备和存储介质。In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a parachain transaction group execution method, device and storage medium for successfully executing cross-chain transactions.
第一方面,本发明提供一种适用于主链节点的平行链交易组执行方法,上述方法包括:In a first aspect, the present invention provides a parachain transaction group execution method suitable for main chain nodes, the method comprising:
在执行第一交易组时,判断第一交易组中是否同时包括主链-第一平行链的跨链交易和非主链-平行链的普通交易:When executing the first transaction group, determine whether the first transaction group includes both main chain-first parachain cross-chain transactions and non-main chain-parachain ordinary transactions:
是,则将第一交易组打上执行失败的标识,以供第一平行链的各平行链节点在同步到打上标识的第一交易组时,第一交易组执行失败。If yes, mark the first transaction group with an execution failure flag, so that when each parachain node of the first parachain synchronizes to the marked first transaction group, the execution of the first transaction group fails.
第二方面,本发明提供一种适用于平行链节点的平行链交易组执行方法,上述方法包括:In a second aspect, the present invention provides a parachain transaction group execution method applicable to a parachain node, the method comprising:
从主链同步第一交易组;Synchronize the first transaction group from the main chain;
在执行第一交易组时,若第一交易组被打上执行失败的标识,则第一交易组执行失败;When executing the first transaction group, if the first transaction group is marked with the flag of execution failure, the execution of the first transaction group fails;
其中,标识由主链节点执行第一交易时,识别出第一交易组中同时包括主链-当前平行链的跨链交易和普通交易时为第一交易组打上。Wherein, when the main chain node executes the first transaction, it is marked on the first transaction group when it is identified that the first transaction group includes both main chain-current parallel chain cross-chain transactions and ordinary transactions.
第三方面,本发明还提供一种设备,包括一个或多个处理器和存储器,其中存储器包含可由该一个或多个处理器执行的指令以使得该一个或多个处理器执行根据本发明各实施例提供的平行链交易组执行方法。In a third aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform various functions according to the present invention. The parachain transaction group execution method provided by the embodiment.
第四方面,本发明还提供一种存储有计算机程序的存储介质,该计算机程序使计算机执行根据本发明各实施例提供的平行链交易组执行方法。In a fourth aspect, the present invention further provides a storage medium storing a computer program, the computer program causing a computer to execute the parachain transaction group execution method provided according to each embodiment of the present invention.
本发明诸多实施例提供的平行链交易组执行方法、设备和存储介质通过在执行第一交易组时,判断第一交易组中是否同时包括主链-平行链的跨链交易和非主链-平行链的普通交易:是,则将第一交易组打上执行失败的标识,以供第一平行链的各平行链节点在同步到打上标识的第一交易组时,第一交易组执行失败的方法,保证主链-平行链跨链交易成功执行。The parachain transaction group execution method, device and storage medium provided by various embodiments of the present invention determine whether the first transaction group includes both main chain-parachain cross-chain transactions and non-main chain- Ordinary transactions of parachains: if yes, mark the first transaction group with the flag of execution failure, so that when each parachain node of the first parachain synchronizes to the first transaction group marked with the flag, the execution of the first transaction group fails. method to ensure the successful execution of the main chain-parallel chain cross-chain transaction.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明一实施例提供的一种平行链交易组执行方法的流程图。FIG. 1 is a flowchart of a method for executing a parachain transaction group according to an embodiment of the present invention.
图2为本发明一实施例提供的另一种平行链交易组执行方法的流程图。FIG. 2 is a flowchart of another parachain transaction group execution method provided by an embodiment of the present invention.
图3为本发明一实施例提供的一种设备的结构示意图。FIG. 3 is a schematic structural diagram of a device according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
在现有技术中,用户甲在主链上开设有账户A,在第一平行链上开设有账户a,用户乙在第一平行链上开设有账户b,用户丙在第一平行链上开设有账户c。假设第一平行链上有平行链节点PN1~PN4;用户甲想要将主链上的10coin转账至用户乙,会生成两笔交易,tx1(将A中的10coin转账至a),tx2(将a中的10coin转账至b),用户甲还想将第一平行链的上的10coin转账至用户丙,会生成交易tx3(将a中的10coin转账至c);用户甲想要将3笔交易放入一个交易组中执行,生成交易组txgroup1{tx1、tx2、tx3}。In the prior art, user A has opened account A on the main chain, opened account a on the first parallel chain, user B has opened account b on the first parallel chain, and user C opened an account on the first parallel chain have account c. Suppose there are parachain nodes PN1~PN4 on the first parachain; if user A wants to transfer 10coins on the main chain to user B, two transactions will be generated, tx1 (transferring 10coins in A to a), tx2 (transferring 10coins from A to a), Transfer 10coin in a to b), user A also wants to transfer 10coin on the first parachain to user C, a transaction tx3 will be generated (transfer 10coin in a to c); user A wants to transfer 3 transactions Put it into a transaction group for execution to generate transaction group txgroup1{tx1, tx2, tx3}.
在现有的主链-平行链机制中,主链节点执行txgroup1{tx1、tx2、tx3}中的tx1,如果tx1在主链执行成功,则主链上A冻结10coin;PN1~PN4同步txgroup1后,执行tx2和tx3;假设tx3执行不成功,则由于交易组的原子性,txgroup1执行失败;PN1~PN4分别生成的包括txgroup1的共识交易tx(consensus_PN1)、tx(consensus_PN2)、tx(consensus_PN3)、tx(consensus_PN4);tx(consensus_PN1)、tx(consensus_PN2)、tx(consensus_PN3)、tx(consensus_PN4)中,txgroup1的执行状态为false;主链节点发现“txgroup1的执行状态为false”这个状态共识成功,则主链上将扣除A的10coin以完成跨链交易,但其实b并没有真正收到相应的10coin,也就是说,A的10coin无法取回。In the existing main chain-parachain mechanism, the main chain node executes tx1 in txgroup1{tx1, tx2, tx3}. If tx1 is successfully executed in the main chain, A freezes 10 coins on the main chain; after PN1~PN4 synchronize txgroup1 , execute tx2 and tx3; if the execution of tx3 is unsuccessful, the execution of txgroup1 fails due to the atomicity of the transaction group; the consensus transactions tx(consensus_PN1), tx(consensus_PN2), tx(consensus_PN3), tx(consensus_PN3), tx(consensus_PN4); tx(consensus_PN1), tx(consensus_PN2), tx(consensus_PN3), tx(consensus_PN4), the execution status of txgroup1 is false; the main chain node finds that “the execution status of txgroup1 is false”, the consensus is successful, Then, A's 10coin will be deducted from the main chain to complete the cross-chain transaction, but B has not actually received the corresponding 10coin, that is to say, A's 10coin cannot be retrieved.
图1为本发明一实施例提供的一种平行链交易组执行方法的流程图。如图1所示,在本实施例中,本发明提供一种适用于主链节点的 平行链交易组执行方法,上述方法包括:FIG. 1 is a flowchart of a method for executing a parachain transaction group according to an embodiment of the present invention. As shown in Figure 1, in this embodiment, the present invention provides a parachain transaction group execution method applicable to a main chain node, and the above method includes:
S12:在执行第一交易组时,判断第一交易组中是否同时包括主链-第一平行链的跨链交易和普通交易:S12: When executing the first transaction group, determine whether the first transaction group includes both main chain-first parachain cross-chain transactions and ordinary transactions:
是,则执行步骤S14:将第一交易组打上执行失败的标识,以供第一平行链的各平行链节点在同步到打上标识的第一交易组时,第一交易组执行失败。If yes, then go to step S14: marking the first transaction group with an execution failure flag, so that when each parachain node of the first parachain synchronizes to the marked first transaction group, the execution of the first transaction group fails.
具体地,假设用户甲在主链上开设有账户A,在第一平行链上开设有账户a,用户乙在第一平行链上开设有账户b,用户丙在第一平行链上开设有账户c。假设第一平行链上有平行链节点PN1~PN4;用户甲想要将主链上的10coin转账至用户乙,会生成两笔交易,tx1(将A中的10coin转账至a),tx2(将a中的10coin转账至b),用户甲还想将第一平行链的上的10coin转账至用户丙,会生成交易tx3(将a中的10coin转账至c);用户甲想要将3笔交易放入一个交易组中执行,生成交易组txgroup1{tx1、tx2、tx3};Specifically, it is assumed that user A has an account A on the main chain, an account a on the first parachain, user B has an account b on the first parachain, and user C has an account on the first parachain c. Suppose there are parachain nodes PN1~PN4 on the first parachain; if user A wants to transfer 10coins on the main chain to user B, two transactions will be generated, tx1 (transferring 10coins in A to a), tx2 (transferring 10coins from A to a), Transfer 10coin in a to b), user A also wants to transfer 10coin on the first parachain to user C, a transaction tx3 will be generated (transfer 10coin in a to c); user A wants to transfer 3 transactions Put it into a transaction group for execution, and generate a transaction group txgroup1{tx1, tx2, tx3};
主链节点执行步骤S12,在执行txgroup1{tx1、tx2、tx3}时,判断txgroup1{tx1、tx2、tx3}是否同时包括主链-第一平行链的跨链交易和普通交易:The main chain node executes step S12, and when executing txgroup1{tx1, tx2, tx3}, judges whether txgroup1{tx1, tx2, tx3} includes both main chain-first parallel chain cross-chain transactions and ordinary transactions:
由于tx1为主链-第一平行链的跨链交易,tx2、tx3为普通交易,则主链节点执行步骤S14,将txgroup1打上执行失败的标识。Since tx1 is a cross-chain transaction between the main chain and the first parachain, and tx2 and tx3 are ordinary transactions, the main chain node executes step S14, and marks txgroup1 with an execution failure flag.
PN1~PN4从主链同步txgroup1;PN1~PN4 synchronize txgroup1 from the main chain;
PN1~PN4执行txgroup1:由于txgroup1有执行失败的标识,则txgroup1执行失败。PN1 to PN4 execute txgroup1: Since txgroup1 has the flag of execution failure, the execution of txgroup1 fails.
上述实施例保证成功执行跨链交易。The above-described embodiments guarantee successful execution of cross-chain transactions.
区块链节点所接收到的交易组由用户的用户端生成。用户端在生成交易组时,判断所生成的交易组是否同时包括主链-第一平行链的跨链交易和普通交易:The transaction group received by the blockchain node is generated by the user's client. When generating a transaction group, the client determines whether the generated transaction group includes both the main chain-first parachain cross-chain transaction and ordinary transaction:
是,则返回警告信息。If yes, return a warning message.
上述实施例将通过提示失败的方式,使得用户更早的获取警告信息,若用户因警告信息及时修改交易组,则错误的交易组不会发送到区块链上也不会扣除执行错误的交易组的手续费。The above embodiment will prompt the user to obtain the warning information earlier by prompting the failure. If the user modifies the transaction group in time due to the warning information, the wrong transaction group will not be sent to the blockchain and the wrongly executed transaction will not be deducted. Group fee.
或者,区块链节点的交易池在接收到第一交易组时,判断所接收的交易组是否同时包括主链-第一平行链的跨链交易和普通交易:Alternatively, when the transaction pool of the blockchain node receives the first transaction group, it determines whether the received transaction group includes both the main chain-first parachain cross-chain transaction and the ordinary transaction:
是,则从交易池中删除该第一交易组,并向发送第一交易组的用户端返回警告信息。If yes, delete the first transaction group from the transaction pool, and return a warning message to the client that sent the first transaction group.
上述实施例将通过提示失败的方式,使得用户更早的获取警告信息,若用户因警告信息及时修改交易组,则错误的交易组不会发送到区块链上也不会扣除执行错误的交易组的手续费。The above embodiment will prompt the user to obtain the warning information earlier by prompting the failure. If the user modifies the transaction group in time due to the warning information, the wrong transaction group will not be sent to the blockchain and the wrongly executed transaction will not be deducted. Group fee.
图2为本发明一实施例提供的另一种平行链交易组执行方法的流程图。如图2所示,在本实施例中,本发明提供一种适用于平行链节点的平行链交易组执行方法,上述方法包括:FIG. 2 is a flowchart of another parachain transaction group execution method provided by an embodiment of the present invention. As shown in FIG. 2 , in this embodiment, the present invention provides a parachain transaction group execution method suitable for parachain nodes, and the above method includes:
S22:从主链同步第一交易组;S22: Synchronize the first transaction group from the main chain;
S24:在执行第一交易组时,若第一交易组被打上执行失败的标识,则第一交易组执行失败;S24: When executing the first transaction group, if the first transaction group is marked with an execution failure flag, the execution of the first transaction group fails;
其中,标识由主链节点执行第一交易时,识别出第一交易组中同时包括主链-当前平行链的跨链交易和普通交易时为第一交易组打上。Wherein, when the main chain node executes the first transaction, it is marked on the first transaction group when it is identified that the first transaction group includes both main chain-current parallel chain cross-chain transactions and ordinary transactions.
上述实施例的平行链交易组执行原理可参考图1所示的方法,此处不再赘述。For the execution principle of the parachain transaction group in the above embodiment, reference may be made to the method shown in FIG. 1 , which will not be repeated here.
本发明还提供一种适用于主链节点的平行链交易组执行方法,上述方法包括:The present invention also provides a parachain transaction group execution method suitable for main chain nodes, the method comprising:
S32:在执行第一交易组时,判断第一交易组中是否同时包括主链-第一平行链的跨链交易和普通交易:S32: When executing the first transaction group, determine whether the first transaction group includes both main chain-first parachain cross-chain transactions and ordinary transactions:
是,则执行步骤S34:丢弃第一交易组。If yes, go to step S34: discard the first transaction group.
上述实施例与图1所示的方法的不同之处在于,上述实施例中的主链上不会存证执行失败的第一交易组,进一步的,第一平行链的平行链节点上由于同步不到第一交易组,同样也不会存证第一交易组。图1所示的方法相较于上述实施例的优点在于,用户可以明确获知第一交易组被主链节点、第一平行链的平行链节点获取并被执行,并不是没有发送到区块链网络中,用户体验较好。The difference between the above embodiment and the method shown in FIG. 1 is that the main chain in the above embodiment does not store the first transaction group that fails to execute the certificate. If the first transaction group is not reached, the first transaction group will not be deposited. The advantage of the method shown in FIG. 1 compared with the above-mentioned embodiment is that the user can clearly know that the first transaction group is acquired and executed by the main chain node and the parachain node of the first parachain, not that it is not sent to the blockchain In the network, the user experience is better.
图3为本发明一实施例提供的一种设备的结构示意图。FIG. 3 is a schematic structural diagram of a device according to an embodiment of the present invention.
如图3所示,作为另一方面,本申请还提供了一种设备300,包 括一个或多个中央处理单元(CPU)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储部分308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM303中,还存储有设备300操作所需的各种程序和数据。CPU301、ROM302以及RAM303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。As shown in FIG. 3 , as another aspect, the present application also provides a device 300 including one or more central processing units (CPUs) 301 , which can operate according to a program stored in a read only memory (ROM) 302 or Various appropriate actions and processes are executed from the program loaded into the random access memory (RAM) 303 from the storage section 308 . In the RAM 303, various programs and data necessary for the operation of the device 300 are also stored. The CPU 301 , the ROM 302 , and the RAM 303 are connected to each other through a bus 304 . An input/output (I/O) interface 305 is also connected to bus 304 .
以下部件连接至I/O接口305:包括键盘、鼠标等的输入部分306;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分307;包括硬盘等的存储部分308;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分309。通信部分309经由诸如因特网的网络执行通信处理。驱动器310也根据需要连接至I/O接口305。可拆卸介质311,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器310上,以便于从其上读出的计算机程序根据需要被安装入存储部分308。The following components are connected to the I/O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc. ; and a communication section 309 including a network interface card such as a LAN card, a modem, and the like. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
特别地,根据本公开的实施例,上述任一实施例描述的方法可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,所述计算机程序包含用于执行上述任一方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分309从网络上被下载和安装,和/或从可拆卸介质311被安装。In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 309 and/or installed from the removable medium 311 .
作为又一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例的装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入设备中的计算机可读存储介质。计算机可读存储介质存储有一个或者一个以上程序,该程序被一个或者一个以上的处理器用来执行描述于本申请提供的方法。As yet another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be a computer-readable storage medium included in the apparatus of the foregoing embodiment; A computer-readable storage medium in a device. The computer-readable storage medium stores one or more programs that are used by one or more processors to perform the methods described in the present application.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实 现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这根据所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以通过执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以通过专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by dedicated hardware-based systems that perform the specified functions or operations , or can be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,各所述单元可以是设置在计算机或移动智能设备中的软件程序,也可以是单独配置的硬件装置。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定。The units or modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described units or modules may also be provided in the processor, for example, each of the units may be a software program provided in a computer or a mobile smart device, or may be a separately configured hardware device. Wherein, the names of these units or modules do not constitute limitations on the units or modules themselves under certain circumstances.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离本申请构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the concept of the present application, the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (4)

  1. 一种平行链交易组执行方法,其特征在于,适用于主链节点,所述方法包括:A method for executing a parallel chain transaction group, characterized in that it is applicable to a main chain node, and the method includes:
    在执行第一交易组时,判断所述第一交易组中是否同时包括主链-第一平行链的跨链交易和普通交易:When executing the first transaction group, determine whether the first transaction group includes both main chain-first parallel chain cross-chain transactions and ordinary transactions:
    是,则将所述第一交易组打上执行失败的标识,以供所述第一平行链的各平行链节点在同步到打上所述标识的第一交易组时,所述第一交易组执行失败。If yes, then mark the first transaction group with the flag of execution failure, so that when each parachain node of the first parachain is synchronized to the first transaction group marked with the flag, the first transaction group executes Fail.
  2. 一种平行链交易组执行方法,其特征在于,适用于平行链节点,所述方法包括:A parachain transaction group execution method, characterized in that it is suitable for parachain nodes, the method comprising:
    从主链同步第一交易组;Synchronize the first transaction group from the main chain;
    在执行所述第一交易组时,若所述第一交易组被打上执行失败的标识,则所述第一交易组执行失败;When executing the first transaction group, if the first transaction group is marked with an execution failure flag, the execution of the first transaction group fails;
    其中,所述标识由主链节点执行所述第一交易时,识别出所述第一交易组中同时包括主链-当前平行链的跨链交易和普通交易时为所述第一交易组打上。Wherein, when the main chain node executes the first transaction, the identification is marked on the first transaction group when it is identified that the first transaction group includes both main chain-current parallel chain cross-chain transactions and ordinary transactions .
  3. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device comprises:
    一个或多个处理器;one or more processors;
    存储器,用于存储一个或多个程序,memory for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-2中任一项所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-2.
  4. 一种存储有计算机程序的存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-2中任一项所述的方法。A storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-2 is implemented.
PCT/CN2020/138872 2020-07-30 2020-12-24 Parallel chain transaction group execution method, and device and storage medium WO2022021768A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010748222.7 2020-07-30
CN202010748222.7A CN111858772A (en) 2020-07-30 2020-07-30 Parallel chain transaction group execution method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2022021768A1 true WO2022021768A1 (en) 2022-02-03

Family

ID=72946407

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138872 WO2022021768A1 (en) 2020-07-30 2020-12-24 Parallel chain transaction group execution method, and device and storage medium

Country Status (2)

Country Link
CN (1) CN111858772A (en)
WO (1) WO2022021768A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858772A (en) * 2020-07-30 2020-10-30 杭州复杂美科技有限公司 Parallel chain transaction group execution method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481004A (en) * 2017-08-11 2017-12-15 中国工商银行股份有限公司 Transaction risk crime prevention system and method
US20180294955A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. System for processing data based on blockchain and operating method thereof
CN109325762A (en) * 2018-08-30 2019-02-12 杭州复杂美科技有限公司 Across the chain method of commerce of parallel chain, equipment and storage medium
CN110796545A (en) * 2019-10-25 2020-02-14 杭州趣链科技有限公司 Batch processing method, equipment and storage medium for blockchain transaction
CN111858772A (en) * 2020-07-30 2020-10-30 杭州复杂美科技有限公司 Parallel chain transaction group execution method, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196900B (en) * 2017-03-24 2020-04-24 创新先进技术有限公司 Consensus checking method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180294955A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. System for processing data based on blockchain and operating method thereof
CN107481004A (en) * 2017-08-11 2017-12-15 中国工商银行股份有限公司 Transaction risk crime prevention system and method
CN109325762A (en) * 2018-08-30 2019-02-12 杭州复杂美科技有限公司 Across the chain method of commerce of parallel chain, equipment and storage medium
CN110796545A (en) * 2019-10-25 2020-02-14 杭州趣链科技有限公司 Batch processing method, equipment and storage medium for blockchain transaction
CN111858772A (en) * 2020-07-30 2020-10-30 杭州复杂美科技有限公司 Parallel chain transaction group execution method, device and storage medium

Also Published As

Publication number Publication date
CN111858772A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN109146448B (en) Cross-chain asset transfer method, device and storage medium
CN109377365B (en) Asset transfer method, device and storage medium
US20210326813A1 (en) Parallel Chain Cross-Chain Transaction Method, Device and Storage Medium
CN109410045B (en) Parallel chain consensus method, equipment and storage medium
US7721003B2 (en) System and method to synchronize OSGi bundle inventories between an OSGi bundle server and a client
US10679210B2 (en) Blockchain transaction commitment ordering
US10733176B2 (en) Detecting phantom items in distributed replicated database
WO2020043048A1 (en) Parallel chain data synchronization method, device, and storage medium
US9632828B1 (en) Computing and tracking client staleness using transaction responses
WO2018103318A1 (en) Distributed transaction handling method and system
US9171019B1 (en) Distributed lock service with external lock information database
US6665814B2 (en) Method and apparatus for providing serialization support for a computer system
US9589153B2 (en) Securing integrity and consistency of a cloud storage service with efficient client operations
KR102077898B1 (en) Data storage upon database failure
WO2017219857A1 (en) Data processing method and device
US20230106118A1 (en) Distributed processing of transactions in a network using timestamps
WO2020108325A1 (en) Transaction processing method, apparatus and device
WO2022121346A1 (en) Wallet retrieval method and device, and storage medium
US11681683B2 (en) Transaction compensation for single phase resources
WO2022121348A1 (en) Delayed transaction generation method, delayed transaction execution method, and device and storage medium
CN109862102B (en) Distributed data multi-copy concurrency control system, server and method
US20200293412A1 (en) Log Management Method, Server, and Database System
WO2022121347A1 (en) Transaction execution method, and device and storage medium
JP2004252986A (en) System and method of distributing replication command
WO2022021768A1 (en) Parallel chain transaction group execution method, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20946923

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20946923

Country of ref document: EP

Kind code of ref document: A1