Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing atomicity of multi-level intelligent contract stack

A smart contract, multi-level technology, applied in the blockchain field, can solve the problems of rollback failure, time-consuming, and inability to guarantee complete rollback success, saving time and resource overhead

Active Publication Date: 2020-07-17
上海简苏网络科技有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, there are many problems in this method. When the batch execution fails, rolling back the successful operations one by one consumes computing resources and takes a long time; moreover, there is no guarantee that the rollback can be completely successful, that is, rollback It is also possible that an operation rollback fails during the process of

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing atomicity of multi-level intelligent contract stack
  • Method and device for realizing atomicity of multi-level intelligent contract stack
  • Method and device for realizing atomicity of multi-level intelligent contract stack

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

[0035] The term "computer equipment" in this context, also referred to as "computer", refers to an intelligent electronic device that can perform predetermined processing procedures such as numerical calculations and / or logic calculations by running predetermined programs or instructions, which may include a processor and The memory is realized by the processor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention aims to provide a method and device for realizing the atomicity of a multi-level intelligent contract stack, and the method comprises the steps: sequentially calling and executing at least one second intelligent contract, associated with a first intelligent contract, in a next layer according to a calling sequence in a process of executing the first intelligent contract of the previous layer of the multi-level intelligent contract stack; in each call execution process, creating a corresponding second transaction container for the second smart contract, and storing the address ofthe cache data area in the first transaction container corresponding to the first smart contract as the address of the submission data area in the second transaction container; calling and executing the intelligent contracts in each layer of the multi-level intelligent contract stack layer by layer according to the mode until all the intelligent contracts are successfully called and executed, so that the atomicity of the multi-level intelligent contract stack is realized, and the time and the resource overhead are greatly saved; and if a certain intelligent contract fails to be called and executed, discarding all the transaction containers corresponding to the successfully executed intelligent contracts.

Description

technical field [0001] This application relates to the field of blockchain technology, and in particular to a technology for realizing the atomicity of a multi-level smart contract stack. Background technique [0002] A transaction container is a container to ensure that batch operations can be executed atomically, that is, multiple operations are packaged together and executed in batches. These operations either all execute successfully or fail to execute, and there is no partial success. This plays an important role in various application scenarios within the blockchain. [0003] In normal operations, the way to achieve transactionality is to submit all batch operations together if they are all executed successfully. If an operation fails, the previous successful operations are rolled back one by one until all successful operations are rolled back, and the data is restored to its original state before any operation was performed. [0004] However, there are many problems...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q20/38G06F16/23G06F9/46
CPCG06F9/466G06Q20/389G06F16/2365
Inventor 丁有振杨春福
Owner 上海简苏网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products