WO2019223469A1 - Block chain network management method, device, medium and electronic device - Google Patents

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

Info

Publication number
WO2019223469A1
WO2019223469A1 PCT/CN2019/083450 CN2019083450W WO2019223469A1 WO 2019223469 A1 WO2019223469 A1 WO 2019223469A1 CN 2019083450 W CN2019083450 W CN 2019083450W WO 2019223469 A1 WO2019223469 A1 WO 2019223469A1
Authority
WO
WIPO (PCT)
Prior art keywords
blockchain network
configuration parameters
transaction information
update
information
Prior art date
Application number
PCT/CN2019/083450
Other languages
French (fr)
Chinese (zh)
Inventor
郭锐
李茂材
王宗友
屠海涛
孔利
周开班
杨常青
王楠
丁勇
时一防
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019223469A1 publication Critical patent/WO2019223469A1/en

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

Definitions

  • the present application relates to the field of computer and communication technologies, and in particular, to a method, an apparatus, a computer-readable medium, and an electronic device for managing a blockchain network.
  • the blockchain network is an end-to-end decentralized network composed of many nodes. Each node is allowed to obtain a complete copy of the database. The nodes maintain the entire blockchain together based on a set of consensus mechanisms.
  • blockchain networks usually cannot change public configuration parameters at runtime.
  • a blockchain network such as an alliance chain network
  • nodes will confirm the number of nodes in the network before starting. Therefore, if you need to change the nodes in the network, you need to restart all the nodes, which is not only difficult to implement but also inefficient in updating the common configuration parameters.
  • the embodiments of the present application provide a method, a device, a computer-readable medium, and an electronic device for managing a blockchain network, thereby solving a problem that a common configuration parameter cannot be changed while a blockchain node is running.
  • a method for managing a blockchain network including: obtaining update information of public configuration parameters in the blockchain network; and generating transaction information of the blockchain network according to the update information; Broadcasting the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the transaction information.
  • a method for managing a blockchain network including: acquiring transaction information broadcasted on the blockchain network; and determining whether the transaction information includes public information in the blockchain network. Update information of configuration parameters; if the transaction information includes update information of the common configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, Public configuration parameters are updated.
  • a management device for a blockchain network including: an obtaining unit for obtaining update information of public configuration parameters in the blockchain network; and a generating unit for generating based on the update information The transaction information of the blockchain network; a broadcasting unit, configured to broadcast the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, Updating the common configuration parameters according to the transaction information.
  • a management device for a blockchain network including: an obtaining unit for obtaining transaction information broadcasted on the blockchain network; and a determining unit for determining whether the transaction information includes Update information of public configuration parameters in the blockchain network; a processing unit, configured to: when the transaction information includes update information of the public configuration parameters, when a node in the blockchain network After the transaction information reaches a consensus, the public configuration parameters are updated according to the update information.
  • a computer-readable medium on which a computer program is stored, and the computer program, when executed by a processor, implements a method for managing a blockchain network as described in the above embodiments.
  • an electronic device including: one or more processors; a storage device for storing one or more programs, and when the one or more programs are processed by the one or more programs When the processor executes, the one or more processors are caused to implement the method for managing a blockchain network as described in the above embodiments.
  • update information of public configuration parameters in the blockchain network is obtained, and transaction information of the blockchain network is generated according to the update information, so as to pass through the blockchain network. Broadcasting the transaction information to enable each node to update the public configuration parameters, so that the update information of the public configuration parameters can be broadcasted as transaction information in the blockchain network, so that the nodes in the blockchain network can update the transaction information
  • the public configuration parameters are updated based on the update information, and the purpose of updating the public configuration parameters during the operation of the blockchain node is achieved. This problem improves the efficiency of updating common configuration parameters.
  • FIG. 1 is a schematic diagram showing an exemplary system architecture of a method for managing a blockchain network or a device for managing a blockchain network according to an embodiment of the present application;
  • FIG. 1 is a schematic diagram showing an exemplary system architecture of a method for managing a blockchain network or a device for managing a blockchain network according to an embodiment of the present application;
  • FIG. 2 is a schematic structural diagram of a computer system for implementing an electronic device according to an embodiment of the present application
  • FIG. 3 schematically illustrates a flowchart of a method for managing a blockchain network according to an embodiment of the present application
  • FIG. 4 schematically illustrates a flowchart of a method for managing a blockchain network according to another embodiment of the present application
  • FIG. 5 schematically illustrates a block diagram of a management device for a blockchain network according to an embodiment of the present application
  • FIG. 6 schematically illustrates a block diagram of a management device of a blockchain network according to another embodiment of the present application.
  • FIG. 1 shows a schematic diagram of an exemplary system architecture 100 to which a method for managing a blockchain network or a device for managing a blockchain network according to an embodiment of the present application can be applied.
  • the system architecture 100 may include distributed nodes 101, 102, 103, 104, 105, and 106.
  • Each distributed node can be connected through a communication link, for example, it can be connected through a wired communication link or a wireless communication link.
  • Multiple distributed nodes collectively form a blockchain network.
  • the distributed node may be any electronic device including at least hardware components such as a processor and a memory, and having computing capabilities.
  • FIG. 1 the number of distributed nodes shown in FIG. 1 is merely exemplary. It can have any number of distributed nodes according to implementation needs.
  • the distributed node 101 may be based on public configuration parameters (such as the number of nodes, Block size, how often a block is generated, etc.) to generate transaction information, and then broadcast the transaction information in the blockchain network, and then each node in the blockchain network can verify and confirm the transaction information .
  • public configuration parameters such as the number of nodes, Block size, how often a block is generated, etc.
  • each node in the blockchain network can verify and confirm the transaction information .
  • the public configuration parameters can be updated according to the transaction information, which achieves the purpose of updating the public configuration parameters during the operation of the blockchain node, which improves the Update efficiency of common configuration parameters.
  • the management method of the blockchain network provided by the embodiments of the present application is generally executed by a blockchain node. Accordingly, the management device of the blockchain network is generally set in the blockchain node.
  • FIG. 2 is a schematic structural diagram of a computer system for implementing an electronic device according to an embodiment of the present application.
  • the computer system 200 includes a central processing unit (CPU) 201 that can be loaded into a random access memory (RAM) 203 according to a program stored in a read-only memory (ROM) 202 or a program loaded from a storage section 208 Instead, perform various appropriate actions and processes.
  • RAM 203 various programs and data required for system operation are also stored.
  • the CPU 201, the ROM 202, and the RAM 203 are connected to each other through a bus 204.
  • An input / output (I / O) interface 205 is also connected to the bus 204.
  • the following components are connected to the I / O interface 205: an input portion 206 including a keyboard, a mouse, etc .; an output portion 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 208 including a hard disk; And a communication section 209 including a network interface card such as a LAN card, a modem, and the like.
  • the communication section 209 performs communication processing via a network such as the Internet.
  • the driver 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, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.
  • a process described below with reference to a flowchart may be implemented as a computer software program.
  • embodiments of the present application include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network through the communication section 209, and / or installed from a removable medium 211.
  • CPU central processing unit
  • various functions defined in the present application are executed.
  • Computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing.
  • Computer-readable storage media includes both volatile and nonvolatile storage media, such as, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any more combination. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit 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, wireline and the like, or any suitable combination of the foregoing.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, which contains one or more of the logic functions used to implement the specified logic. Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than those marked in the drawings. For example, two blocks represented one after the other may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with A combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present application may be implemented by software or hardware.
  • the described units may also be provided in a processor.
  • the names of these units do not, in some cases, define the unit itself.
  • An embodiment of the present application further provides a computer-readable medium, which may be included in the electronic device described in the foregoing embodiment; or may exist separately without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs, and when the one or more programs are executed by a processor of the electronic device, the electronic device is caused to implement a method as described in the following embodiments. For example, the electronic device can implement the steps shown in FIGS. 3 and 4.
  • FIG. 3 schematically illustrates a flowchart of a method for managing a blockchain network according to an embodiment of the present application.
  • the method for managing a blockchain network is performed by the electronic device described in the foregoing embodiment.
  • the method for managing a blockchain network includes at least steps S310 to S330, which are described in detail as follows:
  • step S310 update information of public configuration parameters in the blockchain network is obtained.
  • the blockchain network may be a public chain network, a private chain network, or an alliance chain network.
  • the public configuration parameters may refer to the basic information required to generate the blockchain network, and may include the blockchain. The number of nodes, the size of a block, how often a block is generated, mining rewards, etc.
  • step S320 transaction information of the blockchain network is generated according to the update information.
  • the transaction information since the transaction information includes a transaction type (that is, type) and a transaction content (that is, data), the transaction content may be generated according to the update information of the public configuration parameters, and the transaction type is configured to the public information.
  • the type of configuration parameter modification and then generate transaction information based on the transaction content and transaction type.
  • transaction information with a transaction type of "change node” and transaction content with an updated node list can be generated.
  • step S330 broadcasting the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration is performed according to the transaction information. Parameters are updated.
  • the technical solution of the embodiment shown in FIG. 3 makes it possible to broadcast update information of public configuration parameters as transaction information in a blockchain network, so that after nodes in the blockchain network reach a consensus on the transaction information, based on the update
  • the information updates the public configuration parameters, achieving the purpose of updating the public configuration parameters during the operation of the blockchain node, and improving the update efficiency of the public configuration parameters.
  • the update timing of the common configuration parameters may also be broadcast in a blockchain network, so that the nodes in the blockchain network are at Updating the common configuration parameter at a time point corresponding to the update timing.
  • the technical solution of this embodiment enables each blockchain node to update the common configuration parameters at the same time point, and avoids the confusion caused by the adoption of different public configuration parameters by different blockchain nodes due to different update timing of the common configuration parameters. The problem.
  • some blockchain nodes update the public configuration parameters first, while other blockchain nodes delay updating for a period of time, then during this period, because the blockchain nodes use different public configuration parameters, then Its consensus strategy will also make a difference, which will affect the normal operation of the blockchain network.
  • the above-mentioned update timing of the common configuration parameters may be added to the above-mentioned transaction information (that is, the transaction information generated by the common configuration parameters) to broadcast the update timing by broadcasting the transaction information. For example, you can add the update timing to the transaction content.
  • the above-mentioned update timing of the public configuration parameters may include a specified block height, that is, the specified block height is broadcast in the blockchain network as the update timing of the public configuration parameters.
  • the block height is the identifier of the block. Since the block has a certain generation time, after the generated block reaches the specified block height, it can be determined that the update timing of the public configuration parameters is reached.
  • a predetermined number of blocks differ between the height of the specified block and the height of the block where the above-mentioned transaction information (that is, the transaction information generated by the common configuration parameter) is located, that is, in the place where the transaction information is located.
  • the public configuration parameters are updated when a predetermined number of blocks are generated after the block.
  • the above-mentioned predetermined number is positively related to the network delay of the blockchain network. For example, if the network delay is large, the predetermined number can be set to a large value to ensure that all or most of the blockchain nodes can receive transaction information (that is, transaction information generated by public configuration parameters) and perform Verification confirmation. If the network delay is small, the predetermined number can be set to a smaller value to update the common configuration parameters as soon as possible.
  • the aforementioned blockchain network may be a blockchain network using a voting-based consensus mechanism, such as an alliance chain network. Because the voting-based consensus mechanism needs to confirm the number of nodes in the network to determine that most of the nodes can reach a consensus on the transaction information (usually 32 + 1 nodes vote to confirm that they have reached a consensus). In the current solution, if the number of nodes needs to be changed, all nodes need to be restarted to reconfirm the number of nodes.
  • a voting-based consensus mechanism such as an alliance chain network.
  • nodes in the blockchain network can be added and / or deleted
  • the information is broadcast in the blockchain network as transaction information, so that after the nodes in the blockchain network reach a consensus on the transaction information, the information of the blockchain node is updated based on the update information, and the
  • the purpose of updating the node information during the operation of the chain node solves the problem that the node information cannot be modified during the operation of the blockchain node, and improves the efficiency of updating the node information.
  • FIG. 4 schematically illustrates a flowchart of a method for managing a blockchain network according to an embodiment of the present application. Referring to FIG. 4, the method specifically includes the following steps:
  • Step S410 Obtain transaction information broadcasted on the blockchain network.
  • a block broadcast in a blockchain network can be obtained, and then the transaction information is obtained from the block.
  • step S420 it is determined whether the transaction information includes update information of public configuration parameters in the blockchain network.
  • a node that broadcasts transaction information may generate transaction information according to the update information of the public configuration parameters of the blockchain network, so the node that receives the transaction information may determine whether the transaction information includes the public configuration parameters. Update information.
  • Step S430 if the transaction information includes update information of the public configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the update information. Update.
  • the technical solution of the embodiment shown in FIG. 4 enables the nodes in the blockchain network to reach consensus on the transaction information that includes the update information of the public configuration parameters, and then can update the public configuration parameters based on the update information, thereby realizing the presence in the district.
  • the purpose of updating the common configuration parameters during the operation of the blockchain node improves the efficiency of updating the common configuration parameters.
  • the update timing of the public configuration parameters can also be obtained, and then after the nodes in the blockchain network reach a consensus on the transaction information, The public configuration parameter is updated at a time point corresponding to the update timing.
  • the technical solution of this embodiment enables each blockchain node to update the common configuration parameters at the same time point, and avoids the confusion caused by the adoption of different public configuration parameters by different blockchain nodes due to different update timings of the common configuration parameters. The problem.
  • the update timing may be added to the above-mentioned transaction information to be broadcast in a blockchain network, and the update timing may be a specified block height.
  • a block to be confirmed in the blockchain network needs to be confirmed based on the updated public configuration parameters; and / or Adjust the consensus strategy based on the updated public 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 blockchain nodes changes, then the When voting for a consensus mechanism, the conditions for reaching a consensus (that is, how many nodes are deemed to reach a consensus when they vote for confirmation) need to be updated according to the number of updated blockchain nodes.
  • a node 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 public configuration parameter, and if the generation time of the block to be confirmed is Before the update time of the public configuration parameters, the block to be confirmed can be confirmed based on the public configuration parameters before the update; if the generation time of the block to be confirmed is after the update time of the public configuration parameters, the The updated public configuration parameters confirm the block to be confirmed.
  • the technical solution of this embodiment can be based on the fact that when certain nodes receive the previously to-be-confirmed block (that is, the block generated before the update time point of the public configuration parameters) due to network delay, disconnection, downtime, etc., it can be based on Update the previous public configuration parameters (such as block size, etc.) to confirm the block to be confirmed to ensure consistency with the confirmation mechanism of other blockchain nodes.
  • the previously to-be-confirmed block that is, the block generated before the update time point of the public configuration parameters
  • Update the previous public configuration parameters such as block size, etc.
  • the foregoing embodiment describes the technical solution of the embodiment of the present application from the node side that broadcasts the transaction information and the node side that receives the transaction information.
  • the following uses the alliance chain network using a voting-based consensus mechanism as an example, as shown in FIG.
  • the system framework describes the processing of these two nodes:
  • node 101 may also be node 102, 103, 104, 105, or 106.
  • node 101 is used as an example.
  • the node in the alliance chain network (such as node 102, 103, 104, 105 or 106, or node 101) receives the transaction, it can add the information of the transaction to the block (the block may also contain There are other transaction information), and then broadcast the block in the alliance chain network to facilitate the voting confirmation of each node.
  • each node in the alliance chain network After each node in the alliance chain network has voted and reached a consensus, each node can add the block to the locally maintained alliance chain, and update the local at the specified block height based on the new node list included in the transaction content. Maintained node list. At the same time, you can also update the consensus strategy and the verification and confirmation strategy for the block.
  • the technical solution of the embodiment of the present application broadcasts the update information of the common configuration parameters as transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, based on the update
  • the information updates the public configuration parameters, achieving the purpose of updating the public configuration parameters during the operation of the blockchain node, realizing the dynamic update of the public configuration parameters, and improving the update efficiency of the public configuration parameters.
  • each node can update the common configuration parameters at the same update timing, it is also possible to avoid consensus problems caused by different common configuration parameters.
  • the following describes the device embodiments of the present application, which can be used to execute the method for managing a blockchain network in the above embodiments of the present application.
  • the device embodiments of the present application please refer to the embodiments of the management method of the blockchain network described above in the present application.
  • FIG. 5 schematically illustrates a block diagram of a management device for a blockchain network according to an embodiment of the present application.
  • a management device 500 of a blockchain network includes: an obtaining unit 501, a generating unit 502, and a broadcasting unit 503.
  • the obtaining unit 501 is configured to obtain update information of public configuration parameters in the blockchain network; the generating unit 502 is configured to generate transaction information of the blockchain network according to the update information; and the broadcasting unit 503 is configured to update the information in the blockchain network.
  • the transaction information is broadcast in a blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the transaction information.
  • the broadcasting unit 503 is further configured to broadcast an update timing of the common configuration parameters in the blockchain network, so that a node in the blockchain network is in the blockchain network.
  • the common configuration parameter is updated at a time point corresponding to the update timing.
  • the update timing of the common configuration parameter includes a specified block height.
  • the predetermined number is positively related to the network delay of the blockchain network. relationship.
  • the broadcasting unit 503 is configured to add an update timing of the common configuration parameter to the transaction information, so as to broadcast the update timing by broadcasting the transaction information.
  • the generating unit 502 is configured to generate transaction content according to the update information, and configure a transaction type as a type that modifies the public configuration parameter; based on the transaction content and the The transaction type generates the transaction information.
  • the blockchain network is a blockchain network using a voting-based consensus mechanism
  • the update information of the common configuration parameters includes: adding and / or deleting the blockchain network Node.
  • FIG. 6 schematically illustrates a block diagram of a management device for a blockchain network according to an embodiment of the present application.
  • a management device 600 for a blockchain network includes: an obtaining unit 601, a determining unit 602, and a processing unit 603.
  • the obtaining unit 601 is configured to obtain transaction information broadcasted in a blockchain network; the determination unit 602 is configured to determine whether the transaction information includes update information of public configuration parameters in the blockchain network; a processing unit 603 is configured to: when the transaction information includes update information of the public configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the update information Update.
  • the obtaining unit 601 is further configured to obtain an update timing of the common configuration parameters; and the processing unit 603 is configured to perform transaction information on the transaction information by a node in the blockchain network. After reaching a consensus, the public configuration parameters are updated at a time point corresponding to the update timing.
  • the processing unit 603 is further configured to: after updating the public configuration parameters according to the update information, update the public configuration parameters in the blockchain network based on the updated public configuration parameters.
  • the block to be confirmed is confirmed, and / or the consensus strategy is adjusted based on the updated public configuration parameters.
  • the processing unit 603 is configured to determine 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 point of the common configuration parameter, confirming the block to be confirmed based on the common configuration parameter before the update; if the generation time of the block to be confirmed is at the update point of the common configuration parameter After that, the blocks to be confirmed in the blockchain network are confirmed based on the updated public configuration parameters.
  • modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory.
  • the features and functions of two or more modules or units described above may be embodied in one module or unit.
  • the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
  • the technical solution according to the embodiment of the present application may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (can be a CD-ROM, a U disk, a mobile hard disk, etc.) or on a network , Including several instructions to enable a computing device (which may 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 application.
  • a computing device which may be a personal computer, a server, a touch terminal, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided by embodiments of the present application are a block chain network management method, device, computer readable medium and electronic device. The block chain network management method comprises: obtaining update information of common configuration parameters in a block chain network; generating transaction information of the block chain network according to the update information; and broadcasting the transaction information in the block chain network so as to update the common configuration parameters according to the transaction information after the nodes in the block chain network have reached a consensus about the transaction information. The technical solution of the embodiments of the present application may broadcast the update information of the common configuration parameters as transaction information in the block chain network, so that after the nodes in the block chain network have reached a consensus about the transaction information, the common configuration parameters are updated on the basis of the update information, thus achieving the purpose of updating the common configuration parameters during the operation process of the block chain nodes, and improving the updating efficiency of the common configuration parameters.

Description

区块链网络的管理方法、装置、介质及电子设备Management method, device, medium and electronic equipment of blockchain network
本申请要求于2018年5月21日提交中国专利局、申请号为201810487765.0、发明名称为“区块链网络的管理方法、装置、介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 21, 2018, with application number 201810487765.0, and the invention name is "blockchain network management method, device, medium and electronic device", its entire content Incorporated by reference in this application.
技术领域Technical field
本申请涉及计算机及通信技术领域,具体而言,涉及一种区块链网络的管理方法、装置、计算机可读介质及电子设备。The present application relates to the field of computer and communication technologies, and in particular, to a method, an apparatus, a computer-readable medium, and an electronic device for managing a blockchain network.
发明背景Background of the invention
区块链网络是由众多节点共同组成的一个端到端的去中心化网络,每个节点都允许获得一份完整的数据库拷贝,节点之间基于一套共识机制来共同维护整个区块链。The blockchain network is an end-to-end decentralized network composed of many nodes. Each node is allowed to obtain a complete copy of the database. The nodes maintain the entire blockchain together based on a set of consensus mechanisms.
目前,区块链网络通常不能在运行时更改公共配置参数,比如在采用基于投票的共识算法的区块链网络(如联盟链网络)中,由于节点在启动前会确认网络中的节点个数,因此如果需要更改网络中的节点,那么需要重启所有的节点,不仅实现困难,而且更新公共配置参数的效率较低。At present, blockchain networks usually cannot change public configuration parameters at runtime.For example, in a blockchain network (such as an alliance chain network) that uses a voting-based consensus algorithm, nodes will confirm the number of nodes in the network before starting. Therefore, if you need to change the nodes in the network, you need to restart all the nodes, which is not only difficult to implement but also inefficient in updating the common configuration parameters.
需要说明的是,在背景技术部分公开的信息仅用于加强对本申请的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the background section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.
发明内容Summary of the Invention
本申请实施例提供了一种区块链网络的管理方法、装置、计算机可读介质及电子设备,进而解决不能在区块链节点运行时更改公共配置参数的问题。The embodiments of the present application provide a method, a device, a computer-readable medium, and an electronic device for managing a blockchain network, thereby solving a problem that a common configuration parameter cannot be changed while a blockchain node is running.
本申请实施例的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本申请的实践而习得。Other features and advantages of the embodiments of the present application will become apparent from the following detailed description, or may be learned in part through the practice of the present application.
根据本申请实施例,提供了一种区块链网络的管理方法,包括:获取区块链网络中的公共配置参数的更新信息;根据所述更新信息生成所述区块链 网络的交易信息;在所述区块链网络中广播所述交易信息,以使所述区块链网络中的节点在对所述交易信息达成共识之后,根据所述交易信息对所述公共配置参数进行更新。According to an embodiment of the present application, a method for managing a blockchain network is provided, including: obtaining update information of public configuration parameters in the blockchain network; and generating transaction information of the blockchain network according to the update information; Broadcasting the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the transaction information.
根据本申请实施例,提供了一种区块链网络的管理方法,包括:获取在区块链网络中广播的交易信息;确定所述交易信息中是否包含有所述区块链网络中的公共配置参数的更新信息;若所述交易信息包含有所述公共配置参数的更新信息,则在所述区块链网络中的节点对所述交易信息达成共识之后,根据所述更新信息对所述公共配置参数进行更新。According to an embodiment of the present application, a method for managing a blockchain network is provided, including: acquiring transaction information broadcasted on the blockchain network; and determining whether the transaction information includes public information in the blockchain network. Update information of configuration parameters; if the transaction information includes update information of the common configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, Public configuration parameters are updated.
根据本申请实施例,提供了一种区块链网络的管理装置,包括:获取单元,用于获取区块链网络中的公共配置参数的更新信息;生成单元,用于根据所述更新信息生成所述区块链网络的交易信息;广播单元,用于在所述区块链网络中广播所述交易信息,以使所述区块链网络中的节点在对所述交易信息达成共识之后,根据所述交易信息对所述公共配置参数进行更新。According to an embodiment of the present application, a management device for a blockchain network is provided, including: an obtaining unit for obtaining update information of public configuration parameters in the blockchain network; and a generating unit for generating based on the update information The transaction information of the blockchain network; a broadcasting unit, configured to broadcast the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, Updating the common configuration parameters according to the transaction information.
根据本申请实施例,提供了一种区块链网络的管理装置,包括:获取单元,用于获取在区块链网络中广播的交易信息;确定单元,用于确定所述交易信息中是否包含有所述区块链网络中的公共配置参数的更新信息;处理单元,用于在所述交易信息包含有所述公共配置参数的更新信息时,当所述区块链网络中的节点对所述交易信息达成共识之后,根据所述更新信息对所述公共配置参数进行更新。According to an embodiment of the present application, a management device for a blockchain network is provided, including: an obtaining unit for obtaining transaction information broadcasted on the blockchain network; and a determining unit for determining whether the transaction information includes Update information of public configuration parameters in the blockchain network; a processing unit, configured to: when the transaction information includes update information of the public configuration parameters, when a node in the blockchain network After the transaction information reaches a consensus, the public configuration parameters are updated according to the update information.
根据本申请实施例,提供了一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例中所述的区块链网络的管理方法。According to an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements a method for managing a blockchain network as described in the above embodiments.
根据本申请实施例,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中所述的区块链网络的管理方法。According to an embodiment of the present application, an electronic device is provided, including: one or more processors; a storage device for storing one or more programs, and when the one or more programs are processed by the one or more programs When the processor executes, the one or more processors are caused to implement the method for managing a blockchain network as described in the above embodiments.
在本申请的一些实施例所提供的技术方案中,通过获取区块链网络中的公共配置参数的更新信息,并根据该更新信息生成区块链网络的交易信息, 以通过在区块链网络中广播该交易信息来使各个节点对公共配置参数进行更新,使得能够将公共配置参数的更新信息作为交易信息在区块链网络中进行广播,以在区块链网络中的节点对该交易信息达成共识之后,基于该更新信息对公共配置参数进行更新,实现了在区块链节点运行过程中对公共配置参数进行更新的目的,解决了目前不能在区块链节点运行过程中修改公共配置参数的问题,提高了公共配置参数的更新效率。In the technical solutions provided by some embodiments of the present application, update information of public configuration parameters in the blockchain network is obtained, and transaction information of the blockchain network is generated according to the update information, so as to pass through the blockchain network. Broadcasting the transaction information to enable each node to update the public configuration parameters, so that the update information of the public configuration parameters can be broadcasted as transaction information in the blockchain network, so that the nodes in the blockchain network can update the transaction information After reaching a consensus, the public configuration parameters are updated based on the update information, and the purpose of updating the public configuration parameters during the operation of the blockchain node is achieved. This problem improves the efficiency of updating common configuration parameters.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present application.
附图简要说明Brief description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description serve to explain the principles of the application. Obviously, the drawings in the following description are just some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. In the drawings:
图1示出了可以应用本申请实施例的区块链网络的管理方法或区块链网络的管理装置的示例性系统架构的示意图;FIG. 1 is a schematic diagram showing an exemplary system architecture of a method for managing a blockchain network or a device for managing a blockchain network according to an embodiment of the present application; FIG.
图2示出了用来实现本申请实施例的电子设备的计算机系统的结构示意图;FIG. 2 is a schematic structural diagram of a computer system for implementing an electronic device according to an embodiment of the present application; FIG.
图3示意性示出了根据本申请的一个实施例的区块链网络的管理方法的流程图;FIG. 3 schematically illustrates a flowchart of a method for managing a blockchain network according to an embodiment of the present application; FIG.
图4示意性示出了根据本申请的另一个实施例的区块链网络的管理方法的流程图;4 schematically illustrates a flowchart of a method for managing a blockchain network according to another embodiment of the present application;
图5示意性示出了根据本申请的一个实施例的区块链网络的管理装置的框图;FIG. 5 schematically illustrates a block diagram of a management device for a blockchain network according to an embodiment of the present application; FIG.
图6示意性示出了根据本申请的另一个实施例的区块链网络的管理装置的框图。FIG. 6 schematically illustrates a block diagram of a management device of a blockchain network according to another embodiment of the present application.
实施本发明的方式Mode of Carrying Out the Invention
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本申请将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, providing these embodiments makes this application more comprehensive and complete, and conveys the concepts of the example embodiments comprehensively 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, many specific details are provided to give a full understanding of the embodiments of the present application. However, those skilled in the art will realize that the technical solutions of the present application may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the present application.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices. entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the accompanying drawings is only an exemplary description, and it is not necessary to include all content and operations / steps, nor does it have to be performed in the order described. For example, some operations / steps can also be decomposed, and some operations / steps can be merged or partially merged. Therefore, the actual execution order may be changed according to the actual situation.
图1示出了可以应用本申请实施例的区块链网络的管理方法或区块链网络的管理装置的示例性系统架构100的示意图。FIG. 1 shows a schematic diagram of an exemplary system architecture 100 to which a method for managing a blockchain network or a device for managing a blockchain network according to an embodiment of the present application can be applied.
如图1所示,系统架构100可以包括分布式节点101、102、103、104、105和106。各个分布式节点之间可以通过通信链路进行连接,比如可以通过有线通信链路或无线通信链路进行连接等,多个分布式节点共同组成了区块链网络。在本申请实施例中,分布式节点可以是至少包括处理器、存储器等硬件部件、且具有计算能力的任意电子设备。As shown in FIG. 1, the system architecture 100 may include distributed nodes 101, 102, 103, 104, 105, and 106. Each distributed node can be connected through a communication link, for example, it can be connected through a wired communication link or a wireless communication link. Multiple distributed nodes collectively form a blockchain network. In the embodiment of the present application, the distributed node may be any electronic device including at least hardware components such as a processor and a memory, and having computing capabilities.
应该理解,图1中所示的分布式节点的数目仅仅是示意性的。根据实现 需要,可以具有任意数目的分布式节点。It should be understood that the number of distributed nodes shown in FIG. 1 is merely exemplary. It can have any number of distributed nodes according to implementation needs.
在本申请的一个实施例中,分布式节点101(也可以是分布式节点102、103、104、105和106中的任意一个)可以根据区块链网络中的公共配置参数(如节点数目、区块大小、每隔多久生成一个区块等)的更新信息生成交易信息,然后在区块链网络中广播该交易信息,进而区块链网络中的各个节点可以对该交易信息进行验证和确认。当区块链网络中的各个节点对该交易信息达成共识之后,可以根据该交易信息对公共配置参数进行更新,实现了在区块链节点运行过程中对公共配置参数进行更新的目的,提高了公共配置参数的更新效率。In one embodiment of the present application, the distributed node 101 (or any of the distributed nodes 102, 103, 104, 105, and 106) may be based on public configuration parameters (such as the number of nodes, Block size, how often a block is generated, etc.) to generate transaction information, and then broadcast the transaction information in the blockchain network, and then each node in the blockchain network can verify and confirm the transaction information . After each node in the blockchain network reaches a consensus on the transaction information, the public configuration parameters can be updated according to the transaction information, which achieves the purpose of updating the public configuration parameters during the operation of the blockchain node, which improves the Update efficiency of common configuration parameters.
需要说明的是,本申请实施例所提供的区块链网络的管理方法一般由区块链节点执行,相应地,区块链网络的管理装置一般设置于区块链节点中。It should be noted that the management method of the blockchain network provided by the embodiments of the present application is generally executed by a blockchain node. Accordingly, the management device of the blockchain network is generally set in the blockchain node.
图2示出了用来实现本申请实施例的电子设备的计算机系统的结构示意图。FIG. 2 is a schematic structural diagram of a computer system for implementing an electronic device according to an embodiment of the present application.
需要说明的是,图2示出的电子设备的计算机系统200仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。It should be noted that the computer system 200 of the electronic device shown in FIG. 2 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
如图2所示,计算机系统200包括中央处理单元(CPU)201,其可以根据存储在只读存储器(ROM)202中的程序或者从存储部分208加载到随机访问存储器(RAM)203中的程序而执行各种适当的动作和处理。在RAM 203中,还存储有系统操作所需的各种程序和数据。CPU 201、ROM 202以及RAM 203通过总线204彼此相连。输入/输出(I/O)接口205也连接至总线204。As shown in FIG. 2, the computer system 200 includes a central processing unit (CPU) 201 that can be loaded into a random access memory (RAM) 203 according to a program stored in a read-only memory (ROM) 202 or a program loaded from a storage section 208 Instead, perform various appropriate actions and processes. In the RAM 203, various programs and data required for system operation are also stored. The CPU 201, the ROM 202, and the RAM 203 are connected to each other through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.
以下部件连接至I/O接口205:包括键盘、鼠标等的输入部分206;包括诸如阴极射线管(CRT)、液晶显示器(LCD)以及扬声器等的输出部分207;包括硬盘等的存储部分208;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分209。通信部分209经由诸如因特网的网络执行通信处理。驱动器210也根据需要连接至I/O接口205。可拆卸介质211,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器210上,以便于从其上读出的计算机程序根据需要被安装入存储部分208。The following components are connected to the I / O interface 205: an input portion 206 including a keyboard, a mouse, etc .; an output portion 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 208 including a hard disk; And a communication section 209 including a network interface card such as a LAN card, a modem, and the like. The communication section 209 performs communication processing via a network such as the Internet. The driver 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, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.
特别地,根据本申请的实施例,下文参考流程图描述的过程可以被实现 为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分209从网络上被下载和安装,和/或从可拆卸介质211被安装。在该计算机程序被中央处理单元(CPU)201执行时,执行本申请中限定的各种功能。In particular, according to an embodiment of the present application, a process described below with reference to a flowchart may be implemented as a computer software program. For example, embodiments of the present application include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 209, and / or installed from a removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, various functions defined in the present application are executed.
需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质包括易失性和非易失性存储介质,例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing. Computer-readable storage media includes both volatile and nonvolatile storage media, such as, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any more combination. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit 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, wireline and the like, or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以 以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code, which contains one or more of the logic functions used to implement the specified logic. Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than those marked in the drawings. For example, two blocks represented one after the other may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with A combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor. The names of these units do not, in some cases, define the unit itself.
本申请实施例还提供了一种计算机可读介质,该计算机可读介质可以包含在上述实施例中描述的电子设备中;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备的处理器执行时,使得该电子设备实现如下述实施例中所述的方法。例如,所述的电子设备可以实现如图3和图4所示的各个步骤。An embodiment of the present application further provides a computer-readable medium, which may be included in the electronic device described in the foregoing embodiment; or may exist separately without being assembled into the electronic device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by a processor of the electronic device, the electronic device is caused to implement a method as described in the following embodiments. For example, the electronic device can implement the steps shown in FIGS. 3 and 4.
以下对本申请实施例的技术方案的实现进行详细阐述:The implementation of the technical solution in the embodiments of the present application is described in detail below:
图3示意性示出了根据本申请的一个实施例的区块链网络的管理方法的流程图,该区块链网络的管理方法由前述实施例中所述的电子设备执行。参照图3所示,该区块链网络的管理方法至少包括步骤S310至步骤S330,详细介绍如下:FIG. 3 schematically illustrates a flowchart of a method for managing a blockchain network according to an embodiment of the present application. The method for managing a blockchain network is performed by the electronic device described in the foregoing embodiment. Referring to FIG. 3, the method for managing a blockchain network includes at least steps S310 to S330, which are described in detail as follows:
在步骤S310中,获取区块链网络中的公共配置参数的更新信息。In step S310, update information of public configuration parameters in the blockchain network is obtained.
在本申请的一个实施例中,区块链网络可以是公有链网络、私有链网络或者是联盟链网络,公共配置参数可以是指生成区块链网络所需要的基础信息,可以包括区块链节点的数目、一个区块的大小、每隔多久生成一个区块、挖矿奖励等。In an embodiment of the present application, the blockchain network may be a public chain network, a private chain network, or an alliance chain network. The public configuration parameters may refer to the basic information required to generate the blockchain network, and may include the blockchain. The number of nodes, the size of a block, how often a block is generated, mining rewards, etc.
在步骤S320中,根据所述更新信息生成所述区块链网络的交易信息。In step S320, transaction information of the blockchain network is generated according to the update information.
在本申请的一个实施例中,由于交易信息包括交易类型(即type)和交易内容(即data),因此可以根据公共配置参数的更新信息生成交易内容,并将交易类型配置为对所述公共配置参数进行修改的类型,进而基于该交易内 容和交易类型生成交易信息。In an embodiment of the present application, since the transaction information includes a transaction type (that is, type) and a transaction content (that is, data), the transaction content may be generated according to the update information of the public configuration parameters, and the transaction type is configured to the public information. The type of configuration parameter modification, and then generate transaction information based on the transaction content and transaction type.
比如针对节点数目的更新信息,可以生成交易类型为“change node”,交易内容为更新后的节点列表的交易信息。For example, for the update information of the number of nodes, transaction information with a transaction type of "change node" and transaction content with an updated node list can be generated.
在步骤S330中,在所述区块链网络中广播所述交易信息,以使所述区块链网络中的节点在对所述交易信息达成共识之后,根据所述交易信息对所述公共配置参数进行更新。In step S330, broadcasting the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration is performed according to the transaction information. Parameters are updated.
图3所示实施例的技术方案使得可以将公共配置参数的更新信息作为交易信息在区块链网络中进行广播,以在区块链网络中的节点对该交易信息达成共识之后,基于该更新信息对公共配置参数进行更新,实现了在区块链节点运行过程中对公共配置参数进行更新的目的,提高了公共配置参数的更新效率。The technical solution of the embodiment shown in FIG. 3 makes it possible to broadcast update information of public configuration parameters as transaction information in a blockchain network, so that after nodes in the blockchain network reach a consensus on the transaction information, based on the update The information updates the public configuration parameters, achieving the purpose of updating the public configuration parameters during the operation of the blockchain node, and improving the update efficiency of the public configuration parameters.
基于图3所示实施例的技术方案,在本申请的一个实施例中,还可以在区块链网络中广播所述公共配置参数的更新时机,以使所述区块链网络中的节点在所述更新时机对应的时间点更新所述公共配置参数。该实施例的技术方案使得各个区块链节点能够在相同的时间点对公共配置参数进行更新,避免了各个区块链节点因为公共配置参数的更新时机不同导致采用不同的公共配置参数而造成混乱的问题。比如某些区块链节点先对公共配置参数进行了更新,而其它区块链节点延后了一段时间才进行更新,那么在这段时间内由于区块链节点采用不同的公共配置参数,那么其共识策略也会产生差异,进而会影响区块链网络的正常运行。Based on the technical solution of the embodiment shown in FIG. 3, in an embodiment of the present application, the update timing of the common configuration parameters may also be broadcast in a blockchain network, so that the nodes in the blockchain network are at Updating the common configuration parameter at a time point corresponding to the update timing. The technical solution of this embodiment enables each blockchain node to update the common configuration parameters at the same time point, and avoids the confusion caused by the adoption of different public configuration parameters by different blockchain nodes due to different update timing of the common configuration parameters. The problem. For example, some blockchain nodes update the public configuration parameters first, while other blockchain nodes delay updating for a period of time, then during this period, because the blockchain nodes use different public configuration parameters, then Its consensus strategy will also make a difference, which will affect the normal operation of the blockchain network.
在本申请的一个实施例中,可以将上述的公共配置参数的更新时机添加至上述的交易信息(即通过公共配置参数生成的交易信息)中,以通过广播该交易信息来广播所述更新时机,比如可以在交易内容中添加该更新时机。In an embodiment of the present application, the above-mentioned update timing of the common configuration parameters may be added to the above-mentioned transaction information (that is, the transaction information generated by the common configuration parameters) to broadcast the update timing by broadcasting the transaction information. For example, you can add the update timing to the transaction content.
在本申请的一个实施例中,上述的公共配置参数的更新时机可以包括指定的区块高度,即在区块链网络中广播指定的区块高度以作为公共配置参数的更新时机。其中,区块高度是区块的标识符,由于区块具有一定的生成时间,因此当生成的区块达到指定的区块高度之后,可以确定达到了公共配置参数的更新时机。In an embodiment of the present application, the above-mentioned update timing of the public configuration parameters may include a specified block height, that is, the specified block height is broadcast in the blockchain network as the update timing of the public configuration parameters. Among them, the block height is the identifier of the block. Since the block has a certain generation time, after the generated block reaches the specified block height, it can be determined that the update timing of the public configuration parameters is reached.
在本申请的一个实施例中,上述指定的区块高度与上述交易信息(即通过公共配置参数生成的交易信息)所在区块的高度之间相差预定数量个区块,即在交易信息所在的区块之后生成预定数量个区块时对公共配置参数进行更新。In an embodiment of the present application, a predetermined number of blocks differ between the height of the specified block and the height of the block where the above-mentioned transaction information (that is, the transaction information generated by the common configuration parameter) is located, that is, in the place where the transaction information is located. The public configuration parameters are updated when a predetermined number of blocks are generated after the block.
在本申请的一个实施例中,上述的预定数量与区块链网络的网络延迟成正相关关系。比如网络延迟较大,那么可以将预定数量设置为较大的值,以尽可能保证所有或大部分的区块链节点都能够接收到交易信息(即通过公共配置参数生成的交易信息)并进行验证确认。若网络延迟较小,则可以将预定数量设置为较小的值,以尽快对公共配置参数进行更新。In one embodiment of the present application, the above-mentioned predetermined number is positively related to the network delay of the blockchain network. For example, if the network delay is large, the predetermined number can be set to a large value to ensure that all or most of the blockchain nodes can receive transaction information (that is, transaction information generated by public configuration parameters) and perform Verification confirmation. If the network delay is small, the predetermined number can be set to a smaller value to update the common configuration parameters as soon as possible.
在本申请的一个具体应用场景中,前述的区块链网络可以是采用基于投票的共识机制的区块链网络,比如联盟链网络等。由于基于投票的共识机制需要确认网络中节点的数目,以确定有大部分节点投票确认时能够对交易信息达成共识(通常为32+1个节点投票确认就认为达成了共识)。在目前的方案中,如果需要改变节点的数目,那么需要重启所有的节点来重新确认节点数目,而在本申请实施例的技术方案中,可以将增加和/或删除区块链网络中的节点的信息作为交易信息在区块链网络中进行广播,以在区块链网络中的节点对该交易信息达成共识之后,基于该更新信息对区块链节点的信息进行更新,实现了在区块链节点运行过程中对节点信息进行更新的目的,解决了目前不能在区块链节点的运行过程中修改节点信息的问题,提高了节点信息的更新效率。In a specific application scenario of the present application, the aforementioned blockchain network may be a blockchain network using a voting-based consensus mechanism, such as an alliance chain network. Because the voting-based consensus mechanism needs to confirm the number of nodes in the network to determine that most of the nodes can reach a consensus on the transaction information (usually 32 + 1 nodes vote to confirm that they have reached a consensus). In the current solution, if the number of nodes needs to be changed, all nodes need to be restarted to reconfirm the number of nodes. In the technical solution of the embodiment of the present application, nodes in the blockchain network can be added and / or deleted The information is broadcast in the blockchain network as transaction information, so that after the nodes in the blockchain network reach a consensus on the transaction information, the information of the blockchain node is updated based on the update information, and the The purpose of updating the node information during the operation of the chain node solves the problem that the node information cannot be modified during the operation of the blockchain node, and improves the efficiency of updating the node information.
上述实施例的技术方案是从广播交易信息的节点侧进行阐述,以下从接收到交易信息的节点侧对本申请实施例的技术方案进行进一步阐述。The technical solution of the above embodiment is described from the node side that broadcasts the transaction information, and the technical solution of the embodiment of the present application is further explained from the node side that receives the transaction information.
图4示意性示出了根据本申请的一个实施例的区块链网络的管理方法的流程图,参照图4所示,该方法具体包括如下步骤:FIG. 4 schematically illustrates a flowchart of a method for managing a blockchain network according to an embodiment of the present application. Referring to FIG. 4, the method specifically includes the following steps:
步骤S410,获取在区块链网络中广播的交易信息。Step S410: Obtain transaction information broadcasted on the blockchain network.
在本申请的一个实施例中,可以获取在区块链网络中广播的区块,然后从区块中获取该交易信息。In one embodiment of the present application, a block broadcast in a blockchain network can be obtained, and then the transaction information is obtained from the block.
步骤S420,确定所述交易信息中是否包含有所述区块链网络中的公共配 置参数的更新信息。In step S420, it is determined whether the transaction information includes update information of public configuration parameters in the blockchain network.
在本申请的一个实施例中,广播交易信息的节点可以根据区块链网络的公共配置参数的更新信息生成交易信息,因此接收到交易信息的节点可以确定该交易信息中是否包含有公共配置参数的更新信息。In an embodiment of the present application, a node that broadcasts transaction information may generate transaction information according to the update information of the public configuration parameters of the blockchain network, so the node that receives the transaction information may determine whether the transaction information includes the public configuration parameters. Update information.
步骤S430,若所述交易信息包含有所述公共配置参数的更新信息,则在所述区块链网络中的节点对所述交易信息达成共识之后,根据所述更新信息对所述公共配置参数进行更新。Step S430, if the transaction information includes update information of the public configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the update information. Update.
图4所示实施例的技术方案使得在区块链网络中的节点对包含有公共配置参数的更新信息的交易信息达成共识之后,可以基于该更新信息对公共配置参数进行更新,实现了在区块链节点运行过程中对公共配置参数进行更新的目的,提高了公共配置参数的更新效率。The technical solution of the embodiment shown in FIG. 4 enables the nodes in the blockchain network to reach consensus on the transaction information that includes the update information of the public configuration parameters, and then can update the public configuration parameters based on the update information, thereby realizing the presence in the district. The purpose of updating the common configuration parameters during the operation of the blockchain node improves the efficiency of updating the common configuration parameters.
基于图4所示实施例的技术方案,在本申请的一个实施例中,还可以获取公共配置参数的更新时机,进而可以在区块链网络中的节点对所述交易信息达成共识之后,在该更新时机对应的时间点对所述公共配置参数进行更新。该实施例的技术方案使得各个区块链节点能够在相同的时间点对公共配置参数进行更新,避免了各个区块链节点因为公共配置参数的更新时机不同导致采用不同的公共配置参数而造成混乱的问题。Based on the technical solution of the embodiment shown in FIG. 4, in an embodiment of the present application, the update timing of the public configuration parameters can also be obtained, and then after the nodes in the blockchain network reach a consensus on the transaction information, The public configuration parameter is updated at a time point corresponding to the update timing. The technical solution of this embodiment enables each blockchain node to update the common configuration parameters at the same time point, and avoids the confusion caused by the adoption of different public configuration parameters by different blockchain nodes due to different update timings of the common configuration parameters. The problem.
在本申请的一个实施例中,如上所述,该更新时机可以添加在上述的交易信息中来在区块链网络中进行广播,同时该更新时机可以是指定的区块高度。In an embodiment of the present application, as described above, the update timing may be added to the above-mentioned transaction information to be broadcast in a blockchain network, and the update timing may be a specified block height.
在本申请的一个实施例中,在根据所述更新信息对所述公共配置参数进行更新之后,需要基于更新后的公共配置参数对区块链网络中的待确认区块进行确认;和/或基于更新后的公共配置参数调整共识策略。比如,若对一个区块的大小进行了更新,那么在更新后需要根据新的区块大小来对待确认区块进行确认;再如,若区块链节点的数目发生了变化,那么在采用基于投票的共识机制时,需要根据更新后的区块链节点的数目来对达成共识的条件(即有多少节点投票确认时才认定为达成共识)进行更新。In an embodiment of the present application, after the public configuration parameters are updated according to the update information, a block to be confirmed in the blockchain network needs to be confirmed based on the updated public configuration parameters; and / or Adjust the consensus strategy based on the updated public 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 blockchain nodes changes, then the When voting for a consensus mechanism, the conditions for reaching a consensus (that is, how many nodes are deemed to reach a consensus when they vote for confirmation) need to be updated according to the number of updated blockchain nodes.
在本申请的一个实施例中,当节点接收到一个待确认区块时,可以确定 该待确认区块的生成时间是否处于公共配置参数的更新时间点之前,如果该待确认区块的生成时间处于公共配置参数的更新时间点之前,那么可以基于更新之前的公共配置参数对该待确认区块进行确认;如果该待确认区块的生成时间处于公共配置参数的更新时间点之后,则可以基于更新后的公共配置参数对该待确认区块进行确认。In an embodiment of the present application, 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 public configuration parameter, and if the generation time of the block to be confirmed is Before the update time of the public configuration parameters, the block to be confirmed can be confirmed based on the public configuration parameters before the update; if the generation time of the block to be confirmed is after the update time of the public configuration parameters, the The updated public configuration parameters confirm the block to be confirmed.
该实施例的技术方案可以在某些节点由于网络延迟、掉线、宕机等原因导致接收到之前的待确认区块(即公共配置参数的更新时间点之前生成的区块)时,可以基于更新之前的公共配置参数(如区块大小等)来对该待确认区块进行确认,以确保与其它区块链节点的确认机制保持一致。The technical solution of this embodiment can be based on the fact that when certain nodes receive the previously to-be-confirmed block (that is, the block generated before the update time point of the public configuration parameters) due to network delay, disconnection, downtime, etc., it can be based on Update the previous public configuration parameters (such as block size, etc.) to confirm the block to be confirmed to ensure consistency with the confirmation mechanism of other blockchain nodes.
前述实施例分别从广播交易信息的节点侧和接收到交易信息的节点侧对本申请实施例的技术方案进行了阐述,以下以采用基于投票的共识机制的联盟链网络为例,结合图1所示的系统框架对这两部分节点的处理过程进行说明:The foregoing embodiment describes the technical solution of the embodiment of the present application from the node side that broadcasts the transaction information and the node side that receives the transaction information. The following uses the alliance chain network using a voting-based consensus mechanism as an example, as shown in FIG. The system framework describes the processing of these two nodes:
在本申请的一个实施例中,比如需要对联盟链网络中的节点数目进行调整,那么节点101(也可以是节点102、103、104、105或106,在该实施例中以节点101为例进行说明)可以将一个交易的类型(type)设置为“change node”,并将交易内容(data)设置为新的节点列表及指定的区块高度(该指定的区块高度标识了更新时机),然后将该交易广播至联盟链网络中。In an embodiment of the present application, for example, if the number of nodes in the alliance chain network needs to be adjusted, then node 101 (may also be node 102, 103, 104, 105, or 106. In this embodiment, node 101 is used as an example. (Description) You can set the type of a transaction to "change node", and set the transaction content to a new node list and a specified block height (the specified block height identifies the update timing) , And then broadcast the transaction to the affiliate chain network.
联盟链网络中的节点(如节点102、103、104、105或106,也可以是节点101)接收到该交易之后,可以将该交易的信息添加至区块中(该区块中可能还包含有其它的交易信息),然后在联盟链网络中广播该区块,以便于各个节点进行投票确认。After the node in the alliance chain network (such as node 102, 103, 104, 105 or 106, or node 101) receives the transaction, it can add the information of the transaction to the block (the block may also contain There are other transaction information), and then broadcast the block in the alliance chain network to facilitate the voting confirmation of each node.
当联盟链网络中的各个节点进行投票且达成共识之后,各个节点可以将该区块添加至本地维护的联盟链中,同时基于交易内容中包含的新的节点列表在指定的区块高度更新本地维护的节点列表。同时,也可以更新共识策略及对区块进行验证确认的策略。After each node in the alliance chain network has voted and reached a consensus, each node can add the block to the locally maintained alliance chain, and update the local at the specified block height based on the new node list included in the transaction content. Maintained node list. At the same time, you can also update the consensus strategy and the verification and confirmation strategy for the block.
综上,本申请实施例的技术方案通过将公共配置参数的更新信息作为交易信息在区块链网络中进行广播,以在区块链网络中的节点对该交易信息达 成共识之后,基于该更新信息对公共配置参数进行更新,实现了在区块链节点运行过程中对公共配置参数进行更新的目的,实现了公共配置参数的动态更新,提高了公共配置参数的更新效率。同时,由于各个节点可以在相同的更新时机对公共配置参数进行更新,因此也可以避免由于公共配置参数不同而带来的共识问题。In summary, the technical solution of the embodiment of the present application broadcasts the update information of the common configuration parameters as transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, based on the update The information updates the public configuration parameters, achieving the purpose of updating the public configuration parameters during the operation of the blockchain node, realizing the dynamic update of the public configuration parameters, and improving the update efficiency of the public configuration parameters. At the same time, since each node can update the common configuration parameters at the same update timing, it is also possible to avoid consensus problems caused by different common configuration parameters.
以下介绍本申请的装置实施例,可以用于执行本申请上述实施例中的区块链网络的管理方法。对于本申请装置实施例中未披露的细节,请参照本申请上述的区块链网络的管理方法的实施例。The following describes the device embodiments of the present application, which can be used to execute the method for managing a blockchain network in the above embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the embodiments of the management method of the blockchain network described above in the present application.
图5示意性示出了根据本申请的一个实施例的区块链网络的管理装置的框图。FIG. 5 schematically illustrates a block diagram of a management device for a blockchain network according to an embodiment of the present application.
参照图5所示,根据本申请的一个实施例的区块链网络的管理装置500,包括:获取单元501、生成单元502和广播单元503。Referring to FIG. 5, a management device 500 of a blockchain network according to an embodiment of the present application includes: an obtaining unit 501, a generating unit 502, and a broadcasting unit 503.
其中,获取单元501用于获取区块链网络中的公共配置参数的更新信息;生成单元502用于根据所述更新信息生成所述区块链网络的交易信息;广播单元503用于在所述区块链网络中广播所述交易信息,以使所述区块链网络中的节点在对所述交易信息达成共识之后,根据所述交易信息对所述公共配置参数进行更新。The obtaining unit 501 is configured to obtain update information of public configuration parameters in the blockchain network; the generating unit 502 is configured to generate transaction information of the blockchain network according to the update information; and the broadcasting unit 503 is configured to update the information in the blockchain network. The transaction information is broadcast in a blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the transaction information.
在本申请的一个实施例中,所述广播单元503还用于:在所述区块链网络中广播所述公共配置参数的更新时机,以使所述区块链网络中的节点在所述更新时机对应的时间点更新所述公共配置参数。In an embodiment of the present application, the broadcasting unit 503 is further configured to broadcast an update timing of the common configuration parameters in the blockchain network, so that a node in the blockchain network is in the blockchain network. The common configuration parameter is updated at a time point corresponding to the update timing.
在本申请的一个实施例中,所述公共配置参数的更新时机包括指定的区块高度。In an embodiment of the present application, the update timing of the common configuration parameter includes a specified block height.
在本申请的一个实施例中,所述指定的区块高度与所述交易信息所在区块的高度之间相差预定数量个区块,所述预定数量与所述区块链网络的网络延迟成正相关关系。In an embodiment of the present application, there is a predetermined number of blocks between the height of the designated block and the height of the block where the transaction information is located, and the predetermined number is positively related to the network delay of the blockchain network. relationship.
在本申请的一个实施例中,所述广播单元503用于:将所述公共配置参数的更新时机添加至所述交易信息中,以通过广播所述交易信息来广播所述更新时机。In an embodiment of the present application, the broadcasting unit 503 is configured to add an update timing of the common configuration parameter to the transaction information, so as to broadcast the update timing by broadcasting the transaction information.
在本申请的一个实施例中,所述生成单元502用于:根据所述更新信息生成交易内容,并将交易类型配置为对所述公共配置参数进行修改的类型;基于所述交易内容和所述交易类型生成所述交易信息。In an embodiment of the present application, the generating unit 502 is configured to generate transaction content according to the update information, and configure a transaction type as a type that modifies the public configuration parameter; based on the transaction content and the The transaction type generates the transaction information.
在本申请的一个实施例中,所述区块链网络为采用基于投票的共识机制的区块链网络,所述公共配置参数的更新信息包括:增加和/或删除所述区块链网络中的节点。In an embodiment of the present application, the blockchain network is a blockchain network using a voting-based consensus mechanism, and the update information of the common configuration parameters includes: adding and / or deleting the blockchain network Node.
图6示意性示出了根据本申请的一个实施例的区块链网络的管理装置的框图。FIG. 6 schematically illustrates a block diagram of a management device for a blockchain network according to an embodiment of the present application.
参照图6所示,根据本申请的一个实施例的区块链网络的管理装置600,包括:获取单元601、确定单元602和处理单元603。Referring to FIG. 6, a management device 600 for a blockchain network according to an embodiment of the present application includes: an obtaining unit 601, a determining unit 602, and a processing unit 603.
其中,获取单元601用于获取在区块链网络中广播的交易信息;确定单元602用于确定所述交易信息中是否包含有所述区块链网络中的公共配置参数的更新信息;处理单元603用于在所述交易信息包含有所述公共配置参数的更新信息时,当所述区块链网络中的节点对所述交易信息达成共识之后,根据所述更新信息对所述公共配置参数进行更新。The obtaining unit 601 is configured to obtain transaction information broadcasted in a blockchain network; the determination unit 602 is configured to determine whether the transaction information includes update information of public configuration parameters in the blockchain network; a processing unit 603 is configured to: when the transaction information includes update information of the public configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the update information Update.
在本申请的一个实施例中,所述获取单元601还用于:获取所述公共配置参数的更新时机;所述处理单元603用于在所述区块链网络中的节点对所述交易信息达成共识之后,在所述更新时机对应的时间点对所述公共配置参数进行更新。In an embodiment of the present application, the obtaining unit 601 is further configured to obtain an update timing of the common configuration parameters; and the processing unit 603 is configured to perform transaction information on the transaction information by a node in the blockchain network. After reaching a consensus, the public configuration parameters are updated at a time point corresponding to the update timing.
在本申请的一个实施例中,所述处理单元603还用于:在根据所述更新信息对所述公共配置参数进行更新之后,基于更新后的公共配置参数对所述区块链网络中的待确认区块进行确认,和/或基于更新后的公共配置参数调整共识策略。In an embodiment of the present application, the processing unit 603 is further configured to: after updating the public configuration parameters according to the update information, update the public configuration parameters in the blockchain network based on the updated public configuration parameters. The block to be confirmed is confirmed, and / or the consensus strategy is adjusted based on the updated public configuration parameters.
在本申请的一个实施例中,所述处理单元603用于:确定所述待确认区块的生成时间是否处于所述公共配置参数的更新时间点之前;若所述待确认区块的生成时间处于所述公共配置参数的更新时间点之前,则基于更新之前的公共配置参数对所述待确认区块进行确认;若所述待确认区块的生成时间处于所述公共配置参数的更新时间点之后,则基于更新后的公共配置参数对 所述区块链网络中的待确认区块进行确认。In an embodiment of the present application, the processing unit 603 is configured to determine 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 point of the common configuration parameter, confirming the block to be confirmed based on the common configuration parameter before the update; if the generation time of the block to be confirmed is at the update point of the common configuration parameter After that, the blocks to be confirmed in the blockchain network are confirmed based on the updated public configuration parameters.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本申请实施方式的方法。Through the description of the foregoing embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present application may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (can be a CD-ROM, a U disk, a mobile hard disk, etc.) or on a network , Including several instructions to enable a computing device (which may 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 application.
本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily think of other embodiments of the present application after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application. These variations, uses, or adaptations follow the general principles of this application and include common general knowledge or conventional technical means in the technical field not disclosed in this application. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the application is limited only by the accompanying claims.

Claims (15)

  1. 一种区块链网络的管理方法,由电子设备执行,包括:A method for managing a blockchain network, executed by an electronic device, includes:
    获取区块链网络中的公共配置参数的更新信息;Get update information of public configuration parameters in the blockchain network;
    根据所述更新信息生成所述区块链网络的交易信息;Generating transaction information of the blockchain network according to the update information;
    在所述区块链网络中广播所述交易信息,以使所述区块链网络中的节点在对所述交易信息达成共识之后,根据所述交易信息对所述公共配置参数进行更新。Broadcasting the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the transaction information.
  2. 根据权利要求1所述的区块链网络的管理方法,其中,还包括:The method for managing a blockchain network according to claim 1, further comprising:
    在所述区块链网络中广播所述公共配置参数的更新时机,以使所述区块链网络中的节点在所述更新时机对应的时间点更新所述公共配置参数。Broadcasting the update timing of the public configuration parameters in the blockchain network, so that a node in the blockchain network updates the public configuration parameters at a time point corresponding to the update timing.
  3. 根据权利要求2所述的区块链网络的管理方法,其中,所述公共配置参数的更新时机包括指定的区块高度。The method for managing a blockchain network according to claim 2, wherein the update timing of the common configuration parameters includes a designated block height.
  4. 根据权利要求3所述的区块链网络的管理方法,其中,所述指定的区块高度与所述交易信息所在区块的高度之间相差预定数量个区块,所述预定数量与所述区块链网络的网络延迟成正相关关系。The method for managing a blockchain network according to claim 3, wherein the predetermined block height and the height of the block where the transaction information is located differ by a predetermined number of blocks, and the predetermined number is different from the predetermined number of blocks. The network delay of a blockchain network is positively correlated.
  5. 根据权利要求2所述的区块链网络的管理方法,其中,在所述区块链网络中广播所述公共配置参数的更新时机,包括:The method for managing a blockchain network according to claim 2, wherein the updating timing of broadcasting the common configuration parameters in the blockchain network comprises:
    将所述公共配置参数的更新时机添加至所述交易信息中,以通过广播所述交易信息来广播所述更新时机。The update timing of the common configuration parameter is added to the transaction information to broadcast the update timing by broadcasting the transaction information.
  6. 根据权利要求1所述的区块链网络的管理方法,其中,根据所述更新信息生成所述区块链网络的交易信息,包括: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 comprises:
    根据所述更新信息生成交易内容,并将交易类型配置为对所述公共配置参数进行修改的类型;Generating transaction content according to the update information, and configuring the transaction type to a type that modifies the public configuration parameter;
    基于所述交易内容和所述交易类型生成所述交易信息。The transaction information is generated based on the transaction content and the transaction type.
  7. 根据权利要求1至6中任一项所述的区块链网络的管理方法,其中,所述区块链网络为采用基于投票的共识机制的区块链网络,所述公共配置参数的更新信息包括:增加和/或删除所述区块链网络中的节点。The method for managing a blockchain network according to any one of claims 1 to 6, wherein the blockchain network is a blockchain network using a voting-based consensus mechanism, and update information of the common configuration parameters Including: adding and / or deleting nodes in the blockchain network.
  8. 一种区块链网络的管理方法,由电子设备执行,包括:A method for managing a blockchain network, executed by an electronic device, includes:
    获取在区块链网络中广播的交易信息;Obtain transaction information broadcast in the blockchain network;
    确定所述交易信息中是否包含有所述区块链网络中的公共配置参数的更新信息;Determining whether the transaction information includes update information of public configuration parameters in the blockchain network;
    若所述交易信息包含有所述公共配置参数的更新信息,则在所述区块链网络中的节点对所述交易信息达成共识之后,根据所述更新信息对所述公共配置参数进行更新。If the transaction information includes update information of the public configuration parameters, after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated according to the update information.
  9. 根据权利要求8所述的区块链网络的管理方法,其中,在根据所述更新信息对所述公共配置参数进行更新之前,还包括:获取所述公共配置参数的更新时机;The method for managing a blockchain network according to claim 8, before updating the common configuration parameters according to the update information, further comprising: obtaining an update timing of the common configuration parameters;
    在所述区块链网络中的节点对所述交易信息达成共识之后,在所述更新时机对应的时间点对所述公共配置参数进行更新。After the nodes in the blockchain network reach a consensus on the transaction information, the public configuration parameters are updated at a time point corresponding to the update timing.
  10. 根据权利要求8所述的区块链网络的管理方法,其中,在根据所述更新信息对所述公共配置参数进行更新之后,还包括:The method for managing a blockchain network according to claim 8, wherein after updating the common configuration parameters according to the update information, further comprising:
    基于更新后的公共配置参数对所述区块链网络中的待确认区块进行确认;和/或Confirm the blocks to be confirmed in the blockchain network based on the updated public configuration parameters; and / or
    基于更新后的公共配置参数调整共识策略。Adjust the consensus strategy based on the updated public configuration parameters.
  11. 根据权利要求10所述的区块链网络的管理方法,其中,在基于更新后的公共配置参数对所述区块链网络中的待确认区块进行确认之前,还包括:The method for managing a blockchain network according to claim 10, wherein before confirming the blocks to be confirmed in the blockchain network based on the updated public configuration parameters, further comprising:
    确定所述待确认区块的生成时间是否处于所述公共配置参数的更新时间点之前;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 public configuration parameter, confirming the block to be confirmed based on the public configuration parameter before the update;
    若所述待确认区块的生成时间处于所述公共配置参数的更新时间点之后,则执行基于更新后的公共配置参数对所述区块链网络中的待确认区块进行确认的步骤。If the generation time of the block to be confirmed is after the update point of the public configuration parameter, the step of confirming the block to be confirmed in the blockchain network based on the updated public configuration parameter is performed.
  12. 一种区块链网络的管理装置,包括:A management device for a blockchain network includes:
    获取单元,用于获取区块链网络中的公共配置参数的更新信息;An obtaining unit for obtaining update information of public configuration parameters in a blockchain network;
    生成单元,用于根据所述更新信息生成所述区块链网络的交易信息;A generating unit, configured to generate transaction information of the blockchain network according to the update information;
    广播单元,用于在所述区块链网络中广播所述交易信息,以使所述区块链网络中的节点在对所述交易信息达成共识之后,根据所述交易信息对所述公共配置参数进行更新。A broadcasting unit, configured to broadcast the transaction information in the blockchain network, so that after the nodes in the blockchain network reach a consensus on the transaction information, the public configuration is performed according to the transaction information Parameters are updated.
  13. 一种区块链网络的管理装置,包括:A management device for a blockchain network includes:
    获取单元,用于获取在区块链网络中广播的交易信息;An acquisition unit for acquiring transaction information broadcast in a blockchain network;
    确定单元,用于确定所述交易信息中是否包含有所述区块链网络中的公共配置参数的更新信息;A determining unit, configured to determine whether the transaction information includes update information of public configuration parameters in the blockchain network;
    处理单元,用于在所述交易信息包含有所述公共配置参数的更新信息时,当所述区块链网络中的节点对所述交易信息达成共识之后,根据所述更新信息对所述公共配置参数进行更新。A processing unit, configured to: when the transaction information includes update information of the public configuration parameters, after a node in the blockchain network reaches a consensus on the transaction information, Configuration parameters are updated.
  14. 一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的区块链网络的管理方法,和/或实现如权利要求8至11中任一项所述的区块链网络的管理方法。A computer-readable medium having stored thereon a computer program that, when executed by a processor, implements a method for managing a blockchain network according to any one of claims 1 to 7, and / or implements a method such as A method for managing a blockchain network according to any one of claims 8 to 11.
  15. 一种电子设备,包括:An electronic device includes:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至7中任一项所述的区块链网络的管理方法,和/或实现如权利要求8至11中任一项所述的区块链网络的管理方法。The storage device is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, enable the one or more processors to implement any one of claims 1 to 7. A method for managing a blockchain network, and / or a method for managing a blockchain network according to any one of claims 8 to 11.
PCT/CN2019/083450 2018-05-21 2019-04-19 Block chain network management method, device, medium and electronic device WO2019223469A1 (en)

Applications Claiming Priority (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
CN201810487765.0 2018-05-21

Publications (1)

Publication Number Publication Date
WO2019223469A1 true WO2019223469A1 (en) 2019-11-28

Family

ID=63805856

Family Applications (1)

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

Country Status (2)

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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259078A (en) * 2020-01-15 2020-06-09 广州运通链达金服科技有限公司 Block chain consensus method, block chain consensus device, computer equipment and storage medium
CN111524012A (en) * 2020-05-06 2020-08-11 杭州复杂美科技有限公司 Data delay publishing method, device and storage medium
CN111556120A (en) * 2020-04-23 2020-08-18 财付通支付科技有限公司 Data processing method and device based on block chain, storage medium and equipment
CN111858770A (en) * 2020-07-30 2020-10-30 杭州复杂美科技有限公司 Consensus method, device and storage medium
CN112182113A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Block chain consensus method, system, electronic device and storage medium
KR20210074981A (en) * 2019-12-12 2021-06-22 (주)포뎁스 Electronic terminal device that enables update processing for applications and forgery detection of update data based on blockchain and operating method thereof
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

Families Citing this family (23)

* 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
CN111367930B (en) * 2020-03-03 2023-03-17 深圳大学 Method, device, equipment and medium for synchronizing block chain transaction pool information
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
CN111967969A (en) * 2020-08-18 2020-11-20 中国银行股份有限公司 Block chain-based security baseline parameter configuration method and device
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

Citations (3)

* 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
CN107360001A (en) * 2017-07-26 2017-11-17 阿里巴巴集团控股有限公司 A kind of digital certificate management method, device and system
CN108683539A (en) * 2018-05-21 2018-10-19 腾讯科技(深圳)有限公司 Management method, device, medium and the electronic equipment of block chain network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19951796C1 (en) * 1999-10-27 2001-01-18 Siemens Ag Signalling instruction update method in communications network
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
CN106504091B (en) * 2016-10-27 2018-06-29 深圳壹账通智能科技有限公司 The method and device merchandised on block chain
CN107508680B (en) * 2017-07-26 2021-02-05 创新先进技术有限公司 Digital certificate management method and 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

Patent Citations (3)

* 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
CN107360001A (en) * 2017-07-26 2017-11-17 阿里巴巴集团控股有限公司 A kind of digital certificate management method, device and system
CN108683539A (en) * 2018-05-21 2018-10-19 腾讯科技(深圳)有限公司 Management method, device, medium and the electronic equipment of block chain network

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210074981A (en) * 2019-12-12 2021-06-22 (주)포뎁스 Electronic terminal device that enables update processing for applications and forgery detection of update data based on blockchain and operating method thereof
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
CN111259078A (en) * 2020-01-15 2020-06-09 广州运通链达金服科技有限公司 Block chain consensus method, block chain consensus device, computer equipment and storage medium
CN111259078B (en) * 2020-01-15 2023-10-10 广州运通链达金服科技有限公司 Block chain consensus method, apparatus, computer device and storage medium
CN111556120B (en) * 2020-04-23 2023-04-07 财付通支付科技有限公司 Data processing method and device based on block chain, storage medium and equipment
CN111556120A (en) * 2020-04-23 2020-08-18 财付通支付科技有限公司 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
CN111858770A (en) * 2020-07-30 2020-10-30 杭州复杂美科技有限公司 Consensus method, device and storage medium
CN111858770B (en) * 2020-07-30 2023-11-28 杭州复杂美科技有限公司 Consensus method, device and storage medium
CN112182113A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Block chain consensus method, system, electronic device and 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

Also Published As

Publication number Publication date
CN108683539A (en) 2018-10-19
CN108683539B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
WO2019223469A1 (en) Block chain network management method, device, medium and electronic device
CN107579848B (en) Method for dynamically changing consensus node in practical Byzantine fault-tolerant consensus mechanism
US9253265B2 (en) Hot pluggable extensions for access management system
WO2019144761A1 (en) Data synchronization method, distributed system and device
US20180034646A1 (en) Method and apparatus for seamless remote renewal of offline generated digital identity certificates to field deployed hardware security modules
US20210055925A1 (en) Method and system for implementing software changes using rolling upgrades with reduced downtime
WO2019028992A1 (en) Multi-module version dependency relationship construction method, device, server and storage medium
CN110661658A (en) Node management method and device of block chain network and computer storage medium
WO2022134797A1 (en) Data fragmentation storage method and apparatus, a computer device, and a storage medium
US20230052935A1 (en) Asynchronous accounting method and apparatus for blockchain, medium and electronic device
US10474185B2 (en) Timestamp alignment across a plurality of computing devices
CN111666134A (en) Method and system for scheduling distributed tasks
WO2022171187A1 (en) Registration and execution methods and apparatuses for a smart contract in a blockchain
US20240028663A1 (en) Web site generation based on streams of data records
US11379561B2 (en) License usage management
CN109614383B (en) Data copying method and device, electronic equipment and storage medium
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
JP5598089B2 (en) Program, information processing apparatus and information processing method
US8437983B2 (en) Method for determining definite clock and node apparatus
CN111400404A (en) Node initialization method, device, equipment and storage medium
US11652877B2 (en) Method and system for establishing trust between nodes in a network based on recommendations
CN117348975B (en) Cluster deployment method, device, equipment and storage medium
TW201816605A (en) Application upgrading method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19807603

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19807603

Country of ref document: EP

Kind code of ref document: A1