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

Block chain consensus algorithm testing method, device, computing device and storage medium

A blockchain and consensus technology, applied in the blockchain field, can solve problems such as failure to go online, unknown, high development costs, etc.

Active Publication Date: 2021-11-05
UNION MOBILE PAY
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, testing through the error injection method requires modifying the code logic in the node and customizing each node. Due to the custom development, the code reuse rate will be low and the development cost will be high. In addition, if the node that modifies the code logic is a programmer If you forget to turn off the node code switch, it is easy to test the code online and cause the online failure, or bring unknown risks online, which makes the maintenance cost high

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 chain consensus algorithm testing method, device, computing device and storage medium
  • Block chain consensus algorithm testing method, device, computing device and storage medium
  • Block chain consensus algorithm testing method, device, computing device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to solve the above problems, an embodiment of the present application provides a blockchain consensus algorithm testing method. In order to better understand the technical solution provided by the embodiment of the present application, here is a brief description of the basic principle of the solution:

[0031] Such as figure 2 As shown, an intermediate node is configured between node 1, node 2, node 3 and node 4, node 1 receives the consensus request sent by the client, that is, node 1 is the master node, and the intermediate node receives the consensus request sent by node 1 and It is parsed to obtain the request case and the destination IP (Internet Protocol Address, Internet Protocol) address, and the parsed request case is processed to obtain the test case set. Determine the destination IP (Internet Protocol Address, Internet Protocol) address of node 2 and node 3 through the intermediate node, transparently transmit the test case set to node 2 and node ...

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

This application discloses a blockchain consensus algorithm testing method, device, computing device, and storage medium, which relate to the blockchain field and are used to solve the problem of judging the blockchain by modifying the code of the blockchain master node or participating consensus nodes. The problem of the fault tolerance of the consensus algorithm. In this method, by configuring the intermediate nodes for the blockchain nodes, the test case sets are generated in the intermediate nodes without modifying the blockchain nodes, making the test simpler and easier to operate, and it can also ensure that there is no need to worry after the service is launched Whether the code has been modified. In addition, this method is less intrusive, has low learning costs, and can be applied to different types of blockchain consensus algorithm tests for different blockchains.

Description

technical field [0001] The present invention relates to the field of block chains, in particular to a block chain consensus algorithm testing method, device, computing device and storage medium. Background technique [0002] The blockchain consensus algorithm allows associated nodes to connect to work, and even if some member nodes fail, the work can still be carried out normally. This kind of fault tolerance is the main advantage of the blockchain, and there is a built-in redundancy margin for backup. In order to test the fault tolerance of the blockchain consensus algorithm, the usual practice is to modify the nodes to perform error injection testing, such as figure 1 As shown, the node that receives the consensus request message sent by the client is the master node, that is, node 4 is the master node of the blockchain, node 1 and node 2 are the nodes participating in the consensus, modify the code of the master node of the blockchain or the nodes participating in the co...

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): G06F11/36
CPCG06F11/3664G06F11/3684G06F11/3688
Inventor 余兴华殷舒刘胜吴锋海陈正徐加明
Owner UNION MOBILE PAY