CN111324367A - Method and device for updating alliance chain configuration - Google Patents

Method and device for updating alliance chain configuration Download PDF

Info

Publication number
CN111324367A
CN111324367A CN202010067579.9A CN202010067579A CN111324367A CN 111324367 A CN111324367 A CN 111324367A CN 202010067579 A CN202010067579 A CN 202010067579A CN 111324367 A CN111324367 A CN 111324367A
Authority
CN
China
Prior art keywords
configuration
block
nodes
node
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010067579.9A
Other languages
Chinese (zh)
Other versions
CN111324367B (en
Inventor
陈喆
张文海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chuyuan Shanghai Information Technology Co ltd
Original Assignee
Lianshi Shanghai Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lianshi Shanghai Information Technology Co ltd filed Critical Lianshi Shanghai Information Technology Co ltd
Priority to CN202010067579.9A priority Critical patent/CN111324367B/en
Publication of CN111324367A publication Critical patent/CN111324367A/en
Application granted granted Critical
Publication of CN111324367B publication Critical patent/CN111324367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention relates to the technical field of alliance chains, and particularly discloses an alliance chain configuration updating method and a device thereof, wherein the device comprises a client, an updating configuration node and a production block node, the updating configuration node receives and executes a configuration updating instruction sent by the client, when the execution is successful, the configuration updating instruction is broadcasted to the production block node in alliance chain application, the production block node receives and executes the instruction, if the execution is successful and the production block node takes turns to produce a block, the instruction is packed into the block and broadcasted to the production block node with voting right in alliance chain application, when more than two thirds of the nodes in the production block node vote and execute the instruction, all the nodes in alliance chain application update the configuration in the application block; the corresponding configuration in the chain node can be updated when the alliance chain application node is in the running state, the sustainable service capability of the alliance chain application can be really improved, and the coordination cost and the operation and maintenance difficulty among workers are greatly reduced.

Description

Method and device for updating alliance chain configuration
Technical Field
The present invention relates to the field of alliance chain technology, and more particularly, to an alliance chain configuration updating method and apparatus.
Background
The block chain technology is a decentralized distributed internet database, is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, at present, most of block chains are public chains, and any node can freely join and leave the network when running in the public network. Each node in the chain can obtain the whole amount of data on the chain, which creates a potential threat to the privacy of the transaction on the chain and the security of the transaction data, and the alliance chain is born on the basis and refers to a block chain which is managed by a plurality of mechanisms together, wherein the data only allows the mechanisms in the system to read and write.
When a federation chain is run on a public network, a permission mechanism is required to ensure that every node participating in the federation chain system is permitted and unauthorized nodes are inaccessible. The existing alliance chain only supports the networking and then determines the added nodes, once the nodes are determined, the nodes can not be changed unless the nodes are updated by shutdown, namely the nodes which are allowed to be added or reduced can not be increased or decreased on the premise of not influencing the user experience; whereas in the actual operation of a federation chain, the joining and leaving of nodes inevitably occurs.
However, the increase and decrease of the current nodes can cause the outage of services on the federation chain, which affects the sustainable service capability of the applications on the federation chain, and the outage updating process of the current federation chain applications is generally called offline deployment because the updating process is more dependent on manual coordination operation, which not only consumes huge manpower resources, but also is not high in implementation accuracy. Since the participating nodes cannot be changed, if a new organization joins or an old organization exits, the existing federation chain cannot be seamlessly updated. It is thus difficult to apply a federation chain to those industries and scenarios where the number of enterprises is constantly changing. Therefore, the problem that the participation of the enterprises cannot be simply increased or decreased in the alliance chain is a problem to be solved by .
Disclosure of Invention
In view of the foregoing drawbacks in the prior art, an object of the present invention is to provide a method and an apparatus for updating alliance chain configuration, so that related nodes in a chain can automatically complete synchronous update of alliance chain admission configuration without affecting normal operation of applications in the chain, and the update process is efficient and reliable.
The purpose of the invention and the technical problem to be solved are realized by adopting the following technical scheme:
a federation chain configuration updating method, nodes in a federation chain application including an update configuration node and a production block node, the method comprising: receiving a configuration updating instruction which is sent by a client and aims at a alliance chain in a running state through an updating configuration node, wherein the configuration updating instruction comprises target configuration data to be updated; executing the configuration updating instruction, and broadcasting the configuration updating instruction to other nodes except the updating configuration node in the alliance chain application if the execution is successful, wherein the other nodes comprise the production block nodes; receiving and executing the configuration updating instruction through the production block node, and if the execution is successful and the production block node outputs a block in turn, packaging the configuration updating instruction into a block and broadcasting the block to all nodes in the alliance chain application, wherein all the nodes comprise all the production block nodes with voting right; and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, changing the block containing the configuration updating instruction into an irreversible block, and applying all the nodes in the alliance chain application to all the operations in the block, wherein all the operations comprise configuration updating operations.
Preferably, the update configuration node includes a first data transmission module and a first update configuration module, and the block generation node includes a second data transmission module, a second update configuration module and a consensus module; receiving a configuration updating instruction which is sent by a client and aims at a federation chain in a running state through a first data transmission module, and executing the configuration updating instruction through a first updating configuration module; receiving the configuration updating instruction through a second data transmission module, executing the configuration updating instruction through the second updating configuration module, and if the execution is successful and the generation of the block node is in turn, packaging the configuration updating instruction into a block and broadcasting the block into all nodes in the alliance chain application; and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction or not through the consensus module, if so, changing the block containing the configuration updating instruction into an irreversible block, and controlling all the nodes in the alliance chain application to apply all the operations in the block.
Preferably, the target configuration data includes account management data, admission control data, and permission setting data to be updated for the federation chain.
Preferably, when more than two thirds of the nodes belonging to the production block in the same alliance chain application are judged to be voted and pass through the execution of the configuration updating instruction, the target configuration data is updated to the local original configuration and stored in the database.
Preferably, each node in the federation chain application corresponds to the same consensus mechanism, and the consensus mechanism is applied to determine whether more than two-thirds nodes in the production block nodes in the same federation chain application are voted and execute the configuration update instruction.
In order to achieve the object of the present invention, in a second aspect of the present invention, a federation chain configuration updating apparatus is provided, including: the client is used for initiating a configuration updating instruction to the updating configuration node; the method comprises the steps that a configuration updating node receives a configuration updating instruction which is sent by a client and aims at a coalition chain in a running state, wherein the configuration updating instruction comprises target configuration data to be updated; and executing the configuration updating instruction, and broadcasting the configuration updating instruction to other nodes except the updating configuration node in the alliance chain application if the execution is successful, wherein the other nodes comprise the production block nodes; the generation block node receives and executes the configuration updating instruction, and if the execution is successful and the generation block node outputs a block in turn, the configuration updating instruction is packed into a block and is broadcasted to all nodes in the alliance chain application, wherein all the nodes comprise all generation block nodes with voting right; and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, changing the block containing the configuration updating instruction into an irreversible block, and applying all the nodes in the alliance chain application to all the operations in the block, wherein all the operations comprise configuration updating operations.
Preferably, the target configuration data includes account management data, admission control data, and permission setting data to be updated for the federation chain.
Preferably, the update configuration node includes a first data transmission module and a first update configuration module, and the block generation node includes a second data transmission module, a second update configuration module and a consensus module; the first data transmission module receives a configuration update instruction which is sent by the client and aims at a federation chain in a running state, and the first update configuration module executes the configuration update instruction; the second data transmission module receives the configuration updating instruction and broadcasts the configuration updating instruction to all nodes in the alliance chain application; the second update configuration module executes the configuration update instruction, and packs the configuration update instruction into a block if the execution is successful and the block is output by the block production node; the consensus module judges whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, the block containing the configuration updating instruction is changed into an irreversible block, and all the nodes in the alliance chain application are controlled to apply all the operations in the block.
Preferably, the consensus module is further configured to update the local original configuration with the target configuration data and store the updated local original configuration in a database when it is determined that more than two thirds of the nodes belonging to the production block in the same federation chain application are voted to pass the configuration update instruction.
Preferably, each node in the federation chain application corresponds to the same consensus mechanism, and the consensus module determines whether more than two thirds of the nodes in the production block in the same federation chain application are voted to execute the configuration update instruction by using the consensus mechanism.
The alliance chain configuration updating method and the device thereof have the following advantages that: the corresponding configuration in the node link can be updated by applying the target configuration data under the condition that the application node of the alliance chain is in the running state, the sustainable service capability of the application of the alliance chain can be really improved, the manual coordination cost and the operation and maintenance difficulty are greatly reduced, the management of the account number and the access configuration in the alliance chain can be automatically completed under the condition that the normal running of the application node of the block chain is not influenced, and the updating process is efficient and reliable.
Drawings
FIG. 1 is a schematic structural diagram of a federation chain application provided by an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a federation chain configuration update apparatus according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a federation chain configuration updating method according to an embodiment of the present invention.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the embodiments, structures, features and effects of the method for updating federation chain configuration and the device thereof according to the present invention are described in detail below with reference to the accompanying drawings and preferred embodiments. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without any inventive step, are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a federation chain application according to an embodiment of the present invention.
As shown in fig. 1, the federation chain configuration update service itself is a block chain application, and the federation chain is formed by connecting a plurality of update configuration nodes and a plurality of production block nodes through a network, and specifically comprises a plurality of production block nodes 101, a plurality of update configuration nodes 102, a federation chain network 103, and a client 104; the production block nodes 101 refer to all nodes marked as S, the update configuration nodes 102 refer to all nodes marked as B, the update configuration nodes 102 are directly connected with the client 104, and the plurality of production block nodes 101 and the plurality of update configuration nodes 102 are connected together through the alliance chain network 103 to form alliance chain application; the client 104 is configured to initiate, by an operation and maintenance person of the federation chain application, a configuration update instruction for the federation chain in the running state, such as increase or decrease of an admission node.
In this embodiment, the production block node 101 and the update configuration node 102 are connected through the federation chain network 103, and modified configuration data can be transmitted from the update configuration node 102 to the production block node 101 through the federation chain network 103 to perform block packaging and voting; in addition, the production node 101 and the update configuration node 102 may be in the same physical node.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a federation chain configuration update apparatus according to an embodiment of the present invention, and fig. 1 is also referred to.
As shown in fig. 2, a federation chain configuration updating apparatus includes: a client 104, an update configuration node 102 and a production block node 101; a client 104, configured to initiate a configuration update instruction to an update configuration node; the update configuration node 102 is configured to receive a configuration update instruction, which is sent by the client 104 and is directed to the federation chain in the running state, where the configuration update instruction includes target configuration data to be updated; executing the configuration updating instruction, and broadcasting the configuration updating instruction to other nodes except the updating configuration node in the alliance chain application if the execution is successful, wherein the other nodes comprise a production block node 101; the generation block node 101 receives and executes the configuration updating instruction, and if the execution is successful and the generation block node 101 outputs a block in turn, the configuration updating instruction is packed into a block and is broadcasted to all nodes in the alliance chain application, wherein all the nodes comprise all generation block nodes with voting right; and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, changing the block containing the configuration updating instruction into an irreversible block, and applying all the nodes in the alliance chain application to all the operations in the block, wherein all the operations comprise configuration updating operations.
In this embodiment, the target configuration data includes account management data, admission control data, and permission setting data to be updated for the federation chain.
In this embodiment, the client 104 is connected to the update configuration node 102 through a network module; wherein, the network module establishes the uploading capability of the new configuration; in addition, the network module is responsible for connecting the update configuration node 102 and the block node 101, establishing data transfer capability, so that the update configuration node submits a configuration update command to the block node, and the block node propagates the block to the update configuration node.
In this embodiment, the update configuration node 102 provides a response of the update configuration service to the client 104, and initiates the whole configuration update operation instruction on the federation chain according to the update request of the client 104.
In this embodiment, the update configuration node 102 includes a first data transmission module and a first update configuration module, which are specifically as follows:
the first data transmission module receives a configuration update instruction which is sent by the client 104 and is directed to the alliance chain in the running state, and when the first data transmission module completes execution of the configuration update instruction, the configuration update instruction is packaged and then broadcasted to other nodes in the alliance chain, the other nodes include other update configuration nodes and product block nodes, the other update configuration nodes also synchronously complete update, and the first data transmission module also receives blocks broadcasted from the product block node 101.
The first updating configuration module executes the configuration updating instruction and completes updating; specifically, the first update configuration module is configured to execute and verify correctness of the configuration update instruction, and return an execution result to the update configuration node; in addition, the first update configuration module is further configured to, in a situation where the first update configuration module is in a running state, apply the configuration update process according to the configuration update instruction, and update configuration data corresponding to the first update configuration module based on the target configuration data, where the federation chain update configuration service is a blockchain application built using a blockchain technology.
In this embodiment, the chunk producing node 101 includes a second data transmission module, a second update configuration module, and a consensus module; the second data transmission module receives the configuration updating instruction and broadcasts the configuration updating instruction to all nodes in the alliance chain application; the second update configuration module executes the configuration update instruction, and packs the configuration update instruction into a block if the execution is successful and the block is output by the block production node; the consensus module judges whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, the block containing the configuration updating instruction is changed into an irreversible block, and all the nodes in the alliance chain application are controlled to apply all the operations in the block.
In this embodiment, the second data transmission module is responsible for receiving the configuration update command sent by the update configuration node, and when the second update configuration module completes updating and it is time for the generation block node to go out of the block, the second data transmission module packs the configuration update command into a block and broadcasts the block to all nodes in the federation chain, where all nodes include other generation block nodes with voting right. In addition, the second data transmission module is further configured to receive blocks generated by other block generation nodes, and the block generation node itself may also be used as an update configuration node, and may also directly receive the configuration update instruction sent by the client.
In this embodiment, the second update configuration module executes the configuration update instruction and completes the update. The module mainly functions to execute or verify the configuration update instruction and ensure that each production block node in the federation chain executes the configuration update instruction after reaching consensus.
And then, when a new node sends a connection request to any node of the alliance chain, the node receiving the request verifies the public and private keys in the request to judge whether the new node can be accessed into the application of the alliance chain, if so, long connection is established, and if not, the connection request is rejected. Specifically, the execution unit is configured to execute the configuration update instruction to locally update the target configuration data, and the storage unit is configured to locally store the target configuration data according to the configuration update instruction.
In this embodiment, the consensus module is further configured to update the local original configuration with the target configuration data and store the updated local original configuration in the database when it is determined that more than two thirds of the nodes belonging to the production block in the same federation chain application are voted to pass the configuration update instruction.
In this embodiment, each node in the federation chain application corresponds to the same consensus mechanism, and the consensus module determines whether more than two-thirds nodes in the production block nodes in the same federation chain application are voted to execute the configuration update instruction by using the consensus mechanism. Specifically, the system is responsible for verifying, confirming and voting the blocks and the transactions in the blocks; the main function is to utilize the consensus mechanism established by the alliance chain technology, and the consensus module ensures that all the production block nodes of the alliance chain update service can apply the configuration update after achieving the consensus.
Referring to fig. 3, fig. 3 is a flowchart illustrating a federation chain configuration updating method according to an embodiment of the present invention.
As shown in fig. 3, a federation chain configuration updating method includes the following steps:
step S210: receiving a configuration updating instruction which is sent by a client and aims at a alliance chain in a running state through an updating configuration node, wherein the configuration updating instruction comprises target configuration data to be updated;
step S220: executing the configuration updating instruction, and broadcasting the configuration updating instruction to other nodes except the updating configuration node in the alliance chain application if the execution is successful, wherein the other nodes comprise the production block nodes;
step S230: receiving and executing the configuration updating instruction through the production block node, and if the execution is successful and the production block node outputs a block in turn, packaging the configuration updating instruction into a block and broadcasting the block to all nodes in the alliance chain application, wherein all the nodes comprise all the production block nodes with voting right;
step S240: and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, changing the block containing the configuration updating instruction into an irreversible block, and applying all the nodes in the alliance chain application to all the operations in the block, wherein all the operations comprise configuration updating operations.
In this embodiment, the update configuration node includes a first data transmission module and a first update configuration module, and the block generation node includes a second data transmission module, a second update configuration module and a consensus module; receiving a configuration updating instruction which is sent by a client and aims at a federation chain in a running state through a first data transmission module, and executing the configuration updating instruction through a first updating configuration module; receiving the configuration updating instruction through a second data transmission module, executing the configuration updating instruction through the second updating configuration module, and if the execution is successful and the generation of the block node is in turn, packaging the configuration updating instruction into a block and broadcasting the block into all nodes in the alliance chain application; and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction or not through the consensus module, if so, changing the block containing the configuration updating instruction into an irreversible block, and controlling all the nodes in the alliance chain application to apply all the operations in the block.
In this embodiment, the target configuration data includes account management data, admission control data, and permission setting data to be updated for the federation chain.
In this embodiment, when it is determined that more than two thirds of nodes in the production block nodes belonging to the same federation chain application are voted to pass the configuration update instruction, the target configuration data is updated to the local original configuration and stored in the database.
In this embodiment, each node in the federation chain application corresponds to the same consensus mechanism, and the consensus mechanism is applied to determine whether more than two-thirds of the nodes in the production block in the same federation chain application are voted to execute the configuration update instruction.
The basic idea of the invention is to establish an updating mechanism by using a block chain technology to realize the configuration updating of all the nodes. Specifically, a supervisor is created that installs and runs a system contract at each node in the chain that manages the configuration and consistency of all nodes in the chain. Wherein the system contract has execution restrictions and only this supervisor can invoke the contract to modify the configuration on the chain. By invoking the contract, the update configuration module performs the operation and, if successful, broadcasts the operation to other nodes, including to the production block node.
The federation chain system of the present embodiment is adapted to be deployed on a plurality of servers including a general purpose computer hardware structure, such as a processor and memory. The memory is adapted to store instructions or programs executable by the processor. The processor may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, the processor performs the functions of the federation chain in this embodiment by executing instructions stored in the memory to implement configuration management and updating of the federation chain.
The method and the device can update the corresponding configuration in the link node by using the target configuration data under the condition that the application node of the alliance link is in the running state, can really improve the sustainable service capability of the application of the alliance link, greatly reduce the manual coordination cost and the operation and maintenance difficulty, can automatically complete the management of the account number and the access configuration in the alliance link under the condition of not influencing the normal running of the application node of the block link, and have efficient and reliable updating process.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; may be mechanically coupled, may be electrically coupled or may be in communication with each other; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A federation chain configuration updating method, nodes in a federation chain application including an update configuration node and a production block node, the method comprising:
receiving a configuration updating instruction which is sent by a client and aims at a alliance chain in a running state through an updating configuration node, wherein the configuration updating instruction comprises target configuration data to be updated;
executing the configuration updating instruction, and broadcasting the configuration updating instruction to other nodes except the updating configuration node in the alliance chain application if the execution is successful, wherein the other nodes comprise the production block nodes;
receiving and executing the configuration updating instruction through the production block node, and if the execution is successful and the production block node outputs a block in turn, packaging the configuration updating instruction into a block and broadcasting the block to all nodes in the alliance chain application, wherein all the nodes comprise all the production block nodes with voting right;
and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, changing the block containing the configuration updating instruction into an irreversible block, and applying all the nodes in the alliance chain application to all the operations in the block, wherein all the operations comprise configuration updating operations.
2. The federation chain configuration updating method of claim 1, wherein the update configuration node comprises a first data transmission module and a first update configuration module, and the production block node comprises a second data transmission module, a second update configuration module and a consensus module; wherein the content of the first and second substances,
receiving a configuration updating instruction which is sent by a client and aims at a coalition chain in a running state through a first data transmission module, and executing the configuration updating instruction through a first updating configuration module;
receiving the configuration updating instruction through a second data transmission module, executing the configuration updating instruction through the second updating configuration module, and if the execution is successful and the generation of the block node is in turn, packaging the configuration updating instruction into a block and broadcasting the block into all nodes in the alliance chain application;
and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction or not through the consensus module, if so, changing the block containing the configuration updating instruction into an irreversible block, and controlling all the nodes in the alliance chain application to apply all the operations in the block.
3. The federation chain configuration updating method of claim 1, wherein the target configuration data comprises account management data, admission control data and permission setting data to be updated for the federation chain.
4. The federation chain configuration update method of claim 1, further comprising: and when more than two thirds of the nodes belonging to the production block in the same alliance chain application are judged to be voted and pass the configuration updating instruction, updating the local original configuration by the target configuration data and storing the target configuration data in a database.
5. The federation chain configuration update method of claim 1, further comprising: and each node in the alliance chain application is correspondingly provided with the same consensus mechanism, and the consensus mechanism is applied to judge whether more than two thirds of the nodes in the production block in the same alliance chain application are voted and execute the configuration updating instruction.
6. A federation chain configuration update apparatus, comprising:
the client is used for initiating a configuration updating instruction to the updating configuration node;
the method comprises the steps that a configuration updating node receives a configuration updating instruction which is sent by a client and aims at a coalition chain in a running state, wherein the configuration updating instruction comprises target configuration data to be updated; and executing the configuration updating instruction, and broadcasting the configuration updating instruction to other nodes except the updating configuration node in the alliance chain application if the execution is successful, wherein the other nodes comprise the production block nodes;
the generation block node receives and executes the configuration updating instruction, and if the execution is successful and the generation block node outputs a block in turn, the configuration updating instruction is packed into a block and is broadcasted to all nodes in the alliance chain application, wherein all the nodes comprise all generation block nodes with voting right; and judging whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, changing the block containing the configuration updating instruction into an irreversible block, and applying all the nodes in the alliance chain application to all the operations in the block, wherein all the operations comprise configuration updating operations.
7. A federation chain configuration update apparatus as claimed in claim 6, wherein the target configuration data comprises account management data, admission control data and permission setting data to be updated for the federation chain.
8. The federation chain configuration update apparatus of claim 6, wherein the update configuration node comprises a first data transmission module and a first update configuration module, and the production block node comprises a second data transmission module, a second update configuration module and a consensus module; wherein the content of the first and second substances,
the first data transmission module receives a configuration update instruction which is sent by the client and aims at the alliance chain in the running state,
the first updating configuration module executes the configuration updating instruction;
the second data transmission module receives the configuration updating instruction and broadcasts the configuration updating instruction to all nodes in the alliance chain application;
the second update configuration module executes the configuration update instruction, and packs the configuration update instruction into a block if the execution is successful and the block is output by the block production node;
the consensus module judges whether more than two thirds of nodes in the production block nodes belonging to the same alliance chain application are voted to pass the configuration updating instruction, if so, the block containing the configuration updating instruction is changed into an irreversible block, and all the nodes in the alliance chain application are controlled to apply all the operations in the block.
9. The apparatus of claim 8, wherein the consensus module is further configured to update the target configuration data with a local original configuration and store the updated local original configuration in a database when determining that more than two thirds of nodes belonging to a production block in the same federation chain application have been voted for by executing the configuration update instruction.
10. The apparatus according to claim 8, wherein each node in the federation chain application corresponds to a same consensus mechanism, and the consensus module determines whether two or more than two thirds of the nodes in the production block in the same federation chain application have voted to pass the configuration update instruction.
CN202010067579.9A 2020-01-20 2020-01-20 Alliance chain configuration updating method and device Active CN111324367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010067579.9A CN111324367B (en) 2020-01-20 2020-01-20 Alliance chain configuration updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010067579.9A CN111324367B (en) 2020-01-20 2020-01-20 Alliance chain configuration updating method and device

Publications (2)

Publication Number Publication Date
CN111324367A true CN111324367A (en) 2020-06-23
CN111324367B CN111324367B (en) 2024-01-19

Family

ID=71168676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010067579.9A Active CN111324367B (en) 2020-01-20 2020-01-20 Alliance chain configuration updating method and device

Country Status (1)

Country Link
CN (1) CN111324367B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636984A (en) * 2020-12-28 2021-04-09 杭州趣链科技有限公司 Federation chain configuration updating method, equipment and computer medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180337882A1 (en) * 2017-05-16 2018-11-22 Peking University Shenzhen Graduate School Determining consensus in a decentralized domain name system
CN109728954A (en) * 2019-01-04 2019-05-07 深圳壹账通智能科技有限公司 Alliance's chain node management system and method
CN110489493A (en) * 2019-08-27 2019-11-22 山东浪潮人工智能研究院有限公司 A kind of cloudy data center services quality identification based on block chain
CN110545286A (en) * 2019-09-18 2019-12-06 腾讯科技(深圳)有限公司 method and device for joining alliance chain and exiting alliance chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180337882A1 (en) * 2017-05-16 2018-11-22 Peking University Shenzhen Graduate School Determining consensus in a decentralized domain name system
CN109728954A (en) * 2019-01-04 2019-05-07 深圳壹账通智能科技有限公司 Alliance's chain node management system and method
CN110489493A (en) * 2019-08-27 2019-11-22 山东浪潮人工智能研究院有限公司 A kind of cloudy data center services quality identification based on block chain
CN110545286A (en) * 2019-09-18 2019-12-06 腾讯科技(深圳)有限公司 method and device for joining alliance chain and exiting alliance chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高志豪;: "公有链和联盟链的道法术器" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636984A (en) * 2020-12-28 2021-04-09 杭州趣链科技有限公司 Federation chain configuration updating method, equipment and computer medium

Also Published As

Publication number Publication date
CN111324367B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
CN111737724B (en) Data processing method and device, intelligent equipment and storage medium
CN109450638B (en) Block chain-based electronic component data management system and method
CN111612613B (en) Block chain network with centralized system
CN111930851B (en) Control data processing method, device, medium and electronic equipment of block chain network
CN113098907B (en) Group division method and device for block chain
KR102377841B1 (en) Method and apparatus for performing hierarchically agreement based on service zone
CN111294379B (en) Block chain network service platform, authority hosting method thereof and storage medium
CN111813864A (en) Alliance chain building method and device, computer equipment and storage medium
WO2022166637A1 (en) Blockchain network-based method and apparatus for data processing, and computer device
CN112152778B (en) Node management method and device and electronic equipment
CN114493865A (en) Decentralized internet cooperative system and data interaction method based on block chain
Saldamli et al. Improved gossip protocol for blockchain applications
Chen et al. TrustBuilder: A non-repudiation scheme for IoT cloud applications
Guo et al. A hierarchical and location-aware consensus protocol for iot-blockchain applications
CN111324367B (en) Alliance chain configuration updating method and device
CN116827957B (en) Information processing method, device, equipment and medium based on multi-block chain
Yang et al. A hybrid consensus algorithm for master–slave blockchain in a multidomain conversation system
Al-Mamun et al. Trustworthy edge computing through blockchains
Li et al. DHBFT: dynamic hierarchical Byzantine fault-tolerant consensus mechanism based on credit
CN114257429A (en) Aggregation transaction verification and signature verification method and system based on alliance chain
CN113765671A (en) Block chain link point hot restart method and device
Al-Mamun et al. Dean: A lightweight and resource-efficient blockchain protocol for reliable edge computing
CN117692149B (en) Method, equipment and medium for checking integrity of log transparent entity
CN112348539B (en) Industrial commodity circulation life cycle traceability management system based on license chain and application thereof
WO2023197259A1 (en) Devices and methods for providing a federated learning model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210908

Address after: 201200 floor 2, No. 979, Yunhan Road, Lingang xinpian District, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Chuyuan (Shanghai) Information Technology Co.,Ltd.

Address before: 200000 first floor, building 10, Lane 706, Wuxing Road, Pudong New Area, Shanghai

Applicant before: LIANSHI (SHANGHAI) INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant