CN108683539B - Block chain network management method, block chain network management device, block chain network management medium and electronic equipment - Google Patents

Block chain network management method, block chain network management device, block chain network management medium and electronic equipment Download PDF

Info

Publication number
CN108683539B
CN108683539B CN201810487765.0A CN201810487765A CN108683539B CN 108683539 B CN108683539 B CN 108683539B CN 201810487765 A CN201810487765 A CN 201810487765A CN 108683539 B CN108683539 B CN 108683539B
Authority
CN
China
Prior art keywords
blockchain network
transaction information
block
common configuration
update
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.)
Active
Application number
CN201810487765.0A
Other languages
Chinese (zh)
Other versions
CN108683539A (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 CN201810487765.0A priority Critical patent/CN108683539B/en
Publication of CN108683539A publication Critical patent/CN108683539A/en
Priority to PCT/CN2019/083450 priority patent/WO2019223469A1/en
Application granted granted Critical
Publication of CN108683539B publication Critical patent/CN108683539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding

Abstract

The embodiment of the invention provides a management method and device of a block chain network, a computer readable medium and electronic equipment. The management method of the block chain network comprises the following steps: acquiring the update information of the public configuration parameters in the block chain network; generating transaction information of the block chain network according to the updating information; broadcasting the transaction information in the blockchain network so that the nodes in the blockchain network update the common configuration parameters according to the transaction information after agreeing on the transaction information. According to the technical scheme of the embodiment of the invention, the updating information of the public configuration parameter can be used as the transaction information to be broadcast in the block chain network, so that after the node in the block chain network agrees with the transaction information, the public configuration parameter is updated based on the updating information, the purpose of updating the public configuration parameter in the operation of the block chain node is realized, and the updating efficiency of the public configuration parameter is improved.

Description

Block chain network management method, block chain network management device, block chain network management medium and electronic equipment
Technical Field
The present invention relates to the field of computer and communication technologies, and in particular, to a method and an apparatus for managing a blockchain network, a computer-readable medium, and an electronic device.
Background
The blockchain network is an end-to-end decentralized network formed by a plurality of nodes, each node is allowed to obtain a complete database copy, and the nodes jointly maintain the whole blockchain based on a set of consensus mechanism.
At present, a blockchain network cannot generally change a common configuration parameter at runtime, for example, in a blockchain network (e.g., a alliance-chain network) adopting a voting-based consensus algorithm, since nodes can determine the number of nodes in the network before starting, if the nodes in the network need to be changed, all the nodes need to be restarted, which is not only difficult to implement, but also inefficient in updating the common configuration parameter.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The embodiment of the invention provides a management method and device of a block chain network, a computer readable medium and electronic equipment, so that the problem that a common configuration parameter can not be changed when a block chain node runs can be solved at least to a certain extent.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of the embodiments of the present invention, there is provided a method for managing a blockchain network, including: acquiring the update information of the public configuration parameters in the block chain network; generating transaction information of the block chain network according to the updating information; broadcasting the transaction information in the blockchain network so that the nodes in the blockchain network update the common configuration parameters according to the transaction information after agreeing on the transaction information.
According to an aspect of the embodiments of the present invention, there is provided a method for managing a blockchain network, including: acquiring transaction information broadcast in a blockchain network; determining whether the transaction information contains update information of common configuration parameters in the blockchain network; and if the transaction information contains the update information of the public configuration parameter, after the node in the block chain network agrees with the transaction information, updating the public configuration parameter according to the update information.
According to an aspect of the embodiments of the present invention, there is provided a management apparatus for a blockchain network, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the update information of the public configuration parameters in the block chain network; the generating unit is used for generating the transaction information of the block chain network according to the updating information; and the broadcasting unit is used for broadcasting the transaction information in the blockchain network so that the nodes in the blockchain network update the public configuration parameters according to the transaction information after agreeing on the transaction information.
In some embodiments of the present invention, based on the foregoing scheme, the broadcasting unit is further configured to: broadcasting the update opportunity of the common configuration parameter in the blockchain network so that the nodes in the blockchain network update the common configuration parameter at the time point corresponding to the update opportunity.
In some embodiments of the present invention, based on the foregoing scheme, the update timing of the common configuration parameter includes a specified block height.
In some embodiments of the present invention, based on the foregoing solution, the height of the specified block and the height of the block in which the transaction information is located are different by a predetermined number of blocks, and the predetermined number is in positive correlation with the network delay of the blockchain network.
In some embodiments of the present invention, based on the foregoing scheme, the broadcasting unit is configured to: adding an update opportunity for the common configuration parameter to the transaction information to broadcast the update opportunity by broadcasting the transaction information.
In some embodiments of the present invention, based on the foregoing scheme, the generating unit is configured to: generating transaction content according to the updating information, and configuring the transaction type into a type for modifying the public configuration parameter; generating the transaction information based on the transaction content and the transaction type.
In some embodiments of the present invention, based on the foregoing solution, the blockchain network is a blockchain network that employs a vote-based consensus mechanism, and the update information of the common configuration parameter includes: adding and/or deleting nodes in the blockchain network.
According to an aspect of the embodiments of the present invention, there is provided a management apparatus for a blockchain network, including: an acquisition unit configured to acquire transaction information broadcast in a blockchain network; the determining unit is used for determining whether the transaction information contains update information of the common configuration parameters in the blockchain network; and the processing unit is used for updating the public configuration parameter according to the update information after the node in the block chain network agrees with the transaction information when the transaction information contains the update information of the public configuration parameter.
In some embodiments of the present invention, based on the foregoing scheme, the obtaining unit is further configured to: acquiring the updating time of the public configuration parameters; the processing unit is configured to update the common configuration parameter at a time point corresponding to the update timing after a node in the blockchain network agrees with the transaction information.
In some embodiments of the present invention, based on the foregoing solution, the processing unit is further configured to: after the common configuration parameters are updated according to the update information, the blocks to be confirmed in the block chain network are confirmed based on the updated common configuration parameters, and/or the consensus strategy is adjusted based on the updated common configuration parameters.
In some embodiments of the present invention, based on the foregoing solution, the processing unit is configured to: determining whether the generation time of the block to be confirmed is before the update time point of the common configuration parameter; if the generation time of the block to be confirmed is before the update time point of the common configuration parameter, confirming the block to be confirmed based on the common configuration parameter before update; and if the generation time of the block to be confirmed is behind the update time point of the public configuration parameter, confirming the block to be confirmed in the block chain network based on the updated public configuration parameter.
According to an aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements a method of managing a blockchain network as described in the above embodiments.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the management method of the blockchain network as described in the above embodiments.
In the technical solutions provided in some embodiments of the present invention, update information of a common configuration parameter in a blockchain network is obtained, and transaction information of the blockchain network is generated according to the update information, so that each node updates the common configuration parameter by broadcasting the transaction information in the blockchain network, so that the update information of the common configuration parameter can be broadcast in the blockchain network as the transaction information, and after the nodes in the blockchain network agree with the transaction information, the common configuration parameter is updated based on the update information, thereby achieving an object of updating the common configuration parameter in the operation of the blockchain nodes, solving a problem that the common configuration parameter cannot be modified in the operation process of the blockchain nodes at present, and improving the update efficiency of the common configuration parameter.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 shows a schematic diagram of an exemplary system architecture of a management apparatus of a blockchain network or a management method of a blockchain network to which an embodiment of the present invention can be applied;
FIG. 2 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention;
fig. 3 schematically shows a flow chart of a method of management of a blockchain network according to one embodiment of the invention;
fig. 4 schematically shows a flow chart of a method of management of a blockchain network according to one embodiment of the invention;
fig. 5 schematically shows a block diagram of a management device of a blockchain network according to an embodiment of the invention;
fig. 6 schematically shows a block diagram of a management device of a blockchain network according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture 100 of a management method of a blockchain network or a management apparatus of a blockchain network to which an embodiment of the present invention may be applied.
As shown in fig. 1, system architecture 100 may include distributed nodes 101, 102, 103, 104, 105, and 106. The distributed nodes may be connected by communication links, for example, wired communication links or wireless communication links, and the plurality of distributed nodes together form a block chain network.
It should be understood that the number of distributed nodes shown in fig. 1 is merely illustrative. There may be any number of distributed nodes, as desired for implementation.
In an embodiment of the present invention, the distributed node 101 (which may also be any one of the distributed nodes 102, 103, 104, 105, and 106) may generate transaction information according to update information of common configuration parameters (such as the number of nodes, the size of a block, how often a block is generated, and the like) in the blockchain network, and then broadcast the transaction information in the blockchain network, so that each node in the blockchain network may verify and confirm the transaction information. After each node in the block chain network agrees with the transaction information, the common configuration parameter can be updated according to the transaction information, so that the purpose of updating the common configuration parameter in the operation of the block chain nodes is realized, and the updating efficiency of the common configuration parameter is improved.
It should be noted that the management method of the blockchain network provided by the embodiment of the present invention is generally executed by the blockchain node, and accordingly, the management device of the blockchain network is generally disposed in the blockchain node.
FIG. 2 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
It should be noted that the computer system 200 of the electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiment of the present invention.
As shown in fig. 2, the computer system 200 includes a Central Processing Unit (CPU)201 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)202 or a program loaded from a storage section 208 into a Random Access Memory (RAM) 203. In the RAM 203, various programs and data necessary for system operation are also stored. The CPU 201, ROM 202, and RAM 203 are connected to each other via a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
The following components are connected to the I/O interface 205: an input portion 206 including a keyboard, a mouse, and the like; an output section 207 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 208 including a hard disk and the like; and a communication section 209 including a network interface card such as a LAN card, a modem, or the like. The communication section 209 performs communication processing via a network such as the internet. A drive 210 is also connected to the I/O interface 205 as needed. A removable medium 211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 210 as necessary, so that a computer program read out therefrom is mounted into the storage section 208 as necessary.
In particular, according to an embodiment of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 209 and/or installed from the removable medium 211. The computer program executes various functions defined in the present application when executed by a Central Processing Unit (CPU) 201.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below. For example, the electronic device may implement the steps shown in fig. 3 and 4.
The implementation details of the technical scheme of the embodiment of the invention are explained in detail as follows:
fig. 3 schematically shows a flowchart of a management method of a blockchain network according to an embodiment of the present invention, which is applicable to the electronic device described in the foregoing embodiments. Referring to fig. 3, the management method of the blockchain network at least includes steps S310 to S330, which are described in detail as follows:
in step S310, update information of common configuration parameters in the blockchain network is acquired.
In an embodiment of the present invention, the blockchain network may be a public chain network, a private chain network, or a alliance chain network, and the common configuration parameter may refer to basic information required for generating the blockchain network, and may include the number of blockchain links, the size of one block, how often one block is generated, and the like.
In step S320, transaction information of the blockchain network is generated according to the update information.
In an embodiment of the present invention, since the transaction information includes a transaction type (i.e. type) and transaction content (i.e. data), the transaction content may be generated according to the update information of the common configuration parameter, and the transaction type may be configured as a type for modifying the common configuration parameter, so as to generate the transaction information based on the transaction content and the transaction type.
For example, for the update information of the number of nodes, the transaction information may be generated with a transaction type of "change node" and the transaction content of the updated node list.
In step S330, the transaction information is broadcasted in the blockchain network, so that the nodes in the blockchain network update the common configuration parameters according to the transaction information after agreeing on the transaction information.
The technical solution of the embodiment shown in fig. 3 enables the update information of the common configuration parameter to be broadcast as the transaction information in the blockchain network, so that after the node in the blockchain network agrees with the transaction information, the common configuration parameter is updated based on the update information, thereby achieving the purpose of updating the common configuration parameter in the operation of the blockchain nodes and improving the update efficiency of the common configuration parameter.
Based on the technical solution of the embodiment shown in fig. 3, in an embodiment of the present invention, an update time of the common configuration parameter may also be broadcasted in a blockchain network, so that a node in the blockchain network updates the common configuration parameter at a time point corresponding to the update time. According to the technical scheme of the embodiment, the common configuration parameters can be updated at the same time point by each block link point, and the problem that the common configuration parameters are adopted due to different updating opportunities of the common configuration parameters by each block link point is solved. For example, some block chain nodes update the common configuration parameters first, and other block chain nodes update after a period of time, and in this period of time, because the block chain nodes adopt different common configuration parameters, the consensus strategies of the block chain nodes are different, and the normal operation of the block chain network is affected.
In an embodiment of the present invention, the update timing of the common configuration parameter may be added to the transaction information (i.e. the transaction information generated by the common configuration parameter) to broadcast the update timing by broadcasting the transaction information, for example, the update timing may be added to the transaction content.
In an embodiment of the present invention, the update timing of the common configuration parameter may include a specified block height, i.e. the specified block height is broadcasted in the blockchain network as the update timing of the common configuration parameter. The block height is an identifier of the block, and since the block has a certain generation time, when the generated block reaches the specified block height, the update timing when the common configuration parameter is reached can be determined.
In an embodiment of the present invention, the difference between the height of the specified block and the height of the block in which the transaction information (i.e. the transaction information generated by the common configuration parameter) is located is a predetermined number of blocks, that is, the common configuration parameter is updated when the predetermined number of blocks are generated after the block in which the transaction information is located.
In one embodiment of the present invention, the predetermined number is positively correlated to a network delay of the blockchain network. For example, the network delay is large, the predetermined number may be set to a large value to ensure that all or most of the block nodes receive the transaction information (i.e., the transaction information generated by the common configuration parameter) and perform verification. If the network delay is small, the predetermined number may be set to a small value to update the common configuration parameters as quickly as possible.
In a specific application scenario of the present invention, the blockchain network may be a blockchain network that employs a voting-based consensus mechanism, such as a federation chain network. Since the voting-based consensus mechanism needs to confirm the number of nodes in the network to confirm that most of the nodes vote to confirm, the consensus (usually, the consensus is achieved for the transaction information)
Figure GDA0003472710660000101
In the technical scheme of the embodiment of the invention, the information of adding and/or deleting nodes in the block chain network can be used as transaction information to be broadcasted in the block chain network, so that after the nodes in the block chain network agree on the transaction information, the information of the block chain nodes is updated based on the update information, the aim of updating the node information in the operation of the block chain nodes is fulfilled, the problem that the node information cannot be modified in the operation process of the block chain nodes at present is solved, and the updating efficiency of the node information is improved.
The technical solution of the above embodiment is explained from a node side broadcasting the transaction information, and the technical solution of the embodiment of the present invention is further explained from a node side receiving the transaction information.
Fig. 4 is a flowchart schematically illustrating a management method of a blockchain network according to an embodiment of the present invention, and referring to fig. 4, the method specifically includes the following steps:
step S410, transaction information broadcasted in the blockchain network is acquired.
In one embodiment of the invention, tiles broadcast in a blockchain network may be obtained and then the transaction information is obtained from the tiles.
Step S420, determining whether the transaction information includes update information of the common configuration parameter in the blockchain network.
In an embodiment of the present invention, the node broadcasting the transaction information may generate the transaction information according to the update information of the common configuration parameter of the blockchain network, so that the node receiving the transaction information may ensure whether the transaction information includes the update information of the common configuration parameter.
Step S430, if the transaction information includes the update information of the public configuration parameter, after the node in the block chain network agrees with the transaction information, updating the public configuration parameter according to the update information.
The technical solution of the embodiment shown in fig. 4 enables the node in the blockchain network to achieve consensus on the transaction information including the update information of the common configuration parameter, and then the common configuration parameter can be updated based on the update information, so that the purpose of updating the common configuration parameter in the operation of the blockchain nodes is achieved, and the update efficiency of the common configuration parameter is improved.
Based on the technical solution of the embodiment shown in fig. 4, in an embodiment of the present invention, an update time of the common configuration parameter may also be obtained, and then the common configuration parameter may be updated at a time point corresponding to the update time after the node in the block chain network agrees with the transaction information. According to the technical scheme of the embodiment, the common configuration parameters can be updated at the same time point by each block link point, and the problem that the common configuration parameters are adopted due to different updating opportunities of the common configuration parameters by each block link point is solved.
In one embodiment of the present invention, the update timing may be added to the transaction information described above for broadcasting in the blockchain network, as described above, while the update timing may be a specified blockheight.
In an embodiment of the present invention, after the common configuration parameter is updated according to the update information, the block to be confirmed in the block chain network needs to be confirmed based on the updated common configuration parameter; and/or adjusting the consensus policy based on the updated common configuration parameters. For example, if the size of a block is updated, the block to be confirmed needs to be confirmed according to the new block size after the update; for another example, if the number of the block link nodes changes, when the consensus mechanism based on the voting is adopted, the condition for achieving the consensus (i.e., how many nodes vote for confirmation is determined to achieve the consensus) needs to be updated according to the updated number of the block link nodes.
In an embodiment of the present invention, when a node receives a block to be confirmed, it may determine whether the generation time of the block to be confirmed is before the update time point of the common configuration parameter, and if the generation time of the block to be confirmed is before the update time point of the common configuration parameter, the block to be confirmed may be confirmed based on the common configuration parameter before the update; if the generation time of the block to be confirmed is after the update time point of the common configuration parameter, the block to be confirmed can be confirmed based on the updated common configuration parameter.
According to the technical scheme of the embodiment, when some nodes receive the previous block to be confirmed (namely, the block generated before the update time point of the common configuration parameter) due to network delay, a drop, a downtime and the like, the block to be confirmed can be confirmed based on the common configuration parameter (such as the block size and the like) before the update, so as to ensure that the confirmation mechanism of the node is consistent with that of other blockchain nodes.
The foregoing embodiment has described the technical solutions of the embodiments of the present invention from the node side that broadcasts the transaction information and the node side that receives the transaction information, and the following takes a federation chain network that adopts a consensus mechanism based on voting as an example, and combines the system framework shown in fig. 1 to describe the processing procedures of these two nodes:
in an embodiment of the present invention, for example, if the number of nodes in the federation chain network needs to be adjusted, the node 101 (which may also be the node 102, 103, 104, 105, or 106, in this embodiment, the node 101 is taken as an example for explanation) may set the type (type) of a transaction as "change node", set the transaction content (data) as a new node list and a specified block height (the specified block height identifies an update opportunity), and then broadcast the transaction to the federation chain network.
After receiving the transaction, the node (e.g., node 102, 103, 104, 105, or 106, or node 101) in the federation chain network may add information about the transaction to the block (which may also contain other transaction information), and then broadcast the block in the federation chain network for voting confirmation by each node.
After each node in the federation chain network votes and agrees, each node may add the block to the locally maintained federation chain while updating the locally maintained list of nodes at the specified block height based on the new list of nodes contained in the transaction content. Meanwhile, the consensus strategy and the strategy for verifying and confirming the block can be updated.
In summary, according to the technical scheme of the embodiment of the present invention, the update information of the public configuration parameter is broadcast in the blockchain network as the transaction information, so that after the node in the blockchain network agrees with the transaction information, the public configuration parameter is updated based on the update information, thereby achieving the purpose of updating the public configuration parameter during the operation of the blockchain node, achieving the dynamic update of the public configuration parameter, and improving the update efficiency of the public configuration parameter. Meanwhile, each node can update the common configuration parameters at the same update time, so that the consensus problem caused by different common configuration parameters can be avoided.
The following describes an embodiment of the apparatus of the present invention, which may be used to implement the management method of the blockchain network in the above embodiment of the present invention. For details that are not disclosed in the embodiments of the apparatus of the present invention, refer to the embodiments of the management method of the blockchain network of the present invention.
Fig. 5 schematically shows a block diagram of a management device of a blockchain network according to an embodiment of the present invention.
Referring to fig. 5, a management apparatus 500 of a blockchain network according to an embodiment of the present invention includes: an acquisition unit 501, a generation unit 502, and a broadcast unit 503.
The obtaining unit 501 is configured to obtain update information of a common configuration parameter in a block chain network; the generating unit 502 is configured to generate transaction information of the blockchain network according to the update information; the broadcasting unit 503 is configured to broadcast the transaction information in the blockchain network, so that nodes in the blockchain network update the common configuration parameter according to the transaction information after agreeing on the transaction information.
In an embodiment of the present invention, the broadcasting unit 503 is further configured to: broadcasting the update opportunity of the common configuration parameter in the blockchain network so that the nodes in the blockchain network update the common configuration parameter at the time point corresponding to the update opportunity.
In one embodiment of the present invention, the update timing of the common configuration parameter includes a specified block height.
In an embodiment of the present invention, the difference between the designated block height and the height of the block in which the transaction information is located is a predetermined number of blocks, and the predetermined number is in positive correlation with the network delay of the blockchain network.
In an embodiment of the present invention, the broadcasting unit 503 is configured to: adding an update opportunity for the common configuration parameter to the transaction information to broadcast the update opportunity by broadcasting the transaction information.
In an embodiment of the present invention, the generating unit 502 is configured to: generating transaction content according to the updating information, and configuring the transaction type into a type for modifying the public configuration parameter; generating the transaction information based on the transaction content and the transaction type.
In an embodiment of the present invention, the blockchain network is a blockchain network that employs a voting-based consensus mechanism, and the update information of the common configuration parameter includes: adding and/or deleting nodes in the blockchain network.
Fig. 6 schematically shows a block diagram of a management device of a blockchain network according to an embodiment of the present invention.
Referring to fig. 6, a management apparatus 600 of a blockchain network according to an embodiment of the present invention includes: an acquisition unit 601, a determination unit 602, and a processing unit 603.
The acquiring unit 601 is configured to acquire transaction information broadcast in a blockchain network; the determining unit 602 is configured to determine whether the transaction information includes update information of a common configuration parameter in the blockchain network; the processing unit 603 is configured to, when the transaction information includes update information of the common configuration parameter, update the common configuration parameter according to the update information after a node in the blockchain network agrees with the transaction information.
In an embodiment of the present invention, the obtaining unit 601 is further configured to: acquiring the updating time of the public configuration parameters; the processing unit 603 is configured to update the common configuration parameter at a time point corresponding to the update time after the node in the blockchain network agrees with the transaction information.
In an embodiment of the present invention, the processing unit 603 is further configured to: after the common configuration parameters are updated according to the update information, the blocks to be confirmed in the block chain network are confirmed based on the updated common configuration parameters, and/or the consensus strategy is adjusted based on the updated common configuration parameters.
In an embodiment of the present invention, the processing unit 603 is configured to: determining whether the generation time of the block to be confirmed is before the update time point of the common configuration parameter; if the generation time of the block to be confirmed is before the update time point of the common configuration parameter, confirming the block to be confirmed based on the common configuration parameter before update; and if the generation time of the block to be confirmed is behind the update time point of the public configuration parameter, confirming the block to be confirmed in the block chain network based on the updated public configuration parameter.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (11)

1. A method for managing a blockchain network, comprising:
acquiring update information of a common configuration parameter in a block chain network, wherein the common configuration parameter refers to basic information required by the block chain network;
generating transaction information of the block chain network according to the updating information;
broadcasting the transaction information and the designated block height in the blockchain network so that all nodes in the blockchain network can simultaneously update the public configuration parameters at the designated block height according to the transaction information after the transaction information is agreed, wherein the difference between the designated block height and the height of the block where the transaction information is located is a preset number of blocks, and the preset number is in positive correlation with the network delay of the blockchain network.
2. The method for managing a blockchain network according to claim 1, wherein broadcasting the update timing of the transaction information and the common configuration parameters in the blockchain network comprises:
adding an update opportunity for the common configuration parameter to the transaction information to broadcast the update opportunity by broadcasting the transaction information.
3. The method for managing a blockchain network according to claim 1, wherein generating the transaction information of the blockchain network according to the update information includes:
generating transaction content according to the updating information, and configuring the transaction type into a type for modifying the public configuration parameter;
generating the transaction information based on the transaction content and the transaction type.
4. The method for managing a blockchain network according to any one of claims 1 to 3, wherein the blockchain network is a blockchain network employing a vote-based consensus mechanism, and the update information of the common configuration parameters includes: adding and/or deleting nodes in the blockchain network.
5. A method for managing a blockchain network, comprising:
acquiring transaction information broadcast in a blockchain network;
determining whether the transaction information contains update information of a common configuration parameter in the blockchain network, wherein the common configuration parameter is basic information required by the blockchain network;
if the transaction information contains the update information of the public configuration parameters, acquiring the height of a specified block broadcasted in the block chain network, wherein the difference between the height of the specified block and the height of the block where the transaction information is located is a preset number of blocks, and the preset number is in positive correlation with the network delay of the block chain network;
after all nodes in the blockchain network agree on the transaction information, the common configuration parameters are updated simultaneously at the specified block height according to the update information.
6. The method for managing a blockchain network according to claim 5, further comprising, after the updating the common configuration parameters at the specified block height according to the update information, the steps of:
confirming the blocks to be confirmed in the block chain network based on the updated public configuration parameters; and/or
And adjusting the consensus strategy based on the updated common configuration parameters.
7. The method of claim 6, wherein before the confirming the to-be-confirmed blocks in the blockchain network based on the updated common configuration parameters, the method further comprises:
determining whether the generation time of the block to be confirmed is before the update time point of the common configuration parameter;
if the generation time of the block to be confirmed is before the update time point of the common configuration parameter, confirming the block to be confirmed based on the common configuration parameter before update;
if the generation time of the block to be confirmed is after the update time point of the common configuration parameter, executing a step of confirming the block to be confirmed in the block chain network based on the updated common configuration parameter.
8. An apparatus for managing a blockchain network, comprising:
an obtaining unit, configured to obtain update information of a common configuration parameter in a blockchain network, where the common configuration parameter is basic information required by the blockchain network;
the generating unit is used for generating the transaction information of the block chain network according to the updating information;
the broadcasting unit is used for broadcasting the transaction information and the designated block height in the block chain network so that all nodes in the block chain network can simultaneously update the public configuration parameters at the designated block height according to the transaction information after the transaction information is agreed, the difference between the designated block height and the height of the block where the transaction information is located is a preset number of blocks, and the preset number is in positive correlation with the network delay of the block chain network.
9. An apparatus for managing a blockchain network, comprising:
an acquisition unit configured to acquire transaction information broadcast in a blockchain network;
a determining unit, configured to determine whether the transaction information includes update information of a common configuration parameter in the blockchain network, where the common configuration parameter is basic information required by the blockchain network;
the processing unit is used for acquiring the specified block height broadcasted in the block chain network when the transaction information contains the update information of the public configuration parameters, wherein the difference between the specified block height and the height of the block where the transaction information is located is a preset number of blocks, and the preset number is in positive correlation with the network delay of the block chain network; after all nodes in the blockchain network agree on the transaction information, the common configuration parameters are updated simultaneously at the specified block height according to the update information.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out a method for managing a blockchain network according to one of claims 1 to 4 and/or a method for managing a blockchain network according to one of claims 5 to 7.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of managing a blockchain network according to any one of claims 1 to 4 and/or a method of managing a blockchain network according to any one of claims 5 to 7.
CN201810487765.0A 2018-05-21 2018-05-21 Block chain network management method, block chain network management device, block chain network management medium and electronic equipment Active CN108683539B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810487765.0A CN108683539B (en) 2018-05-21 2018-05-21 Block chain network management method, block chain network management device, block chain network management medium and electronic equipment
PCT/CN2019/083450 WO2019223469A1 (en) 2018-05-21 2019-04-19 Block chain network management method, device, medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810487765.0A CN108683539B (en) 2018-05-21 2018-05-21 Block chain network management method, block chain network management device, block chain network management medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108683539A CN108683539A (en) 2018-10-19
CN108683539B true CN108683539B (en) 2022-03-25

Family

ID=63805856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810487765.0A Active CN108683539B (en) 2018-05-21 2018-05-21 Block chain network management method, block chain network management device, block chain network management medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN108683539B (en)
WO (1) WO2019223469A1 (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683539B (en) * 2018-05-21 2022-03-25 腾讯科技(深圳)有限公司 Block chain network management method, block chain network management device, block chain network management medium and electronic equipment
CN109636388B (en) * 2018-12-07 2024-02-23 深圳市智税链科技有限公司 Data processing method, device, medium and electronic equipment in block chain network
CN109698753B (en) * 2018-12-17 2022-05-03 成都四方伟业软件股份有限公司 Block chain-based uplink consensus algorithm matching method and device
US11159945B2 (en) * 2018-12-31 2021-10-26 T-Mobile Usa, Inc. Protecting a telecommunications network using network components as blockchain nodes
CN111461585B (en) * 2019-01-22 2024-04-16 北京京东振世信息技术有限公司 Inventory management method and device, storage medium and electronic equipment
CN110011978B (en) * 2019-03-08 2021-02-12 创新先进技术有限公司 Method, system, device and computer equipment for modifying block chain network configuration
CN110188563B (en) * 2019-06-02 2021-04-13 四川虹微技术有限公司 Trust data updating method and device
CN110443703A (en) * 2019-06-26 2019-11-12 深圳壹账通智能科技有限公司 Environmentally friendly measure of supervision and device, electronic equipment and computer readable storage medium
CN110490597A (en) * 2019-08-15 2019-11-22 腾讯科技(深圳)有限公司 Management and control measures method of adjustment, device, medium and equipment based on block chain
CN110716726A (en) * 2019-08-29 2020-01-21 平安科技(深圳)有限公司 Client updating method and device, electronic equipment and computer readable storage medium
CN110602234B (en) * 2019-09-20 2021-10-26 腾讯科技(深圳)有限公司 Block chain network node management method, device, equipment and storage medium
US11165663B2 (en) 2019-10-18 2021-11-02 Hewlett Packard Enterprise Development Lp Network management using a distributed ledger
CN110944046B (en) * 2019-11-21 2022-09-13 腾讯科技(深圳)有限公司 Control method of consensus mechanism and related equipment
CN110912990B (en) * 2019-11-21 2022-10-14 腾讯科技(深圳)有限公司 Method and related equipment for updating consensus period
JP6852776B1 (en) * 2019-11-26 2021-03-31 ダイキン工業株式会社 Blockchain system, program and network connection device
CN111046055A (en) * 2019-12-11 2020-04-21 杭州趣链科技有限公司 Block chain global configuration changing method, equipment and storage medium
KR102318022B1 (en) * 2019-12-12 2021-10-27 (주)포뎁스 Electronic terminal device that enables update processing for applications and forgery detection of update data based on blockchain and operating method thereof
CN111259078B (en) * 2020-01-15 2023-10-10 广州运通链达金服科技有限公司 Block chain consensus method, apparatus, computer device and storage medium
CN111367930B (en) * 2020-03-03 2023-03-17 深圳大学 Method, device, equipment and medium for synchronizing block chain transaction pool information
CN111556120B (en) * 2020-04-23 2023-04-07 财付通支付科技有限公司 Data processing method and device based on block chain, storage medium and equipment
CN111524012A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium
CN111626848A (en) * 2020-06-04 2020-09-04 中国银行股份有限公司 Data processing method and system
CN111639944B (en) * 2020-06-08 2023-06-02 杭州复杂美科技有限公司 Transaction broadcasting method, apparatus and storage medium
CN111861469A (en) * 2020-07-27 2020-10-30 北京金山云网络技术有限公司 Processing method and device for consensus mechanism in block chain and electronic equipment
CN111858770B (en) * 2020-07-30 2023-11-28 杭州复杂美科技有限公司 Consensus method, device and storage medium
CN111967969A (en) * 2020-08-18 2020-11-20 中国银行股份有限公司 Block chain-based security baseline parameter configuration method and device
CN112182113A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Block chain consensus method, system, electronic device and storage medium
CN114449540A (en) * 2020-10-30 2022-05-06 中国移动通信有限公司研究院 Method, device and computer readable storage medium for updating configuration between access devices
CN112600874B (en) * 2020-11-24 2023-03-31 成都质数斯达克科技有限公司 Node joining method and device, electronic equipment and readable storage medium
CN113507524A (en) * 2021-07-09 2021-10-15 杭州复杂美科技有限公司 Transaction broadcasting method, computer device and storage medium
CN114338676A (en) * 2021-12-31 2022-04-12 支付宝(杭州)信息技术有限公司 Block synchronization method and device, electronic equipment and storage medium
CN115086319A (en) * 2022-06-13 2022-09-20 杭州复杂美科技有限公司 Multi-subnet blockchain network, transaction broadcasting method and device thereof, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1413419A (en) * 1999-10-27 2003-04-23 西门子公司 Method for updating valid signalling standard specification in communication network (KN) at arred
CN103401701A (en) * 2013-07-17 2013-11-20 杭州华三通信技术有限公司 Network management device and method
CN106301904A (en) * 2016-08-08 2017-01-04 无锡天脉聚源传媒科技有限公司 A kind of cluster server management method and device
CN106504091A (en) * 2016-10-27 2017-03-15 上海亿账通区块链科技有限公司 The method and device that concludes the business on block chain
CN107360001A (en) * 2017-07-26 2017-11-17 阿里巴巴集团控股有限公司 A kind of digital certificate management method, device and system
CN107508680A (en) * 2017-07-26 2017-12-22 阿里巴巴集团控股有限公司 Digital certificate management method, device and electronic equipment
CN108053359A (en) * 2017-12-07 2018-05-18 北京泛融科技有限公司 A kind of block chain embedding grammar of wavelet field watermark in image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122673A (en) * 2017-03-09 2017-09-01 深圳市金立通信设备有限公司 A kind of information ciphering method and terminal
CN108683539B (en) * 2018-05-21 2022-03-25 腾讯科技(深圳)有限公司 Block chain network management method, block chain network management device, block chain network management medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1413419A (en) * 1999-10-27 2003-04-23 西门子公司 Method for updating valid signalling standard specification in communication network (KN) at arred
CN103401701A (en) * 2013-07-17 2013-11-20 杭州华三通信技术有限公司 Network management device and method
CN106301904A (en) * 2016-08-08 2017-01-04 无锡天脉聚源传媒科技有限公司 A kind of cluster server management method and device
CN106504091A (en) * 2016-10-27 2017-03-15 上海亿账通区块链科技有限公司 The method and device that concludes the business on block chain
CN107360001A (en) * 2017-07-26 2017-11-17 阿里巴巴集团控股有限公司 A kind of digital certificate management method, device and system
CN107508680A (en) * 2017-07-26 2017-12-22 阿里巴巴集团控股有限公司 Digital certificate management method, device and electronic equipment
CN108053359A (en) * 2017-12-07 2018-05-18 北京泛融科技有限公司 A kind of block chain embedding grammar of wavelet field watermark in image

Also Published As

Publication number Publication date
CN108683539A (en) 2018-10-19
WO2019223469A1 (en) 2019-11-28

Similar Documents

Publication Publication Date Title
CN108683539B (en) Block chain network management method, block chain network management device, block chain network management medium and electronic equipment
CN108900364B (en) Block chain network management method, block chain network management device, block chain network management medium and electronic equipment
CN107276765B (en) Processing method and device for consensus in block chain
CN114944932B (en) Method and system for adding blocks to licensed blockchains
CN108390872B (en) Certificate management method, device, medium and electronic equipment
CN108769230B (en) Transaction data storage method, device, server and storage medium
CN110417502B (en) Block chain link point clock consensus method and device
CN109634679B (en) Block chain configuration updating method, device, equipment and storage medium
CN110852882B (en) Packet consensus method, apparatus, device, and medium for blockchain networks
CN111275438B (en) Consensus method, device, equipment and storage medium of block chain network
CN108848148B (en) Transaction information confirmation method and device based on block chain
CN108509615B (en) Consensus establishing method and device based on drawing mechanism and readable storage medium
CN111932257B (en) Block chain parallelization processing method and device
CN110597888B (en) Virtual resource acquisition method and device based on block chain, medium and equipment
CN111931220B (en) Consensus processing method, device, medium and electronic equipment for block chain network
CN115225639B (en) Changing method and device for consensus trusted cluster, computer equipment and medium
CN110866289A (en) Data processing method and device based on block chain, server and storage medium
CN110930254A (en) Data processing method, device, terminal and medium based on block chain
CN110990790B (en) Data processing method and equipment
CN110730186A (en) Token issuing method, accounting node and medium based on block chain
CN112181599B (en) Model training method, device and storage medium
CN110489430B (en) Tracing method and system based on data block signature and verification
CN113592645A (en) Data verification method and device
CN113206882B (en) Consensus method, computer device and storage medium
CN112291327A (en) Block link point management method and device and electronic equipment

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