CN112291327A - Block link point management method and device and electronic equipment - Google Patents

Block link point management method and device and electronic equipment Download PDF

Info

Publication number
CN112291327A
CN112291327A CN202011148400.9A CN202011148400A CN112291327A CN 112291327 A CN112291327 A CN 112291327A CN 202011148400 A CN202011148400 A CN 202011148400A CN 112291327 A CN112291327 A CN 112291327A
Authority
CN
China
Prior art keywords
contract
block chain
node
link point
management
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.)
Pending
Application number
CN202011148400.9A
Other languages
Chinese (zh)
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.)
Sinochem Energy High Tech Co Ltd
Sinochem Energy Co Ltd
Original Assignee
Sinochem Energy High Tech Co Ltd
Sinochem Energy 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 Sinochem Energy High Tech Co Ltd, Sinochem Energy Co Ltd filed Critical Sinochem Energy High Tech Co Ltd
Priority to CN202011148400.9A priority Critical patent/CN112291327A/en
Publication of CN112291327A publication Critical patent/CN112291327A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/21Design, administration or maintenance of databases
    • 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/23Updating
    • 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
    • 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
    • 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
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a block chain link point management method, a block chain link point management device and electronic equipment, which are applied to the technical field of block chains, wherein the block chain link point management method comprises the following steps: the dynamic configuration of the blockchain nodes is realized based on the intelligent contract, and when the blockchain nodes need to be added or suspended, the running states of other nodes cannot be influenced. Compared with the traditional block chain node management mode that all the nodes need to be shut down and all the nodes are restarted after a configuration file is updated, in the method, the configuration of the nodes is changed from staticized to dynamic setting, the shutdown is not needed, after an organization administrator initiates an offer, each organization can complete node permission through a voting mode, the availability of the block chain in the actual production environment is ensured, a large amount of manpower is not needed to be consumed for configuration, verification and node restart, and the management and cooperation efficiency of the block chain is greatly improved.

Description

Block link point management method and device and electronic equipment
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a block chain node point management method and apparatus, and an electronic device.
Background
The Blockchain (Blockchain) 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. The block chain, which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. A blockchain is a data structure used to store transactions, while a blockchain network is a network of computing nodes used to manage, update, and maintain one or more blockchains. The compute nodes of a blockchain may be referred to simply as blockchain nodes. According to the decentralized degree, the method can be divided into a public chain, a alliance chain and a private chain. The alliance chain aims at only aiming at members of a certain specific group and limited third parties, because the alliance chain does not have a central mechanism, organization nodes are maintained and managed by the members, and the consistency of information of each node is ensured through a consensus mechanism of the block chain.
At present, in the process of joining or leaving a blockchain network by a coalition link node, all nodes need to artificially update a static configuration file, and then all blockchain nodes are restarted to apply the configuration file, so that joining or leaving of member nodes is completed, and therefore, great management and cooperation cost is brought to the node management of a blockchain.
Disclosure of Invention
The application provides a block chain link point management method, a block chain link point management device and electronic equipment, which are used for realizing dynamic configuration of block chain nodes based on an intelligent contract, and when the block chain nodes need to be added or suspended, the running states of other nodes cannot be influenced. The technical scheme adopted by the application is as follows:
in a first aspect, a block link point management method is provided, which is applied to a block chain, and includes,
receiving block link point management request information sent by a target organization administrator;
writing the block chain link point management request information into a block chain voting management contract;
receiving the voting information of other organization managers for the block chain link point management request, and writing the voting information of other organization managers for the block chain link point management request into a block chain voting management contract;
determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request;
if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information.
Optionally, the block link node management request information includes target organization node information and a management type; the management type includes at least one of: newly adding, suspending and canceling the suspension.
Optionally, if the blockchain link node management request passes, updating the blockchain node management contract based on the blockchain management request information, including:
determining a state of a target organization node based on the management type;
and updating the block link node management contract based on the target organization node and the state thereof, wherein the block link point management contract stores the block link points and the state information thereof.
Optionally, the method further comprises a contract deployment step comprising:
deploying initial nodes of a block chain network;
determining a contract deployment configuration based on a contract address of a scalable rights contract, the scalable rights contract comprising: the authority interface contract and the authority implementation contract; the rights implementation contract includes: voting management contracts and node management contracts;
restarting the initial node of the blockchain network loads the contract deployment configuration.
Optionally, the rights interface contract is used to define rights implementation contract implementation rules.
Optionally, the determining whether the block link point management request passes based on the voting information of other organization administrators on the block link point management request includes:
updating the current voting passing number and/or the non-passing number based on the voting information of a certain organization administrator;
whether the block link node management request passes is determined based on the current vote pass number and/or the fail number.
Optionally, the method further comprises:
any one of the blockchain nodes receives a data request of a certain blockchain node,
any block chain node calls an updated block chain link point management contract to judge whether a certain block chain link point is an effective node;
and if the node is the effective block chain node, responding, otherwise, discarding the data request.
In a second aspect, there is provided a block link point management device applied to a block chain, including:
the first receiving module is used for receiving block link node management request information sent by a target organization administrator;
the writing module is used for writing the block chain link point management request information into a block chain voting management contract;
the second receiving module is used for receiving the voting information of the other organization managers for the block chain link point management request and writing the voting information of the other organization managers for the block chain link point management request into a block chain voting management contract;
the first determining module is used for determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request;
and the updating module is used for updating the block chain node management contract based on the block chain management request information if the block chain node management request passes.
Optionally, the block link node management request information includes target organization node information and a management type; the management type includes at least one of: newly adding, suspending and canceling the suspension.
Optionally, the update module includes:
a first determination unit configured to determine a state of a target organization node based on a management type;
and the first updating unit is used for updating the block link node management contract based on the target organization node and the state thereof, and the block link point management contract stores the block link points and the state information thereof.
Optionally, the apparatus comprises:
the deployment module is used for deploying the initial node of the block chain network;
a second determination module to determine a contract deployment configuration based on a contract address of a scalable rights contract, the scalable rights contract comprising: the authority interface contract and the authority implementation contract; the rights implementation contract includes: voting management contracts and node management contracts;
restarting the initial node of the blockchain network loads the contract deployment configuration.
Optionally, the rights interface contract is used to define rights implementation contract implementation rules.
Optionally, the second determining module includes:
a second updating unit for updating the current vote passing number and/or the fail number based on the voting information of a certain organization administrator;
and a second determination unit for determining whether the block link point management request passes based on the current vote pass number and/or the no pass number.
Optionally, the apparatus further comprises:
and any block chain node is used for receiving the data request of a certain block chain node and calling the updated block chain link point management contract to judge whether the certain block chain link point is an effective node or not, if the certain block chain link point is the effective block chain node, the response is carried out, and otherwise, the data request is discarded.
In a third aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the block link point management method of the first aspect is performed.
In a fourth aspect, there is provided a computer-readable storage medium for storing computer instructions which, when run on a computer, cause the computer to perform the block link point management method of the first aspect.
Compared with the prior art that the shutdown is needed, and all nodes are restarted after a configuration file is updated, the block chain link point management method and device write block chain link point management request information into a block chain voting management contract; receiving the voting information of other organization managers for the block chain link point management request, and writing the voting information of other organization managers for the block chain link point management request into a block chain voting management contract; determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request; if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information. The dynamic configuration of the blockchain nodes is realized based on the intelligent contract, and when the blockchain nodes need to be added or suspended, the running states of other nodes cannot be influenced. Compared with the traditional block chain node management mode that all the nodes need to be shut down and all the nodes are restarted after a configuration file is updated, in the method, the configuration of the nodes is changed from staticized to dynamic setting, the shutdown is not needed, after an organization administrator initiates an offer, each organization can complete node permission through a voting mode, the availability of the block chain in the actual production environment is ensured, a large amount of manpower is not needed to be consumed for configuration, verification and node restart, and the management and cooperation efficiency of the block chain is greatly improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a block link point management method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a block link point management device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a block link point and contract relationship in accordance with an embodiment of the present disclosure;
FIG. 4 is a diagram of an example of an organization proposal process;
FIG. 5 is an exemplary diagram of a voting process;
FIG. 6 is an exemplary diagram of a contract deployment flow;
FIG. 7 is a diagram illustrating another exemplary voting process;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
Fig. 1 shows a relationship between a block chain node and an intelligent contract, where a block chain network may include a plurality of block chain nodes, and any one of the block chain nodes may invoke a contract, in other words, the block chain node in the block chain network maintains the same contract. The contract deployment can be performed in advance, that is, the contract is deployed to the corresponding server, and then the address of the contract can be used as the contract deployment configuration to perform the setting of the blockchain node. Wherein, the blockchain initial node may be deployed first, and then the contract deployment configuration is determined based on the contract address of the scalable rights contract (i.e. the rights management contract in fig. 1), wherein the scalable rights contract includes: the authority interface contract and the authority implementation contract; the rights implementation contract includes: voting a management contract and a node management contract, and finally restarting the initial node loading contract deployment configuration of the block chain network.
An embodiment of the present application provides a block link point management method, which is applied to a block chain, and as shown in fig. 2, the method may include the following steps:
step S201, receiving block chain node management request information sent by a target organization administrator;
step S202, writing the management request information of the block chain link points into a block chain voting management contract;
step S203, receiving the voting information of the other organization managers for the block chain link point management request, and writing the voting information of the other organization managers for the block chain link point management request into a block chain voting management contract;
step S204, determining whether the block link point management request passes based on the voting information of other organization managers for the block link point management request;
in step S205, if the block link node management request passes, the block link node management contract is updated based on the block link management request information.
The blockchain may be a federation chain, which is only directed to members of a particular group and limited third parties.
Specifically, the target administrator may send the blockchain node management request information to the corresponding blockchain node through the client, and then the corresponding blockchain node synchronizes the blockchain management request information to other blockchain nodes. The block link node management request information comprises target organization node information and a management type; the management type includes at least one of: newly adding, suspending and canceling the suspension.
Specifically, the target organization administrator may invoke a block chain voting management contract through the corresponding block chain link point SDK, and write the block chain link point management request information into the block chain voting management contract.
Specifically, after receiving the information of the block link point management request, the other organization managers may vote based on the SDK of the corresponding block link point, and the block chain network receives the voting information of the block link point management request from the other organization managers and writes the voting information of the block link point management request from the other organization managers into a block chain voting management contract; then determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request; if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information.
Compared with the prior art that the shutdown is needed, and all nodes are restarted after the configuration file is updated, the block chain link point management method writes the block chain link point management request information into a block chain voting management contract; receiving the voting information of other organization managers for the block chain link point management request, and writing the voting information of other organization managers for the block chain link point management request into a block chain voting management contract; determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request; if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information. The dynamic configuration of the blockchain nodes is realized based on the intelligent contract, and when the blockchain nodes need to be added or suspended, the running states of other nodes cannot be influenced. Compared with the traditional block chain node management mode that all the nodes need to be shut down and all the nodes are restarted after the configuration file is updated, in the method, the nodes are solved as parameters transferred by an external program of the intelligent contract and contain transaction signatures of other organization managers for the parameters by using a private key; step 404 (not shown in the figure), the intelligent contract verifies the parameters after receiving the request, updates the contract value, checks the vote number, and does not process if the vote number is less than 51%; if the number of votes is greater than or equal to 51%, the organization proposal takes effect; at step 405 (not shown), the organization proposes that after the contract is validated, the blockchain organization node invokes the contract to determine whether to allow the organization node to communicate within the network based on the contract status, and specifically, at the P2P level, whether to receive the blocks of the organization node and the blocks of the broadcast organization node.
Specifically, the current vote non-passing number may be updated based on the voting information of a certain organization administrator, and it is determined that the block link point management request is not passed if the vote non-passing number exceeds a predetermined threshold value, or exceeds a half (bid passing number/number of all organization administrators).
Specifically, FIG. 6 shows an exemplary flow diagram of an organization administrator initiating an organization proposal request, FIG. 5 shows an exemplary flow diagram of other organization administrator voting, an initiate proposal flow and a vote-for-proposal flow:
the proposal initiating process mainly comprises the following steps: step 1, an organization administrator initiates a request of an organization proposal; step 2, checking whether the system is an administrator. Step 3, writing the organization proposal into a voting contract;
the voting process for the proposal mainly comprises the following steps: step 1, other organization administrators send approval requests for organization proposals; step 2, checking whether the system is an administrator. Step 3, checking whether the tissue proposal state is true. Step 4, invoking the voting contract and checking whether the returned result is true; step 5, updating the organization proposal state to true, the organization becomes the proposal success state.
The embodiment of the present application provides a possible implementation manner, and the method further includes:
any one of the blockchain nodes receives a data request of a certain blockchain node, wherein the data request can be a data synchronization request or a data acquisition request.
Any block chain node calls the updated block chain link point management contract to judge whether a certain block chain link point is an effective node, namely whether the block chain node management contract contains the node is judged, and if the node is contained, whether the node is in an effective state is judged;
and if the node is the effective block chain node, responding, otherwise, discarding the data request.
Fig. 7 is a block link point management device according to an embodiment of the present application, where the device 70 includes:
a first receiving module 701, configured to receive block link node management request information sent by a target organization administrator;
a writing module 702, configured to write the block link point management request information into a block chain voting management contract;
a second receiving module 703, configured to receive the voting information of the management request of the other organization administrator for the block link point, and write the voting information of the management request of the other organization administrator for the block link point into a block chain voting management contract;
the configuration is changed from staticizing to dynamic setting, shutdown is not needed, after an organization administrator initiates an offer, each organization can complete node permission in a voting mode, the availability of the block chain in an actual production environment is guaranteed, a large amount of manpower is not needed to be consumed for configuration, verification and node restarting, and the management and cooperation efficiency of the block chain is greatly improved.
The embodiment of the present application provides a possible implementation manner, and specifically, if a blockchain link node management request passes, updating a blockchain node management contract based on blockchain management request information, including:
determining a state of a target organization node based on the management type;
and updating the block link node management contract based on the target organization node and the state thereof, wherein the block link point management contract stores the block link points and the state information thereof.
Specifically, the block link point management contract stores the block link points and state information thereof, and may further include organization information, role information, account information, and the like.
Illustratively, if the management type is addition, the state of the target organization node is determined to be valid, and the target blockchain node is newly added in the blockchain node management contract and configured to be valid.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes a contract deployment step, including:
deploying initial nodes of a block chain network;
determining a contract deployment configuration based on a contract address of a scalable rights contract, the scalable rights contract comprising: the authority interface contract and the authority implementation contract; the rights implementation contract includes: voting management contracts and node management contracts;
restarting the initial node of the blockchain network loads the contract deployment configuration.
The authority interface contract is used for defining authority implementation contract implementation rules. I.e. the modification to the rights implementation contract must comply with the rules defined by the rights interface contract.
FIG. 3 illustrates an exemplary diagram of a flow for contract deployment, wherein the flow may be as follows:
step S301, deploying a network initial node;
step S302, the upgradable rights contract is deployed. When the contract is deployed, a daemon account address can be designated as a parameter, an address of a permission implementation contract is stored in the upgradable permission contract, and only the daemon account of the contract address can be changed in an operation mode; i.e., only the daemon account can upgrade the contract.
Step S303 deploys the remaining contracts. When the rest contracts are deployed, the upgradable authority contract address is required to be deployed as a deployment parameter;
step S304, generating deployment configuration after all contracts are deployed;
step S305, restarting the organization node to load and deploy configuration;
step S306, calling contracts according to the organization proposals;
the embodiment of the present application provides a possible implementation manner, determining whether a block link point management request passes based on voting information of other organization administrators on the block link point management request, including:
updating the current voting passing number and/or the non-passing number based on the voting information of a certain organization administrator;
whether the block link node management request passes is determined based on the current vote pass number and/or the fail number.
Specifically, the current number of voting passes may be updated based on the voting information of a certain organization administrator, and it is determined that the block link point management request passes if the number of voting passes exceeds a predetermined threshold value, or exceeds half (number of bidding passes/number of all organization administrators).
Illustratively, as shown in fig. 4, step 401 (not shown in the figure) the current organization administrator initiates an organization proposal request, wherein the proposal request invokes parameters passed by the intelligent contract for an external program of the intelligent contract; step 402 (not shown in the figure), the intelligent contract verifies the parameters and processes the organization proposal after receiving the request, and the state of the intelligent contract is updated; step 403 (not shown in the figure), the other organization managers initiate a voting request for proposal to the organization, wherein a first determination module 704 is used for determining whether the block link point management request passes or not based on the voting information of the other organization managers for the block link point management request;
an updating module 705, configured to update the blockchain node management contract based on the blockchain management request information if the blockchain node management request passes.
The block link node management request information comprises target organization node information and a management type; the management type includes at least one of: newly adding, suspending and canceling the suspension.
Optionally, the update module includes:
a first determination unit configured to determine a state of a target organization node based on a management type;
and the first updating unit is used for updating the block link node management contract based on the target organization node and the state thereof, and the block link point management contract stores the block link points and the state information thereof.
Further, the apparatus comprises:
the deployment module is used for deploying the initial node of the block chain network;
a second determination module to determine a contract deployment configuration based on a contract address of a scalable rights contract, the scalable rights contract comprising: the authority interface contract and the authority implementation contract; the rights implementation contract includes: voting management contracts and node management contracts;
restarting the initial node of the blockchain network loads the contract deployment configuration.
The authority interface contract is used for defining authority implementation contract implementation rules.
Specifically, the second determination module includes:
a second updating unit for updating the current vote passing number and/or the fail number based on the voting information of a certain organization administrator;
and a second determination unit for determining whether the block link point management request passes based on the current vote pass number and/or the no pass number.
Further, the apparatus further comprises:
and any block chain node is used for receiving the data request of a certain block chain node and calling the updated block chain link point management contract to judge whether the certain block chain link point is an effective node or not, if the certain block chain link point is the effective block chain node, the response is carried out, and otherwise, the data request is discarded.
Compared with the prior art that the shutdown is needed, and all nodes are restarted after the configuration file is updated, the block link point management device writes the block link point management request information into a block chain voting management contract; receiving the voting information of other organization managers for the block chain link point management request, and writing the voting information of other organization managers for the block chain link point management request into a block chain voting management contract; determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request; if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information. The dynamic configuration of the blockchain nodes is realized based on the intelligent contract, and when the blockchain nodes need to be added or suspended, the running states of other nodes cannot be influenced. Compared with the traditional block chain node management mode that all the nodes need to be shut down and all the nodes are restarted after a configuration file is updated, in the method, the configuration of the nodes is changed from staticized to dynamic setting, the shutdown is not needed, after an organization administrator initiates an offer, each organization can complete node permission through a voting mode, the availability of the block chain in the actual production environment is ensured, a large amount of manpower is not needed to be consumed for configuration, verification and node restart, and the management and cooperation efficiency of the block chain is greatly improved.
The embodiment of the present application provides a block link point management device, which is suitable for the method shown in the above embodiment, and is not described herein again.
An embodiment of the present application provides an electronic device, as shown in fig. 8, an electronic device 80 shown in fig. 8 includes: a processor 801 and a memory 803. Wherein the processor 801 is coupled to a memory 803, such as via a bus 802. Further, the electronic device 80 may also include a transceiver 804. It should be noted that the transceiver 804 is not limited to one in practical applications, and the structure of the electronic device 80 is not limited to the embodiment of the present application. The processor 801 is applied to the embodiment of the present application, and is used to implement the functions of the modules shown in fig. 2. The transceiver 804 includes a receiver and a transmitter.
The processor 801 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 801 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 802 may include a path that transfers information between the above components. The bus 802 may be a PCI bus or an EISA bus, etc. The bus 802 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
The memory 803 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 803 is used for storing application program code for performing the present solution and is controlled in execution by the processor 801. The processor 801 is configured to execute application program codes stored in the memory 803 to implement the functions of the block link node management apparatus provided in the embodiment shown in fig. 7.
Compared with the prior art that the electronic equipment needs to be shut down and all nodes are restarted after a configuration file is updated, the electronic equipment writes the management request information of the block chain nodes into a block chain voting management contract; receiving the voting information of other organization managers for the block chain link point management request, and writing the voting information of other organization managers for the block chain link point management request into a block chain voting management contract; determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request; if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information. The dynamic configuration of the blockchain nodes is realized based on the intelligent contract, and when the blockchain nodes need to be added or suspended, the running states of other nodes cannot be influenced. Compared with the traditional block chain node management mode that all the nodes need to be shut down and all the nodes are restarted after a configuration file is updated, in the method, the configuration of the nodes is changed from staticized to dynamic setting, the shutdown is not needed, after an organization administrator initiates an offer, each organization can complete node permission through a voting mode, the availability of the block chain in the actual production environment is ensured, a large amount of manpower is not needed to be consumed for configuration, verification and node restart, and the management and cooperation efficiency of the block chain is greatly improved.
The embodiment of the application provides an electronic device suitable for the method embodiment. And will not be described in detail herein.
The present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method shown in the above embodiments is implemented.
Compared with the prior art that shutdown is needed, and all nodes are restarted after a configuration file is updated, the method writes the management request information of the block chain nodes into a block chain voting management contract; receiving the voting information of other organization managers for the block chain link point management request, and writing the voting information of other organization managers for the block chain link point management request into a block chain voting management contract;
determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request; if the blockchain node management request passes, updating the blockchain node management contract based on the blockchain management request information. The dynamic configuration of the blockchain nodes is realized based on the intelligent contract, and when the blockchain nodes need to be added or suspended, the running states of other nodes cannot be influenced. Compared with the traditional block chain node management mode that all the nodes need to be shut down and all the nodes are restarted after a configuration file is updated, in the method, the configuration of the nodes is changed from staticized to dynamic setting, the shutdown is not needed, after an organization administrator initiates an offer, each organization can complete node permission through a voting mode, the availability of the block chain in the actual production environment is ensured, a large amount of manpower is not needed to be consumed for configuration, verification and node restart, and the management and cooperation efficiency of the block chain is greatly improved.
The embodiment of the application provides a computer-readable storage medium which is suitable for the method embodiment. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A block chain node management method is applied to a block chain and comprises the following steps:
receiving block link point management request information sent by a target organization administrator;
writing the block chain link point management request information into a block chain voting management contract;
receiving voting information of other organization managers for the block link point management request, and writing the voting information of the other organization managers for the block link point management request into the block chain voting management contract;
determining whether the block link point management request passes based on voting information of other organization managers on the block link point management request;
and if the block chain node management request passes, updating a block chain node management contract based on the block chain management request information.
2. The method of claim 1, wherein the blockchain node management request information includes target organization node information, a management type; the management type includes at least one of: newly adding, suspending and canceling the suspension.
3. The method of claim 2, wherein if the blockchain node management request passes, updating a blockchain node management contract based on the blockchain management request information comprises:
determining a state of a target organization node based on the management type;
updating a block link node management contract based on the target organization node and its state, the block link node management contract storing block link points and their state information.
4. The method of claim 1, further comprising a contract deployment step comprising:
deploying initial nodes of a block chain network;
determining a contract deployment configuration based on a contract address of the scalable rights contract, the scalable rights contract comprising: the authority interface contract and the authority implementation contract; the rights implementation contract includes: voting management contracts and node management contracts;
restarting the blockchain network initial node to load the contract deployment configuration.
5. The method of claim 4, wherein the rights interface contract is used to define the rights implementation contract implementation rules.
6. The method of claim 4, wherein determining whether the block link point management request passes based on voting information of other organizational managers for the block link point management request comprises:
updating the current voting passing number and/or the non-passing number based on the voting information of a certain organization administrator;
determining whether the block link node management request passes based on a current vote pass count and/or fail count.
7. The method according to any one of claims 1-6, further comprising:
any one of the blockchain nodes receives a data request of a certain blockchain node,
the any block chain node calls an updated block chain link point management contract to judge whether the certain block chain link point is an effective node;
and if the node is the effective block chain node, responding, otherwise, discarding the data request.
8. A block chain link point management device is applied to a block chain and comprises:
the first receiving module is used for receiving block link node management request information sent by a target organization administrator;
a writing module, configured to write the block link point management request information into a block chain voting management contract;
a second receiving module, configured to receive voting information of the other organization administrators on the block link point management request, and write the voting information of the other organization administrators on the block link point management request into the block chain voting management contract;
the first determination module is used for determining whether the block link point management request passes or not based on the voting information of other organization managers on the block link point management request;
and the updating module is used for updating the block chain node management contract based on the block chain management request information if the block chain node management request passes.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing the block link point management method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the block link point management method of any one of claims 1 to 7.
CN202011148400.9A 2020-10-23 2020-10-23 Block link point management method and device and electronic equipment Pending CN112291327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011148400.9A CN112291327A (en) 2020-10-23 2020-10-23 Block link point management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011148400.9A CN112291327A (en) 2020-10-23 2020-10-23 Block link point management method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112291327A true CN112291327A (en) 2021-01-29

Family

ID=74424983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011148400.9A Pending CN112291327A (en) 2020-10-23 2020-10-23 Block link point management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112291327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950201A (en) * 2021-02-08 2021-06-11 深圳前海益链网络科技有限公司 Node management method and related device applied to block chain system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109087104A (en) * 2018-08-29 2018-12-25 北京京东尚科信息技术有限公司 Block chain intelligence contract administration method and system, computer readable storage medium
US20190253239A1 (en) * 2018-11-30 2019-08-15 Alibaba Group Holding Limited Blockchain smart contract updates using decentralized decision
US20190332702A1 (en) * 2018-04-30 2019-10-31 Hewlett Packard Enterprise Development Lp System and method of decentralized management of multi-owner nodes using blockchain
CN110569251A (en) * 2019-09-23 2019-12-13 腾讯科技(深圳)有限公司 Data processing method, related equipment and computer readable storage medium
CN110768822A (en) * 2019-09-29 2020-02-07 南京金宁汇科技有限公司 Method, system and storage medium for dynamically upgrading alliance chain organization structure
CN110766554A (en) * 2019-09-29 2020-02-07 南京金宁汇科技有限公司 Intelligent contract consensus method, system and storage medium based on multi-centralization management
CN111177777A (en) * 2019-12-20 2020-05-19 语联网(武汉)信息技术有限公司 Intelligent contract deployment method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190332702A1 (en) * 2018-04-30 2019-10-31 Hewlett Packard Enterprise Development Lp System and method of decentralized management of multi-owner nodes using blockchain
CN109087104A (en) * 2018-08-29 2018-12-25 北京京东尚科信息技术有限公司 Block chain intelligence contract administration method and system, computer readable storage medium
US20190253239A1 (en) * 2018-11-30 2019-08-15 Alibaba Group Holding Limited Blockchain smart contract updates using decentralized decision
CN110569251A (en) * 2019-09-23 2019-12-13 腾讯科技(深圳)有限公司 Data processing method, related equipment and computer readable storage medium
CN110768822A (en) * 2019-09-29 2020-02-07 南京金宁汇科技有限公司 Method, system and storage medium for dynamically upgrading alliance chain organization structure
CN110766554A (en) * 2019-09-29 2020-02-07 南京金宁汇科技有限公司 Intelligent contract consensus method, system and storage medium based on multi-centralization management
CN111177777A (en) * 2019-12-20 2020-05-19 语联网(武汉)信息技术有限公司 Intelligent contract deployment method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950201A (en) * 2021-02-08 2021-06-11 深圳前海益链网络科技有限公司 Node management method and related device applied to block chain system
CN112950201B (en) * 2021-02-08 2023-10-27 深圳前海益链网络科技有限公司 Node management method and related device applied to block chain system

Similar Documents

Publication Publication Date Title
CN107562513B (en) Intelligent contract life cycle management method based on JAVA
CN109472572B (en) Contract system based on block chain main chain and parallel multiple sub-chains
CN109889498B (en) Calculation verification method and system based on block chain
CN110995473B (en) Service node control method and related equipment
CN109493072B (en) Privacy contract protection method based on alliance block chain
CN110915166A (en) Block chain
CN111861482B (en) Block chain account checking method and system
US11928222B2 (en) Distributed ledger network implementing a synchronous trust consensus model
CN111294379B (en) Block chain network service platform, authority hosting method thereof and storage medium
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
CN110661658A (en) Node management method and device of block chain network and computer storage medium
CN110782251B (en) Method for automatically deploying blockchain network based on intelligent contracts
CN111737104A (en) Block chain network service platform, test case sharing method thereof and storage medium
KR20190068799A (en) Method and apparatus for performing hierarchically agreement based on service zone
US20210374112A1 (en) Migration support system, migration support method, and node
CN109885612B (en) Synchronous validation method and device for intelligent contracts of block chains
US20170300553A1 (en) System and methodology for propagating modifications in key-value pairs across a cluster of computers
CN112291327A (en) Block link point management method and device and electronic equipment
CN111061813B (en) Method, apparatus and computing device for data synchronization in blockchain network
CN113157450A (en) Method and apparatus for performing blocks in a blockchain system
CN112181599A (en) Model training method, device and storage medium
CN111339114A (en) Data access method, device, equipment and storage medium
CN113630445B (en) Data storage method and device based on block chain network
Majuntke et al. Abortable fork-linearizable storage
CN113765671A (en) Block chain link point hot restart method and device

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