Data archiving method of block-chain block data and electronic equipment

A technology of block data and block chain, which is applied in the data archiving method of block chain data and the field of electronic equipment, can solve the problems of large data volume, no efficient data archiving method for block data of block chain nodes, and access probability of block data Low-level problems, to achieve the effect of reducing block data, improving backup and recovery efficiency, and ensuring security

Active Publication Date: 2017-12-01
ZHONGAN INFORMATION TECH SERVICES CO LTD
View PDF3 Cites 49 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since each node in the blockchain will store complete data, as the height of the chain increases, the data of each node will increase all the time, so it is necessary to archive the data of the blockchain, and currently there is no block data for blockchain nodes An efficient data arch

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
  • Data archiving method of block-chain block data and electronic equipment
  • Data archiving method of block-chain block data and electronic equipment
  • Data archiving method of block-chain block data and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] The embodiment of the present invention provides a data archiving method of blockchain block data, refer to figure 1 As shown, the methods include:

[0066] 101. Periodically detect the block data meeting the archiving conditions in the blockchain node data. If the block data meeting the archiving conditions is detected, execute step 102; if no block data meeting the archiving conditions is detected, repeat step 101.

[0067] Among them, the archiving conditions include block data height value and access frequency;

[0068] The process of periodically detecting block data that meets the archiving conditions in the blockchain node data may include:

[0069] a. View the number of block data locally stored by the blockchain node, that is, the number of all block data between the block data with the lowest height value and the block data with the highest height value;

[0070] Specifically, if the block data with the lowest local height value is H0, and the block data wit...

Embodiment 2

[0134] An embodiment of the present invention provides an electronic device, referring to image 3 As shown, the electronic device 3 includes:

[0135] The detection module 31 is used to periodically detect the block data in the block chain node data that meets the archiving conditions, and the archiving conditions include the block data height value and access frequency;

[0136] The copying module 32 is used to copy the block data satisfying the archiving condition from the local copy when the detection module 31 detects the block data satisfying the archiving condition;

[0137] Compression module 33, is used for compressing block data and generating compressed package;

[0138] The upload module 34 is used to upload the compressed package to a reliable distributed storage system;

[0139] The compressed package file hash acquisition module 35 is used to obtain the file hash of the compressed package uploaded when the upload module 34 uploads successfully;

[0140] The r...

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 a data archiving method of block-chain block data and electronic equipment and belongs to the technical field of computers. The method includes: periodically detecting block data, meeting archiving conditions, in block-chain node data; if the block data meeting the archiving conditions is detected, locally copying the block data meeting the archiving conditions, performing compression, and uploading the package to a reliable distributed storage system; if the uploading succeeds, acquiring the file hash of the uploaded package, and inserting the file hash of the package and the record of the height range of the uploaded block data into an archiving file hash table; if the uploading fails, outputting an error log and re-uploading. The method has the advantages that the block data meeting the archiving conditions is detected periodically, the block data meeting the archiving conditions is archived, the archiving requirements of the block-chain node block data are satisfied, the block data of node storage is reduced, hard disk space occupation of the block data is reduced, hard disk space utilization rate is increased, and node data backup and recovery efficiency is increased.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a data archiving method and electronic equipment for blockchain block data. Background technique [0002] Blockchain uses distributed node consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, generates non-tamperable and non-forgeable distributed ledgers, and establishes a data network of mutual trust. [0003] Data archiving is a method that keeps the size of the online database largely unchanged but can provide stable database performance for user applications. the size of the activity data. [0004] Since the archived data can be backed up at any time without affecting the application of the online database, this part of data is generally inactive data for a long time; the online database is also slimmed down after data archiving, the amount of backup data is reduced, and overall Reduce the total amount...

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): G06F17/30
CPCG06F16/27G06F16/219G06F16/215G06F16/214G06F16/113G06F16/148G06F16/137G06F16/1744
Inventor 张乐杜君君
Owner ZHONGAN INFORMATION TECH SERVICES 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