Block chain consensus method and device and electronic equipment

A blockchain and consensus technology, applied in the blockchain field, can solve problems such as single block conditions

Active Publication Date: 2020-03-31
BEIJING UNIV OF TECH
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a block chain consensus method, device and electronic equipment to alleviate the technical problem of single block forming conditions in the block chain consensus method in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Block chain consensus method and device and electronic equipment
  • Block chain consensus method and device and electronic equipment
  • Block chain consensus method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] The embodiment of the present invention provides a block chain consensus method, such as figure 1 As shown, the method includes the following steps:

[0030] Step S11, obtaining the target values ​​of all nodes in the blockchain system.

[0031] The embodiment of the present invention is applicable to blockchain system consensus schemes based on contribution values, or integral values, or numerical values ​​such as score values. When the blockchain system meets the conditions for creating a new block, it is necessary to determine which node in the system has the new block To be eligible for block creation, it is first necessary to obtain the target value of all nodes in the blockchain system, wherein the target value includes any of the following: contribution value, integral value, and score value; if the blockchain system uses Consensus mechanism based on contribution value, then it is necessary to obtain the contribution value of all nodes at this time; if the block...

Embodiment 2

[0063] The embodiment of the present invention also provides a block chain consensus device, the block chain consensus device is mainly used to implement the block chain consensus method provided in the first embodiment above, the block chain consensus device provided in the embodiment of the present invention is as follows Make a specific introduction.

[0064] image 3is a functional block diagram of a block chain consensus device provided by an embodiment of the present invention, such as image 3 As shown, the device mainly includes: an acquisition module 100, a first determination module 200, and a second determination module 300, wherein:

[0065] An acquisition module 100, configured to acquire target values ​​of all nodes in the blockchain system.

[0066] The first determination module 200 is configured to determine a maximum hash value for each node to perform a hash operation based on the target value, wherein the greater the target value of the node, the greater ...

Embodiment 3

[0083] see Figure 4 , the embodiment of the present invention provides an electronic device, the electronic device includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the processor 60 is used to execute executable modules, such as computer programs, stored in memory 61 .

[0084] Wherein, the memory 61 may include a high-speed random access memory (RAM, RandomAccessMemory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used.

[0085] The bus 62 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a blockchain consensus method and apparatus, and an electronic device, and relates to the technical field of blockchains. The method comprises the steps of firstly obtaining target values of all nodes in a blockchain system; then, the maximum hash value of each node for hash operation is determined based on the target value, and the larger the target value of the node is, the larger the corresponding maximum hash value is; and finally, taking the node of which the fastest operation is smaller than the corresponding maximum hash value as the creation node of the new block. According to the method disclosed by the invention, the creation node with blocking qualification is determined by utilizing the target value of the node and the difficulty of hash operation corresponding to the node (the larger the maximum hash value is, the higher the probability of calculating the hash value meeting the condition is, and the lower the difficulty of hash operation is); not only can the blocking possibility of the node with the larger target value be ensured to be larger, but also the technical problem of single blocking condition of a block chain consensus method in the prior art can be relieved.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a block chain consensus method, device and electronic equipment. Background technique [0002] Blockchain is a new application model of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. The consensus mechanism is a core feature of the blockchain and is to ensure the consistency of the blockchain system under the distributed architecture The scheme, the consensus mechanism determines which nodes are qualified to form a block, and which node can finally form a block. In the traditional block chain system based on the target value, in each round of block competition, the node contribution value is sorted based on the contribution value of each node to the system, and the node with the largest contribution value gets the current round of block competition. However, if the contribution value...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/27
CPCG06F16/22G06F16/27Y02D10/00
Inventor 何泾沙薛瑞昕朱娜斐张琨宋洪宇左旺夏新宇张宇晗许甜吴霜
Owner BEIJING UNIV OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products