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

Intelligent contract execution method and system in blockchain, and electronic equipment

A technology of smart contracts and execution methods, which is applied in the computer field and can solve problems such as low efficiency

Active Publication Date: 2020-07-07
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of this specification provides a smart contract execution method, system and electronic equipment in the block chain to solve the problem of using rollback to modify the history once the execution of the transaction fails during the execution of the smart contract in the existing block chain. The problem of low efficiency

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
  • Intelligent contract execution method and system in blockchain, and electronic equipment
  • Intelligent contract execution method and system in blockchain, and electronic equipment
  • Intelligent contract execution method and system in blockchain, and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the purpose, technical solution and advantages of this document clearer, the technical solution of this specification will be clearly and completely described below in conjunction with specific embodiments of this specification and corresponding drawings. Apparently, the described embodiments are only some of the embodiments in this document, not all of them. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this document.

[0030] The technical solutions provided by each embodiment of this specification will be described in detail below in conjunction with the accompanying drawings.

[0031] As mentioned in the background technology, during the execution of blockchain smart contracts, there is usually a problem of transaction rollback. That is, during the execution of the smart contract, the contract status of both parties ...

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 discloses an intelligent contract execution method and system in a blockchain, and electronic equipment. The method comprises the following steps: after a target proposal reaches a consensus, a blockchain node calls a smart contract to execute a target transaction in the target proposal, and stores a transaction execution result of the target transaction generated in an execution process in a first cache; if the target transaction is successfully executed, the blockchain node stores a transaction execution result of the target transaction stored in the first cache into a second cache; and the blockchain node performs a block writing operation based on the transaction execution result in the second cache.

Description

technical field [0001] This document relates to the field of computer technology, and in particular to a smart contract execution method, system and electronic device in a blockchain. Background technique [0002] During the execution of smart contracts in the blockchain, there is usually a problem of transaction rollback. For example, when a transaction calls a smart contract for transaction execution, the transaction execution may fail due to operational logic errors or gas exhaustion. Since the smart contract will modify the account status of both parties during the transaction execution process. When the execution of the transaction fails, the modification history needs to be rolled back, that is, the account status of the parties to the transaction modified by the smart contract is restored to the state before the modification. [0003] At present, in Ethereum, the operation log (change log) is usually used to record all modification records, and when the modification...

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/40G06Q20/38G06F16/23G06F16/2455G06F16/27
CPCG06F16/2358G06F16/24552G06F16/27G06Q20/389G06Q20/407
Inventor 李帅
Owner ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
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