Node processing method and device based on block chain, equipment, medium and product
By obtaining and analyzing the block information in the blockchain network, and calculating the quantitative information of node contributions, the problem of difficult to quantify node contributions in the alliance chain is solved, accurate quantification and appropriate incentives for node contributions are achieved, and the health of the alliance chain is promoted. develop.
Patent Information
- Application Number
- CN202411413078.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-10-10
AI Technical Summary
In the alliance chain, it is difficult to quantify the contribution of nodes accurately, resulting in inappropriate incentives and affecting the healthy development of the alliance chain.
By obtaining the block information of the blockchain network, including block output information, block output voting information and indicator information, calculate the node's contribution quantitative information, and then determine the node's contribution information and weight information in the blockchain network, and realize the node's contribution information and weight information. Quantification of contributions.
The accuracy and objectivity of contribution to nodes are improved, so that nodes can receive appropriate incentives and promote the healthy development of alliance chains.
Smart Images

Figure CN119299069A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of blockchain technology and node technology, and in particular to a node processing method, device, equipment, medium, and product based on blockchain. Background Art
[0002] Consortium Blockchain is a type of blockchain between public and private chains, which is jointly managed and maintained by multiple organizations. In a consortium chain, nodes can be incentivized by their contributions to the consortium chain. In related technologies, the determination of node contributions in a consortium chain is usually based on the on-chain behaviors of nodes, such as the punctuality of node block generation, the quality of the blocks generated by the nodes, and the enthusiasm of the nodes to participate in voting. However, due to the large number of on-chain behavior dimensions of nodes and the complexity of the interactions between nodes, it is difficult to quantify the contribution of nodes and the inaccurate determination of the contribution of nodes, which leads to the inability to give nodes appropriate incentives, affecting the healthy development of the consortium chain. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present disclosure provide a node processing method, device, equipment, medium, and product based on blockchain.
[0004] According to one aspect of an embodiment of the present disclosure, a node processing method based on blockchain is provided, which is applied to a blockchain network, wherein the blockchain network includes multiple nodes, and the method includes: obtaining block information of a blockchain corresponding to the blockchain network, wherein the block information includes block generation information, block generation voting information, and indicator information of each block in the blockchain, wherein the indicator information of the block includes at least one of the number of transactions in the block, the sum of transaction fees, and the number of accounts; based on the block generation information, block generation voting information, and indicator information of each block, determining contribution quantification information corresponding to the multiple nodes, wherein the contribution quantification information is used to represent quantitative data of contributions of the multiple nodes to the blockchain network; based on the contribution quantification information, determining contribution information of each of the multiple nodes to the blockchain network, wherein the contribution information of the node is used to represent the degree of positivity of the node's on-chain behavior in the blockchain network; and based on the contribution information of each node, determining weight information of each node in processing blockchain transactions.
[0005] Another aspect of the embodiments of the present disclosure provides a node processing device based on blockchain, which is applied to a blockchain network, wherein the blockchain network includes multiple nodes, and the device includes: a block information acquisition module, which is used to obtain block information of the blockchain corresponding to the blockchain network, wherein the block information includes block generation information, block generation voting information and indicator information of each block in the blockchain, and the indicator information of the block includes at least one of the number of transactions in the block, the sum of transaction fees and the number of accounts; a quantification module, which is used to determine contribution quantification information corresponding to the multiple nodes based on the block generation information, block generation voting information and indicator information of each block, wherein the contribution quantification information is used to represent the quantitative data of the contribution of the multiple nodes to the blockchain network; a contribution determination module, which is used to determine the contribution information of each of the multiple nodes to the blockchain network based on the contribution quantification information, and the contribution information of the node is used to represent the degree of positivity of the node's on-chain behavior in the blockchain network; and a weight information determination module, which is used to determine the weight information of each node in processing blockchain transactions based on the contribution information of each node.
[0006] Another aspect of the embodiments of the present disclosure provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the above-mentioned blockchain-based node processing method is implemented.
[0007] Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned blockchain-based node processing method.
[0008] In another aspect of the embodiments of the present disclosure, a computer program product is provided, including computer program instructions, which, when executed by a processor, implement the above-mentioned blockchain-based node processing method.
[0009] The node processing method, device, equipment, medium, and product based on blockchain in the disclosed embodiment include: obtaining the block information of the blockchain corresponding to the blockchain network, the block information includes the block information, block voting information, and index information of each block in the blockchain, and the index information of the block includes at least one of the number of transactions in the block, the sum of transaction fees, and the number of accounts; based on the block information, block voting information, and index information of each block, determining the contribution quantification information corresponding to multiple nodes in the blockchain network; based on the contribution quantification information, determining the contribution information of each node in the multiple nodes to the blockchain network; based on the contribution information of each node, determining the weight information of each node in processing blockchain matters. In the disclosed embodiment, by converting the block information, block voting information, and index information of each block into contribution quantification information, and determining the contribution information of each node through the quantification information, the contribution information of each node in the blockchain network can be determined by combining the block voting information and block information of each node in the blockchain network, as well as the index information of the generated block, thereby realizing the quantification of the node contribution information, making the contribution information more accurate and objective.
[0010] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0012] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0013] Figure 1 It is a flowchart of a node processing method based on blockchain provided by an exemplary embodiment of the present disclosure.
[0014] Figure 2 It is a flowchart of step S110 provided by an exemplary embodiment of the present disclosure.
[0015] Figure 3 It is a flowchart of step S130 provided by an exemplary embodiment of the present disclosure.
[0016] Figure 4 It is a schematic diagram of a blockchain network provided by an application example of the present disclosure.
[0017] Figure 5 It is a schematic diagram of block information and node interaction matrix provided by an application example of the present disclosure.
[0018] Figure 6 It is a structural diagram of a blockchain-based node processing device provided by an exemplary embodiment of the present disclosure.
[0019] Figure 7 The figure is a schematic diagram of the structure of an application embodiment of the electronic device disclosed in the present invention. DETAILED DESCRIPTION
[0020] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0021] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0022] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0023] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0024] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0025] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0026] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0027] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0028] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0029] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0030] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0031] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0032] Figure 1 is a flowchart of a node processing method based on blockchain provided by an exemplary embodiment of the present disclosure. This embodiment can be applied on a blockchain network, such as Figure 1 As shown, the following steps are included:
[0033] Step S100, obtaining block information of the blockchain corresponding to the blockchain network.
[0034] The blockchain network may include multiple nodes, any of which may be a computing device in the blockchain network, such as a laptop, desktop computer, mobile phone, server, etc. In one embodiment, a node in the blockchain network may be a consensus node, which may be used to generate blocks (outgoing blocks) and perform consensus voting on blocks.
[0035] The block information includes: block information, block voting information and indicator information of each block in the blockchain. Among them, each block in the block information is a block that has passed consensus. The block information of each block can be used to indicate the information of generating the block and the process of putting the block on the chain; the voting information of each block is used to indicate the information of the block voted by consensus during the process of putting the block on the chain; the indicator information of each block is used to indicate the information included in the block. In one embodiment, the indicator information of each block includes at least one of the number of transactions in the block, the sum of transaction fees (Gas), and the number of accounts.
[0036] Step S110, based on the block generation information, block generation voting information and indicator information of each block, the contribution quantification information corresponding to the multiple nodes is determined.
[0037] The contribution quantification information is used to represent the quantitative data of the contribution of multiple nodes to the blockchain network. The quantitative data of the contribution of each node can be the value corresponding to the enthusiasm of the node's on-chain behavior in the blockchain network.
[0038] In one embodiment, the contribution quantification information may include the quantified data of each node. The quantified data of the contribution of the node can be determined by the indicator information of the blocks generated by the node, the number of generated blocks, and the on-chain behaviors such as voting for blocks. Exemplarily, the number of blocks generated by each node, the number of votes for voting for blocks, and the number of transactions in the generated blocks can be determined based on the block information, block voting information, and indicator information of each block, and then the sum of the number of blocks generated by the node, the number of votes for voting for blocks, and the number of transactions in the generated blocks is determined as the quantified data of the contribution of the node.
[0039] Step S120: Determine contribution information of each node among the multiple nodes to the blockchain network based on the contribution quantification information.
[0040] Among them, the contribution information of the node is used to indicate the degree of initiative of the node's on-chain behavior in the blockchain network. On-chain behavior may include, for example, at least one of the following: generating blocks (block generation), voting on block consensus, processing transactions, etc. The contribution information of the node is proportional to the degree of initiative of the node's on-chain behavior. Exemplarily, the contribution information of each node may include the contribution value of the node to the blockchain network; the higher the contribution value of the node, the higher the initiative of the node's on-chain behavior in the blockchain network. For example, the higher the contribution value of the node, it may indicate that the node generates more blocks, participates more in consensus voting on blocks, and / or generates higher indicator information in the blocks, etc.
[0041] Exemplarily, the quantified data of the contribution of each node in the contribution quantification information may be determined as the contribution information of the node.
[0042] Step S130, based on the contribution information of each node, determine the weight information of each node in processing blockchain transactions.
[0043] Among them, blockchain things can be used to represent related things corresponding to the blockchain network. Exemplarily, blockchain things can include the distribution of benefits generated by the blockchain, for example, creating a correspondence between preset contribution information and weight information, in which the contribution information is proportional to the benefit information, that is, the higher the benefit information, the greater the corresponding weight information. The weight information of each node can be determined based on the correspondence between the preset contribution information and the weight information, as well as the contribution information of each node. In this example, the block thing is used as an example of benefit distribution. The higher the weight information of the node, the higher the benefit that can be allocated to the node.
[0044] In the embodiments of the present disclosure, by converting the block generation information, block generation voting information and indicator information of each block into contribution quantification information, and determining the contribution information of each node through the quantification information, the contribution information of each node can be determined by comprehensively considering the block generation voting information and block generation information of each node in the blockchain network, as well as the indicator information of the generated block, thereby achieving the quantification of the node contribution information and making the contribution information more accurate and objective.
[0045] Figure 2 is a flow chart of step S110 provided by an exemplary embodiment of the present disclosure. In some optional implementations, such as Figure 2 As shown, step S110 in the embodiment of the present disclosure may include the following steps:
[0046] Step S111, determining the node interaction matrix according to the block generation information, block generation voting information and indicator information of each block.
[0047] The size of the node interaction matrix is N×N, where N is the number of nodes in the blockchain network and N is an integer greater than or equal to 0.
[0048] In one implementation, the value corresponding to each element in the node interaction matrix may be determined based on the block generation information, block generation voting information, and indicator information of each block.
[0049] Step S112, determining contribution quantification information based on the node interaction matrix.
[0050] Among them, the node interaction matrix can be determined as contribution quantification information.
[0051] In some optional implementations, in the disclosed embodiments, the voting information of each block includes the number of votes obtained by the block, and the block information of the block includes the information of the first node and the information of the second node. The first node is used to represent the node that generates the block, and the second node is used to represent the node that voted for the consensus of the block. In one implementation, each node can correspond to one or more second nodes.
[0052] Accordingly, in the embodiment of the present disclosure, step S111 may include: determining element information corresponding to each element in the node interaction matrix according to the information of the first node, the information of the second node, the indicator information and the number of votes corresponding to each block.
[0053] The element information corresponding to the element may include the value of the element in the node interaction matrix.
[0054] In one embodiment, the information of the first node includes the serial number of the first node, and the information of the second node includes the serial number of the second node.
[0055] The element information corresponding to each element in the node interaction matrix can be determined in the following manner: for each block, the element corresponding to the block in the node interaction matrix is determined based on the serial number of the first node and the serial number of the second node corresponding to the block; the element information corresponding to the element is determined based on the indicator information and / or the number of votes.
[0056] Each block may correspond to at least two elements in the node interaction matrix. Specifically, the elements corresponding to each block in the node interaction matrix include: in the node interaction matrix, the element corresponding to the sequence number of the second node as the row number and the sequence number of the first node as the column number, and the element corresponding to the sequence number of the first node as the row number and the sequence number of the second node as the column number.
[0057] For the element corresponding to the number of the second node as the row number and the number of the first node as the column number, the value of the element in the node interaction matrix can be added to the indicator information of the block to obtain the element information of the element, and the element information of the element is used to update the value of the element in the node interaction matrix; for the element corresponding to the number of the first node as the row number and the number of the second node as the column number, the value of the element is added to the quotient of the indicator information of the block divided by the number of votes to obtain the element information of the element, and the element information of the element is used to update the value of the element in the node interaction matrix;
[0058] Exemplarily, assume that the serial number of the first node corresponding to block i is n, and the serial number of the second node is m, that is, block i is generated by the first node, and the second node votes on the consensus of block i, where n, m and i are all integers greater than or equal to 0, and m and n are both less than or equal to N.
[0059] The elements corresponding to block i in the node interaction matrix include the elements in the mth row and nth column of the node interaction matrix, and the elements in the nth row and mth column. For the element in the mth row and nth column, the value of the element in the node interaction matrix plus the indicator information of block i (element information) is used as the value of the element in the node interaction matrix; for the element in the nth row and mth column, the value of the element in the node interaction matrix plus the indicator information of block i divided by the value of the number of votes (element information) is used as the value in the node interaction matrix.
[0060] In an optional implementation, in the embodiment of the present disclosure, step S120 may include: determining contribution information of each node according to the rank vector of the node interaction matrix.
[0061] The rank vector of the node interaction matrix can be solved and used as the contribution information of the node. Exemplarily, the rank vector of the node interaction matrix is a 1×N matrix, and the value of each element in the matrix is the contribution information of the node with the same sequence number as the element.
[0062] Figure 3 is a flow chart of step S130 provided by an exemplary embodiment of the present disclosure. In some optional implementations, such as Figure 3 As shown, step S130 in the embodiment of the present disclosure may include the following steps:
[0063] Step S131, sorting each node based on the contribution information of each node.
[0064] Among them, the nodes can be sorted in order from largest to smallest according to the contribution information.
[0065] Step S132, based on the ranking of each node, determine the weight information of each node.
[0066] The weight information of each node may be set in order of the node ranking from front to back, that is, the node with a higher ranking is assigned a larger weight information, and the sum of the weight information of each node may be set to 100%.
[0067] In an optional implementation, in this embodiment, the blockchain transaction includes at least one of the following: voting, profit distribution, block sorting, and reputation evaluation. The blockchain network can be a consortium chain network.
[0068] Among them, the weight information of each node in voting, revenue distribution, block sorting and reputation evaluation can be determined according to the contribution information of each node, that is, the greater the contribution information of the node, the higher the weight information in voting, revenue distribution, block sorting and reputation evaluation; the higher the weight information of the node in voting, revenue distribution, block sorting and reputation evaluation, the more votes the node obtains in voting, the higher the revenue allocated in revenue distribution, the higher the ranking in block sorting and the higher the reputation evaluated in reputation evaluation.
[0069] Figure 4 It is a schematic diagram of a blockchain network provided by an application example of the present disclosure. Figure 5 It is a schematic diagram of block information and node interaction matrix provided by an application example of the present disclosure.
[0070] In this application example, Figure 4 As shown, the blockchain network includes 4 nodes, namely n1, n2, n3 and n4, and the sequence numbers of the 4 nodes are 1, 2, 3 and 4 respectively. Figure 5 As shown, the blockchain corresponding to the blockchain network includes 8 blocks. From left to right, the 1st to 8th blocks are generated by nodes n1, n2, n3, n4, n1, n3, n4, and n1 respectively.
[0071] In this application example, the third block is taken as an example. The block generation node (first node) of the third block is n3, and the nodes that vote for it are n3, n1 and n4 (second nodes). That is, the block generation information of the third block includes: the serial number 3 of the block generation node n3 and the serial numbers 3, 1 and 4 of the voting nodes n3, n1 and n4 (second nodes).
[0072] A node interaction matrix of size 4×4 may be created, in which the initial value of each element is 0. The elements corresponding to the third block in the node interaction matrix include: the element in the third row and third column, the element in the first row and third column, the element in the fourth row and third column, the element in the third row and third column, the element in the third row and first column, and the element in the third row and fourth column. For each of the elements in the third row and third column, the element in the first row and third column, and the element in the fourth row and third column, the value of the element in the node interaction matrix plus the indicator information of the third block may be updated as the value of the element in the node interaction matrix; for the element in the third row and third column, the element in the first row and the element in the third row and fourth column, the value of the element in the node interaction matrix plus the quotient of the indicator information of the third block divided by the number of votes of the third block may be updated as the value of the element in the node interaction matrix. For each block, perform the operation of the third block, then solve the rank vector of the node interaction matrix, and determine the contribution information of each node through the rank vector. Among them, the element in the third row and the third column is calculated twice, and the final value (element information) of the element in the third row and the third column is the sum of the values calculated twice, that is, the node information of the element is the value of the element in the node interaction matrix plus the value obtained by the indicator information of the third block, and the sum of the values obtained by dividing the quotient of the indicator information of the third block by the number of votes of the third block.
[0073] Figure 6 is a schematic diagram of the structure of a node processing device based on blockchain provided by an exemplary embodiment of the present disclosure. Figure 6 As shown, the device of this embodiment can be applied to a blockchain network, wherein the blockchain network includes multiple nodes, and the device may include:
[0074] A block information acquisition module 200, used to acquire block information of the blockchain corresponding to the blockchain network, wherein the block information includes block generation information, block generation voting information and indicator information of each block in the blockchain, and the indicator information of the block includes at least one of the number of transactions in the block, the sum of transaction fees and the number of accounts;
[0075] A quantification module 210, configured to determine contribution quantification information corresponding to the plurality of nodes based on the block generation information, block generation voting information and indicator information of each block, wherein the contribution quantification information is used to represent quantitative data of contributions of the plurality of nodes to the blockchain network;
[0076] A contribution determination module 220, configured to determine, based on the contribution quantification information, the contribution information of each of the multiple nodes to the blockchain network, wherein the contribution information of the node is used to indicate the degree of activeness of the on-chain behavior of the node in the blockchain network;
[0077] The weight information determination module 230 is used to determine the weight information of each node in processing blockchain transactions based on the contribution information of each node.
[0078] In some possible implementations of the present disclosure, in an embodiment of the present disclosure, the quantization module 210 includes:
[0079] A first determination submodule is used to determine a node interaction matrix according to the block generation information, block generation voting information and indicator information of each block, wherein the size of the node interaction matrix is N×N, where N is the number of nodes in the blockchain network;
[0080] The second determination submodule is used to determine the contribution quantification information based on the node interaction matrix.
[0081] In some possible implementations of the present disclosure, in an embodiment of the present disclosure, the voting information of a block includes the number of votes obtained by the block, and the block generation information of the block includes information of a first node and information of a second node, wherein the first node is used to represent a node that generates the block, and the second node is used to represent a node that votes for the consensus of the block;
[0082] The first determination submodule is specifically used to determine the element information corresponding to each element in the node interaction matrix according to the information of the first node, the information of the second node, the indicator information and the number of votes corresponding to each block.
[0083] In some possible implementations of the present disclosure, in an embodiment of the present disclosure, the information of the first node includes a sequence number of the first node, and the information of the second node includes a sequence number of the second node;
[0084] The determining of the element information corresponding to each element in the node interaction matrix is further used to determine, for each block, the element corresponding to the block in the node interaction matrix based on the serial number of the first node and the serial number of the second node corresponding to the block; and determining the element information corresponding to the element according to the indicator information and / or the number of votes.
[0085] Among some possible implementations of the present disclosure, in an embodiment of the present disclosure, the contribution determination module 220 is specifically used to determine the contribution information of each node according to the rank vector of the node interaction matrix.
[0086] In some possible implementations of the present disclosure, in an embodiment of the present disclosure, the weight information determination module 230 includes:
[0087] A sorting submodule, used for sorting the nodes based on the contribution information of the nodes;
[0088] The third determination submodule is used to determine the weight information of each node based on the ranking of each node.
[0089] In some possible implementations of the present disclosure, in an embodiment of the present disclosure, the blockchain transaction includes at least one of the following: voting, profit distribution, block sorting and reputation evaluation.
[0090] Among some possible implementations of the present disclosure, in an embodiment of the present disclosure, the blockchain network is a consortium chain network.
[0091] The node processing device based on blockchain in the embodiment of the present disclosure corresponds to the embodiment of the node processing method based on blockchain in the present disclosure, and the relevant contents can be referenced to each other and will not be repeated here.
[0092] The beneficial technical effects corresponding to the exemplary embodiment of the blockchain-based node processing device of the disclosed embodiment can be found in the corresponding beneficial technical effects of the above-mentioned corresponding exemplary method part, which will not be repeated here.
[0093] In addition, an embodiment of the present disclosure further provides an electronic device, including:
[0094] Memory for storing computer programs;
[0095] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the blockchain-based node processing method described in any of the above embodiments of the present disclosure is implemented.
[0096] Figure 7 This is a schematic diagram of the structure of an application embodiment of the electronic device disclosed in the present invention. Figure 7 The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.
[0097] like Figure 7 As shown, the electronic device includes one or more processors and memory.
[0098] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0099] The memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may execute the program instructions to implement the node processing method based on blockchain and / or other desired functions of the various embodiments of the present disclosure described above.
[0100] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0101] In addition, the input device may also include, for example, a keyboard, a mouse, and the like.
[0102] The output device can output various information to the outside, including the determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0103] Of course, to simplify, Figure 7 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0104] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to perform the steps of the blockchain-based node processing method according to various embodiments of the present disclosure described in the above part of this specification.
[0105] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0106] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps of the blockchain-based node processing method according to various embodiments of the present disclosure described in the above part of this specification.
[0107] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0108] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0109] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0110] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0111] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0112] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0113] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0114] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0115] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A node processing method based on blockchain, characterized in that: Applied to a blockchain network, the blockchain network includes a plurality of nodes, and the method includes: Obtaining block information of the blockchain corresponding to the blockchain network, wherein the block information includes block generation information, block generation voting information, and indicator information of each block in the blockchain, and the indicator information of the block includes at least one of the number of transactions in the block, the sum of transaction fees, and the number of accounts; Based on the block information, block voting information and indicator information of each block, determining the contribution quantification information corresponding to the multiple nodes, wherein the contribution quantification information is used to represent the quantitative data of the contribution of the multiple nodes to the blockchain network; Determine, based on the contribution quantification information, contribution information of each of the multiple nodes to the blockchain network, where the contribution information of the node is used to indicate the degree of activeness of the node's on-chain behavior in the blockchain network; Based on the contribution information of each node, the weight information of each node in processing blockchain transactions is determined.
2. The method according to claim 1, characterized in that The determining, based on the block generation information, block generation voting information and indicator information of each block, the contribution quantification information corresponding to the plurality of nodes includes: Determine a node interaction matrix according to the block generation information, block generation voting information and indicator information of each block, wherein the size of the node interaction matrix is N×N, where N is the number of nodes in the blockchain network; Based on the node interaction matrix, the contribution quantification information is determined.
3. The method according to claim 2, characterized in that The voting information of a block includes the number of votes obtained by the block, and the block generation information of the block includes the information of a first node and the information of a second node, wherein the first node is used to represent the node that generates the block, and the second node is used to represent the node that votes for the consensus of the block; Determining the node interaction matrix according to the block generation information, block generation voting information and indicator information of each block includes: According to the information of the first node, the information of the second node, the indicator information and the number of votes corresponding to each block, the element information corresponding to each element in the node interaction matrix is determined.
4. The method according to claim 3, characterized in that The information of the first node includes a sequence number of the first node, and the information of the second node includes a sequence number of the second node; The determining of element information corresponding to each element in the node interaction matrix includes: For each of the blocks, determining an element corresponding to the block in the node interaction matrix based on a sequence number of a first node and a sequence number of a second node corresponding to the block; The element information corresponding to the element is determined according to the indicator information and / or the number of votes.
5. The method according to claim 2, characterized in that: The determining, based on the contribution quantification information, contribution information of each of the multiple nodes to the blockchain network includes: Contribution information of each node is determined according to the rank vector of the node interaction matrix.
6. The method according to claim 1, characterized in that Determining the weight information of each node in processing blockchain transactions based on the contribution information of each node includes: Sorting the nodes based on contribution information of the nodes; Based on the ranking of the nodes, weight information of the nodes is determined.
7. The method according to claim 6, characterized in that The blockchain transaction includes at least one of the following: voting, profit distribution, block sorting and reputation evaluation.
8. The method according to claim 1, characterized in that The blockchain network is a consortium chain network.
9. A node processing device based on blockchain, characterized in that: Applied to a blockchain network, the blockchain network includes a plurality of nodes, and the device includes: A block information acquisition module, used to acquire block information of the blockchain corresponding to the blockchain network, wherein the block information includes block information, block voting information and indicator information of each block in the blockchain, and the indicator information of the block includes at least one of the number of transactions in the block, the sum of transaction fees and the number of accounts; A quantification module, used to determine contribution quantification information corresponding to the multiple nodes based on the block information, block voting information and indicator information of each block, wherein the contribution quantification information is used to represent the quantitative data of the contribution of the multiple nodes to the blockchain network; A contribution determination module, used to determine the contribution information of each of the multiple nodes to the blockchain network based on the contribution quantification information, wherein the contribution information of the node is used to indicate the degree of activeness of the on-chain behavior of the node in the blockchain network; The weight information determination module is used to determine the weight information of each node in processing blockchain transactions based on the contribution information of each node.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the blockchain-based node processing method described in any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the blockchain-based node processing method described in any one of claims 1 to 8 is implemented.
12. A computer program product comprising computer program instructions, characterized in that When the computer program instructions are executed by a processor, the blockchain-based node processing method described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Block chain consensus node acquisition method and device, electronic equipment and storage medium
CN109727132A
Consensus mechanism based on contribution weight certification
CN111277627A
Contribution information determination method and device and electronic equipment
CN113312559A
Block chain intelligence data sharing excitation method and system, equipment and medium
CN113761070A
Trust management mechanism-oriented double-chain block chain and consensus method thereof
CN114629654A