CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based on and hereby claims priority under 35 USC 119 to Chinese Patent Application No. 201910298897.3, filed on Apr. 15, 2019, in the China National Intellectual Property Administration, the entire contents of which are incorporated herein by reference.

FIELD

The present disclosure relates to configuration, creation and management of a blockchain network by a computer device, and in particular to configuration, creation and management of a fabric network.

BACKGROUND

Over the past few years, blockchain technology has developed rapidly, which is benefit from success in bitcoin and crypto-currency. A blockchain (which is also known as distributed ledger) is essentially an append-only data structure, and is maintained by a group of nodes that do not fully trust each other.

All nodes in a blockchain network consent to a group of ordered blocks each including multiple transactions. as such, the blockchain may be regarded as a log of ordered transactions. Blockchains may be classified into multiple categories, for example, public blockchain, private blockchain, consortium blockchain, etc. The present disclosure focuses on the consortium blockchain such as hyperledger fabric network.

In the related art, it is difficult to maintain and monitor a runtime fabric network. It is also a tedious work to dynamically maintain the fabric network, for example, adding peer(s) and organization(s). Further, it is a challenge to test reasonability and to monitor performance and health condition of the network.

In addition, it is complex and time-consuming to configure the fabric network with a conventional method. The fabric network includes a large number of components, and therefore it is difficult for a developer to configure the fabric network. Besides, it is not easy for a novice to configure the fabric network even when the network is simple. Further, for the novice, there is high cost of learning the principle of configuration of the fabric network. For those skilled developers, creating a new fabric network is complex and error-prone due to tedious and heavy configuration work.

Therefore, the present disclosure aims to solve the above problems.

It should be noted that the above description of the background part is only for clearly and completely illustrating technical solutions of the present disclosure, to help those skilled in the art to understand the technical solutions. It should be not considered that the above technical solutions are well known by those skilled in the art only because the technical solutions are illustrated in the background part.

SUMMARY

Brief summary of embodiments of the present disclosure is given hereinafter, to provide basic understanding for certain aspects of the present disclosure. It should be understood that, the summary is not exhaustive summary of the present disclosure. The summary is not intended to determine key parts or important parts of the present disclosure, and is not intended to limit the scope of the present disclosure. An object of the summary is only to give some concepts of the present disclosure in a simplified form, as preamble of the detailed description later.

An object of the present disclosure is to provide a technology for testing a blockchain network. After a fabric network is created, the technology may easily update a configuration of the network and test reasonability of the network, and also automatically monitor health condition of the network. Further, if errors occur in transactions of the network, a notification can be made, and a recommendation for modifying the configuration of the network can be provided.

In order to achieve the object of present disclosure, a device for testing a blockchain network is provided in an aspect of the present disclosure. The device includes a processor. The processor is configured to: calculate a matching degree between a configuration of the blockchain network and a template configuration corresponding to application scenario of the blockchain network; calculate performance of the blockchain network; calculate a health degree for the blockchain network; and determine whether the blockchain network is in a stable state based on the matching degree, the performance and the health degree.

With the technology for testing a blockchain network provided in the present disclosure, after a fabric network is created, the configuration of the network can be easily updated and reasonability of the network can be tested. Further, health condition of the network can be automatically monitored. If errors occur in transactions of the network, a notification can be made, and a recommendation for modifying the configuration of the network can be provided.

