Unlock instant, AI-driven research and patent intelligence for your innovation.

Switching method, device, node device and storage medium of consensus algorithm

A consensus and algorithm technology, applied in the field of blockchain, can solve problems such as low enforceability of consensus algorithm and impact on user business

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

AI Technical Summary

Problems solved by technology

As a result, during the switching process of the consensus algorithm, the user's business is affected, and due to the decentralized nature of the blockchain network, the enforceability of switching the consensus algorithm through a cold start method is low

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
  • Switching method, device, node device and storage medium of consensus algorithm
  • Switching method, device, node device and storage medium of consensus algorithm
  • Switching method, device, node device and storage medium of consensus algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0040] The embodiment of the present invention provides a consensus algorithm switching scheme, which is applied in a blockchain network, where managers pre-publish the target consensus algorithm to be switched and the target configuration information corresponding to the target consensus algorithm. When any consensus node in the blockchain network detects that the current status of the blockchain network meets the conditions for switching the consensus algorithm, for example, the block height of the blockchain is greater than or equal to the height threshold, and the target consensus node running the target consensus algorithm There are a threshold number of consensus nodes in the set to complete the preprocessing operation of starting the target consensus calculation, and swi...

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 invention discloses a consensus algorithm switching method, device, node device, and storage medium, wherein the method includes: if the block height of the block chain in the target consensus node is greater than or equal to the height threshold, execute based on the target configuration information Start the preprocessing operation of the target consensus algorithm; obtain the notification information set, and a notification information in the notification information set is used to indicate that a consensus node has completed the preprocessing operation of starting the target consensus algorithm; if the notification information set comes from the target consensus node set If the number of notification information of the middle consensus node is greater than the quantity threshold, and the preprocessing operation of the target consensus node is completed, the first consensus algorithm is switched to the target consensus algorithm. By adopting the embodiment of the present invention, the switching of the consensus algorithm is realized without stopping the block chain network, thereby ensuring the high availability of the block chain network.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a consensus algorithm switching method, device, node device and storage medium. Background technique [0002] With the continuous development of science and technology, for the safety of various business processes, most companies transfer their business-related businesses to the blockchain, such as electronic invoice business, bank loan business, etc. The business executed in the blockchain network is first packaged into the block, and the consensus node uses the consensus algorithm to perform consensus verification on the block. After the verification is passed, the block is connected to the blockchain, thus realizing the business preservation in blockchain. [0003] In order to improve the accuracy of consensus verification, consensus algorithm switching is often involved in the blockchain network. The currently commonly used consensus algorithm switching met...

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/60G06Q40/04G06F9/455
CPCG06F9/45558G06F21/602G06F2009/45595G06Q40/04G06F16/27
Inventor 刘攀
Owner TENCENT TECH (SHENZHEN) CO LTD