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

Block synchronization method, device, computer and storage medium

A block and block header technology, applied in the field of blockchain, can solve problems such as data authenticity can not be verified, reduce the authenticity and validity of synchronized blocks, and block inconsistency

Active Publication Date: 2021-09-14
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, when synchronizing blocks between nodes in the blockchain, the node that is synchronizing the block generally first synchronizes the block header of the block, and verifies the hash of the previous block contained in the block header and the hash of the block. Whether the hash value of the corresponding previous block is consistent, if the two are consistent, write the block into the ledger of the node. This simple verification based on the comparison of the hash value makes the node synchronized The authenticity of some data in the block may not be verified, which may lead to the inconsistency between the block synchronized by the node and the block in the legal core node, thereby reducing the real validity of the synchronized block

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
  • Block synchronization method, device, computer and storage medium
  • Block synchronization method, device, computer and storage medium
  • Block synchronization method, device, computer and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0082] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0083] Specifically, see Figure 1a , Figure 1a is a block synchronization architecture diagram provided by the embodiment of this application, such as Figure 1a As shown, the first node device 101 sends a block synchronization request to the second node device cluster 102 associated with the first node device, and the second node device cluster 102 may include the second node device 1021, the second node device 1022 and the second Node device 1023. Taking the second node device 1021 as a...

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 embodiment of the present application discloses a block synchronization method, including: the first node device obtains the transaction block sent by the second node device, and the block header of the transaction block includes voting information and block headers of multiple core nodes Attribute parameters; detecting the legitimacy of the block header attribute parameters; determining the consensus result of the transaction block according to the voting information in the block header of the transaction block; if the block header attribute parameters are legal parameters, And the consensus result is a successful consensus result, then the transaction block is added to the transaction ledger corresponding to the first node device. By adopting this application, the authenticity and validity of synchronized blocks can be guaranteed, so as to improve the accuracy of business data.

Description

technical field [0001] The present application relates to the technical field of block chains, and in particular to a block synchronization method, device, computer and storage medium. Background technique [0002] Due to the decentralization and anti-tampering features of the blockchain, the application of the blockchain is becoming more and more extensive. When synchronizing blocks between nodes in the blockchain, it is extremely important to ensure the accuracy of the block data. At present, when synchronizing blocks between nodes in the blockchain, the node that is synchronizing the block generally first synchronizes the block header of the block, and verifies the hash of the previous block contained in the block header and the hash of the block. Whether the hash value of the corresponding previous block is consistent, if the two are consistent, write the block into the ledger of the node. This simple verification based on the comparison of the hash value makes the node ...

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 Patents(China)
IPC IPC(8): G06F16/27G06F21/64G06Q40/04
CPCG06F21/64G06Q40/04G06F16/27
Inventor 刘攀
Owner TENCENT TECH (SHENZHEN) 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