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

Block synchronization method and device, computer and storage medium

A block and block header technology, applied in the blockchain field, can solve problems such as block inconsistency, data authenticity cannot be verified, and reduce the real validity of synchronized blocks, so as to achieve the effect of improving real validity

Active Publication Date: 2020-05-29
TENCENT TECH (SHENZHEN) CO LTD
View PDF10 Cites 3 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 and device, computer and storage medium
  • Block synchronization method and device, computer and storage medium
  • Block synchronization method and 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 invention discloses a block synchronization method. The method comprises the steps that first node equipment obtains a transaction block transmitted by second node equipment, andthe block head of the transaction block comprises the voting information of a plurality of core nodes and the attribute parameters of the block head; detecting the legality of the block head attribute parameter; determining a consensus result of the transaction block according to the voting information in the block head of the transaction block; If the block head attribute parameter is a legal parameter and the consensus result is a consensus success result, adding the transaction block into a transaction account book corresponding to the first node device. By adopting the method and the device, the real effectiveness of the synchronized blocks can be guaranteed, so that the accuracy of the service data is improved.

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 Applications(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