Blockchain-based node processing method, apparatus, device, medium, product

By acquiring block information from the consortium blockchain, quantifying node contribution and weight information, the problem of difficulty in quantifying node contribution is solved, an accurate incentive mechanism is achieved, and the healthy development of the consortium blockchain is promoted.

CN119299069BActive Publication Date: 2025-12-12CHINA ACADEMY OF INFORMATION & COMM +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411413078.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-12-12
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

In consortium blockchains, node contributions are difficult to quantify, leading to inaccurate incentives and hindering the healthy development of the consortium blockchain.

Method used

By acquiring block information from the blockchain network, including block production information, block voting information, and indicator information, the contribution quantification information of nodes is determined, and then the contribution information and weight information of nodes are calculated to achieve accurate quantification of node contributions.

Benefits of technology

This achieves accurate and objective quantification of node contributions, ensuring fairness in incentives and the healthy development of the consortium blockchain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299069B_ABST
    Figure CN119299069B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a blockchain-based node processing method and device, equipment, medium and product. Block information of a block chain corresponding to a block chain network is obtained, the block information including block information, block voting information and index information of each block in the block chain; based on the block information, block voting information and index information of each block, contribution quantification information corresponding to a plurality of nodes in the block chain network is determined; based on the contribution quantification information, contribution information of each node in the plurality of nodes to the block chain network is determined; and based on the contribution information of each node, weight information of each node in processing block chain matters is determined. Thus, the contribution information of each node can be determined by comprehensively considering the block voting information and block information of each node in the block chain network, as well as the index information of the generated block, etc. dimensions, which realizes the quantification of the node contribution information and makes the contribution information more accurate and objective.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of blockchain, the technical field of node, and in particular to a node processing method and device based on blockchain, equipment, medium and product. BACKGROUND

[0002] Consortium Blockchain is a type of blockchain between public chain and private chain, which is managed and maintained by multiple organizations. In the consortium chain, nodes can be incentivized by their contributions to the consortium chain. In the related art, the determination of the contribution of the nodes in the consortium chain is usually based on the on-chain behaviors of the nodes, such as block generation timeliness, block quality and voting enthusiasm. However, due to the large number of dimensions of the on-chain behaviors of the nodes and the complex interaction between the nodes, it is difficult to quantify the contribution of the nodes and determine the contribution of the nodes accurately, which leads to inappropriate incentives for the nodes and affects the healthy development of the consortium chain. SUMMARY

[0003] To solve the above technical problems, the embodiments of the present disclosure provide a node processing method and device based on blockchain, equipment, medium and product.

[0004] In one aspect of the embodiments of the present disclosure, a node processing method based on blockchain is provided, applied to a blockchain network, the blockchain network comprising a plurality of nodes, the method comprising: obtaining block information of a blockchain corresponding to the blockchain network, the block information comprising block generation information, block generation voting information and index information of each block in the blockchain, the index information of the block comprising at least one of the number of transactions, the sum of transaction fees and the number of accounts in the block; determining contribution quantification information corresponding to the plurality of nodes based on the block generation information, the block generation voting information and the index information of the each block, the contribution quantification information being used to represent quantification data of the contribution of the plurality of nodes to the blockchain network; determining contribution information of each node in the plurality of nodes to the blockchain network based on the contribution quantification information, the contribution information of the node being used to represent the degree of enthusiasm of the on-chain behavior of the node in the blockchain network; determining weight information of the each node in processing blockchain matters based on the contribution information of the each node.

[0005] In another aspect of the embodiments of the present disclosure, a node processing device based on a blockchain is provided, applied to a blockchain network including a plurality of nodes, and the device includes: a block information acquisition module configured to acquire block information of a blockchain corresponding to the blockchain network, the block information including block information, block voting information and index information of each block in the blockchain, the index information of a block including at least one of a number of transactions, a sum of transaction fees and a number of accounts in the block; a quantification module configured to determine contribution quantification information corresponding to the plurality of nodes based on the block information, the block voting information and the index information of the each block, the contribution quantification information being used to represent quantification data of contributions of the plurality of nodes to the blockchain network; a contribution determination module configured to determine contribution information of each node in the plurality of nodes to the blockchain network based on the contribution quantification information, the contribution information of a node being used to represent an active degree of on-chain behavior of the node in the blockchain network; and a weight information determination module configured to determine weight information of the each node in processing blockchain matters based on the contribution information of the each node.

[0006] In yet another aspect of the embodiments of the present disclosure, an electronic device is provided, including: a memory configured to store a computer program; and a processor configured to execute the computer program stored in the memory, and when the computer program is executed, the node processing method based on a blockchain is implemented.

[0007] In still another aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, having a computer program stored thereon, and when the computer program is executed by a processor, the node processing method based on a blockchain is implemented.

[0008] In still another aspect of the embodiments of the present disclosure, a computer program product is provided, including computer program instructions, and when the computer program instructions are executed by a processor, the node processing method based on a blockchain is implemented.

[0009] The method, device, equipment, medium and product for processing a node based on a blockchain in the embodiments of the present disclosure include: obtaining block information of a blockchain corresponding to a blockchain network, the block information including block information, block voting information and index information of each block in the blockchain, the index information of the block including at least one of a number of transactions, a sum of transaction fees and a number of accounts in the block; determining contribution quantification information corresponding to a plurality of nodes in the blockchain network based on the block information, the block voting information and the index information of each block; determining contribution information of each node in the blockchain network based on the contribution quantification information; and determining weight information of each node in processing a blockchain matter based on the contribution information of each node. In the embodiments of the present disclosure, the block information, the block voting information and the index information of each block are converted into the contribution quantification information, and the contribution information of each node is determined based on the quantification information, so that the contribution information of each node can be determined based on the block voting information and the block information of each node in the blockchain network and the index information of the generated block, thereby realizing quantification of the contribution information of the node and making the contribution information more accurate and objective.

[0010] The technical solutions of the present disclosure are described in further detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0011] The accompanying drawings, which form 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 can be more clearly understood and appreciated from the following detailed description, taken in conjunction with the accompanying drawings, in which:

[0013] Figure 1 FIG. 1 is a flowchart of a method for processing a node based on a blockchain according to an example embodiment of the present disclosure.

[0014] Figure 2 FIG. 2 is a flowchart of step S110 according to an example embodiment of the present disclosure.

[0015] Figure 3 FIG. 3 is a flowchart of step S130 according to an example embodiment of the present disclosure.

[0016] Figure 4 FIG. 4 is a schematic diagram of a blockchain network according to an example application of the present disclosure.

[0017] Figure 5 FIG. 5 is a schematic diagram of block information and a node interaction matrix according to an example application of the present disclosure.

[0018] Figure 6 FIG. 6 is a structural schematic diagram of a node processing device based on a blockchain according to an example embodiment of the present disclosure.

[0019] Figure 7 Structure diagram of an application embodiment of an electronic device of the present disclosure. DETAILED DESCRIPTION

[0020] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. Note that the relative arrangement, numerical expressions, and numerical values of components and steps set forth in these embodiments are not limiting to the scope of the present disclosure unless specifically stated otherwise.

[0021] Those skilled in the art can understand that the terms "first", "second", and the like in the embodiments of the present disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they represent a necessary logical sequence between them.

[0022] It should also be understood that in the embodiments of the present disclosure, "multiple" can refer to two or more, and "at least one" can refer to one, two, or more.

[0023] It should also be understood that for any component, data, or structure mentioned in the embodiments of the present disclosure, unless specifically limited or given the opposite implication by the context, it can be understood as one or more in general.

[0024] In addition, the term "and / or" in the present disclosure is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent the existence of A alone, the existence of A and B together, and the existence of B alone. In addition, the character " / " in the present disclosure generally represents an "or" relationship between the front and rear associated objects.

[0025] It should also be understood that the description of various embodiments of the present disclosure focuses on the differences between the various embodiments, and the same or similar parts can be referred to each other, and for the sake of brevity, will not be repeated one by one.

[0026] At the same time, it should be understood that in order to facilitate description, the size of each part shown in the drawings is not drawn in accordance with the actual proportional relationship.

[0027] The following description of at least one exemplary embodiment is merely illustrative in nature and does not in any way limit the disclosure and its application or uses.

[0028] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail, but where appropriate, the described techniques, methods, and devices should be considered as part of the specification.

[0029] It should be noted that similar reference numbers and letters represent similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0030] Embodiments of the present disclosure can be applied to terminal devices, computer systems, servers, and the like electronic devices, which can operate with many other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with terminal devices, computer systems, servers, and the like electronic devices include, but are not limited to, personal computers, server computers, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputers, mainframe computers, and distributed cloud computing technology environments that include any of the above systems, and the like.

[0031] Terminal devices, computer systems, servers, and the like electronic devices can be described in the general context of computer system-executable instructions, such as program modules, being executed by the computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, and the like, which perform particular tasks or implement particular abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules can be located in local or remote computer system storage media including storage devices.

[0032] Figure 1 is a flowchart of a node processing method based on a blockchain provided by an example embodiment of the present disclosure. The present embodiment can be applied to a blockchain network, as shown in Figure 1 The method includes the following steps:

[0033] In step S100, block information of a blockchain corresponding to the blockchain network is obtained.

[0034] The blockchain network can include a plurality of nodes (Node), any node can be a computing device in the blockchain network, etc. The computing device can include, for example, a notebook computer, a desktop computer, a mobile phone, a server, etc. In an embodiment, the node in the blockchain network can be a consensus node, which can be used to generate blocks (block generation) and perform consensus voting on blocks, etc.

[0035] The block information includes block generation information, block generation voting information, and index information of each block in the block chain. Each block in the block information is a block that passes consensus. The block generation information of each block can be used to represent information in the process of generating the block and chaining the block. The voting information of each block is used to represent information of the block being voted by consensus in the chaining process. The index information of each block is used to represent information included in the block. In an embodiment, the index information of each block includes at least one of the number of transactions, the sum of transaction fees (Gas), and the number of accounts in the block.

[0036] In step S110, based on the block generation information, the block generation voting information, and the index information of each block, the contribution quantification information corresponding to the plurality of nodes is determined.

[0037] The contribution quantification information is used to represent quantified data of the plurality of nodes contributing to the block chain network. The quantified data of the contribution of each node can be a value corresponding to the positivity of the on-chain behavior of the node in the block chain network.

[0038] In an embodiment, the contribution quantification information can include the quantified data of each node. The quantified data of the contribution of the node can be determined by the index information of the block generated by the node, the number of generated blocks, and the voting on the block, etc. For example, based on the block generation information, the block generation voting information, and the index information of each block, the number of blocks generated by each node, the number of votes on the block, and the number of transactions in the generated block can be determined, and then the sum of the number of blocks generated by the node, the number of votes on the block, and the number of transactions in the generated block is determined as the quantified data of the contribution of the node.

[0039] In step S120, based on the contribution quantification information, the contribution information of each node in the plurality of nodes to the block chain network is determined.

[0040] The contribution information of the node is used to represent the degree of positivity of the on-chain behavior of the node in the block chain network. The on-chain behavior may, for example, include at least one of the following: generating a block (block generation), voting on a block consensus, processing a transaction, etc. The contribution information of the node is proportional to the degree of positivity of the on-chain behavior of the node. For example, the contribution information of each node can include a contribution value of the node to the block chain network; the higher the contribution value of the node, the higher the positivity of the on-chain behavior of the node in the block chain network. For example, the higher the contribution value of the node, the more blocks generated by the node, the more consensus voting on the block, and / or the higher the index information in the generated block, etc.

[0041] For example, the quantified data of the contribution of each node in the contribution quantification information can be determined as the contribution information of the node.

[0042] Step S130, determining weight information of each node in processing the blockchain transaction based on the contribution information of each node.

[0043] The blockchain transaction can be used to represent a related transaction corresponding to the blockchain network. For example, the blockchain transaction can include a revenue distribution of the revenue generated by the blockchain, for example, a preset contribution information and weight information corresponding relationship is established, in which the contribution information is proportional to the revenue information, that is, the higher the weight information corresponding to the higher revenue information. The weight information of each node can be determined according to the preset contribution information and weight information corresponding relationship and the contribution information of each node. In this example, the blockchain transaction is taken as an example of revenue distribution. When the weight information of the node is higher, the node can be allocated to a higher revenue.

[0044] In the embodiments of the present disclosure, by converting the block information, block voting information and index information of each block into contribution quantitative information, and determining the contribution information of each node through the quantitative information, the contribution information of each node in the blockchain network can be determined by comprehensively considering the block voting information and block information of each node, and the index information of the generated block. Thus, the quantification of the node contribution information is realized, and the contribution information is more accurate and objective.

[0045] Figure 2 is a flowchart of step S110 provided by an exemplary embodiment of the present disclosure. In some optional embodiments, as shown in Figure 2 Step S110 in the embodiments of the present disclosure can include the following steps:

[0046] Step S111, determining a node interaction matrix according to the block information, block voting information and index information of each block.

[0047] The size of the node interaction matrix is N x N, and N is the number of nodes in the blockchain network. N is an integer greater than or equal to 0.

[0048] In one embodiment, the value corresponding to each element in the node interaction matrix can be determined according to the block information, block voting information and index information of each block.

[0049] Step S112, determining contribution quantitative information based on the node interaction matrix.

[0050] The node interaction matrix can be determined as the contribution quantitative information.

[0051] In some optional embodiments, in the embodiments of the present disclosure, the voting information of each block includes the number of votes obtained by the block, and the block information of the block includes information of a first node and information of a second node, the first node being used to represent a node that generates the block, and the second node being used to represent a node that votes for consensus of the block. In one embodiment, each node can correspond to one or more second nodes.

[0052] Correspondingly, in the embodiments of the present disclosure, step S111 can include: determining 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 index information and the number of votes corresponding to each block.

[0053] The element information corresponding to the element can include a value of the element in the node interaction matrix.

[0054] In one embodiment, the information of the first node includes a serial number of the first node, and the information of the second node includes a 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, determining 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 index information and / or the number of votes.

[0056] Each block can correspond to at least two elements in the node interaction matrix. Specifically, the elements corresponding to each block in the node interaction matrix include: elements corresponding to the serial number of the second node as the row number and the serial number of the first node as the column number in the node interaction matrix, and elements corresponding to the serial number of the first node as the row number and the serial number of the second node as the column number in the node interaction matrix.

[0057] For the element corresponding to the serial number of the second node as the row number and the serial number of the first node as the column number, the value of the element in the node interaction matrix is added to the index information of the block to obtain the element information of the element, and the value of the element in the node interaction matrix is updated with the element information of the element; for the element corresponding to the serial number of the first node as the row number and the serial number of the second node as the column number, the value of the element is added to the quotient value of the index information of the block divided by the number of votes to obtain the element information of the element, and the value of the element in the node interaction matrix is updated with the element information of the element;

[0058] For example, it is assumed 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 for consensus of block i, where n, m and i are integers greater than or equal to 0, and m and n are less than or equal to N.

[0059] The element corresponding to the zone block i in the node interaction matrix includes an element in the mth row and the nth column of the node interaction matrix, and an element in the nth row and the mth column of the node interaction matrix. For the element in the mth row and the nth column, a value obtained by adding a value of the element in the node interaction matrix to a value (element information) of the index information of the zone block i is taken as the value of the element in the node interaction matrix; for the element in the nth row and the mth column, a value obtained by adding a value of the element in the node interaction matrix to a value (element information) of the index information of the zone block i divided by the number of votes is taken as the value in the node interaction matrix.

[0060] In an optional implementation, in the embodiment of the present disclosure, the step S120 can include: determining the 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 the rank vector is taken as the contribution information of the node. For example, 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 FIG. 1 is a flowchart of the step S130 provided by an exemplary embodiment of the present disclosure. In some optional implementations, as shown in FIG. 1, the step S130 in the embodiment of the present disclosure can include the following steps: Figure 3

[0063] The step S131 sorts each node based on the contribution information of each node.

[0064] The nodes can be sorted in descending order of the contribution information.

[0065] The step S132 determines the weight information of each node based on the sorting of each node.

[0066] The weight information of each node can be set in the order from front to back according to the sorting of the nodes, that is, the node sorted in the front is allocated with larger weight information, and the sum of the weight information of all the nodes can be set to 100%.

[0067] In an optional implementation, in the embodiment, the blockchain transaction includes at least one of the following: voting, income distribution, block sorting, and reputation evaluation. The blockchain network can be a consortium chain network.

[0068] ​The weight information of each node in voting, income 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 of the node in voting, income distribution, block sorting and reputation evaluation, and when the weight information of the node in voting, income distribution, block sorting and reputation evaluation is higher, the node obtains more votes in voting, is allocated higher income in income distribution, is sorted earlier in block sorting, and is evaluated higher reputation in reputation evaluation.

[0069] Figure 4 is a schematic diagram of a block chain network provided by an application example of the present disclosure. Figure 5 is a schematic diagram of block information and a node interaction matrix provided by an application example of the present disclosure.

[0070] In the present application example, as shown in Figure 4 , the block chain network includes four nodes, n1, n2, n3 and n4, and the serial numbers of the four nodes are 1, 2, 3 and 4 respectively. As shown in Figure 5 , the block chain corresponding to the block chain network includes eight blocks, and the first to eighth blocks are generated by nodes n1, n2, n3, n4, n1, n3, n4 and n1 in order from left to right.

[0071] In the present application example, the third block is taken as an example to illustrate that the block node (the first node) of the third block is n3, and the nodes voting for it are n3, n1 and n4 (the second node), that is, the block information of the third block includes the serial number 3 of the block node n3 and the serial numbers 3, 1 and 4 of the voting nodes n3, n1 and n4 (the second node).

[0072] A 4*4 node interaction matrix can be created, and the initial value of each element in the node interaction matrix is 0. The elements corresponding to the third block in the node interaction matrix include the element in the third row and the third column, the element in the first row and the third column, the element in the fourth row and the third column, the element in the third row and the third column, the element in the third row and the first column, and the element in the third row and the fourth column. For each of the element in the third row and the third column, the element in the first row and the third column, and the element in the fourth row and the third column, the value of the element in the node interaction matrix is updated to the value obtained by adding the index information of the third block to the value of the element in the node interaction matrix. For the element in the third row and the third column, the element in the third row and the first column, and the element in the third row and the fourth column, the value of the element in the node interaction matrix is updated to the value obtained by adding the index information of the third block to the quotient of the index information of the third block divided by the number of votes of the third block. The operation on the third block is performed on each block, and then the rank vector of the node interaction matrix is solved, and the contribution information of each node is determined 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 of the two calculations, that is, the node information of the element is the sum of the value obtained by adding the index information of the third block to the value of the element in the node interaction matrix and the value obtained by dividing the index information of the third block by the number of votes of the third block.

[0073] Figure 6 is a structural schematic diagram of a node processing device based on a block chain provided by an example embodiment of the present disclosure. As shown in the embodiment, the device can be applied to a block chain network, the block chain network comprising a plurality of nodes, and the device can comprise: Figure 6

[0074] a block information acquisition module 200, configured to acquire block information of a block chain corresponding to the block chain network, the block information comprising block information, block voting information and index information of each block in the block chain, the index information of a block comprising at least one of the number of transactions, the sum of transaction fees and the number of accounts in the block;

[0075] a quantification module 210, configured to determine contribution quantification information corresponding to the plurality of nodes based on the block information, the block voting information and the index information of each block, the contribution quantification information being used to represent quantification data of the contribution of the plurality of nodes to the block chain network;

[0076] a contribution determination module 220, configured to determine contribution information of each node in the plurality of nodes to the block chain network based on the contribution quantification information, the contribution information of a node being used to represent the degree of activity of the node on the chain in the block chain network;

[0077] ​The weight information determination module 230 is configured to determine weight information of the nodes in processing a blockchain transaction based on the contribution information of the nodes.

[0078] In some possible implementation manners of the present disclosure, in the embodiment of the present disclosure, the quantization module 210 includes:

[0079] The first determination sub-module is configured to determine a node interaction matrix according to the block information, the block voting information and the index information of the blocks, the node interaction matrix having a size of N*N, N being a number of nodes in the blockchain network.

[0080] The second determination sub-module is configured to determine the contribution quantization information based on the node interaction matrix.

[0081] In some possible implementation manners of the present disclosure, in the embodiment of the present disclosure, the voting information of a block includes a number of votes obtained by the block, the block information of the block includes information of a first node and information of a second node, the first node being used to represent a node generating the block, and the second node being used to represent a node voting for consensus of the block.

[0082] The first determination sub-module is specifically configured to determine 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 index information and the number of votes corresponding to each block.

[0083] In some possible implementation manners of the present disclosure, in the embodiment of the present disclosure, the information of the first node includes a serial number of the first node, and the information of the second node includes a serial number of the second node.

[0084] The determination of the element information corresponding to each element in the node interaction matrix is further configured to, for each block, determine a corresponding element of 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 determine element information corresponding to the element according to the index information and / or the number of votes.

[0085] In some possible implementation manners of the present disclosure, in the embodiment of the present disclosure, the contribution determination module 220 is specifically configured to determine the contribution information of the nodes according to a rank vector of the node interaction matrix.

[0086] In some possible implementation manners of the present disclosure, in the embodiment of the present disclosure, the weight information determination module 230 includes:

[0087] The sorting sub-module is configured to sort the nodes based on the contribution information of the nodes.

[0088] A third determination sub-module is configured to determine weight information of the nodes based on the sequence of the nodes.

[0089] In some possible implementation manners of the present disclosure, in the embodiments of the present disclosure, the blockchain transaction includes at least one of the following: voting, income distribution, block sorting, and reputation evaluation.

[0090] In some possible implementation manners of the present disclosure, in the embodiments of the present disclosure, the blockchain network is a consortium chain network.

[0091] The embodiments of the node processing apparatus based on a blockchain correspond to the embodiments of the node processing method based on a blockchain, and the related content can be referred to each other, which will not be repeated here.

[0092] The beneficial technical effects of the exemplary embodiments of the node processing apparatus based on a blockchain can be referred to the corresponding beneficial technical effects of the exemplary method part, which will not be repeated here.

[0093] In addition, the embodiments of the present disclosure also provide an electronic device, comprising:

[0094] a memory configured to store a computer program;

[0095] a processor configured to execute the computer program stored in the memory, and when the computer program is executed, the node processing method based on a blockchain in any of the embodiments of the present disclosure is implemented.

[0096] Figure 7 is a structural schematic diagram of an application embodiment of the electronic device of the present disclosure. Next, the electronic device according to the embodiments of the present disclosure will be described with reference to Figure 7 The electronic device can be any one or both of the first device and the second device, or a single device independent of them, which can communicate with the first device and the second device to receive the collected input signals therefrom.

[0097] As shown in Figure 7 The electronic device includes one or more processors and a memory.

[0098] The processor can be a central processing unit (CPU) or other forms of processing units with data processing capability and / or instruction execution capability, and can control other components in the electronic device to perform desired functions.

[0099] The memory can include one or more computer program products that can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory, for example, can include random access memory (RAM), cache memory, and / or the like. The non-volatile memory, for example, can include read only memory (ROM), hard disk, flash memory, and / or the like. One or more computer program instructions can be stored on the computer-readable storage media, and the processor can execute the program instructions to implement the blockchain-based node processing method of various embodiments of the disclosure described above and / or other desired functions.

[0100] In one example, the electronic device can further include an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanism (not shown).

[0101] In addition, the input device can include, for example, a keyboard, a mouse, and the like.

[0102] The output device can output various information, including the determined distance information, direction information, and the like, to the outside. 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, in order to simplify, Figure 7 In FIG. 1, only some of the components related to the present disclosure among the components in the electronic device are illustrated, and components such as a bus, an input / output interface, and the like are omitted. In addition to this, the electronic device can further include any other appropriate components according to a specific application.

[0104] In addition to the above-described method and device, embodiments of the present disclosure can be a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform steps of the blockchain-based node processing method according to various embodiments of the present disclosure described in the above part of the specification.

[0105] The computer program product can be written in any combination of one or more programming languages, including an object-oriented programming language such as Java, C++, and the like, and conventional procedural programming languages, such as the "C" programming language, or the like. The program code can execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.

[0106] In addition, an embodiment of the present disclosure can also be a computer readable storage medium, which stores computer program instructions, and the computer program instructions, when executed by a processor, cause the processor to perform the steps in the node processing method based on a blockchain according to various embodiments of the present disclosure described in the foregoing parts of the specification.

[0107] The computer readable storage medium can take any combination of one or more of the readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium, for example, can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include an electrical connection having one or more wires, a portable disc, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0108] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction-related hardware, and the aforementioned program can be stored in a computer readable storage medium, and the program, when executed, performs steps including the above-mentioned method embodiments; and the aforementioned storage medium includes ROM, RAM, magnetic disc or optical disc, and various media that can store program codes.

[0109] The above describes the basic principles of the present disclosure in combination with specific embodiments, but it should be noted that the advantages, advantages, effects, etc. mentioned in the present disclosure are only examples and are not limiting, and these advantages, advantages, effects, etc. cannot be considered as the various embodiments of the present disclosure must have. In addition, the above specific details are only for the purpose of example and for the purpose of understanding, and are not limiting, and the above details do not limit the present disclosure to the above specific details.

[0110] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between each embodiment can be referred to each other. For system embodiments, since they basically correspond to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0111] The block diagrams of devices, apparatuses, equipment, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connection, arrangement, configuration must be as shown in the block diagrams. These devices, apparatuses, equipment, systems can be connected, arranged, configured in any manner as will be appreciated by those skilled in the art. Words such as "include," "contain," "have," and the like are open-ended words that are intended to mean "including but not limited to," and are to be taken in their broadest context. The words "or" and "and" as used herein are intended to mean "and / or," and are to be taken in their broadest context unless the context clearly indicates otherwise. The word "such as" as used herein is intended to mean "such as but not limited to," and is to be taken in its broadest context.

[0112] The methods and apparatuses of this disclosure can be implemented in a number of ways. For example, the methods and apparatuses of this disclosure can be implemented using software, hardware, firmware, or any combination of these methods. The above described order of steps for the methods is merely illustrative, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the disclosure can also be implemented as a program recorded in a recording medium, which includes machine readable instructions for implementing the methods according to the disclosure. Thus, the disclosure also covers a recording medium storing a program for executing the methods according to the disclosure.

[0113] It is also important to note that the devices, equipment and methods of this disclosure can be split and / or recombined into various components or steps. These splits and / or recombination should be considered as equivalent to this disclosure.

[0114] The above description of the disclosed aspects is given for illustrative purposes and not intended to limit the scope or applicability of the disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein can be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein, but is to be accorded 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. Furthermore, this description does not purport to be exhaustive or to limit the embodiments of the disclosure to the precise forms disclosed. Although several example aspects and embodiments have been discussed above, those of ordinary skill in the art will appreciate a variety of modifications, alternatives, permutations, additions, and sub-combinations that fall within the scope of the disclosure.

Claims

1. A method for processing a blockchain-based node, characterized in that, The application is applied to a blockchain network comprising a plurality of nodes, and the method comprises: obtaining block information of a blockchain corresponding to the blockchain network, the block information comprising block information, block voting information and index information of each block in the blockchain, the index information of a block comprising at least one of the number of transactions, the sum of transaction fees and the number of accounts in the block; determining contribution quantification information corresponding to the plurality of nodes based on the block information, block voting information and index information of each block, the contribution quantification information being used to represent quantification data of the contribution of the plurality of nodes to the blockchain network; determining contribution information of each node in the plurality of nodes to the blockchain network based on the contribution quantification information, the contribution information of a node being used to represent the degree of activity of the node in the on-chain behavior in the blockchain network; determining weight information of each node in processing blockchain matters based on the contribution information of each node; the determination of the contribution quantification information corresponding to the plurality of nodes based on the block information, block voting information and index information of each block comprises: determining a node interaction matrix based on the block information, block voting information and index information of each block, the size of the node interaction matrix being N×N, N being the number of nodes in the blockchain network, and the value of each element in the node interaction matrix being obtained based on the block information, block voting information and index information of each block; determining the contribution quantification information based on the node interaction matrix; the determination of the contribution information of each node in the plurality of nodes to the blockchain network based on the contribution quantification information comprises: determining the contribution information of each node according to the rank vector of the node interaction matrix; wherein the block voting information of a block comprises the number of votes obtained by the block, the block information of the block comprises information of a first node and information of a second node, the first node being used to represent a node generating the block, and the second node being used to represent a node voting for the consensus of the block; the determination of the node interaction matrix based on the block information, block voting information and index information of each block comprises: determining element information corresponding to each element in the node interaction matrix based on the information of the first node, the information of the second node, the index information and the number of votes corresponding to each block; wherein the information of the first node comprises the serial number of the first node, and the information of the second node comprises the serial number of the second node; the determination of the element information corresponding to each element in the node interaction matrix comprises: for each block, determining an 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; determining element information corresponding to the element based on the index information and / or the number of votes.

2. The method of claim 1, wherein, the determination of 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 comprises: For each block, in the node interaction matrix, an element corresponding to a second node corresponding to the block and a first node corresponding to the block is determined as an element corresponding to the block; and an element corresponding to the first node corresponding to the block and the second node corresponding to the block is determined as an element corresponding to the block.

3. The method of claim 2, wherein, The element information corresponding to each element includes a value of the element in the node interaction matrix; The element information corresponding to the element is determined according to the index information and / or the number of votes, including: For each block, for an element corresponding to a second node and a first node, a value of the element in the node interaction matrix is added to the index information of the block to obtain element information of the element, and the value of the element in the node interaction matrix is updated with the element information of the element; For an element corresponding to a first node and a second node, a value of the element is added to a quotient value of the index information of the block divided by the number of votes to obtain element information of the element, and the value of the element in the node interaction matrix is updated with the element information of the element.

4. The method of claim 1, wherein, The weight information of each node in processing a blockchain transaction is determined based on the contribution information of each node, including: The nodes are sorted based on the contribution information of the nodes; The weight information of the nodes is determined based on the sorting of the nodes.

5. The method of claim 4, wherein, The blockchain transaction includes at least one of the following: voting, income distribution, block ordering, and reputation evaluation.

6. The method of claim 1, wherein, The blockchain network is a consortium chain network. 7.A blockchain-based node processing apparatus, characterized by comprising: Applied to a blockchain network, the blockchain network includes a plurality of nodes, and the device includes: A block information acquisition module is configured to acquire block information of a blockchain corresponding to the blockchain network, the block information including block information, block voting information, and index information of each block in the blockchain, the index information of a block including at least one of the number of transactions, the sum of transaction fees, and the number of accounts in the block; A quantification module is configured to determine contribution quantification information of the plurality of nodes based on the block information, the block voting information, and the index information of each block, the contribution quantification information being used to represent quantification data of contributions of the plurality of nodes to the blockchain network; A contribution determination module is configured to determine contribution information of each node in the plurality of nodes to the blockchain network based on the contribution quantification information, the contribution information of a node being used to represent an activity level of the node on the blockchain network; A weight information determination module is configured to determine weight information of each node in processing a blockchain transaction based on the contribution information of the nodes. The quantification module comprises: a first determination submodule configured to determine a node interaction matrix according to the block information, the block voting information and the index information of the blocks, wherein the node interaction matrix has a size of N*N, N is a number of nodes in the blockchain network, and each element in the node interaction matrix corresponds to a value obtained based on the block information, the block voting information and the index information of the blocks; and a second determination submodule configured to determine the contribution quantification information based on the node interaction matrix. The contribution determination module is specifically configured to determine the contribution information of the nodes according to a rank vector of the node interaction matrix. The block voting information of a block comprises a number of votes obtained by the block, the block information of the block comprises information of a first node and information of a second node, the first node is configured to represent a node generating the block, and the second node is configured to represent a node voting for consensus of the block; and the first determination submodule is specifically configured to determine 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 index information and the number of votes corresponding to each block. The information of the first node comprises a serial number of the first node, and the information of the second node comprises a serial number of the second node; the first determination submodule is further configured to determine, for each block, an 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 determine element information corresponding to the element according to the index information and / or the number of votes.

8. An electronic device, comprising: The computer program is stored in the memory and executed by the processor, and when the computer program is executed, the computer program implements the blockchain-based node processing method of any one of claims 1-6. The computer program is executed by the processor, and when the computer program is executed, the computer program implements the blockchain-based node processing method of any one of claims 1-6. The computer program instructions are executed by the processor, and when the computer program instructions are executed, the computer program instructions implement the blockchain-based node processing method of any one of claims 1-6.

9. A computer readable storage medium having stored thereon a computer program, characterized in that, ​ 10. A computer program product comprising computer program instructions, characterised in that, ​

Citation Information

Patent Citations

  • Block chain consensus node acquisition method and device, electronic equipment and storage medium

    CN109727132A

  • Contribution information determination method and device and electronic equipment

    CN113312559A

  • Block chain node excitation method and device, electronic equipment and storage medium

    CN115689629A