CN112054928A - Parallel chain node configuration method, equipment and storage medium - Google Patents

Parallel chain node configuration method, equipment and storage medium Download PDF

Info

Publication number
CN112054928A
CN112054928A CN202010910716.0A CN202010910716A CN112054928A CN 112054928 A CN112054928 A CN 112054928A CN 202010910716 A CN202010910716 A CN 202010910716A CN 112054928 A CN112054928 A CN 112054928A
Authority
CN
China
Prior art keywords
parallel chain
parallel
chain
configuration
configuration transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010910716.0A
Other languages
Chinese (zh)
Other versions
CN112054928B (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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN202010910716.0A priority Critical patent/CN112054928B/en
Publication of CN112054928A publication Critical patent/CN112054928A/en
Application granted granted Critical
Publication of CN112054928B publication Critical patent/CN112054928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements

Abstract

The invention provides a parallel chain node configuration method, equipment and a storage medium, which relate to the technical field of block chains and the like, and the method comprises the following steps: screening a plurality of parallel chains which can be configured with the same parameters; and generating first parallel chain configuration transactions comprising the first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to the main chain node, so that the main chain node records the parameters configured in the first parallel chain configuration transactions and the values of the configured parameters to the main chain, and the parallel chain node of each related parallel chain updates local configuration according to the values of the configured parameters in the first parallel chain configuration transactions. The method and the device enable parameter configuration to be more convenient.

Description

Parallel chain node configuration method, equipment and storage medium
Technical Field
The present application relates to the field of parallel chain technologies, and in particular, to a parallel chain node configuration method, device, and storage medium.
Background
In the prior art, the same parameters may exist on different parallel chains, for example, parachain1, parachain2, and parachain3 (hereinafter referred to as p1, p2, and p3) all have the same parameters, for example, the value of the space block interval parameter of p1 is 10, and the values of the space block interval parameters of p2 and p3 are 20; when the same parameters need to be updated uniformly and the updated parameters have the same values, for example, the values of the parameters of the empty block intervals of p1, p2 and p3 are updated to 15, and the values of the parameters need to be configured for each parallel chain individually, that is, the values of the parameters are configured for p1, p2 and p3 respectively, so as to indicate that the empty block intervals are changed to 15, which is exemplified by the existence of 3 parallel chains, and in some block chain ecology, hundreds of parallel chains exist, and the mechanism is inconvenient for configuring the parameters.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies in the prior art, it is desirable to provide a parallel chain node configuration method, apparatus, and storage medium that more conveniently configure values of parameters of a plurality of parallel chains.
In a first aspect, the present invention provides a parallel chain node configuration method suitable for a client, where the method includes:
screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
generating first parallel chain configuration transactions including first identifications of the screened parallel chains, sending the first parallel chain configuration transactions to main chain nodes, so that the main chain nodes record the parameters configured in the first parallel chain configuration transactions and the values of the configured parameters on the main chain, and the parallel chain nodes of the parallel chains:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
In a second aspect, the present invention provides a parallel link node configuration method suitable for parallel link nodes, where the method includes:
obtaining a first parallel chain configuration transaction from a backbone; the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameter, the configurable condition is that the values of the configured parameter are the same, and the values of the configured parameter and the configured parameter in the first parallel chain configuration transaction are recorded on a main chain by each main chain node;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the current parallel chain:
the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
In a third aspect, the present invention provides a method for configuring a parallel chain node suitable for a main chain node, where the method includes:
receiving a first parallel chain configuration transaction; the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameters, and the configurable condition is that the values of the configured parameters are the same;
recording the configured parameters and the configured parameter values in the first parallel chain configuration transaction onto the main chain for the parallel chain nodes of each parallel chain:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
In a fourth aspect, the present invention provides a parallel chain node configuration method suitable for a client, where the method includes:
screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
generating first parallel chain configuration transactions including the first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to corresponding main chain nodes so that the main chain nodes can verify the first parallel chain configuration transactions and the parallel chain nodes of the parallel chains:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
In a fifth aspect, the present invention provides a parallel link node configuration method suitable for parallel link nodes, where the method includes:
obtaining a first parallel chain configuration transaction from a backbone; the first parallel chain configuration transaction is generated by the client and sent to the main chain nodes so that each main chain node can store and verify the first parallel chain configuration transaction, the first parallel chain configuration transaction comprises a plurality of first identifications, screened out by the client, of parallel chains which can be configured with the same parameters, and the configurable condition is that the values of the configured parameters are the same;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the current parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
In a sixth aspect, the present invention provides a method for configuring a parallel chain node suitable for a main chain node, where the method includes:
receiving a first parallel chain configuration transaction; the first parallel chain configuration transaction is generated by a client, the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameter, and the values of the configured parameters are the same;
and storing and certifying the first parallel chain configuration transaction for the parallel chain nodes of each parallel chain:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
In a seventh aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a method of parallel chain link point configuration provided according to embodiments of the present invention.
In an eighth aspect, the present invention also provides a storage medium storing a computer program that causes a computer to execute the parallel link point arrangement method provided according to the embodiments of the present invention.
According to the parallel chain node configuration method, the parallel chain node configuration equipment and the storage medium provided by the embodiments of the invention, a plurality of parallel chains which can be configured with the same parameters are screened out; and generating first parallel chain configuration transactions comprising the first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to the main chain node, so that the main chain node records the parameters configured in the first parallel chain configuration transactions and the values of the configured parameters on the main chain, and the parallel chain node of each related parallel chain updates the local configuration method according to the values of the configured parameters in the first parallel chain configuration transactions, thereby facilitating the parameter configuration.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a parallel link point configuration method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention.
Fig. 3 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention.
Fig. 4 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention.
Fig. 5 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention.
Fig. 6 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a parallel link point configuration method according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a parallel link point configuration method suitable for a client, where the method includes:
s12: screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
s14: generating first parallel chain configuration transactions including first identifications of the screened parallel chains, sending the first parallel chain configuration transactions to main chain nodes, so that the main chain nodes record the parameters configured in the first parallel chain configuration transactions and the values of the configured parameters on the main chain, and the parallel chain nodes of the parallel chains:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
Specifically, the first identifier is taken as an example of the name of the parallel chain; suppose there are four parallel chains in the block chain network, their names are Pa, Pb, Pc, Pd respectively; at the same time, the interval parameter of the empty blocks of Pa-Pd needs to be configured to be 10;
the client executes the step S12, screens out parallel chains which can be configured with the same parameters, and because the spacing parameter of the empty blocks of the Pa-Pd needs to be configured as 10 at the same time, the screened parallel chains are the Pa-Pd;
the client executes the step S14, generates a parallel chain configuration transaction including Pa, Pb, Pc, and Pd, and sends the parallel chain configuration transaction to the main chain node;
master link point will configure parameters: null block interval parameter, value of configured parameter: 10 to the main chain;
taking parallel chain nodes on Pa as an example:
the parallel chain node acquires the parallel chain configuration transaction from the main chain;
and judging whether Pa is included in Pa, Pb, Pc and Pd by the parallel link points, and updating local configuration according to the value 10 of the space block interval parameter in the parallel link configuration transaction due to the inclusion.
The parallel chain links on Pb-Pd are the same as those performed by Pa, and are not described here.
The above embodiments exemplarily illustrate the method for configuring the parallel link points in the present application by taking the first identifier as an example of a name of the parallel chain, and in further embodiments, the first identifier may also be configured as other identifiers that can be used for uniquely identifying the parallel chain according to actual requirements, for example, an abbreviation of a name of the parallel chain, so that the same technical effect can be achieved.
The above-described embodiments facilitate parameter configuration.
Preferably, the above method may be performed only by a client of a system administrator. At this time, the main chain node also needs to check whether the parallel chain configuration transaction is signed by a private key of a system administrator, and if not, the parallel chain configuration transaction is discarded. The checking step may be performed when the parallel chain configuration transaction is about to enter the transaction pool, or may be performed when the parallel chain configuration transaction is performed.
It should be noted that, those skilled in the art should understand that the method can also be used to configure the parameters of the main chain at the same time, that is, those skilled in the art should be able to conceive of a node configuration method after seeing the solution of the present application, and the method can also configure the parameters common on the main chain and the parallel chain at the same time, such as the system administrator user, and the method includes but is not limited to:
screening a plurality of logic chains which can be configured with the same parameters; the logic chain comprises a main chain and a parallel chain in the same block chain network, and the configurable condition is that the values of the configured parameters are the same;
generating a first blockchain configuration transaction comprising the screened first identification of each logic chain, and sending the first blockchain configuration transaction to the main chain nodes for each main chain node to:
recording the configured parameters and the values of the configured parameters in the first blockchain configuration transaction on the main chain;
judging whether each first identifier in the first block chain allocation transaction comprises a second identifier of the main chain:
if yes, updating the local configuration according to the value of the parameter configured in the first blockchain configuration transaction;
wherein the first blockchain allocation transaction is further for parallel chain nodes of each parallel chain to:
obtaining a first blockchain allocation transaction from a backbone;
judging whether each first identifier in the first block chain allocation transaction comprises a third identifier of the corresponding parallel chain:
the local configuration is updated based on the values of the parameters configured in the first blockchain configuration transaction.
It should be noted that, as will be understood by those skilled in the art, the parallel chain configuration transaction or the blockchain configuration transaction may be executed by an existing contract, or may be specifically executed by configuring a special contract (for example, called a first contract); if both the main chain and the parallel chain are provided with the first contract, the above method can be modified as follows:
screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
generating first parallel chain configuration transactions including first identifications of the screened parallel chains, sending the first parallel chain configuration transactions to main chain nodes, so that the main chain nodes record the configured parameters and the configured values of the parameters in the first parallel chain configuration transactions to the main chain through a first contract, and the parallel chain nodes of the parallel chains:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain through the first contract:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
Fig. 2 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention. As shown in fig. 2, in this embodiment, the present invention provides a parallel link node configuration method suitable for parallel link nodes, where the method includes:
s22: obtaining a first parallel chain configuration transaction from a backbone; the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameter, the configurable condition is that the values of the configured parameter are the same, and the values of the configured parameter and the configured parameter in the first parallel chain configuration transaction are recorded on a main chain by each main chain node;
s241: judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the current parallel chain:
if yes, go to step S242: the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
The principle of parallel link node configuration in the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
Preferably, the main chain and the current parallel chain have initial heights recorded thereon, where the initial heights are block heights of main chain blocks to be synchronized when the current parallel chain node is initially joined to the current parallel chain, and the method further includes:
starting parallel chain service, and when the values of other parameters related to the current parallel chain except the second identifier and the initial height are all empty, sending request information for acquiring configuration data of the current parallel chain to the corresponding main chain node, so that the corresponding main chain node can acquire the value of each parameter of the latest current parallel chain before the initial height from the main chain and return the value;
and updating the local configuration according to the returned values of the parameters.
The above embodiment enables a parallel chain node which is added to the parallel chain for the first time or a parallel chain node which is regarded as being added to the parallel chain for the first time (values of other parameters related to the current parallel chain except the second identifier and the initial height are all null locally) to quickly acquire configuration data of the parallel chain to which the node belongs.
Fig. 3 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention. As shown in fig. 3, in this embodiment, the present invention provides a parallel link node configuration method suitable for a main link node, where the method includes:
s32: receiving a first parallel chain configuration transaction; the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameters, and the configurable condition is that the values of the configured parameters are the same;
s34: recording the configured parameters and the configured parameter values in the first parallel chain configuration transaction onto the main chain for the parallel chain nodes of each parallel chain:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
The principle of parallel link node configuration in the above embodiment may refer to the method shown in fig. 1, and is not described herein again.
Preferably, the main chain and the second parallel chain have initial heights recorded thereon, where the initial heights are block heights of main chain blocks to be synchronized when parallel chain nodes of the second parallel chain are initially added to the second parallel chain, and the method further includes:
receiving request information for acquiring configuration data of a second parallel chain, which is sent by a second parallel chain node of the second parallel chain; the request information starts parallel chain service for the second parallel chain node, and the request information is sent to the node when the values of other parameters related to the second parallel chain except the second identifier and the initial height are all null;
and obtaining and returning the latest values of the parameters of the second parallel chain before the initial height, so that the second parallel chain node updates the local configuration according to the returned values of the parameters.
The above embodiment enables a parallel chain node which is added to the parallel chain for the first time or a parallel chain node which is regarded as being added to the parallel chain for the first time (values of other parameters related to the current parallel chain except the second identifier and the initial height are all null locally) to quickly acquire configuration data of the parallel chain to which the node belongs.
It should be noted that, as will be understood by those skilled in the art, the method may be appropriately modified to obtain the effect that the parallel chain can quickly obtain the configuration data of the parallel chain. For example, the main chain has no initial height of the current parallel chain, and only the initial configuration file of the parallel chain node of the current parallel chain has the initial height of the current parallel chain recorded thereon. The method of deformation is:
starting parallel chain service, and when the values of other parameters related to the current parallel chain except the second identifier and the initial height are all null, sending request information for acquiring configuration data of the current parallel chain to a corresponding main chain node, so that the corresponding main chain node can acquire the value of each parameter of the latest current parallel chain before the initial height from the main chain and return the value; wherein the request information comprises an initial height of the current parallel chain;
and updating the local configuration according to the returned values of the parameters.
Fig. 4 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention. As shown in fig. 4, in this embodiment, the present invention provides a parallel chain node configuration method suitable for a client, where the method includes:
s42: screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
s44: generating first parallel chain configuration transactions including the first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to the main chain nodes so that the main chain nodes can store and verify the first parallel chain configuration transactions and the parallel chain nodes of the parallel chains:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
The present embodiment is different from the embodiment shown in fig. 1 in that, in the present embodiment, only the parallel chain configuration transaction is certified on the main chain, and the parameter configured and the value of the configured parameter in the first parallel chain configuration transaction are not recorded on the main chain. In the method of this embodiment, the parallel link node that is added to the parallel link for the first time or the parallel link node that is regarded as the added parallel link for the first time needs to synchronize parallel link transactions (including parallel link configuration transactions) related to the belonging parallel link from the first main chain block to obtain parallel link configuration information and update the local configuration.
It should be noted that, as will be understood by those skilled in the art, the parallel chain configuration transaction or the blockchain configuration transaction may be executed by an existing contract, or may be specifically executed by configuring a special contract (for example, called a first contract); if the parallel chains are each provided with a first contract, the method can be modified as follows:
screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
generating first parallel chain configuration transactions including the first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to main chain nodes for the main chain nodes to store and verify the first parallel chain configuration transactions so as to provide the parallel chain nodes of the parallel chains:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain through the first contract:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
It should be noted that, as will be understood by those skilled in the art, the parallel chain configuration transaction or the blockchain configuration transaction may be executed by an existing contract, or may be specifically executed by configuring a special contract (for example, called a first contract); if both the main chain and the parallel chain are provided with the first contract, the above method can be modified as follows:
screening a plurality of parallel chains which can be configured with the same parameters; wherein, the configurable condition is that the values of the configured parameters are the same;
generating first parallel chain configuration transactions including first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to main chain nodes, so that the main chain nodes can deposit and prove the first parallel chain configuration transactions through a first contract, and the parallel chain nodes of the parallel chains can:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain through the first contract:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
It should be noted that, those skilled in the art should understand that the method can also be used to configure the parameters of the main chain at the same time, that is, those skilled in the art should be able to conceive of a node configuration method after seeing the solution of the present application, and the method can also configure the parameters common on the main chain and the parallel chain at the same time, such as the system administrator user, and the method includes but is not limited to:
screening a plurality of logic chains which can be configured with the same parameters; the logic chain comprises a main chain and a parallel chain in the same block chain network, and the configurable condition is that the values of the configured parameters are the same;
generating a first blockchain configuration transaction comprising the screened first identification of each logic chain, and sending the first blockchain configuration transaction to the main chain nodes for each main chain node to:
judging whether each first identifier in the first block chain allocation transaction comprises a second identifier of the main chain:
if yes, updating the local configuration according to the value of the parameter configured in the first blockchain configuration transaction;
if not, the first block chain allocation transaction is stored and verified;
wherein the first blockchain allocation transaction is further for parallel chain nodes of each parallel chain to:
obtaining a first blockchain allocation transaction from a backbone;
judging whether each first identifier in the first block chain allocation transaction comprises a third identifier of the corresponding parallel chain:
the local configuration is updated based on the values of the parameters configured in the first blockchain configuration transaction.
The above-described embodiments facilitate parameter configuration.
Fig. 5 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention. As shown in fig. 5, in this embodiment, the present invention provides a parallel chain node configuration method suitable for a parallel chain node, where the method includes:
s52: obtaining a first parallel chain configuration transaction from a backbone; the first parallel chain configuration transaction is generated by the client and sent to the main chain nodes so that each main chain node can store and verify the first parallel chain configuration transaction, the first parallel chain configuration transaction comprises a plurality of first identifications, screened out by the client, of parallel chains which can be configured with the same parameters, and the configurable condition is that the values of the configured parameters are the same;
s541: judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the current parallel chain:
if yes, go to step S542: the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
The principle of parallel link node configuration in the above embodiment may refer to the method shown in fig. 4, and is not described herein again.
Fig. 6 is a flowchart of another parallel link node configuration method according to an embodiment of the present invention. As shown in fig. 6, in this embodiment, the present invention provides a parallel link node configuration method suitable for a main link node, where the method includes:
s62: receiving a first parallel chain configuration transaction; the first parallel chain configuration transaction is generated by a client, the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameter, and the values of the configured parameters are the same;
s64: and storing and certifying the first parallel chain configuration transaction for the parallel chain nodes of each parallel chain:
obtaining a first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, the local configuration is updated according to the values of the parameters configured in the first parallel chain configuration transaction.
The principle of parallel link node configuration in the above embodiment may refer to the method shown in fig. 4, and is not described herein again.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. As shown in fig. 7, as another aspect, the present application also provides an apparatus including one or more Central Processing Units (CPUs) 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the apparatus 700 are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A parallel chain node configuration method is applied to a client side and comprises the following steps:
screening a plurality of parallel chains which can be configured with the same parameters; wherein the configurable condition is that the values of the configured parameters are the same;
generating a first parallel chain configuration transaction comprising first identifications of the screened parallel chains, and sending the first parallel chain configuration transaction to a main chain node, so that each main chain node records the configured parameters and the configured values of the parameters in the first parallel chain configuration transaction on the main chain, and the parallel chain nodes of each parallel chain are used for:
obtaining the first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, updating the local configuration according to the value of the parameter configured in the first parallel chain configuration transaction.
2. A method for configuring parallel chain nodes, the method being applicable to parallel chain nodes, the method comprising:
obtaining a first parallel chain configuration transaction from a backbone; the first parallel chain configuration transaction is generated by a client and sent to a main chain node, the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened out by the client and can be configured with the same parameter, the configurable condition is that the values of the configured parameter are the same, and the values of the configured parameter and the configured parameter in the first parallel chain configuration transaction are recorded on the main chain by each main chain node;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the current parallel chain:
if so, updating the local configuration according to the value of the parameter configured in the first parallel chain configuration transaction.
3. The method of claim 2, wherein an initial height of the current parallel chain is recorded on the main chain and the current parallel chain, and the initial height is a block height of a main chain block to be synchronized when a node of the current parallel chain is initially added to the current parallel chain, and the method further comprises:
starting parallel chain service, and when the values of other parameters related to the current parallel chain except the second identifier and the initial height are all null, sending request information for acquiring configuration data of the current parallel chain to the corresponding main chain node, so that the corresponding main chain node can acquire the value of each parameter of the latest current parallel chain before the initial height from the main chain and return the value;
and updating the local configuration according to the returned values of the parameters.
4. A method of parallel link point configuration, the method being applicable to a main chain node, the method comprising:
receiving a first parallel chain configuration transaction; the first parallel chain configuration transaction is generated by a client and sent to a main chain node, the first parallel chain configuration transaction comprises a plurality of first identifications, screened out by the client, of parallel chains which can be configured with the same parameter, and the configurable condition is that the values of the configured parameters are the same;
recording the configured parameters and the configured parameter values in the first parallel chain configuration transaction onto a main chain for parallel chain nodes of each parallel chain:
obtaining the first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, updating the local configuration according to the value of the parameter configured in the first parallel chain configuration transaction.
5. The method of claim 4, wherein an initial height of the second parallel chain is recorded on the main chain and the second parallel chain, and the initial height is a block height of a main chain block to be synchronized when a parallel chain node of the second parallel chain is first added to the second parallel chain, and the method further comprises:
receiving request information for acquiring configuration data of the second parallel chain, which is sent by a second parallel chain node of the second parallel chain; the request information starts parallel chain service for the second parallel chain node, and is sent to the node when the values of other parameters related to the second parallel chain except the second identifier and the initial height are all null;
and obtaining and returning the latest values of the parameters of the second parallel chain before the initial height, so that the second parallel chain node updates local configuration according to the returned values of the parameters.
6. A parallel chain configuration transaction generation method is applicable to a client side and comprises the following steps:
screening a plurality of parallel chains which can be configured with the same parameters; wherein the configurable condition is that the values of the configured parameters are the same;
generating first parallel chain configuration transactions including the first identifications of the screened parallel chains, and sending the first parallel chain configuration transactions to main chain nodes so that the main chain nodes can store and verify the first parallel chain configuration transactions and the parallel chain nodes of the parallel chains:
obtaining the first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, updating the local configuration according to the value of the parameter configured in the first parallel chain configuration transaction.
7. A method for configuring parallel chain nodes, the method being applicable to parallel chain nodes, the method comprising:
obtaining a first parallel chain configuration transaction from a backbone; the first parallel chain configuration transaction is generated by a client and sent to a main chain node so that each main chain node can store and verify the first parallel chain configuration transaction, the first parallel chain configuration transaction comprises a plurality of first identifications, screened out by the client, of parallel chains which can be configured with the same parameter, and the configurable condition is that the values of the configured parameters are the same;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the current parallel chain:
if so, updating the local configuration according to the value of the parameter configured in the first parallel chain configuration transaction.
8. A method of parallel link point configuration, the method being applicable to a main chain node, the method comprising:
receiving a first parallel chain configuration transaction; the first parallel chain configuration transaction is generated by a client, the first parallel chain configuration transaction comprises a plurality of first identifications of parallel chains which are screened by the client and can be configured with the same parameter, and the values of the configured parameters are the same;
and storing and certifying the first parallel chain configuration transaction so as to provide parallel chain nodes of each parallel chain with the following functions:
obtaining the first parallel chain configuration transaction from a backbone;
judging whether each first identifier in the first parallel chain configuration transaction comprises a second identifier of the corresponding parallel chain:
if so, updating the local configuration according to the value of the parameter configured in the first parallel chain configuration transaction.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-8.
10. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-8.
CN202010910716.0A 2020-09-02 2020-09-02 Parallel chain node configuration method, equipment and storage medium Active CN112054928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010910716.0A CN112054928B (en) 2020-09-02 2020-09-02 Parallel chain node configuration method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010910716.0A CN112054928B (en) 2020-09-02 2020-09-02 Parallel chain node configuration method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112054928A true CN112054928A (en) 2020-12-08
CN112054928B CN112054928B (en) 2022-06-24

Family

ID=73606742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010910716.0A Active CN112054928B (en) 2020-09-02 2020-09-02 Parallel chain node configuration method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112054928B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959621A (en) * 2018-07-18 2018-12-07 百度在线网络技术(北京)有限公司 A kind of implementation method, device, equipment and the storage medium of block chain network
CN109472572A (en) * 2018-11-21 2019-03-15 北京蓝石环球区块链科技有限公司 Contract deployment and transaction based on the more subchains of block chain main chain adduction row
CN109587271A (en) * 2018-12-29 2019-04-05 杭州复杂美科技有限公司 Main chain parallel chain architecture system and block synchronous method, equipment and storage medium
CN110113409A (en) * 2019-04-30 2019-08-09 杭州复杂美科技有限公司 Parallel chain authorization node configuration method, equipment and storage medium
CN110941676A (en) * 2019-11-27 2020-03-31 腾讯科技(深圳)有限公司 Configuration method, device, equipment and medium
US20200233950A1 (en) * 2017-07-17 2020-07-23 Cryptowerk Corp. Method and System of Secure Configuration of at Least One Electronic Device
CN111459676A (en) * 2020-03-31 2020-07-28 腾讯科技(深圳)有限公司 Node resource management method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200233950A1 (en) * 2017-07-17 2020-07-23 Cryptowerk Corp. Method and System of Secure Configuration of at Least One Electronic Device
CN108959621A (en) * 2018-07-18 2018-12-07 百度在线网络技术(北京)有限公司 A kind of implementation method, device, equipment and the storage medium of block chain network
CN109472572A (en) * 2018-11-21 2019-03-15 北京蓝石环球区块链科技有限公司 Contract deployment and transaction based on the more subchains of block chain main chain adduction row
CN109587271A (en) * 2018-12-29 2019-04-05 杭州复杂美科技有限公司 Main chain parallel chain architecture system and block synchronous method, equipment and storage medium
CN110113409A (en) * 2019-04-30 2019-08-09 杭州复杂美科技有限公司 Parallel chain authorization node configuration method, equipment and storage medium
CN110941676A (en) * 2019-11-27 2020-03-31 腾讯科技(深圳)有限公司 Configuration method, device, equipment and medium
CN111459676A (en) * 2020-03-31 2020-07-28 腾讯科技(深圳)有限公司 Node resource management method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宫飞翔等: "基于区块链的需求响应系统设计", 《电力信息与通信技术》 *

Also Published As

Publication number Publication date
CN112054928B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN109271446B (en) Parallel chain data synchronization method, equipment and storage medium
CN109831514B (en) Parallel chain consensus method, data exception handling method, device and storage medium
CN106503132B (en) A kind of distributed transaction management method and system
CN109587271B (en) Main chain parallel chain architecture system, block synchronization method, equipment and storage medium
KR20140047580A (en) Method and system for synchronization mechanism on multi-server reservation system
CN112235423B (en) Cross-chain transaction processing method and device, electronic equipment and storage medium
CN110188103A (en) Data account checking method, device, equipment and storage medium
CN103780636A (en) Cached data processing method and cached data processing system
CN110445843B (en) Parallel chain block pushing method, device and storage medium
CN109388626A (en) Method and apparatus for being numbered to traffic assignments
CN109005208B (en) Method and device for pushing information
CN109885612A (en) The synchronization take-effective method and device of block chain intelligence contract
CN108667872B (en) Archiving method and device for scheduling server
CN112054928B (en) Parallel chain node configuration method, equipment and storage medium
CN112734574A (en) Transaction execution method, computer device, and storage medium
CN106685708A (en) Determining method, device and system of service relationship
CN111405037A (en) Block synchronization method, device and storage medium
CN115827646A (en) Index configuration method and device and electronic equipment
CN114205354B (en) Event management system, event management method, server, and storage medium
CN107277108B (en) Method, device and system for processing messages at nodes of block chain
CN111524011B (en) Parallel link consensus validation method, apparatus, and storage medium
CN112910835B (en) Block chain-based configuration management method, apparatus, system, device, and medium
CN114202425A (en) Method, device and storage medium for predicting multi-main-chain interlinkage of language machine
CN111432027B (en) Parallel chain block synchronization method, device and storage medium
CN116542668A (en) Block chain-based data processing method, equipment and 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