CN113206748B - Management method of alliance chain network, alliance chain network and electronic device - Google Patents
Management method of alliance chain network, alliance chain network and electronic device Download PDFInfo
- Publication number
- CN113206748B CN113206748B CN202010078785.XA CN202010078785A CN113206748B CN 113206748 B CN113206748 B CN 113206748B CN 202010078785 A CN202010078785 A CN 202010078785A CN 113206748 B CN113206748 B CN 113206748B
- Authority
- CN
- China
- Prior art keywords
- voting
- request
- target
- chain network
- governance
- 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
Links
- 238000007726 management method Methods 0.000 title abstract description 12
- 230000008520 organization Effects 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000015654 memory Effects 0.000 claims description 19
- 230000000977 initiatory effect Effects 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 7
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 238000004590 computer program Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 239000003999 initiator Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/30—Decision processes by autonomous network management units using voting and bidding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/46—Secure multiparty computation, e.g. millionaire problem
- H04L2209/463—Electronic voting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a union chain network management method, a union chain network and electronic equipment, and relates to the technical field of block chains. The method comprises the following steps: acquiring voting information aiming at a target governance request in a preset time limit, wherein the target governance request is a governance request initiated in a alliance chain network, and the voting information comprises nodes participating in voting and voting options of the nodes; determining a voting result of the target governance request according to the voting weight of the node and the voting options of the node, wherein the voting weight of the node distributes the organization voting weight of the organization; and if the voting result meets the preset condition, treating the alliance link network according to the target treatment request. One embodiment in the present application has the following beneficial effects: the treatment operation of the alliance chain network is convenient and efficient, the treatment result of the alliance chain network is clear, the bifurcation can be avoided, and the treatment effect of the alliance chain network is improved.
Description
Technical Field
The application relates to the computer technology, in particular to the technical field of block chains, and specifically relates to a management method of an alliance chain network, the alliance chain network and an electronic device.
Background
In order to ensure the vitality and development of the blockchain, the blockchain network needs to be managed. The existing alliance chain network is generally managed in an under-chain management mode, a plurality of organizations of the alliance chain network discuss management decisions under a chain (namely under a line), and then the alliance chain network is managed in a unified mode. The under-chain treatment mode goes against the original purpose of block chain decentralization, is complex and tedious to operate, can cause bifurcation, and has poor treatment effect.
Disclosure of Invention
The application provides a union chain network management method, a union chain network and electronic equipment, and aims to solve the technical problems in the prior art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, the present application provides a method for governing an alliance chain network, including:
acquiring voting information aiming at a target governance request in a preset time limit, wherein the target governance request is a governance request initiated in a alliance chain network, and the voting information comprises nodes participating in voting and voting options of the nodes;
determining a voting result of the target governance request according to the voting weight of the node and the voting options of the node, wherein the voting weight of the node distributes the organization voting weight of the organization;
and if the voting result meets the preset condition, treating the alliance link network according to the target treatment request.
By adopting the technical means, the treatment operation of the alliance chain network is convenient and efficient, the treatment result of the alliance chain network is clear, the bifurcation can be avoided, and the treatment effect of the alliance chain network is improved.
Optionally, the organization voting weights of the organizations of the federation chain network are the same.
In the embodiment, because the voting weights of the organizations are the same, each organization can be ensured to have an equal decision-making weight in the alliance chain network, so that the voting result of the determined target governance request is more reasonable, and the decentralized degree of the block chain is further improved.
Optionally, the obtaining of the voting information for the target governance request within the preset time limit includes:
and acquiring voting information aiming at the target governance request within a voting period corresponding to the target governance request.
In the embodiment, the corresponding voting period is set for the target governance request, so that the governance of the alliance chain network can be realized in time, and the governance of the alliance chain network is more efficient.
Optionally, the obtaining of the voting information for the target governance request within the voting period corresponding to the target governance request includes:
judging whether the block head time stamp of the current block is larger than the sum of the block head time stamp of the initiated block of the target governance request and the voting period of the target governance request;
and if so, acquiring voting information aiming at the target governance request before the execution of the current block is finished.
In the embodiment, whether the voting period of the target governance request expires is judged through the block header timestamp, so that the alliance chain network can more conveniently acquire the voting information aiming at the target governance request within the voting period corresponding to the target governance request.
Optionally, the obtaining of the voting information for the target governance request within the voting period corresponding to the target governance request includes:
inserting the target abatement requests into a request queue, wherein the abatement requests in the request queue are arranged according to the voting expiration time sequence;
before the execution of each block is finished, extracting abatement requests voting for expiration from the request queue; the governing request when the voting expires is a governing request of which the block head timestamp of the current block is greater than the sum of the block head timestamp of the initiating block and the voting period;
and acquiring voting information of the governance request extracted from the request queue.
In the embodiment, whether the voting period of each governance request is expired or not does not need to be checked in each block, so that the resource and time required to be consumed in the governing process of the alliance chain network can be reduced, and the governing efficiency of the alliance chain network can be improved.
In a second aspect, the present application provides an alliance chain network comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring voting information aiming at a target management request in a preset time limit, the target management request is a management request initiated in a alliance chain network, and the voting information comprises nodes participating in voting and voting options of the nodes;
the determining module is used for determining the voting result of the target governance request according to the voting weight of the node and the voting options of the node, and the voting weight of the node distributes the organization voting weight of the organization to which the node belongs;
and the management module is used for managing the alliance link network according to the target management request if the voting result meets the preset condition.
Optionally, the organization voting weights of the organizations of the federation link network are the same.
Optionally, the obtaining module is specifically configured to:
and acquiring voting information aiming at the target governance request within a voting period corresponding to the target governance request.
Optionally, the obtaining module includes:
the judgment submodule is used for judging whether the block head timestamp of the current block is greater than the sum of the block head timestamp of the block initiated by the target governance request and the voting period of the target governance request;
and the first obtaining submodule is used for obtaining the voting information aiming at the target control request before the current block is finished if the current block is finished.
Optionally, the obtaining module includes:
the inserting submodule is used for inserting the target treatment requests into a request queue, and the treatment requests in the request queue are arranged according to the voting expiration time sequence;
the extraction submodule is used for extracting the governance requests voting to expire from the request queue before the execution of each block is finished; the governing request when the voting expires is a governing request of which the block head timestamp of the current block is greater than the sum of the block head timestamp of the initiating block and the voting period;
and the second obtaining submodule is used for obtaining the voting information of the governance request extracted from the request queue.
In a third aspect, the present application provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods of the first aspect.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of the first aspects.
In a fifth aspect, an embodiment of the present application further provides a computer program product comprising a computer program, which when executed by a processor, implements the method according to any one of the first aspect.
One embodiment in the present application has the following advantages or benefits: in the application, the administration request is initiated in the alliance chain network, and any node of the alliance chain network can vote for the administration request, so that the on-chain administration of the alliance chain network is realized. In the application, the voting weight of the organization is distributed to each node of the organization in the process of determining the voting result of the governance request, and the voting result of the governance request is determined according to the voting weight of each node. By adopting the technical means, the treatment operation of the alliance chain network is convenient and efficient, the treatment result of the alliance chain network is clear, the bifurcation can be avoided, and the treatment effect of the alliance chain network is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic flow chart of a method for administering a federation chain network according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of abatement request voting provided by embodiments of the present application;
FIG. 3 is a schematic structural diagram of a federation chain network provided by an embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing the administration method of the federation chain network according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The application provides a method for governing an alliance chain network.
As shown in fig. 1, the method for governing the alliance-link network includes the following steps:
step 101: and acquiring voting information aiming at the target treatment request within a preset time limit.
Where the target abatement request is an abatement request initiated at a federation chain network, the term abatement request may be understood as a proposal, proposed transaction, voting transaction or transaction, etc., and the categories of abatement requests may include a variety of, for example, abatement requests relating to parameter modification of the federation chain network, abatement requests relating to software upgrade of the federation chain network, abatement requests relating to organizational additions or deletions of the federation chain network, etc.
The federation chain network includes a plurality of organizations, each organization including at least one node (also referred to as a "consensus node"), the target abatement request may be initiated at the federation chain network by a node of an organization in the federation chain network, the node initiating the abatement request may also be referred to as a proposer, or the like.
After the target abatement request is initiated by the alliance-link network, any node of the alliance-link network may receive or acquire the target abatement request and may participate in voting of the target abatement request, and options of the voting may include multiple types, for example, agreement, abstention, disagreement, strong disagreement, and the like. Nodes of the federation chain network may not participate in the voting of the target abatement request.
In order to effectively control the number of abatement requests in the alliance chain network, the creator and deployer of the alliance chain can also give the initiation authority of the abatement requests to only alliances, and any organization (any node) of the alliance chain network can participate in voting.
The voting information includes nodes voting for the target governance request and voting options of each node, and specifically, the voting information includes both information of nodes participating in the voting of the target governance request and information of the voting options of the nodes.
The preset time limit may be a voting time limit set by an initiator of the target governance request when the target governance request is initiated, may also be a voting time limit set in advance by a creator and a deployer of the federation chain, and may also be a voting time limit determined according to a category of the target governance request, which is not limited in the present application.
In this step, after the target governance request is initiated in the alliance-link network, the alliance-link network may obtain voting information for each node of the alliance-link network in a preset time limit with respect to the target governance request. Because the treatment request is initiated on the alliance chain network, and each node of the alliance chain network votes for the treatment request on the alliance chain network, the treatment of the alliance chain network is not only open and clear, but also is more convenient and efficient, and meets the original intention of decentralization of a block chain.
Step 102: and determining the voting result of the target governance request according to the voting weight of the node and the voting options of the node, wherein the voting weight of the node distributes the organization voting weight of the organization.
Since the federation chain network includes multiple organizations, to ensure that each organization has the appropriate decision-making rights in the federation chain network, each organization may enjoy a corresponding organization voting weight. If there are multiple nodes in each organization, the nodes can distribute the voting weight of the organization to which the nodes belong, so as to ensure that each node has proper decision-making weight in the alliance chain network.
In this step, the alliance chain network may determine the voting result of the target governance request according to the voting weight of the node and the voting options of the node. The voting results of the abatement request may be of various kinds, e.g., agree, disagree, strongly disagree, and so on. For example, on the premise that the voting weights of all the participating votes reach a certain threshold, if the strongly disagreeable voting weights reach a certain threshold, the voting result is strongly disagreeable; if the agreed voting weight reaches a certain threshold value, the voting result is agreed; the rest are disagreeable.
Because the voting weight of each node of each organization in the alliance chain network is considered, the voting result of the target governance request determined by the voting weight is more reasonable, and therefore the governance result of the alliance chain network performed according to the voting result is more reasonable.
Step 103: and if the voting result meets the preset condition, treating the alliance link network according to the target treatment request.
The preset condition may be a condition set by an initiator of the target abatement request when the target abatement request is initiated, may also be a condition preset by a creator and deployer of the federation chain, and may also be a condition determined according to a category of the target abatement request, which is not limited in this application.
For example, if the target abatement request is an abatement request for parameter modification of the alliance chain network, and the voting result of the target abatement request is agreement, the alliance chain network is abated according to the target abatement request.
In the application, the administration request is initiated in the alliance chain network, and any node of the alliance chain network can vote for the administration request, so that the on-chain administration of the alliance chain network is realized. In the application, the voting weight of the organization is distributed to each node of the organization in the process of determining the voting result of the governance request, and the voting result of the governance request is determined according to the voting weight of each node. By adopting the technical means, the treatment operation of the alliance chain network is convenient and efficient, the treatment result of the alliance chain network is clear, the bifurcation can be avoided, and the treatment effect of the alliance chain network is improved.
Optionally, the voting weights of the organizations of the federation chain network are the same, that is, each organization of the federation chain network can enjoy a voting weight of 1/organization number.
In the embodiment, because the voting weight of the organizations is the same, each organization can be ensured to have equal decision-making weight in the alliance chain network, so that the voting result of the determined target governance request is more reasonable, and the decentralized degree of the block chain is further improved.
Further, the voting weights of the nodes in the same organization of the federation chain network are the same, i.e., the voting weight of each node in the same organization can share 1/node number of the organization voting weight.
In the embodiment, because the voting weights of all nodes in the same organization are the same, each node can be ensured to have equal decision-making weights in the organization to which the node belongs, the voting result of the determined target governance request is more reasonable, and the decentralized degree of the block chain is further improved.
Optionally, the obtaining voting information for the target governance request within a preset time limit includes:
and acquiring voting information aiming at the target governance request within a voting period corresponding to the target governance request.
In this embodiment, a corresponding voting period may be set for the target control request, and each node of the federation chain network may vote for the target control request within the voting period, and if the voting period is exceeded, the node of the federation chain network may be considered as an invalid vote even if it votes for the target control request.
Specifically, the voting period corresponding to the target governance request may be in units of time, and the voting period corresponding to the target governance request may be determined according to the category of the target governance request.
In the embodiment, the corresponding voting period is set for the target governance request, so that the governance of the alliance chain network can be realized more timely, and the governance of the alliance chain network is more efficient.
Optionally, the obtaining of the voting information for the target governance request within the voting period corresponding to the target governance request includes:
judging whether the block head time stamp of the current block is larger than the sum of the block head time stamp of the initiated block of the target governance request and the voting period of the target governance request;
and if so, acquiring voting information aiming at the target governance request before the execution of the current block is finished.
In this embodiment, the block header timestamp of each block is considered to be constant, and therefore, whether the voting period of the target abatement request has expired can be determined based on the block header timestamp. Specifically, if the block header timestamp of the current block is greater than the sum of the block header timestamp of the initiating block of the target abatement request and the voting period of the target abatement request, it indicates that the voting period of the target abatement request expires when the current block is executed, and the alliance link network may end the voting of the target abatement request before the current block is executed.
For example, as shown in fig. 2, assuming that the originating block of the target abatement request is block height 1, the target abatement request is packed into block height 1, the voting period of the target abatement request is t0, the block header timestamp of block height 1 is t1, and the block header timestamp of block height 4 is t2, if t2> t1+ t0, it indicates that the voting period of the target abatement request expires at block height 4. The alliance-link network may obtain voting information for the target abatement request before block height 4 execution ends. If the voting result of the target governance request is agreement, the alliance chain network can govern the alliance chain network according to the target governance request, so that the state of the whole alliance chain network is changed after the block height 4 is finished and before the block height 5 is started.
In the embodiment, whether the voting period of the target governance request expires is judged through the block header timestamp, so that the alliance chain network can more conveniently acquire the voting information aiming at the target governance request within the voting period corresponding to the target governance request.
Optionally, the obtaining of the voting information for the target governance request within the voting period corresponding to the target governance request includes:
inserting the target abatement requests into a request queue, wherein the abatement requests in the request queue are arranged according to the voting expiration time sequence;
before the execution of each block is finished, extracting the governance request with the expired vote from the request queue; the governing request when the voting expires is a governing request of which the block head timestamp of the current block is greater than the sum of the block head timestamp of the initiating block and the voting period;
and acquiring voting information of the governance request extracted from the request queue.
In this embodiment, the request queue may store the voting expiry time and the identity of each abatement request (e.g. abatement request ID) and sort in the voting expiry time order, and when a new abatement request is initiated in the federation chain network, this new abatement request will be inserted into the appropriate location of the request queue by the voting expiry time.
In the embodiment, the target governance request is inserted into the request queue, so that the governing request with the voting expiration can be extracted from the request queue by the alliance chain network before the execution of each block is finished, the voting period of each governing request does not need to be checked in each block, and particularly under the condition that the number of governing requests is large, the resource and time consumed in the governing process of the alliance chain network can be reduced, and the governing efficiency of the alliance chain network can be improved.
It should be noted that, in the application, various optional embodiments in the governance method of the alliance chain network may be implemented in combination with each other, or may be implemented separately, and the application is not limited to this.
The above-described embodiments of the present application have the following advantages or beneficial effects: in the application, the administration request is initiated in the alliance chain network, and any node of the alliance chain network can vote for the administration request, so that the on-chain administration of the alliance chain network is realized. In the application, the voting weight of the organization is distributed to each node of the organization in the process of determining the voting result of the governance request, and the voting result of the governance request is determined according to the voting weight of each node. By adopting the technical means, the treatment operation of the alliance chain network is convenient and efficient, the treatment result of the alliance chain network is clear, the bifurcation can be avoided, and the treatment effect of the alliance chain network is improved.
The present application also provides a federation chain network, as shown in fig. 3, a federation chain network 300 includes:
an obtaining module 301, configured to obtain voting information for a target governance request within a preset time limit, where the target governance request is a governance request initiated in a alliance-link network, and the voting information includes a node participating in voting and a voting option of the node;
a determining module 302, configured to determine a voting result of the target governance request according to the voting weight of the node and the voting options of the node, where the voting weight of the node apportions an organization voting weight of an organization to which the node belongs;
and a governance module 303, configured to, if the voting result meets a preset condition, govern the alliance link network according to the target governance request.
Optionally, the organization voting weights of the organizations of the federation chain network are the same.
Optionally, the obtaining module 301 is specifically configured to:
and acquiring voting information aiming at the target governance request within a voting period corresponding to the target governance request.
Optionally, the obtaining module 301 includes:
the judgment submodule is used for judging whether the block head timestamp of the current block is greater than the sum of the block head timestamp of the block initiated by the target governance request and the voting period of the target governance request;
and the first obtaining submodule is used for obtaining the voting information aiming at the target control request before the current block is finished if the current block is finished.
Optionally, the obtaining module 301 includes:
the inserting submodule is used for inserting the target treatment requests into a request queue, and the treatment requests in the request queue are arranged according to the voting expiration time sequence;
the extraction submodule is used for extracting the governance requests voting to expire from the request queue before the execution of each block is finished; the governing request when the voting expires is a governing request of which the block head timestamp of the current block is greater than the sum of the block head timestamp of the initiating block and the voting period;
and the second obtaining submodule is used for obtaining the voting information of the governance request extracted from the request queue.
The alliance chain network 300 provided by the present application can implement each process implemented by the alliance chain network in the above-mentioned administration method embodiment of alliance chain network, and can achieve the same beneficial effect, and for avoiding repetition, it is not described here again.
There is also provided, in accordance with an embodiment of the present application, an electronic device, a readable storage medium, and a computer program product.
The computer program product of the embodiment of the present application includes a computer program, and the computer program, when executed by a processor, implements the administering method of the alliance-link network provided by the above embodiment of the present application.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application, illustrating a method for administering a federation chain network. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 501 is taken as an example.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the abatement method of the alliance-link network in the embodiment of the present application (e.g., the acquisition module 301, the determination module 302, and the abatement module 303 shown in fig. 3). The processor 501 executes various functional applications and data processing of the electronic device by running non-transitory software programs, instructions and modules stored in the memory 502, that is, implements the administration method of the alliance link network in the above method embodiment.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the electronic device according to the governance method of the alliance-link network, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 502 may optionally include memory located remotely from the processor 501, which may be connected to the alliance-link network abatement method electronics over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the governance method of the alliance-link network may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the administering method of the alliance-link network, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the treatment operation of the alliance chain network is convenient and efficient, the treatment result of the alliance chain network is clear, the bifurcation can be avoided, and the treatment effect of the alliance chain network is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A method for treating an alliance chain network is characterized by comprising the following steps:
after a target abatement request is initiated in a alliance-chain network, sending the target abatement request to each node in the alliance-chain network;
acquiring voting information aiming at a target governance request within a preset time limit, wherein the target governance request is a governance request initiated in a alliance chain network, the voting information comprises nodes participating in voting and voting options of the nodes, and the nodes participating in voting are any nodes in the alliance chain network;
determining a voting result of the target governance request according to the voting weight of the node and the voting options of the node, wherein the voting weight of the node distributes the organization voting weight of the organization;
if the voting result meets the preset condition, the alliance link network is administered according to the target administration request;
the organization voting weights of the organizations of the federation chain network are the same.
2. The method of claim 1, wherein obtaining voting information for a target abatement request within a predetermined time frame comprises:
and acquiring voting information aiming at the target governance request within a voting period corresponding to the target governance request.
3. The method of claim 2, wherein the obtaining of voting information for the target abatement request within a voting period corresponding to the target abatement request comprises:
judging whether the block head time stamp of the current block is larger than the sum of the block head time stamp of the initiated block of the target governance request and the voting period of the target governance request;
and if so, acquiring voting information aiming at the target governance request before the execution of the current block is finished.
4. The method of claim 2, wherein the obtaining of voting information for the target abatement request within a voting period corresponding to the target abatement request comprises:
inserting the target abatement requests into a request queue, wherein the abatement requests in the request queue are arranged according to the voting expiration time sequence;
before the execution of each block is finished, extracting the governance request with the expired vote from the request queue; the governing request when the voting expires is a governing request of which the block head timestamp of the current block is greater than the sum of the block head timestamp of the initiating block and the voting period;
and acquiring voting information of the governance request extracted from the request queue.
5. An alliance chain network comprising:
after a target abatement request is initiated in a alliance-chain network, sending the target abatement request to each node in the alliance-chain network;
the system comprises an acquisition module, a voting module and a voting module, wherein the acquisition module is used for acquiring voting information aiming at a target governance request in a preset time limit, the target governance request is a governance request initiated in a alliance chain network, the voting information comprises nodes participating in voting and voting options of the nodes, and the nodes participating in the voting are any nodes in the alliance chain network;
the determining module is used for determining the voting result of the target governance request according to the voting weight of the node and the voting options of the node, and the voting weight of the node distributes the organization voting weight of the organization to which the node belongs;
the management module is used for managing the alliance link network according to the target management request if the voting result meets a preset condition;
the organization voting weights of the organizations of the federation chain network are the same.
6. The alliance-link network of claim 5 wherein the obtaining module is specifically configured to:
and acquiring voting information aiming at the target governance request within a voting period corresponding to the target governance request.
7. The federation chain network of claim 6, wherein the obtaining module comprises:
the judgment submodule is used for judging whether the block head timestamp of the current block is greater than the sum of the block head timestamp of the block initiated by the target governance request and the voting period of the target governance request;
and the first obtaining submodule is used for obtaining the voting information aiming at the target control request before the current block is finished if the current block is finished.
8. The federation chain network of claim 6, wherein the obtaining module comprises:
the inserting submodule is used for inserting the target treatment requests into a request queue, and the treatment requests in the request queue are arranged according to the voting expiration time sequence;
the extraction submodule is used for extracting the governance requests voting to expire from the request queue before the execution of each block is finished; the governing request when the voting expires is a governing request of which the block head timestamp of the current block is greater than the sum of the block head timestamp of the initiating block and the voting period;
and the second obtaining submodule is used for obtaining the voting information of the governance request extracted from the request queue.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010078785.XA CN113206748B (en) | 2020-02-03 | 2020-02-03 | Management method of alliance chain network, alliance chain network and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010078785.XA CN113206748B (en) | 2020-02-03 | 2020-02-03 | Management method of alliance chain network, alliance chain network and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113206748A CN113206748A (en) | 2021-08-03 |
CN113206748B true CN113206748B (en) | 2022-10-18 |
Family
ID=77024879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010078785.XA Active CN113206748B (en) | 2020-02-03 | 2020-02-03 | Management method of alliance chain network, alliance chain network and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113206748B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113300855B (en) * | 2021-05-25 | 2022-05-03 | 浙江大学 | Variable strategy-based alliance link voting management method and system |
CN115996130B (en) * | 2023-03-23 | 2023-06-30 | 安徽中科晶格技术有限公司 | DAO (digital access) treatment method, device and equipment based on preset contract and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109522456A (en) * | 2018-11-14 | 2019-03-26 | 全链通有限公司 | The node availability detection generated based on block |
CN109543075A (en) * | 2018-11-14 | 2019-03-29 | 全链通有限公司 | Block generation method and system |
CN110110555A (en) * | 2019-04-24 | 2019-08-09 | 深圳前海微众银行股份有限公司 | Voting method and device in a kind of block chain |
CN110602217A (en) * | 2019-09-17 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Block chain-based alliance management method, device, equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11323262B2 (en) * | 2018-03-13 | 2022-05-03 | Paul Zawierka | Method and system for verifying a voter through the use of blockchain validation |
AU2018348329B2 (en) * | 2018-11-30 | 2020-11-05 | Advanced New Technologies Co., Ltd. | Blockchain smart contract updates using decentralized decision |
-
2020
- 2020-02-03 CN CN202010078785.XA patent/CN113206748B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109522456A (en) * | 2018-11-14 | 2019-03-26 | 全链通有限公司 | The node availability detection generated based on block |
CN109543075A (en) * | 2018-11-14 | 2019-03-29 | 全链通有限公司 | Block generation method and system |
CN110110555A (en) * | 2019-04-24 | 2019-08-09 | 深圳前海微众银行股份有限公司 | Voting method and device in a kind of block chain |
CN110602217A (en) * | 2019-09-17 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Block chain-based alliance management method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113206748A (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7238006B2 (en) | Blockchain-based data processing method, apparatus, device, storage medium, and program | |
EP4160440A1 (en) | Federated computing processing method and apparatus, electronic device, and storage medium | |
CN111277647B (en) | Block chain network member management method, device, equipment and medium | |
CN113206748B (en) | Management method of alliance chain network, alliance chain network and electronic device | |
CN111913808B (en) | Method, device, equipment and storage medium for task allocation | |
CN110889124B (en) | Information sharing method and device, electronic equipment and storage medium | |
CN110930011B (en) | Industrial control system and method, electronic equipment and storage medium | |
CN110727557A (en) | Log collector control method, platform, electronic device and storage medium | |
CN111090691B (en) | Data processing method and device, electronic equipment and storage medium | |
CN110795763B (en) | Electronic certificate processing method, query method, device, equipment, platform and medium | |
CN102946410A (en) | Method and device for network synchronization | |
CN108830177A (en) | Farming operations behavior checking method and device | |
CN112583867A (en) | Sharing method and device of intelligent household electrical appliance, electronic equipment and medium | |
CN113961318A (en) | Distributed scheduling method, device, equipment and storage medium | |
CN113254169B (en) | Operation method, device, equipment and storage medium of block chain system | |
CN112069137B (en) | Method, device, electronic equipment and computer readable storage medium for generating information | |
CN111767149A (en) | Scheduling method, device, equipment and storage equipment | |
CN111178846A (en) | Workflow file generation method, device, equipment and storage medium | |
CN103701799A (en) | Parameter acquiring method, server and terminal | |
CN110765210B (en) | Authentication method, device, equipment and medium based on block chain | |
CN109981521B (en) | Message association method, message association device and message association system | |
CN105187244A (en) | Access management system of digital communication equipment supporting multiple management modes | |
CN112990929A (en) | Block chain community management method, device, equipment and storage medium | |
CN112507100A (en) | Method and device for updating question-answering system | |
CN112084203A (en) | Method, apparatus, device and storage medium for outputting information |
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 |