Intelligent contract execution optimization method based on multi-core architecture

A technology of smart contracts and optimization methods, applied in the field of blockchain

Pending Publication Date: 2020-09-29
TIANJIN UNIV
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to overcome the deficiencies of the prior art, provide a smart contract execution optimization method based on multi-core architecture, used for parallelization of smart contracts, improve the throughput of Ethereum, not only can effectively solve the problem of transaction congestion, make The transaction is confirmed quickly, reducing the burden on Ethereum, and can improve the work efficiency of miners and verification nodes and achieve the purpose of saving resources

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 optimization method based on multi-core architecture
  • Intelligent contract execution optimization method based on multi-core architecture
  • Intelligent contract execution optimization method based on multi-core architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described in detail below through the specific examples, the following examples are only descriptive, not restrictive, and cannot limit the protection scope of the present invention with this.

[0037] A smart contract execution optimization method based on multi-core architecture, characterized in that: the steps of the method are:

[0038] 1) Parallel mining stage: miners collect transaction information to execute the first call to the smart contract, mark the transaction and record the execution sequence, including steps:

[0039] S1. Execute transactions in parallel, use spin locks (pinLock) and timestamps (Timestamp) to solve read-write conflicts and priority issues and use cache submissions, and copy the read data to thread local variables when performing read operations ( In ThreadLocal), if the value of Timestamp has not changed, proceed to the next step, otherwise it indicates that other threads have written to the variable...

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 relates to an intelligent contract execution optimization method based on a multi-core architecture. The method comprises two stages: 1) a parallel mining stage; 2) parallel verificationstage. According to the invention, aiming at two stages of intelligent contract execution, parallel mining and parallel verification strategies are respectively designed and implemented. In the parallel mining stage, the problems of frequent context switching of threads and blockage of read-write locks are solved by introducing Spinlock and MVCC; meanwhile, in the parallel verification stage, conflict transactions are grouped, and parallelization of the transactions is achieved through a double-end queue; the intelligent contract parallelization strategy provided by the invention provides a new solution for execution of the intelligent contract, also explores the restorability of the task execution sequence in a multi-thread environment, and has certain theoretical value and research significance for effectively solving the concurrency problem.

Description

technical field [0001] The invention belongs to the field of blockchain, relates to transaction parallelization technology and parallel verification strategy, and in particular to an intelligent contract execution optimization method based on a multi-core architecture. Background technique [0002] The core idea of ​​the blockchain mainly includes encryption and consensus. Numerous encryption algorithms provide protection for the security of the blockchain. The consensus mechanism mainly includes two stages of mining and verification. Miners can obtain a certain block reward after successfully packaging the transaction. The blockchain uses this incentive mechanism to ensure its long-term operation. After the miners broadcast the packaged transactions, other miners need to stop the work at hand, immediately verify the correctness of the nodes, and put them into the competition of the next block. The blockchain uses this consensus mechanism to ensure its safe and correct opera...

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): G06Q40/04G06Q10/06G06Q10/04
CPCG06Q40/04G06Q10/06315G06Q10/04
Inventor 王建荣吴彤刘志强李雪威赵满坤侯庆志张克兴
Owner TIANJIN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products