CN110601896B - Data processing method and equipment based on block chain nodes - Google Patents

Data processing method and equipment based on block chain nodes Download PDF

Info

Publication number
CN110601896B
CN110601896B CN201910891148.1A CN201910891148A CN110601896B CN 110601896 B CN110601896 B CN 110601896B CN 201910891148 A CN201910891148 A CN 201910891148A CN 110601896 B CN110601896 B CN 110601896B
Authority
CN
China
Prior art keywords
node
nodes
information
block chain
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910891148.1A
Other languages
Chinese (zh)
Other versions
CN110601896A (en
Inventor
冯士乘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910891148.1A priority Critical patent/CN110601896B/en
Publication of CN110601896A publication Critical patent/CN110601896A/en
Application granted granted Critical
Publication of CN110601896B publication Critical patent/CN110601896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/0889Techniques to speed-up the configuration process
    • 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/104Peer-to-peer [P2P] networks
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Abstract

The embodiment of the application discloses a data processing method and equipment based on a block chain node, wherein the method comprises the following steps: the method comprises the steps that a block chain management platform obtains a starting instruction of a block chain; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to the container cloud equipment through the agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, and sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. By adopting the method and the device, the configuration data can be conveniently and dynamically modified, the configuration file can be updated in time, the container mirror image is prevented from being repackaged, the container is prevented from being created, the configuration efficiency of the block chain nodes is improved, and the error rate of the configuration file is reduced.

Description

Data processing method and equipment based on block chain nodes
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data processing method and device based on a block chain node.
Background
In a container cloud environment of an Tencent cloud, a plurality of application container engines (dockers) running on a physical machine are included, bottom programs of blockchain nodes run in the dockers, a user purchases a designated block connection point and successfully connects the nodes to operate a blockchain network, each time the nodes are added or deleted, the change of configuration files corresponding to the blockchain is meant, the user cannot directly interact with the nodes in the container cloud, each time the blockchain is started, manual configuration files of each node are needed, the operation process is complex, a large amount of manpower and material resources are wasted, the efficiency is low, errors easily occur in the manual configuration files, and loss which cannot be estimated is caused.
Disclosure of Invention
The embodiment of the application provides a data processing method and equipment based on block chain nodes, which can be used for conveniently and dynamically modifying configuration data, updating a configuration file in time, avoiding repackaging container images and creating containers, improving configuration efficiency of the block chain nodes and reducing error rate of the configuration file.
An aspect of the present application provides a data processing method based on a blockchain node, which may include:
the method comprises the steps that a block chain management platform obtains a starting instruction of a block chain;
the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file;
the block chain management platform sends the configuration file to container cloud equipment through an agent interface;
the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes;
and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes.
The block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, packages the starting parameters and generates a configuration file, and the method comprises the following steps:
the block chain management platform acquires the associated information of at least four nodes carried in the starting instruction, and determines the associated information and the attribute information of the at least four nodes as starting parameters of the at least four nodes; the attribute information is inherent information of the node;
and the block chain management platform packages the starting parameters by adopting a target packaging method to generate a configuration file corresponding to the starting parameters.
The method includes that the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes, and comprises the following steps:
the container cloud equipment analyzes the configuration file to generate an analysis file by adopting an analysis method corresponding to the script file, and extracts a sub-configuration file corresponding to each node in at least four nodes from the analysis file; the configuration file comprises addresses of physical machines corresponding to the nodes;
and the container cloud equipment sends the sub-configuration files corresponding to the nodes to the at least four nodes according to the addresses of the physical machines corresponding to the nodes.
Wherein the generating, by the container cloud device, a block chain network according to the sub-configuration file and the at least four nodes includes:
the container cloud equipment acquires the associated information of each sub-configuration file in the at least four sub-configuration files, connects the node corresponding to each sub-configuration file with the node indicated by the associated information, and performs node configuration on the node corresponding to each sub-configuration file by adopting the associated information of each sub-configuration file;
and the container cloud equipment generates a block chain network based on each node after the node configuration is completed.
Before the block chain management platform obtains the start parameters of at least four nodes according to the start instruction and packages the start parameters to generate a configuration file, the method further includes:
the block chain management platform verifies the validity of each node in the at least four nodes, and when the node information of each node is valid information, the block chain management platform is executed to obtain starting parameters of the at least four nodes according to the starting instruction and package the starting parameters to generate a configuration file;
the node information includes communication protocol information, communication address information, node identification information, and node port information.
Wherein the validation of each of the at least four nodes by the blockchain management platform comprises:
the block chain management platform acquires any one of the at least four nodes as a target node, and sends node information of the target node to a consensus node so that the consensus node verifies the node information of the target node and generates a signature confirmation message after the verification is passed;
and when the signature confirmation message meets a preset consensus strategy, determining that the node information of the target node is valid information.
An aspect of the present application provides a data processing method based on a blockchain node, which may include:
the method comprises the steps that a block chain management platform obtains a starting instruction of a block chain;
the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file;
the block chain management platform sends the configuration file to container cloud equipment through an agent interface; and enabling the container cloud equipment to generate sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, sending the sub configuration files to the at least four nodes, and generating a block chain network according to the sub configuration files and the at least four nodes.
An aspect of the present application provides a data processing method based on a blockchain node, which may include:
the container cloud equipment generates sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes;
the configuration file is generated by packaging the acquired starting parameters of at least four nodes after the block chain management platform acquires a starting instruction of the block chain, and the configuration file is sent to the container cloud equipment by the block chain management platform through an agent interface;
and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes.
An aspect of an embodiment of the present application provides a block chain management device, which may include:
the instruction acquisition unit is used for acquiring a starting instruction of the block chain;
the script generation unit is used for acquiring starting parameters of at least four nodes according to the starting instruction and packaging the starting parameters to generate a configuration file;
the script sending unit is used for sending the configuration file to the container cloud equipment through the proxy interface; and enabling the container cloud equipment to generate sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, sending the sub configuration files to the at least four nodes, and generating a block chain network according to the sub configuration files and the at least four nodes.
An aspect of an embodiment of the present application provides a container cloud apparatus, which may include:
the configuration file distribution unit is used for generating sub configuration files corresponding to at least four nodes according to the configuration files and the script files and sending the sub configuration files to the at least four nodes;
the configuration file is generated by packaging the acquired starting parameters of at least four nodes after the block chain management platform acquires a starting instruction of the block chain, and the configuration file is sent to the container cloud equipment by the block chain management platform through an agent interface;
and the block chain generating unit is used for generating a block chain network according to the sub-configuration file and the at least four nodes.
Wherein the script generation unit is specifically configured to:
acquiring the associated information of at least four nodes carried in the starting instruction, and determining the associated information and the attribute information of the at least four nodes as starting parameters of the at least four nodes; the attribute information is inherent information of the node;
and packaging the starting parameters by adopting a target packaging method to generate a configuration file corresponding to the starting parameters.
Wherein the configuration file distribution unit is specifically configured to:
analyzing the configuration file by adopting an analysis method corresponding to the script file to generate an analysis file, and extracting a sub-configuration file corresponding to each node in at least four nodes from the analysis file; the configuration file comprises addresses of physical machines corresponding to the nodes;
and sending the sub-configuration files corresponding to each node to the at least four nodes according to the address of the physical machine corresponding to the node.
Wherein the block chain generating unit is specifically configured to:
acquiring the association information of each sub-configuration file in the at least four sub-configuration files, connecting the node corresponding to each sub-configuration file with the node indicated by the association information, and performing node configuration on the node corresponding to each sub-configuration file by adopting the association information of each sub-configuration file;
and generating a block chain network based on each node of which the node configuration is finished.
Wherein, the block chain management device further includes:
the verification unit is used for verifying the validity of each node in the at least four nodes by the block chain management platform;
when the node information of each node is valid information, a trigger script generation unit executes the block chain management platform to obtain starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file;
the node information includes communication protocol information, communication address information, node identification information, and node port information.
Wherein the verification unit is specifically configured to:
acquiring any one of the at least four nodes as a target node, and sending node information of the target node to a consensus node so that the consensus node verifies the node information of the target node and generates a signature confirmation message after the verification is passed;
and when the signature confirmation message meets a preset consensus strategy, determining that the node information of the target node is valid information.
An aspect of the embodiments of the present application provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
An aspect of the embodiments of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the above method steps.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1a is a system architecture diagram based on a blockchain node according to an embodiment of the present disclosure;
fig. 1b is a schematic structural diagram of a blockchain system according to an embodiment of the present invention;
fig. 1c is a schematic structural diagram of a block structure according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating an example of block chain network generation according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a block chain management device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a container cloud apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1a is a block chain node-based system architecture diagram according to an embodiment of the present invention. The block chain management platform 10e establishes a connection with a user terminal cluster through the communication bus 10d, and the user terminal cluster may include: the user terminal 10a, the user terminal 10b, the user terminal 10c, and the blockchain management platform 10e are connected to the container cloud device 10h through an agent interface, where the agent interface may operate on a dedicated physical machine, and the container cloud device 10h includes a node 10f, a. The method comprises the steps that a user terminal initiates a starting instruction of a block chain, a block chain management platform 10e obtains the starting instruction of the block chain, obtains starting parameters of at least four nodes according to the starting instruction, packages the starting parameters to generate a configuration file, the configuration file comprises the starting parameters of the at least four nodes, the block chain management platform 10e sends the configuration file to container cloud equipment 10h through an agent interface, the container cloud equipment 10h calls a script file to enable the configuration file to generate sub-configuration files corresponding to the at least four nodes respectively, the sub-configuration files are sent to the at least four nodes, and the container cloud equipment 10h generates a block chain network according to the sub-configuration files and the at least four nodes.
The blockchain management platform related to the embodiment of the application may be a server or a platform operating on the server to manage blockchain nodes, the container cloud device may be a server operating a blockchain network, and the user terminal includes: terminal equipment such as tablet personal computers, smart phones, Personal Computers (PCs), notebook computers, palmtop computers and the like.
The block chain related in the embodiment of the application 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 blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
The following description will be made with reference to fig. 1b and fig. 1c for a specific implementation scenario provided in the embodiments of the present application. The blockchain network related to the embodiment of the present invention may be a distributed system formed by connecting clients, a plurality of nodes (any form of computing devices in an access network, such as servers and user terminals) through a network communication form.
Taking a distributed system as an example of a blockchain system, referring To fig. 1b, fig. 1b is an optional structural schematic diagram of a blockchain system To which the distributed system 100 provided by the embodiment of the present invention is applied, the system is formed by a plurality of nodes (computing devices in any form in an access network, such as servers and user terminals) and clients, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
Referring to the functions of each node in the blockchain system shown in fig. 1b, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the remaining electronic money in the electronic money address;
and 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the block chain comprises a series of blocks which are mutually connected according to the generated time sequence, the new blocks cannot be removed once being added into the block chain, and the blocks record the record data submitted by the nodes in the block chain system.
Referring to fig. 1c, fig. 1c is an optional schematic diagram of a Block Structure (Block Structure) according to an embodiment of the present invention, where each Block includes a hash value of a transaction record (hash value of the Block) stored in the Block and a hash value of a previous Block, and the blocks are connected by the hash value to form a Block chain. The block may include information such as a time stamp at the time of block generation. The blockchain is essentially a decentralized database, which is a string of data blocks associated by cryptographic methods, each data block containing relevant information for verifying the validity of the information (anti-counterfeiting) and generating the next block.
Referring to fig. 2, a schematic flow chart of a data processing method based on a blockchain node is provided in an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application may include the following steps S101 to S105.
S101, a block chain management platform acquires a starting instruction of a block chain;
specifically, the blockchain management platform obtains a start instruction of a blockchain, and it can be understood that the blockchain management platform may be a BaaS platform system for managing a blockchain network, where the start instruction may be an operation instruction of a blockchain composed of at least four nodes selected by the blockchain management platform, where the blockchain management platform is used for managing nodes, the nodes may provide services for a fee-paying user, the blockchain management platform may obtain states of the nodes, the states of the nodes include whether the nodes are in an idle state or in a certain blockchain network, the start instruction of the blockchain includes connection relationships of the nodes in the blockchain to be started and attribute information of the nodes, and the attribute information may include communication protocol information of the nodes, port binding information of the nodes, and attribute information of the nodes, The common port information of each node, and the like.
S102, the block chain management platform obtains starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file;
specifically, the blockchain management platform obtains start parameters of at least four nodes according to the start instruction, and encapsulates the start parameters to generate a configuration file, it can be understood that the start parameters are generated by the blockchain management platform according to the start instruction, each node corresponds to a start parameter, the start parameters are parameter information for operating the node, the start parameters are used for starting the node, the start parameters include association information of the node and attribute information of the node, the association information includes a connection relationship between the node and other nodes, the attribute information is inherent information of the node, including node identification, communication protocol information, communication address information, binding port information, common identification port information of each node, and the like, and the communication protocol information is a communication protocol for the node to communicate with other nodes in the blockchain network, the binding port information includes the port type of the node, the port connection mode of the node, and the like. The block chain management platform encapsulates at least four starting parameters corresponding to the at least four nodes into a configuration file by using a preset encapsulation method, wherein the configuration file can be a JSON (JavaScript Object Notation) file, and the configuration file includes the starting parameters of the at least four nodes.
S103, the block chain management platform sends the configuration file to the container cloud equipment through an agent interface;
specifically, the configuration file is sent to the container cloud equipment by the blockchain management platform through the proxy interface, it can be understood that the proxy interface is used for information transmission between the blockchain management platform and the container cloud equipment, the proxy interface can be operated on a special physical machine CVM, the container cloud equipment comprises a plurality of dockers operated on the physical machine, a bottom program of a blockchain node is operated in the dockers, the dockers correspond to a node, the node provides various services for a user, the user cannot directly communicate with the node in the container cloud equipment, information interaction needs to be performed through the blockchain management platform, the blockchain management platform sends the configuration file to the container cloud equipment through the proxy interface, and the container cloud equipment generates a blockchain network according to the configuration file.
S104, the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes;
specifically, the container cloud device generates sub-configuration files corresponding to at least four nodes respectively according to the configuration file and the script file, the container cloud device sends the sub-configuration files to the at least four nodes, it can be understood that the configuration files include start parameters of the at least four nodes, the container cloud device parses the configuration files to generate an analysis file, extracts a sub-configuration file corresponding to each node of the at least four nodes respectively from the analysis file, the sub-configuration files include node identifiers, addresses of physical machines, communication protocol information, communication address information, binding port information, common port information of each node, and the like, the binding port information includes port types of the nodes and port connection modes of the nodes, and the physical machine address is an address of a physical machine operating the node, and each node in the at least four nodes corresponds to one sub-configuration file, and the container cloud equipment sends the sub-configuration files of the nodes to corresponding physical machine addresses according to the node identification.
S105, the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes.
Specifically, the container cloud device generates a block chain network according to the sub-configuration file and the at least four nodes, and it can be understood that the container cloud device needs to perform node configuration on each node in the at least four nodes, the container cloud device obtains associated information in the sub-configuration file, connects the node with a node indicated by the associated information, performs node configuration on the node according to communication protocol information, communication address information, binding port information, common identification port information of each node, and the like in the sub-configuration file, the container cloud device completes node configuration on all nodes corresponding to the sub-configuration file, and generates the block chain network based on each node completed by the node configuration, where the block chain network includes all nodes in all the sub-configuration files.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Referring to fig. 3, a schematic flow chart of a data processing method based on a blockchain node is provided in an embodiment of the present application. As shown in fig. 3, the method of the embodiment of the present application may include the following steps S201 to S206.
S201, a block chain management platform acquires a starting instruction of a block chain;
specifically, the blockchain management platform obtains a start instruction of the blockchain, and it can be understood that the start instruction may be an operation instruction of a blockchain composed of at least four nodes and selected by a user logging in the blockchain management platform, the blockchain management platform is used for managing the nodes, the nodes may provide services for a fee-paying user, the blockchain management platform may obtain states of the nodes, the states of the nodes include whether the nodes are in an idle state or in a certain blockchain network, the start instruction of the blockchain includes a connection relationship of the nodes in the blockchain to be started and attribute information of the nodes, and the attribute information may include communication protocol information, binding port information, common identification port information of the nodes, and the like of the nodes.
S202, the block chain management platform verifies the validity of each node in the at least four nodes, and when the node information of each node is valid information, the block chain management platform is executed to obtain the starting parameters of the at least four nodes according to the starting instruction and package the starting parameters to generate a configuration file; the node information includes communication protocol information, communication address information, node identification information, and node port information.
Specifically, the blockchain management platform performs validity verification on each node of the at least four nodes, and it can be understood that the blockchain management platform acquires any one node of the at least four nodes as a target node, and sends node information of the target node to a consensus node, so that the consensus node verifies the node information of the target node and generates a signature confirmation message after the verification is passed; and when the signature confirmation message meets a preset consensus strategy, determining that the node information of the target node is valid information. And when the node information of each node is valid information, executing the block chain management platform to acquire configuration files of at least four nodes according to the starting instruction, and packaging the configuration files to generate script files.
Specifically, after the start instruction of the blockchain is obtained, validity verification may be performed on each node in at least four nodes indicated in the start instruction. For example, the node information of the target node may be sent to a plurality of designated consensus nodes carried in a start instruction based on a block chain, so that the consensus nodes verify the node information of the target node based on a preset verification manner. And generating a signature confirmation message after the any one of the consensus nodes passes the verification of the node information of the target node. At this time, signature confirmation messages sent by a plurality of consensus nodes can be received, and when each received signature confirmation message meets a preset consensus strategy, the node information of the target node can be determined to be valid information. The preset verification mode may be to verify whether the device number and the device type corresponding to the target node carried in the node information are preset devices or preset device types, or whether the node information is legal information, and the specific preset verification mode may be determined based on an actual application scenario and is not limited herein.
The preset consensus strategy may be that the node information of the target node is considered to be valid information after a certain proportion of the consensus nodes in all the consensus nodes verify the node information of the target node, for example, the node information of the target node is considered to be valid information after receiving a signature confirmation message sent by ninety-five percent of the consensus nodes. Or, the preset consensus strategy may be that, when the signature confirmation messages sent by the multiple consensus nodes are received, whether the consensus node sending the signature confirmation message belongs to the preset consensus node is determined based on the signatures in the signature confirmation messages, and the node information of the target node may be considered to be valid information when the consensus node sending the signature confirmation message is the preset consensus node or when the consensus node sending the signature confirmation message exceeds all the consensus nodes in the block chain network by a certain ratio. Therefore, the preset consensus strategy can also be determined based on actual application scenarios, and is not limited herein.
S203, the block chain management platform acquires the associated information of at least four nodes carried in the starting instruction, and determines the associated information and the attribute information of the at least four nodes as starting parameters of the at least four nodes; the attribute information is inherent information of the node; and the block chain management platform packages the starting parameters by adopting a target packaging method to generate a configuration file corresponding to the starting parameters.
Specifically, the block chain management platform acquires associated information of at least four nodes carried in the start instruction, and determines the associated information and attribute information of the at least four nodes as start parameters of the at least four nodes; the attribute information is inherent information of the node; the block chain management platform encapsulates the starting parameters by using a target encapsulation method to generate configuration files corresponding to the starting parameters, and it can be understood that the starting parameters are generated by the block chain management platform according to the starting instructions, each node corresponds to node association information and attribute information of the node, the association information includes connection relations between the node and other nodes, the attribute information is inherent information of the node and includes node identification, communication protocol information, communication address information, binding port information, common port information of each node, and the like, and the binding port information includes a port type of the node, a port connection mode of the node, and the like. The block chain management platform determines the association information and the attribute information as start parameters of at least four nodes, each node corresponds to one start parameter, and encapsulates the at least four start parameters corresponding to the at least four nodes into a configuration file by using a preset encapsulation method, where the configuration file may specifically be a JSON file, and the configuration file includes the start parameters of the at least four nodes.
S204, the block chain management platform sends the configuration file to the container cloud equipment through an agent interface;
specifically, the configuration file is sent to the container cloud equipment by the blockchain management platform through the proxy interface, it can be understood that the proxy interface is used for information transmission between the blockchain management platform and the container cloud equipment, the proxy interface can be operated on a special physical machine CVM, the container cloud equipment comprises a plurality of dockers operated on the physical machine, a bottom program of a blockchain node is operated in the dockers, the dockers correspond to a node, the node provides various services for a user, the user cannot directly communicate with the node in the container cloud equipment, information interaction needs to be performed through the blockchain management platform, the blockchain management platform sends the configuration file to the container cloud equipment through the proxy interface, and the container cloud equipment generates a blockchain network according to the configuration file.
S205, the container cloud equipment analyzes the configuration file by adopting an analysis method corresponding to the script file to generate an analysis file, and extracts a sub-configuration file corresponding to each node in at least four nodes from the analysis file; the configuration file comprises addresses of physical machines corresponding to the nodes; and the container cloud equipment sends the sub-configuration files corresponding to the nodes to the at least four nodes according to the addresses of the physical machines corresponding to the nodes.
Specifically, the container cloud equipment analyzes the configuration file by using an analysis method corresponding to a script file to generate an analysis file, and extracts a sub-configuration file corresponding to each of at least four nodes from the analysis file; the configuration file comprises addresses of physical machines corresponding to the nodes; the container cloud equipment sends the sub-configuration files corresponding to each node to the at least four nodes according to the addresses of the physical machines corresponding to the nodes, it can be understood that the configuration files comprise starting parameters of the at least four nodes, the container cloud equipment calls the script files to analyze the configuration files to generate analysis files, the script files for analyzing the configuration files are preset, the sub-configuration files corresponding to each node in the at least four nodes are extracted from the analysis files, the sub-configuration files comprise node identifiers, addresses of the physical machines, communication protocol information, communication address information, binding port information, common port information of the nodes and the like, the binding port information comprises the port types of the nodes and the port connection modes of the nodes and the like, and the addresses of the physical machines operating the nodes are corresponding to each other, the container cloud equipment comprises a plurality of physical machines, each node in the at least four nodes corresponds to one sub-configuration file, and the container cloud equipment sends all the sub-configuration files to physical machine addresses of the physical machines corresponding to the nodes to which the sub-configuration files belong according to the node identifiers.
S206, the container cloud equipment acquires the associated information of each sub-configuration file in the at least four configuration files, connects the node corresponding to each sub-configuration file with the node indicated by the associated information, and performs node configuration on the node corresponding to each sub-configuration file by adopting the associated information of each sub-configuration file; and the container cloud equipment generates a block chain network based on each node after the node configuration is completed.
Specifically, the container cloud device obtains association information of each sub-configuration file in the at least four configuration files, connects a node corresponding to each sub-configuration file with a node indicated by the association information, and performs node configuration on the node corresponding to each sub-configuration file by using the association information of each sub-configuration file; the container cloud device generates a block chain network based on each node of which the node configuration is completed, and it can be understood that the container cloud device needs to perform node configuration on each node of at least four nodes, any one of the nodes is described below, the container cloud device acquires associated information in a sub-configuration file, connects the node with the node indicated by the associated information, performs node configuration on the node according to communication protocol information, communication address information, binding port information, common port information of each node and the like in the sub-configuration file, specific node configuration includes setting a communication protocol for the node to communicate with other nodes in the block chain network, setting a port type of the node, a port connection mode of the node and the like, and the container cloud device completes node configuration on all nodes corresponding to the sub-configuration file, and generating a block chain network based on each node after the node configuration is completed, wherein the block chain network comprises all nodes in all the sub configuration files. Referring to fig. 4, an exemplary block chain network generation diagram is provided according to an embodiment of the present application. As shown in fig. 4, a blockchain management platform obtains configuration files of at least four nodes according to a start instruction, where the configuration files of the nodes include start parameters of a node 1, start parameters of a node 2, start parameters of a node n, and encapsulates the start parameters to generate configuration files, the blockchain management platform sends the configuration files to a container cloud device through a proxy interface, the container cloud device analyzes the configuration files into sub-configuration files corresponding to the node 1, the node 2, the node n, and distributes the sub-configuration files to the nodes, that is, the sub-configuration files of the node 1 are distributed to the node 1, the sub-configuration files of the node 2 are distributed to the node 2, and the sub-configuration files of the node n are distributed to the node n, and the container cloud device distributes the sub-configuration files to the node n according to the sub-configuration files and the node 1, Node 2, n generates a blockchain network.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Referring to fig. 5, a schematic flow chart of a data processing method based on a blockchain node is provided in an embodiment of the present application. As shown in fig. 5, the method of the embodiment of the present application may include the following steps S301 to S303.
S301, the block chain management platform acquires a starting instruction of a block chain;
specifically, the blockchain management platform obtains a start instruction of the blockchain, and it can be understood that the start instruction may be an operation instruction of a blockchain composed of at least four nodes and selected by a user logging in the blockchain management platform, the blockchain management platform is used for managing the nodes, the nodes may provide services for a fee-paying user, the blockchain management platform may obtain states of the nodes, the states of the nodes include whether the nodes are in an idle state or in a certain blockchain network, the start instruction of the blockchain includes a connection relationship of the nodes in the blockchain to be started and attribute information of the nodes, and the attribute information may include communication protocol information, binding port information, common identification port information of the nodes, and the like of the nodes.
S302, the block chain management platform obtains starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file;
specifically, the blockchain management platform obtains start parameters of at least four nodes according to the start instruction, and encapsulates the start parameters to generate a configuration file, it can be understood that the start parameters are generated by the blockchain management platform according to the start instruction, each node corresponds to a start parameter, the start parameters are parameter information for operating the node, the start parameters are used for starting the node, the start parameters include association information of the node and attribute information of the node, the association information includes a connection relationship between the node and other nodes, the attribute information is inherent information of the node, including node identification, communication protocol information, communication address information, binding port information, common identification port information of each node, and the like, and the communication protocol information is a communication protocol for the node to communicate with other nodes in the blockchain network, the binding port information includes the port type of the node, the port connection mode of the node, and the like. And the block chain management platform encapsulates at least four starting parameters corresponding to the at least four nodes into a configuration file by adopting a preset encapsulation method, wherein the configuration file can be a JSON file, and the configuration file comprises the starting parameters of the at least four nodes.
S303, the block chain management platform sends the configuration file to the container cloud equipment through an agent interface; and enabling the container cloud equipment to generate sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, sending the sub configuration files to the at least four nodes, and generating a block chain network according to the sub configuration files and the at least four nodes.
Specifically, the blockchain management platform sends the configuration file to the container cloud equipment through an agent interface, as can be appreciated, the proxy interface is used for information transfer between the blockchain management platform and the container cloud device, the agent interface can run on a special physical machine CVM, the container cloud equipment comprises a plurality of dockers running on the physical machine, a bottom layer program of a block chain node runs in each dock, each dock corresponds to one node, each node provides various services for a user, the user cannot directly communicate with the nodes in the container cloud equipment, information interaction needs to be carried out through a block chain management platform, the blockchain management platform sends the configuration file to a container cloud device through an agent interface, enabling the container cloud equipment to generate sub configuration files of at least four nodes according to the configuration files, and sending the sub configuration files to the at least four nodes; and generating a block chain network according to the sub-configuration file and the at least four nodes.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Referring to fig. 6, a schematic flow chart of a data processing method based on a blockchain node is provided in an embodiment of the present application. As shown in fig. 6, the method of the embodiment of the present application may include the following steps S401 to S402.
S401, the container cloud equipment generates sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes;
the configuration file is generated by packaging the acquired starting parameters of at least four nodes after the block chain management platform acquires a starting instruction of the block chain, and the configuration file is sent to the container cloud equipment by the block chain management platform through an agent interface;
specifically, the container cloud device generates sub-configuration files corresponding to at least four nodes respectively according to the configuration file and the script file, the container cloud device sends the sub-configuration files to the at least four nodes, it can be understood that the configuration files include start parameters of the at least four nodes, the container cloud device parses the configuration files to generate parsing files, extracts sub-configuration files corresponding to each node of the at least four nodes respectively from the parsing files, the sub-configuration files include node identifiers, addresses of physical machines, communication protocol information, communication address information, binding port information, common port information of each node, and the like, the binding port information includes port types of the nodes and port connection modes of the nodes, and the physical machine address is an address of a physical machine of the operating node, and each node in the at least four nodes corresponds to a configuration file, and the container cloud equipment sends the configuration files of the nodes to corresponding physical machine addresses according to the node identifiers.
S402, the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes.
Specifically, the container cloud device generates a block chain network according to the sub-configuration file and the at least four nodes, and it can be understood that the container cloud device needs to perform node configuration on each node in the at least four nodes, the container cloud device obtains association information in the configuration file, connects the node with the node indicated by the association information, performs node configuration on the node according to communication protocol information, communication address information, binding port information, common identification port information of each node, and the like in the configuration file, the container cloud device completes node configuration on all nodes corresponding to the configuration file, and generates the block chain network based on each node completed by the node configuration, where the block chain network includes all nodes in all sub-configuration files.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Please refer to fig. 7, which provides a schematic structural diagram of a block chain management device according to an embodiment of the present application. As shown in fig. 7, the block chain management device 1 according to the embodiment of the present application may include: an instruction acquisition unit 11, a script generation unit 12, a script transmission unit 13, and a verification unit 14.
An instruction obtaining unit 11, configured to obtain a start instruction of a block chain;
a verification unit 14, configured to perform validity verification on each node of the at least four nodes;
when the node information of each node is valid information, triggering a script generation unit to execute the starting parameters of at least four nodes according to the starting instruction, and packaging the starting parameters to generate a configuration file; the node information includes communication protocol information, communication address information, node identification information, and node port information.
The script generating unit 12 is configured to obtain start parameters of at least four nodes according to the start instruction, and package the start parameters to generate a configuration file;
the script sending unit 13 is configured to send the configuration file to the container cloud device through the proxy interface; and enabling the container cloud equipment to generate sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, sending the sub configuration files to the at least four nodes, and generating a block chain network according to the sub configuration files and the at least four nodes.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Please refer to fig. 8, which provides a schematic structural diagram of a container cloud apparatus according to an embodiment of the present application. As shown in fig. 8, the container cloud apparatus 2 according to the embodiment of the present application may include: a configuration file distribution unit 21 and a block chain generation unit 22.
The configuration file distribution unit 21 is configured to generate sub-configuration files corresponding to at least four nodes respectively according to the configuration file and the script file, and send the sub-configuration files to the at least four nodes;
the configuration file is generated by packaging the acquired starting parameters of at least four nodes after the block chain management platform acquires a starting instruction of the block chain, and the configuration file is sent to the container cloud equipment by the block chain management platform through an agent interface;
a block chain generating unit 22, configured to generate a block chain network according to the sub-configuration file and the at least four nodes.
In the embodiment of the application, a starting instruction of a block chain is obtained through a block chain management platform; the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the block chain management platform sends the configuration file to container cloud equipment through an agent interface; the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes; and the container cloud equipment generates a block chain network according to the sub-configuration file and the at least four nodes. The configuration files of the nodes are generated through the block chain management platform and are sent to the container cloud equipment, the problem that errors easily occur to manual configuration files is solved, the operation process is relatively simple, configuration data can be conveniently and dynamically modified, the configuration files are updated in time, container mirror images are prevented from being packaged again and containers are prevented from being created, manpower and material resources are saved, configuration efficiency of block chain nodes is improved, and error rate of the configuration files is reduced.
Referring to fig. 9, a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in fig. 9, the computer apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 9, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data processing application program.
In the computer apparatus 1000 shown in fig. 9, a network interface 1004 may provide a network communication function, and a user interface 1003 is mainly used as an interface for providing input for a user; the processor 1001 may be configured to call a data processing application stored in the memory 1005, so as to implement the description of the data processing method in any one of the embodiments corresponding to fig. 1a to fig. 6, which is not described herein again.
It should be understood that the computer 1000 described in this embodiment of the present application may perform the description of the data processing method in the embodiment corresponding to any one of fig. 1a to fig. 6, and may also perform the description of the device in the embodiment corresponding to fig. 7 to fig. 8, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the aforementioned device is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in any one of the embodiments corresponding to fig. 1a to fig. 6 can be performed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (8)

1. A data processing method based on a block chain node is characterized by comprising the following steps:
the method comprises the steps that a block chain management platform obtains a starting instruction of a block chain; the starting instruction comprises at least four nodes, and the at least four nodes all belong to nodes corresponding to a plurality of dockers running on the physical machine in the container cloud equipment;
the block chain management platform acquires any one of the at least four nodes as a target node, and sends node information of the target node to a consensus node so that the consensus node verifies the node information of the target node and generates a signature confirmation message after the verification is passed;
when the signature confirmation message meets a preset consensus strategy, determining that the node information of the target node is valid information, and when the node information of each node is valid information, the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file;
the block chain management platform sends the configuration file to container cloud equipment through an agent interface;
the container cloud equipment generates sub configuration files corresponding to at least four nodes according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes;
the container cloud equipment acquires the associated information of each sub-configuration file in the at least four sub-configuration files, connects the node corresponding to each sub-configuration file with the node indicated by the associated information, and performs node configuration on the node corresponding to each sub-configuration file by adopting the communication protocol information, the communication address information, the binding port information and the common port information of each node in each sub-configuration file; the associated information comprises the connection relation between the node and other nodes;
and the container cloud equipment generates a block chain network based on each node after the node configuration is completed.
2. The method according to claim 1, wherein the block chain management platform obtains start parameters of at least four nodes according to the start instruction, and encapsulates the start parameters to generate a configuration file, including:
the block chain management platform acquires the associated information of at least four nodes carried in the starting instruction, and determines the associated information and the attribute information of the at least four nodes as starting parameters of the at least four nodes; the attribute information is inherent information of the node;
and the block chain management platform packages the starting parameters by adopting a target packaging method to generate a configuration file corresponding to the starting parameters.
3. The method according to claim 1, wherein the container cloud device generates sub-configuration files corresponding to at least four nodes according to the configuration file and the script file, and the container cloud device sends the sub-configuration files to the at least four nodes, including:
the container cloud equipment analyzes the configuration file to generate an analysis file by adopting an analysis method corresponding to the script file, and extracts a sub-configuration file corresponding to each node in at least four nodes from the analysis file; the configuration file comprises addresses of physical machines corresponding to the nodes;
and the container cloud equipment sends the sub-configuration files corresponding to the nodes to the at least four nodes according to the addresses of the physical machines corresponding to the nodes.
4. The method of claim 1, wherein the node information comprises communication protocol information, communication address information, node identification information, and node port information.
5. A data processing method based on a block chain node is characterized by comprising the following steps:
the method comprises the steps that a block chain management platform obtains a starting instruction of a block chain; the starting instruction comprises at least four nodes, and the at least four nodes all belong to nodes corresponding to a plurality of dockers running on the physical machine in the container cloud equipment;
the block chain management platform carries out validity verification on each node in at least four nodes contained in the starting instruction;
the block chain management platform acquires any one of the at least four nodes as a target node, and sends node information of the target node to a consensus node so that the consensus node verifies the node information of the target node and generates a signature confirmation message after the verification is passed;
when the signature confirmation message meets a preset consensus strategy, determining that the node information of the target node is valid information, and when the node information of each node is valid information, the block chain management platform acquires starting parameters of at least four nodes according to the starting instruction, and encapsulates the starting parameters to generate a configuration file; the node information comprises communication protocol information, communication address information, node identification information and node port information;
the block chain management platform sends the configuration file to container cloud equipment through an agent interface, so that the container cloud equipment generates sub-configuration files corresponding to at least four nodes respectively according to the configuration file and a script file, sends the sub-configuration files to the at least four nodes, acquires the association information of each sub-configuration file in the at least four sub-configuration files, connects the node corresponding to each sub-configuration file with a node indicated by the association information, performs node configuration on the node corresponding to each sub-configuration file by adopting communication protocol information, communication address information, binding port information and common identification port information of each node in each sub-configuration file, and generates a block chain network based on each node after the node configuration is completed; the associated information comprises the connection relation between the node and other nodes.
6. A data processing method based on a block chain node is characterized by comprising the following steps:
the container cloud equipment generates sub configuration files corresponding to at least four nodes respectively according to the configuration files and the script files, and the container cloud equipment sends the sub configuration files to the at least four nodes;
the configuration file is generated by encapsulating the starting parameters of at least four nodes when the node information of the at least four nodes indicated by the starting instruction is valid information by the blockchain management platform, and the configuration file is sent to the container cloud equipment by the blockchain management platform through the proxy interface; the at least four nodes comprise target nodes, the effective information of the target nodes is the node information determined by verifying the node information of the target nodes by a consensus node and generating signature confirmation information after the verification is passed, and when the signature confirmation information meets a preset consensus strategy; the at least four nodes all belong to nodes corresponding to a plurality of dockers running on the physical machine in the container cloud equipment;
the container cloud equipment acquires the associated information of each sub-configuration file in the at least four sub-configuration files, connects the node corresponding to each sub-configuration file with the node indicated by the associated information, and performs node configuration on the node corresponding to each sub-configuration file by adopting the communication protocol information, the communication address information, the binding port information and the common port information of each node in each sub-configuration file; the associated information comprises the connection relation between the node and other nodes;
and the container cloud equipment generates a block chain network based on each node after the node configuration is completed.
7. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, perform the method according to any one of claims 1-6.
8. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 6.
CN201910891148.1A 2019-09-20 2019-09-20 Data processing method and equipment based on block chain nodes Active CN110601896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910891148.1A CN110601896B (en) 2019-09-20 2019-09-20 Data processing method and equipment based on block chain nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910891148.1A CN110601896B (en) 2019-09-20 2019-09-20 Data processing method and equipment based on block chain nodes

Publications (2)

Publication Number Publication Date
CN110601896A CN110601896A (en) 2019-12-20
CN110601896B true CN110601896B (en) 2021-08-24

Family

ID=68861589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910891148.1A Active CN110601896B (en) 2019-09-20 2019-09-20 Data processing method and equipment based on block chain nodes

Country Status (1)

Country Link
CN (1) CN110601896B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110796A (en) * 2020-01-13 2021-07-13 顺丰科技有限公司 Data management method, device, server and storage medium
CN111641715A (en) * 2020-05-29 2020-09-08 深圳壹账通智能科技有限公司 Data processing method, device, equipment and medium based on block chain
CN112163034B (en) * 2020-09-03 2023-06-16 中国联合网络通信集团有限公司 Model sharing method, node and blockchain system
CN112416396B (en) * 2020-11-20 2023-11-03 泰康保险集团股份有限公司 Application program updating method and system
CN112968897B (en) * 2021-02-25 2022-04-08 浙江清华长三角研究院 Container calculation method operating in decentralized system
CN114039974A (en) * 2021-10-20 2022-02-11 支付宝(杭州)信息技术有限公司 Cloud container generation method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN108810157A (en) * 2018-06-20 2018-11-13 泰链(厦门)科技有限公司 The connection method of block chain network, medium, apparatus and system

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts
US10382208B2 (en) * 2016-04-29 2019-08-13 Olympus Sky Technologies, S.A. Secure communications using organically derived synchronized processes
US20180158034A1 (en) * 2016-12-07 2018-06-07 International Business Machines Corporation Dynamic reordering of blockchain transactions to optimize performance and scalability
CN106650494B (en) * 2016-12-16 2019-07-16 杭州嘉楠耘智信息科技有限公司 Data processing method and device
JP6660905B2 (en) * 2017-03-17 2020-03-11 Kddi株式会社 Method and system for optimizing distributed container placement
CN108737536B (en) * 2018-05-14 2021-11-09 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for realizing block chain system
CN109194506B (en) * 2018-08-16 2021-10-15 北京京东尚科信息技术有限公司 Block chain network deployment method, platform and computer storage medium
CN108989465B (en) * 2018-08-30 2021-03-12 交叉信息核心技术研究院(西安)有限公司 Consensus method, server, storage medium and distributed system
CN109800056A (en) * 2019-01-16 2019-05-24 杭州趣链科技有限公司 A kind of block chain dispositions method based on container
CN109933338B (en) * 2019-01-29 2023-06-06 浙江数链科技有限公司 Block chain deployment method, device, computer equipment and storage medium
CN109976774B (en) * 2019-04-11 2022-07-26 北京启迪区块链科技发展有限公司 Block link point deployment method, device, equipment and storage medium
CN110113185A (en) * 2019-04-18 2019-08-09 卓尔购电子商务(武汉)有限公司 Method, system, storage medium and the device of a kind of rapid deployment alliance chain
CN110149316B (en) * 2019-04-22 2022-05-17 众安信息技术服务有限公司 Block chain publishing method and device
CN110224854B (en) * 2019-05-06 2022-04-12 深圳壹账通智能科技有限公司 Block chain node deployment method and device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN108810157A (en) * 2018-06-20 2018-11-13 泰链(厦门)科技有限公司 The connection method of block chain network, medium, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于区块链的电能交易平台设计与实现;张栋珀;《中国优秀硕士学位论文全文数据库》;20180915;全文 *

Also Published As

Publication number Publication date
CN110601896A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110601896B (en) Data processing method and equipment based on block chain nodes
CN108197891B (en) Electronic signing device and method based on block chain
CN113691597B (en) Block chain contract deployment method, device, equipment and storage medium
CN109819443B (en) Registration authentication method, device and system based on block chain
US20210081938A1 (en) Method and apparatus for computer-assisted provision of a security-protected digital twin
CN110839029B (en) Micro-service registration method and device
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN111445333A (en) Block generation method and device, computer equipment and storage medium
CN111291060A (en) Method, device and computer readable medium for managing block chain nodes
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
US20210373521A1 (en) Method and control system for controlling and/or monitoring devices
CN111222841A (en) Block chain-based data distribution method and equipment and storage medium thereof
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
CN111292057A (en) Service processing method based on block chain
CN110599175A (en) Block processing method and related equipment
CN113129002A (en) Data processing method and equipment
CN110599144A (en) Network access method and device for block link points
CN115374175A (en) Method and device for tracking task execution progress based on micro-service architecture
US20200043016A1 (en) Network node for processing measurement data
WO2023005500A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
CN115913734A (en) User authority management method, device and equipment applied to alliance chain
CN112926981B (en) Transaction information processing method, device and medium for block chain and electronic equipment
CN113988982A (en) Data transaction method, device, equipment and storage medium
CN111008251A (en) Data processing method and equipment
CN114677138A (en) Data processing method, data processing equipment and computer readable storage medium

Legal Events

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