Contract data recording method and device, blockchain node and storage medium

A recording method and blockchain technology, applied in the field of communication, can solve problems such as inconsistent state and damage to the integrity of contract data, and achieve the effect of ensuring accuracy

Active Publication Date: 2019-10-08
CLOUDMINDS SHANGHAI ROBOTICS CO LTD
View PDF12 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of this disclosure is to provide a contract data recording method, device, blockchain node, and storage medium to improve the inconsistency of the state represented by some blocks on the blockchain, which causes the integrity of the contract data in the database to be compromised. sabotage problem

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
  • Contract data recording method and device, blockchain node and storage medium
  • Contract data recording method and device, blockchain node and storage medium
  • Contract data recording method and device, blockchain node and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0030] The blockchain is a decentralized distributed database system that is jointly maintained by all nodes in the blockchain network. It is composed of a series of data blocks generated based on cryptographic methods. Each data block is a block in the blockchain. a block. According to the order of generation time, the blocks are linked together in an orderly manner to form a data chain, which is vividly called a blockchain. The blockchain is generated and verified by its special blocks and transactions, and has unchangeable, unforgeable, and fully traceable security features.

[0031] Description of related concepts involved in blockchain technology:

[...

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 a contract data recording method and device, a blockchain node and a storage medium, and relates to the technical field of communication. The contract data recording method comprises the following steps: when a new block is received, judging whether a latest contract execution record in a first database is a contract execution record of a front block of the block or not; if not, inquiring a target block which is closest to the block in the first database and has a contract execution record on a block chain branch where the block is located from a block chain locally stored in the block chain node; backtracking the state of the contract data file stored in the target block by the second database; generating an updated contract data file according to the operation event in the block and the contract data file of the target block stored in the second database; and updating the contract data in the database in real time while the integrity of the data in the database is not damaged, and the accuracy of a query result is ensured in the subsequent data query process.

Description

technical field [0001] The present disclosure relates to the field of communication technology, and in particular, to a contract data recording method, device, blockchain node, and storage medium. Background technique [0002] A smart contract in the blockchain is an executable code based on a consensus mechanism. Since the blockchain guarantees the consistency of each node or account in the execution of code input, execution, and results across the network, the smart contract A reliable consensus service can be provided. Since smart contracts are mainly aimed at processing scattered transactions, and at the same time need to consider the consumption of computing, memory, and storage resources by a single transaction, most of the underlying storage layers use Key-Value databases. [0003] In the existing technology, it is necessary to store all the states in the contract one by one in the Key-Value database. When there is a network delay or other force majeure factors, it m...

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): G06F16/2453G06F16/27
CPCG06F16/2453G06F16/27
Inventor 薛鹏飞陈敏
Owner CLOUDMINDS SHANGHAI ROBOTICS CO LTD
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