CN110602234A - Block chain network node management method, device, equipment and storage medium - Google Patents

Block chain network node management method, device, equipment and storage medium Download PDF

Info

Publication number
CN110602234A
CN110602234A CN201910895198.7A CN201910895198A CN110602234A CN 110602234 A CN110602234 A CN 110602234A CN 201910895198 A CN201910895198 A CN 201910895198A CN 110602234 A CN110602234 A CN 110602234A
Authority
CN
China
Prior art keywords
node
information
configuration information
routing
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910895198.7A
Other languages
Chinese (zh)
Other versions
CN110602234B (en
Inventor
冯士乘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910895198.7A priority Critical patent/CN110602234B/en
Publication of CN110602234A publication Critical patent/CN110602234A/en
Application granted granted Critical
Publication of CN110602234B publication Critical patent/CN110602234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a block chain network node management method, a device, equipment and a storage medium, wherein the method comprises the following steps: when a node adding request is received, verifying the validity of the node information of the first node, and when the node information of the first node is valid information, acquiring the node information and node configuration information of each node in a block chain network corresponding to the specified block chain network identifier; generating node configuration information of a first node based on node information of each node in the block chain network, and sending the node configuration information of the first node to the first node; and adding the node information of the first node to the node configuration information of each node in the blockchain network to obtain first updated node configuration information of each node, and sending the first updated node configuration information of each node to the corresponding node in the blockchain network. By adopting the embodiment of the invention, the management efficiency and flexibility of the block chain network node can be improved, and the applicability is high.

Description

Block chain network node management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing a blockchain network node.
Background
The existing block chain network is completely decentralized, the control authority is in each block chain link point, namely each node has the control authority of the node, and no organization or node can uniformly manage the nodes in the block chain. However, when a node is added to or deleted from the blockchain network, the blockchain network is often unstable, and thus the working efficiency of the blockchain network is reduced and the applicability is poor.
Therefore, how to effectively manage the nodes in the blockchain network becomes an urgent problem to be solved.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for managing a node of a blockchain network, which can improve efficiency and flexibility of managing the node of the blockchain network, and have high applicability.
In a first aspect, an embodiment of the present invention provides a method for managing nodes in a blockchain network, where the method includes:
when a node adding request is received, acquiring node information of a first node and a specified block chain network identifier carried by the node adding request;
verifying the validity of the node information of the first node, and acquiring the node information and the node configuration information of each node in the block chain network corresponding to the specified block chain network identifier when the node information of the first node is valid information;
generating node configuration information of the first node based on node information of each node in the blockchain network, and sending the node configuration information of the first node to the first node;
and adding the node information of the first node to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, and sending the first updated node configuration information of each node to the corresponding node in the block chain network.
With reference to the first aspect, in a possible implementation manner, the verifying validity of the node information of the first node includes:
sending the node information of the first node to a consensus node in the block chain network, so that the consensus node verifies the node information of the first node and generates a signature confirmation message after the verification is passed;
and receiving a signature confirmation message sent by the consensus node, and determining the node information of the first node as valid information when the signature confirmation message meets a preset consensus strategy.
With reference to the first aspect, in one possible implementation, the method further includes:
when a node deletion request is received, acquiring node information of a second node carried by the node deletion request, and determining and deleting the second node from the block chain network based on the node information of the second node;
deleting the node information of the second node from the node configuration information of the other nodes except the second node in the blockchain network to obtain second updated node configuration information of the other nodes except the second node, and sending the second updated node configuration information of the other nodes except the second node to the corresponding node in the blockchain network.
With reference to the first aspect, in one possible implementation, the method further includes:
determining a first routing node connected with the second node and acquiring routing information and routing configuration information of the first routing node;
determining a third node from other nodes except the second node in the blockchain network, and adding the routing information of the first routing node to second updated node configuration information of the third node to obtain third updated node configuration information of the third node;
deleting the node information of the second node from the routing configuration information of the first routing node, and adding the node information of the third node to the routing configuration information of the first routing node to obtain first updated routing configuration information of the first routing node;
and sending the third updated node configuration information of the third node to the third node, sending the first updated routing configuration information of the first routing node to the first routing node, and sending the second updated node configuration information of other nodes except the second node and the third node in the blockchain network to corresponding nodes in the blockchain network.
With reference to the first aspect, in one possible implementation, the method further includes:
when any node in the block chain network is detected to be an invalid node, acquiring node information of the invalid node;
deleting the invalid node and deleting the node information of the invalid node from the node configuration information of the other nodes except the invalid node to obtain fourth updated node configuration information of the other nodes except the invalid node, and sending the fourth updated node configuration information of the other nodes except the invalid node to the corresponding node in the block chain network.
With reference to the first aspect, in a possible implementation manner, the node addition request carries a specified route identifier; the generating node configuration information of the first node based on the node information of each node in the blockchain network includes:
determining a second routing node based on the specified routing identifier, and acquiring routing information of the second routing node;
and determining a fourth node connected with the first node based on the routing information of the second routing node, and generating node configuration information of the first node based on the node information of the fourth node.
With reference to the first aspect, in a possible implementation manner, the node information includes communication protocol information, communication address information, node identification information, and node port information.
In a second aspect, an embodiment of the present invention provides a device for managing a blockchain network node, where the device for managing a blockchain network node includes:
the first acquisition module is used for acquiring the node information of the first node and the specified block chain network identifier carried by the node adding request when the node adding request is received;
a verification module, configured to verify validity of the node information of the first node, and obtain node information and node configuration information of each node in the blockchain network corresponding to the specified blockchain network identifier when the node information of the first node is valid information;
a first configuration module, configured to generate node configuration information of the first node based on node information of each node in the blockchain network, and send the node configuration information of the first node to the first node;
the first configuration module is configured to add the node information of the first node to the node configuration information of each node in the blockchain network to obtain first updated node configuration information of each node, and send the first updated node configuration information of each node to a corresponding node in the blockchain network.
With reference to the second aspect, in one possible implementation manner, the verification module includes:
a sending unit, configured to send the node information of the first node to a consensus node in the blockchain network, so that the consensus node verifies the node information of the first node and generates a signature confirmation message after the verification is passed;
and the receiving unit is used for receiving the signature confirmation message sent by the consensus node and determining the node information of the first node as valid information when the signature confirmation message meets a preset consensus strategy.
With reference to the second aspect, in a possible implementation manner, the device for managing a blockchain network node further includes:
the second obtaining module is further configured to, when receiving a node deletion request, obtain node information of a second node carried by the node deletion request, and determine and delete the second node from the block chain network based on the node information of the second node;
the second configuration module is further configured to delete the node information of the second node from the node configuration information of the other nodes except the second node in the blockchain network to obtain second updated node configuration information of the other nodes except the second node, and send the second updated node configuration information of the other nodes except the second node to a corresponding node in the blockchain network.
With reference to the second aspect, in a possible implementation manner, the device for managing a blockchain network node further includes a third configuration module, where the third configuration module further includes:
a determining unit, configured to determine a first routing node connected to the second node and obtain routing information and routing configuration information of the first routing node;
a first configuration unit, configured to determine a third node from other nodes in the blockchain network except the second node, and add the routing information of the first routing node to second updated node configuration information of the third node, to obtain third updated node configuration information of the third node;
a second configuration unit, configured to delete the node information of the second node from the route configuration information of the first routing node, and add the node information of the third node to the route configuration information of the first routing node, so as to obtain first updated route configuration information of the first routing node;
and a third configuration unit, configured to send third updated node configuration information of the third node to the third node, send first updated routing configuration information of the first routing node to the first routing node, and send second updated node configuration information of other nodes in the blockchain network except the second node and the third node to a corresponding node in the blockchain network.
With reference to the second aspect, in a possible implementation manner, the device for managing a blockchain network node further includes:
a third obtaining module, configured to obtain node information of an invalid node when it is detected that any node in the blockchain network is the invalid node;
a fourth configuration module, configured to delete the invalid node and delete the node information of the invalid node from the node configuration information of the other nodes except the invalid node to obtain fourth updated node configuration information of the other nodes except the invalid node, and send the fourth updated node configuration information of the other nodes except the invalid node to a corresponding node in the blockchain network.
With reference to the second aspect, in a possible implementation manner, the node addition request carries a specified route identifier; the first configuration module includes:
an obtaining unit, configured to determine a second routing node based on the specified routing identifier, and obtain routing information of the second routing node;
a fifth configuration unit, configured to determine a fourth node connected to the first node based on the routing information of the second routing node, and generate node configuration information of the first node based on node information of the fourth node.
With reference to the second aspect, in a possible implementation manner, the node information includes communication protocol information, communication address information, node identification information, and node port information.
In a third aspect, an embodiment of the present invention provides an apparatus, which includes a processor and a memory, where the processor and the memory are connected to each other. The memory is configured to store a computer program that supports the terminal device to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In the embodiment of the invention, the node information carried in the node adding request is validated, so that the accuracy of the node management of the block chain network can be improved, and the stability of the work of the block chain network can be maintained. The node configuration information of the first node is generated based on the node information of each node in the block chain network, and the node information of the first node is added to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, so that all nodes and the first node in the block chain network can be configured based on the first updated node configuration information and the configuration information of the first node, the first node is added to the block chain network, and the efficiency of adding a new node to the block chain network is improved. In addition, when the second node needs to be deleted from the blockchain network, each node except the second node in the blockchain network can be reconfigured again by updating the node configuration information of other nodes except the second node in the blockchain network, so that the purpose of deleting the second node from the blockchain network is achieved, and the flexibility of managing the blockchain network nodes is further improved. Meanwhile, when the second node is deleted from the blockchain network, the routing information of the routing node connected with the second node and the node information of other nodes connected with the second node based on the routing node can be transited to other nodes except the second node in the blockchain network, so that the normal node structure and the working state of the blockchain network are maintained, and the applicability is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block chain network node structure diagram according to an embodiment of the present invention;
fig. 2 is a flowchart of a block chain network node management method according to an embodiment of the present invention;
fig. 3 is a schematic view of a scenario for generating node configuration information according to an embodiment of the present invention;
fig. 4 is a schematic view of a scenario for updating node configuration information according to an embodiment of the present invention;
fig. 5 is another flowchart of a method for managing nodes in a blockchain network according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a scenario in which a node is deleted from a blockchain network according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a node management apparatus of a blockchain network according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method provided by the embodiment of the invention (for convenience of description, the method provided by the embodiment of the invention can be abbreviated as the method) can be applied to each block chain network, and the management efficiency of the block chain network nodes can be improved. Referring to fig. 1, fig. 1 is a block chain network node structure diagram according to an embodiment of the present invention. In fig. 1, the blockchain network 20 may be a blockchain network applied in any field, and may be determined according to an actual application scenario, which is not limited herein. The node 10b, the node 10c, the node 10d, the node 10e, and the node 10f are part of nodes in the blockchain network 20, and each node is connected to other nodes in the blockchain network 20 based on the node configuration information of the node to implement functions such as data transmission. In fig. 1, the node 10a is a new node to be added to the blockchain network 20, and before the node 10a is added to the blockchain network 20, the node configuration information of the node 10a may be generated based on the node information of the nodes (such as the node information of the node 10b, the node 10c, the node 10d, the node 10e, and the node 10 f) connected to the node 10a in the blockchain network 20. Meanwhile, the node information of the node 10a may be added to the node configuration information of each node connected thereto (e.g., the node configuration information of the nodes 10b, 10c, 10d, 10e, and 10 f) to update the node configuration information of each node. The node 10a is configured based on the node configuration information of the node 10a, and each node is configured based on the updated node configuration information of each node, so that the node 10a is connected with each node, and the purpose of adding the node 10a to the blockchain network 20 is achieved.
Referring to fig. 2, fig. 2 is a flow chart illustrating a method for managing nodes of a blockchain network according to an embodiment of the present invention. As shown in fig. 2, the method for managing a node of a blockchain network according to an embodiment of the present invention may include the following steps S101 to S104.
S101, when a node adding request is received, node information of a first node and a specified block chain network identifier carried by the node adding request are obtained.
In some feasible embodiments, after receiving the node addition request, node information of the first node carried in the node addition request may be obtained, where the node information of the first node includes a communication information protocol used by the first node to communicate with other nodes in the blockchain network, a node identifier of the first node, communication address information of the first node, and node port information of the first node, where the node port information includes a port type, a port connection mode, and the like, and may be specifically determined according to an actual application scenario, which is not limited herein. It should be particularly noted that the node addition request may be a request triggered when a device such as a server and a physical machine corresponding to the first node is accessed into the blockchain network, or may be a request triggered when the device such as the server and the physical machine corresponding to the first node is configured for the first node after being accessed into the blockchain network, and a specific triggering manner of the node addition request may also be determined based on an actual application scenario, which is not limited herein. It should be noted that, after the device such as the server and the physical machine corresponding to the first node is accessed to the blockchain network, since the first node and each node in the blockchain network are not configured, the first node is only accessed to the blockchain network, but does not have any role in the blockchain network.
Optionally, when there are multiple blockchain networks in an application scenario, the node addition request may carry a specified blockchain network identifier when triggered, so as to determine, based on the specified blockchain network identifier carried in the node addition request, a corresponding blockchain network to which the first node is to access. The specified network identifier of the block chain may be a marking information for marking the network of the block chain, which is obtained by combining one or more of numbers, letters, chinese characters, and special characters, and may be determined according to an actual application scenario, which is not limited herein.
S102, validity verification is conducted on the node information of the first node, and when the node information of the first node is valid information, the node information and the node configuration information of each node in the block chain network corresponding to the specified block chain network identification are obtained.
In some possible embodiments, after the node information of the first node carried in the node addition request is obtained, validity verification may be performed on the node information of the first node. Optionally, the node information of the first node may be sent to a consensus node in the blockchain network corresponding to the specified blockchain network identifier carried in the node addition request, so that the consensus node in the blockchain network verifies the node information of the first node based on a preset verification manner. And generating a signature confirmation message after any consensus node in the block chain network passes the verification of the node information of the first node. At this time, signature confirmation messages sent by a plurality of consensus nodes in the block chain network may be received, and when each received signature confirmation message satisfies a preset consensus policy, the node information of the first node may be determined to be valid information. The preset verification mode may be to verify whether the device number and the device type corresponding to the first node carried in the node information are preset devices or preset device types, or whether the node information is legal information, and the specific preset verification mode may be determined based on an actual application scenario, which is not limited herein.
The preset consensus strategy may be that the node information of the first node is considered to be valid information after a certain proportion of consensus nodes in all the consensus nodes in the block chain network verify the node information of the first node, for example, the node information of the first node is considered to be valid information after a signature confirmation message sent by ninety-five percent of the consensus nodes is received. Or, the preset consensus strategy may be that when receiving a signature confirmation message sent by a plurality of consensus nodes in the blockchain network, determining whether the consensus node sending the signature confirmation message belongs to a preset consensus node based on a signature in the signature confirmation message, and considering the node information of the first node as valid information when the consensus node sending the signature confirmation message is the preset consensus node and/or the consensus node sending the signature confirmation message exceeds all the consensus nodes in the blockchain network by a certain ratio. Therefore, the preset consensus strategy can also be determined based on actual application scenarios, and is not limited herein.
In some possible embodiments, after determining that the node information of the first node is valid information, node information and node configuration information of each node in the blockchain network may be acquired, so as to configure a connection manner, a connection relationship, and the like of the first node and each node in the blockchain network to add the first node to the blockchain network.
S103, generating node configuration information of the first node based on the node information of each node in the block chain network, and sending the node configuration information of the first node to the first node.
In some possible embodiments, after obtaining the node information of each node in the blockchain network, the node configuration information of the first node may be generated based on the node information of each node in the blockchain network, where the node information of each node in the blockchain network also includes a communication information protocol used for communicating with other nodes in the blockchain network, a node identifier of the first node, communication address information of the first node, and node port information of the first node, where the node port information includes a port type, a port connection manner, and the like, and may be specifically determined according to an actual application scenario, which is not limited herein. After the node configuration information of the first node is generated, the node configuration information of the first node may be sent to the runtime environment, the runtime totality, or the node management platform of the first node based on the communication address information and/or the node identifier of the first node, so that the runtime environment, the runtime totality, or the node management platform of the first node configures the first node. Optionally, when the first node operates based on the container, the node configuration information of the first node may be sent to the information forwarding platform, and the information forwarding platform obtains the communication address information of the first node and the node identifier of the first node, which are included in the node configuration information of the first node, so that the node configuration information of the first node is sent to the container, the device, the physical machine and the like corresponding to the first node based on the communication address information of the first node and/or the node identifier of the first node, and the first node is configured according to the node configuration information of the first node.
Specifically, referring to fig. 3, fig. 3 is a schematic view of a scenario for generating node configuration information according to an embodiment of the present invention. As shown in fig. 3, it is assumed that the blockchain network includes three nodes, node a, node B and node C, and node D is the first node, i.e., node a is the node to be added to the blockchain network. After the node information a of the node a, the node information B of the node B, and the node information C of the node C are obtained, the node configuration information of the node D may be generated based on the node information a, the node information B, and the node information C, where the node configuration information of the node D may be used to configure a communication mode, a port connection mode, establish a communication address connection, and the like between the node D and the node a, the node C, and may be specifically determined based on specific information content and an actual application scenario in actual node information, which is not limited herein. Therefore, after the node configuration information of the node D is generated based on the above implementation, the node configuration information of the node D may be sent to an operation tool of the node D, such as a docker container, a node management platform corresponding to the node D, and the like, to complete configuration of the node D.
In some possible embodiments, when the node addition request carries a specified routing identifier, a specified routing node may be determined from the blockchain network based on the specified routing identifier carried in the node addition request and route information of the specified routing node is obtained, and then a node (for the purpose of description, hereinafter referred to as a fourth node) connected to the target node based on the specified routing node may be determined based on the route information. That is, if the first node is added to the blockchain network, the first node is connected to the first node through the designated routing node. At this time, the routing information of the designated routing node and the node information of the fourth node may be used to generate the node configuration information of the first node, and the first node may be configured to be added to the blockchain network based on the node configuration information of the first node. The fourth node may be any service node, contract node, and the like connected to the first node based on the routing node, and may be specifically determined based on an actual application scenario, which is not limited herein.
S104, adding the node information of the first node to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, and sending the first updated node configuration information of each node to the corresponding node in the block chain network.
In some possible embodiments, while the node configuration information of the first node is generated, the node information of the first node (the communication information protocol of the first node, the node identifier of the first node, the communication address information of the first node, and the node port information of the first node) may be added to the node configuration information of each node in the blockchain network, so as to update the node configuration information of each node, and obtain updated node configuration information of each node in the blockchain network. Therefore, the node configuration information of each node in the block chain network can be sent to the operating environment, the operating tool or the node management platform corresponding to each node, so that the operating environment, the operating tool or the node management platform of each node configures the first node. Optionally, when each node in the block chain network operates based on a container (each node corresponds to one container), the updated node configuration information of each node may be sent to the information forwarding platform, and the information forwarding platform obtains the communication address information of each node and the node identifier of each node included in each updated node configuration information, so that the updated node configuration information of each node is sent to the container, the device, the physical machine and the like corresponding to each node based on the communication address information of each node and/or the node identifier of each node to configure each node.
Referring to fig. 4, fig. 4 is a schematic view of a scenario for updating node configuration information according to an embodiment of the present invention. As shown in fig. 4, it is assumed that the blockchain network includes three nodes, i.e., node a, node B, and node C, and node D is the first node, i.e., node a is the node to be added to the blockchain network. After the node configuration information a of the node a, the node configuration information B of the node B, and the node configuration information C of the node C are acquired, the node information of the node D may be added to the node configuration information a, the node configuration information B, and the node configuration information C to update the node configuration information a, the node configuration information B, and the node configuration information C. The first updated configuration information of any one of the three nodes, node a, node B, and node C, may be used to configure a communication mode and a port connection mode between the corresponding node and node D, establish a communication address connection, and the like, and may be determined based on the actual node configuration information, specific information content in the node information of node D, and an actual application scenario, which is not limited herein. Therefore, after obtaining the first updated configuration information of the three nodes, i.e., node a, node B, and node C, based on the implementation manner, the first updated configuration information of the three nodes, i.e., node a, node B, and node C, may be sent to node a, node B, and node C (a running tool of the node, such as a docker container, a node management platform corresponding to the node, and the like) respectively to complete the configuration of node a, node B, and node C.
In some possible embodiments, when the node addition request carries a specified routing identifier, and the node configuration information of the first node is generated based on the routing information of the specified routing node and the node information of the fourth node, it is further required to add the node information of the first node to the routing configuration information of the specified routing node to obtain updated routing configuration information of the specified routing node, and configure the specified routing node based on the updated routing configuration information. Based on the implementation manner, the first node is configured based on the node configuration information of the first node, and meanwhile, the first node is connected with the nodes in the blockchain network based on the specified routing node, so that the first node and the specified routing node are connected with each other, and the purpose that the first node is connected with the fourth node through the specified routing node in the blockchain network is achieved.
In the embodiment of the invention, the node information carried in the node adding request is validated, so that the accuracy of the node management of the block chain network can be improved, and the stability of the work of the block chain network can be maintained. The node configuration information of the first node is generated based on the node information of each node in the block chain network, the node information of the first node is added to the node configuration information of each node in the block chain network to obtain the first updated node configuration information of each node, so that all the nodes and the first node in the block chain network can be configured based on the first updated node configuration information and the configuration information of the first node, the first node is added to the block chain network, the efficiency of adding the new node to the block chain network is improved, and the applicability is high.
Referring to fig. 5, fig. 5 is another flowchart illustrating a method for managing nodes of a blockchain network according to an embodiment of the present invention. In fig. 5, the method for managing a blockchain network node according to an embodiment of the present invention includes steps S201 to S206.
S201, when a node adding request is received, node information of a first node and a specified block chain network identifier carried by the node adding request are obtained.
S202, validity verification is carried out on the node information of the first node, and when the node information of the first node is valid information, the node information and the node configuration information of each node in the block chain network corresponding to the specified block chain network identifier are obtained.
S203, generating node configuration information of the first node based on the node information of each node in the block chain network, and sending the node configuration information of the first node to the first node.
S204, adding the node information of the first node to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, and sending the first updated node configuration information of each node to the corresponding node in the block chain network.
In some possible embodiments, the specific implementation of the steps S201 to S204 may refer to the implementation shown in steps S101 to S104 in fig. 2, and will not be described herein again.
S205, when the node deletion request is received, the node information of the second node carried by the node deletion request is obtained, and the second node is determined and deleted from the block chain network based on the node information of the second node.
In some feasible embodiments, after receiving the node deletion request, node information of the second node carried in the node deletion request may be acquired, where the node information of the first node includes a communication information protocol used by the second node to communicate with other nodes in the blockchain network, a node identifier of the second node, communication address information of the second node, and node port information of the second node, where the node port information includes a port type, a port connection mode, and the like, and may be specifically determined according to an actual application scenario, which is not limited herein. It should be particularly noted that the node deletion request may be a request triggered when a device such as a server and a physical machine corresponding to the second node is removed from the blockchain network, and a specific triggering manner may also be determined based on an actual application scenario, which is not limited herein. Therefore, after receiving the node deletion request, the second node may be determined from the blockchain network based on the node information of the second node carried in the node deletion request, and the second node may be deleted from the blockchain network. Optionally, the node deletion request may further carry a specified node identifier, and after the node deletion request is received, the specified node identifier carried in the node deletion request may be acquired to determine, from the blockchain network, a second node marked by the specified node identifier, and delete the second node from the blockchain network.
S206, deleting the node information of the second node from the node configuration information of other nodes except the second node in the block chain network to obtain second updated node configuration information of other nodes except the second node. And sending the second updated node configuration information of other nodes except the second node to the corresponding nodes in the block chain network.
In some possible embodiments, after the device such as the server and the physical machine corresponding to the second node is removed from the blockchain network, when each node in the blockchain network is involved in information communication and data transmission, since the node configuration information of other nodes in the blockchain network except the second node also stores the node information of the second node, an error may occur in the operation of the blockchain network. Therefore, after the second node is deleted from the blockchain network, the other nodes except the second node in the blockchain network need to be reconfigured so that the blockchain network can work normally after the second node is deleted.
Specifically, the node information of the second node may be deleted from the node configuration information of the other nodes except the second node in the blockchain network to obtain updated node configuration information of the other nodes except the second node, and the updated node configuration information of the other nodes except the second node is sent to the corresponding node (an operation tool of the node, such as a docker container, a node management platform corresponding to the node, and the like) in the blockchain network, so as to update the connection state, the connection mode, and the like of the other nodes except the second node in the blockchain network again based on the updated node configuration information, so as to eliminate a node configuration error caused by the node information of the second node. Optionally, when each node in the blockchain network operates based on a container, the node configuration information of the other nodes except the second node may be sent to the information forwarding platform, and the information forwarding platform acquires the communication address information and the node identifier of the other nodes except the second node, which are included in the node configuration information of the other nodes except the second node, so that the node configuration information of the other nodes except the second node is sent to containers, devices, physical machines and the like corresponding to the other nodes except the second node based on the communication address information and/or the node identifier of the other nodes except the second node, and the other nodes except the second node are configured according to the node configuration information of the other nodes except the second node.
Referring to fig. 6, fig. 6 is a schematic view of a scenario for deleting a node from a blockchain network according to an embodiment of the present invention. In fig. 6, it is assumed that the blockchain network includes a node a, a node B, a node C, and a node D, and at this time, if the node D is to be deleted from the blockchain network, the node information D of the node D may be deleted from the node configuration information a of the node a, the node configuration information B of the node B, and the node configuration information C of the node C, so as to obtain updated node configuration information a, updated node configuration information B, and updated node configuration information C. And then the updated node configuration information B of the node a, the updated node configuration information B of the node B, and the updated node configuration information C of the node C are respectively sent to the node a, the node B, and the node C (an operation tool of the node, such as a docker container, a node management platform corresponding to the node, and the like) to reconfigure other nodes (the node a, the node B, and the node C) in the block chain network except the node D.
In some possible embodiments, when the second node is connected to other nodes (hereinafter referred to as third nodes including but not limited to service nodes and contract nodes) in the blockchain network based on the routing node (hereinafter referred to as first routing node for description of the aspect), the third node connected to the second node based on the first routing node may be connected to any one of the remaining nodes in the blockchain network through the first routing node when the second node is deleted from the blockchain network, so as to keep the work of the blockchain network normally performed. The first routing node connected with the second node can be determined, the routing information and the routing configuration information of the first routing node are obtained, and a third node is determined from other nodes except the second node in the block chain network. The third node may be one or more nodes closest to the second node in the blockchain network, may also be one or more nodes not connected with the routing node or less connected with the routing node in the blockchain network, and may also be a standby node for receiving the transition routing information in the blockchain network, which may be specifically determined based on an actual application scenario, and is not limited herein.
After the second node is deleted from the blockchain network, the routing information of the first routing node may be added to the node configuration information of the third node, so as to obtain third updated node configuration information of the third node. Meanwhile, the node information of the second node may be deleted from the routing configuration information of the first routing node, and the node information of the third node is added to the routing configuration information of the first routing node, so as to obtain the first updated routing configuration information of the first routing node. To this end, the third updated node configuration information of the third node may be sent to the third node (an operation tool of the node, such as a docker container, a node management platform corresponding to the node, etc.), the first updated routing configuration information of the first routing node is sent to the first routing node (an operation tool of the node, such as a docker container, a node management platform corresponding to the node, etc.), the second updated node configuration information of other nodes in the blockchain network except the second node and the third node is sent to the corresponding node in the blockchain network, so as to migrate the routing information related to the second node to the third node in the blockchain network, and maintain the normal operation of the blockchain network.
In some feasible embodiments, each node in the blockchain network may also be detected in real time, and when it is detected that any node in the blockchain network is an invalid node, the node information of the invalid node is obtained, the invalid node is deleted, and the node information of the invalid node is deleted from the node configuration information of other nodes except the invalid node, so as to obtain fourth updated node configuration information of other nodes except the invalid node, and the fourth updated node configuration information of other nodes except the invalid node is sent to the corresponding node in the blockchain network. Optionally, when the real-time detection is performed on each node in the block chain network, the service life of the device, the physical machine, and the like corresponding to each node may be detected, and if the service life exceeds the preset service life, the corresponding node may be determined to be an invalid node. Or, when it is detected that each node cannot work normally, that is, when a device, a physical machine, or the like corresponding to the node fails, the node corresponding to the failed device, physical machine, or the like may be determined as an invalid node. In addition, the network state of each node can be detected, when the network condition cannot meet basic data transmission and information communication, the corresponding node can be determined to be an invalid node, and a specific detection mode can be determined based on an actual application scene, which is not limited herein.
In the embodiment of the invention, the node information carried in the node adding request is validated, so that the accuracy of the node management of the block chain network can be improved, and the stability of the work of the block chain network can be maintained. The node configuration information of the first node is generated based on the node information of each node in the block chain network, and the node information of the first node is added to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, so that all nodes and the first node in the block chain network can be configured based on the first updated node configuration information and the configuration information of the first node, the first node is added to the block chain network, and the efficiency of adding a new node to the block chain network is improved. In addition, when the second node needs to be deleted from the blockchain network, each node except the second node in the blockchain network can be reconfigured again by updating the node configuration information of other nodes except the second node in the blockchain network, so that the purpose of deleting the second node from the blockchain network is achieved, and the flexibility of managing the blockchain network nodes is further improved. Meanwhile, when the second node is deleted from the blockchain network, the routing information of the routing node connected with the second node and the node information of other nodes connected with the second node based on the routing node can be transited to other nodes except the second node in the blockchain network, so that the normal node structure and the working state of the blockchain network are maintained, and the applicability is higher.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a node management apparatus of a blockchain network according to an embodiment of the present invention. The block chain network node management device 1 provided by the embodiment of the invention comprises:
a first obtaining module 11, configured to obtain, when a node addition request is received, node information of a first node and a specified blockchain network identifier that are carried in the node addition request;
a verification module 12, configured to perform validity verification on the node information of the first node, and obtain node information and node configuration information of each node in the blockchain network corresponding to the specified blockchain network identifier when the node information of the first node is valid information;
a first configuration module 13, configured to generate node configuration information of the first node based on node information of each node in the blockchain network, and send the node configuration information of the first node to the first node;
the first configuration module 13 is configured to add the node information of the first node to the node configuration information of each node in the blockchain network to obtain first updated node configuration information of each node, and send the first updated node configuration information of each node to a corresponding node in the blockchain network.
In some possible embodiments, the verification module 12 includes:
a sending unit 121, configured to send the node information of the first node to a consensus node in the blockchain network, so that the consensus node verifies the node information of the first node and generates a signature confirmation message after the verification passes;
a receiving unit 122, configured to receive the signature confirmation message sent by the consensus node, and determine that the node information of the first node is valid information when the signature confirmation message satisfies a preset consensus policy.
In some possible embodiments, the block chain network node management apparatus 1 further includes:
a second obtaining module 14, further configured to, when receiving a node deletion request, obtain node information of a second node carried in the node deletion request, and determine and delete the second node from the blockchain network based on the node information of the second node;
the second configuration module 15 is further configured to delete the node information of the second node from the node configuration information of the other nodes except the second node in the blockchain network to obtain second updated node configuration information of the other nodes except the second node, and send the second updated node configuration information of the other nodes except the second node to a corresponding node in the blockchain network.
In some possible embodiments, the block chain network node management apparatus 1 further includes a third configuration module 16, and the third configuration module 16 further includes:
a determining unit 161, configured to determine a first routing node connected to the second node and obtain routing information and routing configuration information of the first routing node;
a first configuration unit 162, configured to determine a third node from other nodes in the blockchain network except the second node, and add the routing information of the first routing node to second updated node configuration information of the third node, to obtain third updated node configuration information of the third node;
a second configuration unit 163, further configured to delete the node information of the second node from the routing configuration information of the first routing node, and add the node information of the third node to the routing configuration information of the first routing node, so as to obtain a first updated routing configuration information of the first routing node;
the third configuration unit 164 is further configured to send third updated node configuration information of the third node to the third node, send first updated routing configuration information of the first routing node to the first routing node, and send second updated node configuration information of other nodes in the blockchain network except the second node and the third node to corresponding nodes in the blockchain network.
In some possible embodiments, the block chain network node management apparatus 1 further includes:
a third obtaining module 17, configured to obtain node information of an invalid node when it is detected that any node in the block chain network is the invalid node;
the fourth configuration module 18 is further configured to delete the invalid node and delete the node information of the invalid node from the node configuration information of the other nodes except the invalid node to obtain fourth updated node configuration information of the other nodes except the invalid node, and send the fourth updated node configuration information of the other nodes except the invalid node to a corresponding node in the blockchain network.
In some possible embodiments, the node addition request carries a specified route identifier; the first configuration module 13 includes:
an obtaining unit 131, configured to determine a second routing node based on the specified routing identifier, and obtain routing information of the second routing node;
a fifth configuration unit 132, configured to identify a fourth node connected to the first node based on the routing information of the second routing node, and generate node configuration information of the first node based on the node information of the fourth node.
In some possible embodiments, the node information includes communication protocol information, communication address information, node identification information, and node port information.
In a specific implementation, the block chain network node management apparatus 1 may execute, through each built-in functional module thereof, the implementation manners provided in each step in fig. 2 and/or fig. 5, which may be specifically referred to the implementation manners provided in each step, and details are not described herein again.
In the embodiment of the invention, the node information carried in the node adding request is validated, so that the accuracy of the node management of the block chain network can be improved, and the stability of the work of the block chain network can be maintained. The node configuration information of the first node is generated based on the node information of each node in the block chain network, and the node information of the first node is added to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, so that all nodes and the first node in the block chain network can be configured based on the first updated node configuration information and the configuration information of the first node, the first node is added to the block chain network, and the efficiency of adding a new node to the block chain network is improved. In addition, when the second node needs to be deleted from the blockchain network, each node except the second node in the blockchain network can be reconfigured again by updating the node configuration information of other nodes except the second node in the blockchain network, so that the purpose of deleting the second node from the blockchain network is achieved, and the flexibility of managing the blockchain network nodes is further improved. Meanwhile, when the second node is deleted from the blockchain network, the routing information of the routing node connected with the second node and the node information of other nodes connected with the second node based on the routing node can be transited to other nodes except the second node in the blockchain network, so that the normal node structure and the working state of the blockchain network are maintained, and the applicability is higher.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention. As shown in fig. 8, the apparatus 1000 in the present embodiment may include: the processor 1001, the network interface 1004, and the memory 1005, and the apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 8, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the device 1000 shown in fig. 8, the network interface 1004 may provide network communication functions; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
when a node adding request is received, acquiring node information of a first node and a specified block chain network identifier carried by the node adding request;
verifying the validity of the node information of the first node, and acquiring the node information and the node configuration information of each node in the block chain network corresponding to the specified block chain network identifier when the node information of the first node is valid information;
generating node configuration information of the first node based on node information of each node in the blockchain network, and sending the node configuration information of the first node to the first node;
and adding the node information of the first node to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, and sending the first updated node configuration information of each node to the corresponding node in the block chain network.
In some possible embodiments, the processor 1001 is configured to:
sending the node information of the first node to a consensus node in the block chain network, so that the consensus node verifies the node information of the first node and generates a signature confirmation message after the verification is passed;
and receiving a signature confirmation message sent by the consensus node, and determining the node information of the first node as valid information when the signature confirmation message meets a preset consensus strategy.
In some possible embodiments, the processor 1001 is further configured to:
when a node deletion request is received, acquiring node information of a second node carried by the node deletion request, and determining and deleting the second node from the block chain network based on the node information of the second node;
deleting the node information of the second node from the node configuration information of the other nodes except the second node in the blockchain network to obtain second updated node configuration information of the other nodes except the second node, and sending the second updated node configuration information of the other nodes except the second node to the corresponding node in the blockchain network.
In some possible embodiments, the processor 1001 is further configured to:
determining a first routing node connected with the second node and acquiring routing information and routing configuration information of the first routing node;
determining a third node from other nodes except the second node in the blockchain network, and adding the routing information of the first routing node to second updated node configuration information of the third node to obtain third updated node configuration information of the third node;
deleting the node information of the second node from the routing configuration information of the first routing node, and adding the node information of the third node to the routing configuration information of the first routing node to obtain first updated routing configuration information of the first routing node;
and sending the third updated node configuration information of the third node to the third node, sending the first updated routing configuration information of the first routing node to the first routing node, and sending the second updated node configuration information of other nodes except the second node and the third node in the blockchain network to corresponding nodes in the blockchain network.
In some possible embodiments, the processor 1001 is further configured to:
when any node in the block chain network is detected to be an invalid node, acquiring node information of the invalid node;
deleting the invalid node and deleting the node information of the invalid node from the node configuration information of the other nodes except the invalid node to obtain fourth updated node configuration information of the other nodes except the invalid node, and sending the fourth updated node configuration information of the other nodes except the invalid node to the corresponding node in the block chain network.
In some possible embodiments, the node addition request carries a specified route identifier; the processor 1001 is configured to:
determining a second routing node based on the specified routing identifier, and acquiring routing information of the second routing node;
and determining a fourth node connected with the first node based on the routing information of the second routing node, and generating node configuration information of the first node based on the node information of the fourth node.
In some possible embodiments, the node information includes communication protocol information, communication address information, node identification information, and node port information.
It should be understood that in some possible embodiments, the processor 1001 may be a Central Processing Unit (CPU), and the processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In a specific implementation, the device 1000 may execute, through each built-in functional module thereof, the implementation manners provided in each step in fig. 2 and/or fig. 5, which may specifically refer to the implementation manners provided in each step, and are not described herein again.
In the embodiment of the invention, the node information carried in the node adding request is validated, so that the accuracy of the node management of the block chain network can be improved, and the stability of the work of the block chain network can be maintained. The node configuration information of the first node is generated based on the node information of each node in the block chain network, and the node information of the first node is added to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, so that all nodes and the first node in the block chain network can be configured based on the first updated node configuration information and the configuration information of the first node, the first node is added to the block chain network, and the efficiency of adding a new node to the block chain network is improved. In addition, when the second node needs to be deleted from the blockchain network, each node except the second node in the blockchain network can be reconfigured again by updating the node configuration information of other nodes except the second node in the blockchain network, so that the purpose of deleting the second node from the blockchain network is achieved, and the flexibility of managing the blockchain network nodes is further improved. Meanwhile, when the second node is deleted from the blockchain network, the routing information of the routing node connected with the second node and the node information of other nodes connected with the second node based on the routing node can be transited to other nodes except the second node in the blockchain network, so that the normal node structure and the working state of the blockchain network are maintained, and the applicability is higher.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and is executed by a processor to implement the method provided in each step in fig. 2 and/or fig. 5, which may specifically refer to the implementation manner provided in each step, and is not described herein again.
The computer readable storage medium may be an internal storage unit of the task processing device provided in any of the foregoing embodiments, for example, a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. The computer readable storage medium may further include a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), and the like. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", and the like in the claims, in the description and in the drawings of the present invention are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method of block chain network node management, the method comprising:
when a node adding request is received, acquiring node information of a first node and a specified block chain network identifier carried by the node adding request;
verifying the validity of the node information of the first node, and acquiring the node information and the node configuration information of each node in the block chain network corresponding to the specified block chain network identifier when the node information of the first node is valid information;
generating node configuration information of the first node based on node information of each node in the block chain network, and sending the node configuration information of the first node to the first node;
and adding the node information of the first node to the node configuration information of each node in the block chain network to obtain first updated node configuration information of each node, and sending the first updated node configuration information of each node to the corresponding node in the block chain network.
2. The method of claim 1, wherein the validating the node information of the first node comprises:
sending the node information of the first node to a consensus node in the block chain network, so that the consensus node verifies the node information of the first node and generates a signature confirmation message after the verification is passed;
and receiving a signature confirmation message sent by the consensus node, and determining the node information of the first node as effective information when the signature confirmation message meets a preset consensus strategy.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
when a node deletion request is received, acquiring node information of a second node carried by the node deletion request, and determining and deleting the second node from the block chain network based on the node information of the second node;
deleting the node information of the second node from the node configuration information of the other nodes except the second node in the block chain network to obtain second updated node configuration information of the other nodes except the second node, and sending the second updated node configuration information of the other nodes except the second node to the corresponding node in the block chain network.
4. The method of claim 3, further comprising:
determining a first routing node connected with the second node and acquiring routing information and routing configuration information of the first routing node;
determining a third node from other nodes except the second node in the block chain network, and adding the routing information of the first routing node to second updated node configuration information of the third node to obtain third updated node configuration information of the third node;
deleting the node information of the second node from the routing configuration information of the first routing node, and adding the node information of the third node to the routing configuration information of the first routing node to obtain first updated routing configuration information of the first routing node;
and sending third updated node configuration information of the third node to the third node, sending first updated routing configuration information of the first routing node to the first routing node, and sending second updated node configuration information of other nodes except the second node and the third node in the block chain network to corresponding nodes in the block chain network.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
when any node in the block chain network is detected to be an invalid node, acquiring node information of the invalid node;
deleting the invalid node and deleting the node information of the invalid node from the node configuration information of the other nodes except the invalid node to obtain fourth updated node configuration information of the other nodes except the invalid node, and sending the fourth updated node configuration information of the other nodes except the invalid node to the corresponding node in the block chain network.
6. The method of claim 1, wherein the node addition request carries a specified route identifier; the generating node configuration information of the first node based on the node information of each node in the block chain network comprises:
determining a second routing node based on the designated routing identifier, and acquiring routing information of the second routing node;
and determining a fourth node connected with the first node based on the routing information of the second routing node, and generating node configuration information of the first node based on the node information of the fourth node.
7. The method according to any one of claims 1 to 6, wherein the node information includes communication protocol information, communication address information, node identification information, and node port information.
8. An apparatus for block chain network node management, the apparatus comprising:
the first acquisition module is used for acquiring node information of a first node and a specified block chain network identifier carried by a node addition request when the node addition request is received;
a verification module, configured to verify validity of the node information of the first node, and obtain node information and node configuration information of each node in the blockchain network corresponding to the specified blockchain network identifier when the node information of the first node is valid information;
a first configuration module, configured to generate node configuration information of the first node based on node information of each node in the block chain network, and send the node configuration information of the first node to the first node;
the first configuration module is configured to add the node information of the first node to the node configuration information of each node in the blockchain network to obtain first updated node configuration information of each node, and send the first updated node configuration information of each node to a corresponding node in the blockchain network.
9. A device comprising a processor and a memory, the processor and memory interconnected;
the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1 to 7.
CN201910895198.7A 2019-09-20 2019-09-20 Block chain network node management method, device, equipment and storage medium Active CN110602234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910895198.7A CN110602234B (en) 2019-09-20 2019-09-20 Block chain network node management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910895198.7A CN110602234B (en) 2019-09-20 2019-09-20 Block chain network node management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110602234A true CN110602234A (en) 2019-12-20
CN110602234B CN110602234B (en) 2021-10-26

Family

ID=68862021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910895198.7A Active CN110602234B (en) 2019-09-20 2019-09-20 Block chain network node management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110602234B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783133A (en) * 2020-06-02 2020-10-16 广东科学技术职业学院 Network resource management method based on block chain technology
CN112231741A (en) * 2020-12-14 2021-01-15 腾讯科技(深圳)有限公司 Data processing method, device, medium and electronic equipment based on block chain system
CN113824738A (en) * 2021-11-23 2021-12-21 南京金宁汇科技有限公司 Method and system for node communication management in block chain

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108390872A (en) * 2018-02-09 2018-08-10 北京京东尚科信息技术有限公司 Certificate management method, device, medium and electronic equipment
CN108683539A (en) * 2018-05-21 2018-10-19 腾讯科技(深圳)有限公司 Management method, device, medium and the electronic equipment of block chain network
CN108696358A (en) * 2017-04-06 2018-10-23 中国移动通信有限公司研究院 Management method, device, readable storage medium storing program for executing and the service terminal of digital certificate
CN108965469A (en) * 2018-08-16 2018-12-07 北京京东尚科信息技术有限公司 Block chain network member dynamic management approach, device, equipment and storage medium
CN109033405A (en) * 2018-08-03 2018-12-18 华为技术有限公司 Safeguard method and apparatus, server and the computer readable storage medium of block chain
CN109462505A (en) * 2018-11-12 2019-03-12 上海点融信息科技有限责任公司 Realize the method and apparatus across chain communication between multiple block chain networks
CN109889386A (en) * 2019-03-05 2019-06-14 众安信息技术服务有限公司 Block chain dispositions method and system
CN109995594A (en) * 2019-04-10 2019-07-09 广州致链科技有限公司 Block chain network method for managing resource, device and block catenary system
US20190238550A1 (en) * 2016-12-26 2019-08-01 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Permission control method, apparatus and system for block chain, and node device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190238550A1 (en) * 2016-12-26 2019-08-01 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Permission control method, apparatus and system for block chain, and node device
CN108696358A (en) * 2017-04-06 2018-10-23 中国移动通信有限公司研究院 Management method, device, readable storage medium storing program for executing and the service terminal of digital certificate
CN108390872A (en) * 2018-02-09 2018-08-10 北京京东尚科信息技术有限公司 Certificate management method, device, medium and electronic equipment
CN108683539A (en) * 2018-05-21 2018-10-19 腾讯科技(深圳)有限公司 Management method, device, medium and the electronic equipment of block chain network
CN109033405A (en) * 2018-08-03 2018-12-18 华为技术有限公司 Safeguard method and apparatus, server and the computer readable storage medium of block chain
CN108965469A (en) * 2018-08-16 2018-12-07 北京京东尚科信息技术有限公司 Block chain network member dynamic management approach, device, equipment and storage medium
CN109462505A (en) * 2018-11-12 2019-03-12 上海点融信息科技有限责任公司 Realize the method and apparatus across chain communication between multiple block chain networks
CN109889386A (en) * 2019-03-05 2019-06-14 众安信息技术服务有限公司 Block chain dispositions method and system
CN109995594A (en) * 2019-04-10 2019-07-09 广州致链科技有限公司 Block chain network method for managing resource, device and block catenary system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YIBIN XU: "《Section-Blockchain: A Storage Reduced Blockchain Protocol, the Foundation of an Autotrophic Decentralized Storage Architecture》", 《IEEE》 *
陈齐等: "区块链技术在新型网络购物平台设计中的应用", 《武汉理工大学学报(信息与管理工程版)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783133A (en) * 2020-06-02 2020-10-16 广东科学技术职业学院 Network resource management method based on block chain technology
CN112231741A (en) * 2020-12-14 2021-01-15 腾讯科技(深圳)有限公司 Data processing method, device, medium and electronic equipment based on block chain system
CN113824738A (en) * 2021-11-23 2021-12-21 南京金宁汇科技有限公司 Method and system for node communication management in block chain

Also Published As

Publication number Publication date
CN110602234B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN110602234B (en) Block chain network node management method, device, equipment and storage medium
US9930632B2 (en) M2M application remote registration method, device, system and storage medium
CN109688186B (en) Data interaction method, device, equipment and readable storage medium
CN110597839A (en) Transaction data processing method, device, equipment and storage medium
CN106790131B (en) Parameter modification method and device and distributed platform
CN111290742A (en) Parameter verification method and device, electronic equipment and readable storage medium
CN111310233A (en) Application interface display method, device, equipment and storage medium
US10715628B2 (en) Attribute operating method and device
CN110555079A (en) Data processing method, device, equipment and storage medium
CN111654399A (en) Networking method, device and equipment based on SD-WAN and storage medium
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
US10205545B2 (en) Resource creation method and apparatus
CN109600254B (en) Method for generating full-link log and related system
CN110569987B (en) Automatic operation and maintenance method, operation and maintenance equipment, storage medium and device
CN114338510A (en) Data forwarding method and system with separated control and forwarding
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN111049906B (en) Method, device and system for unified management of wireless network bridge network
CN113922972B (en) Data forwarding method and device based on MD5 identification code
CN114302351B (en) Short message service processing method and device, computer equipment and storage medium
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment
CN114125812A (en) Data synchronization method, device, server and storage medium
CN114185804A (en) Interface testing method and device and terminal equipment
CN112217770B (en) Security detection method, security detection device, computer equipment and storage medium
CN113849802A (en) Equipment authentication method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant