Task execution method and device of fabric alliance chain and computer equipment

A task execution and task technology, applied in the field of data processing, can solve the problem that the fabric alliance chain cannot execute tasks in multiple threads, and achieve the effect of improving concurrent performance and ensuring consistency

Active Publication Date: 2020-04-28
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of this application is to provide and solve the disadvantages of the existing fabric alliance chain that cannot perform tasks with multiple threads

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
  • Task execution method and device of fabric alliance chain and computer equipment
  • Task execution method and device of fabric alliance chain and computer equipment
  • Task execution method and device of fabric alliance chain and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0060] refer to figure 1 , an embodiment of the present application provides a fabric alliance chain task execution method, the execution method includes:

[0061] S1: Receive a task execution request, where the execution request carries task information;

[0062] S2: Using the snapshot technology to back up the first task data corresponding to the task information, to obtain a snapshot of the first task data;

[0063] S3: Execute the smart contract of the task according to the snapshot of the first task data, and obtain the signed task;

[0064] S4: Pack the signature ...

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 provides a task execution method and device for a fabric alliance chain, computer equipment and a computer readable storage medium, and relates to the field of data processing. The method includes the following steps: receiving an execution request for a task; backing up first task data corresponding to task information by using a snapshot technology to obtain a first task data snapshot; executing a smart contract according to the first task data snapshot to obtain a signature task; packaging the signature task to obtain a task block; judging whether the task block is legal or not; and if yes, storing the task block. According to the invention, snapshot is carried out on current task related data in an original database, therefore, when the task data is read and written subsequently, operations such as smart contracts can be directly carried out through the data in the snapshot, a read-write lock does not need to be used for the data in the original database, reading andwriting of other task data are not influenced while the consistency of the task data is ensured, multi-thread operation is realized, and the concurrency performance is improved.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a fabric alliance chain task execution method, device and computer equipment. Background technique [0002] Blockchain is generally understood as a distributed ledger, and its essence is also a distributed database. In the existing blockchain architecture, all data is stored in leveldb in the form of key-value pairs (LevelDB is Google's open source persistent KV stand-alone database). In order to ensure data consistency and fault tolerance, leveldb uses read-write locks for reading and writing data, so that nodes cannot execute endorsement and storage blocks at the same time, and become a fabric alliance chain to achieve high concurrency through multi-threaded execution tasks a bottleneck. Contents of the invention [0003] The main purpose of this application is to provide a solution to the disadvantages of the existing fabric alliance chain that cannot...

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
IPC IPC(8): G06F9/46G06F11/14G06F16/27
CPCG06F9/46G06F11/1448G06F16/27Y02D10/00
Inventor 冯世伟
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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