Unlock instant, AI-driven research and patent intelligence for your innovation.

Block determination method, device and electronic equipment in a block chain

A determination method and technology of blockchain, applied in the network field, can solve the problems of slow speed of blocks to be broadcast and low transaction processing performance of blockchain, and achieve the effect of improving transaction processing performance, reducing calculation amount, and improving processing speed.

Active Publication Date: 2021-11-12
杭州秘猿科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of this specification provides a block determination method, device and electronic equipment in the blockchain, which are used to solve the problems in the prior art that the consensus node determines the block to be broadcasted at a slow speed and the transaction processing performance of the blockchain is low

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 determination method, device and electronic equipment in a block chain
  • Block determination method, device and electronic equipment in a block chain
  • Block determination method, device and electronic equipment in a block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] refer to figure 2 As shown in , it is a schematic diagram of the steps of a block determination method in the blockchain provided by the embodiment of this specification. The method mainly includes the following steps:

[0041] Step 202: The consensus node selects transaction units to be included in the block to be broadcast from the local transaction pool.

[0042] In the blockchain network, when a blockchain node broadcasts a transaction in the network, the consensus node receives the broadcasted transaction and stores it in the local transaction pool. To the transaction unit in the block to be broadcast this time.

[0043] Step 204: The consensus node determines the root hash value of the Merkle tree corresponding to the transaction unit to be included in all blocks this time according to the preset Merkle tree.

[0044] In blockchain technology, a Merkle tree is usually used as the organizational form of transactions. The value of the leaf node of the Merkle tre...

Embodiment 2

[0083] Refer below Figure 7 The electronic equipment of the embodiment of this specification is introduced. Please refer to Figure 7 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.

[0084] The processor, network interface, and memory may be interconnected via an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an extended industry standard Structure (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For convenience, Figur...

Embodiment 3

[0091] The embodiment of this specification also provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the The electronic device performs the following operations:

[0092] Determine the root hash value of the Merkle tree corresponding to the transaction unit to be included in all blocks this time according to the preset Merkle tree, and the total number of leaf nodes of the Merkle tree is the same as that to be included in the block The difference between the number of trading units is within the preset threshold range;

[0093] Store the root hash value in the block header;

[0094] A block to be broadcast is determined according to the block header and the transaction units to be included in the block.

[0095] Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-On...

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 embodiment of this specification relates to a block determination method, device and electronic equipment in the blockchain, including: the consensus node determines the Merkle corresponding to the transaction unit to be included in all blocks this time according to the preset Merkle tree The root hash value of the Merkle tree, the difference between the total number of leaf nodes of the Merkle tree and the number of transaction units to be included in the block is within the preset threshold range; the root hash value is stored in the block header; according to the zone The block header and the transaction units to be included in the block determine the block to be broadcast. By adopting this scheme, the calculation amount of the hash value of the root node of the Merkle tree is reduced, the processing speed of the consensus node to determine the block to be broadcast is improved, and the transaction processing performance of the blockchain is improved.

Description

technical field [0001] The embodiments of this specification relate to the field of network technologies, and in particular to a block determination method, device and electronic equipment in a blockchain. Background technique [0002] Blockchain is a solution to the multi-party trust problem using distributed ledger technology, and it is a decentralized database. The blockchain network consists of multiple nodes that maintain a complete blockchain ledger. Any node can correspond to at least one blockchain, and any blockchain can contain at least one block. A block consists of a block header and a block body. [0003] Existing blockchain technology usually uses Merkle tree as the organizational form of transactions, and Merkle tree can be used for simple payment proof (SPV, Simplified Payment Verification), thus using blockchain technology for ordinary users Opened the door of convenience. Ordinary users do not need to maintain a huge and complete blockchain, but only nee...

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 Patents(China)
IPC IPC(8): G06Q20/38
CPCG06Q20/3829
Inventor 万涔涔
Owner 杭州秘猿科技有限公司