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

Block generation method, device, equipment and storage medium

A technology of blocks and generation nodes, applied in the field of blockchain, can solve the problems of waste of processing and transmission resources, invalid occupation of storage space, etc., to reduce hollow blocks or invalid blocks, save storage space, and improve rationality. Effect

Active Publication Date: 2021-05-07
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in view of the fact that the transaction requests that usually occur in the blockchain network are in a sparse state rather than a full load state, when the block generation time is greatly shortened, there will be a large number of empty blocks and invalid blocks in the blockchain network, resulting in invalid storage space. Occupation and waste of processing and transmission resources

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 generation method, device, equipment and storage medium
  • Block generation method, device, equipment and storage medium
  • Block generation method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] figure 1 It is a flow chart of a block generation method provided by Embodiment 1 of the present invention. This embodiment can be applied to the consensus mechanism where at least two nodes generate blocks in turn according to the set rules. The method is executed by the block generation node. It can be executed by a block generation device configured in the block generation node. The method specifically includes the following steps:

[0027] S110. When detecting the arrival of the initial processing time of the local node, process the transaction request through at least one transaction processing thread to generate transaction data.

[0028] In a specific embodiment of the present invention, the blockchain network can enable at least two nodes in the blockchain network to enjoy transaction processing rights through elections and other means according to the consensus mechanism and deployed parameters, and take turns as the current block The generation node processe...

Embodiment 2

[0040] On the basis of the first embodiment above, this embodiment provides a preferred implementation of the block generation method, which can detect packing points based on multi-dimensional information. figure 2 It is a flow chart of a block generation method provided by Embodiment 2 of the present invention, such as figure 2 As shown, the method includes the following specific steps:

[0041] S210. Determine the initial processing time of the local node.

[0042] In a specific embodiment of the present invention, the start processing time refers to the start time point when the local node starts a transaction processing thread to process a transaction request. It can be understood that the initial processing time can be the initial block generation time of the local node in this block generation cycle, or it can be earlier than the initial block generation time, that is, transaction processing can be started within the transition time between nodes class thread for tr...

Embodiment 3

[0083] On the basis of the first embodiment above, this embodiment provides a preferred implementation of the block generation method, which can determine the main chain when the block chain forks. Figure 4 A flowchart for determining the main chain of the block chain provided by Embodiment 3 of the present invention, such as Figure 4 As shown, the method includes the following specific steps:

[0084] S410. When detecting the arrival of the initial processing time of the local node, use at least one transaction processing thread to process the transaction request to generate transaction data.

[0085]In a specific embodiment of the present invention, after the initial processing time of the local node is obtained, the time can be detected in real time. If it is detected that the initial processing time of the local node arrives, at least one transaction processing thread is used to process the transaction request to generate transaction data, which is cached as a queue.

...

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 the invention discloses a block generation method, device, equipment and storage medium. The method includes: when detecting the initial processing time of the local node, processing the transaction request through at least one transaction processing thread to generate transaction data; if the detection reaches the packing point, packing the transaction data to be packed by the packing thread , generating a new block. The embodiment of the present invention provides a trigger condition for the packing thread to pack the transaction data by detecting the packing point, so that most of the blocks on the chain record valid transaction data, reducing the number of empty or invalid blocks in the block chain. Blocks improve the rationality of processing and transmission resource utilization and save storage space.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of block chain technology, and in particular to a block generation method, device, equipment and storage medium. Background technique [0002] With the continuous development of Internet technology, a decentralized and transparent blockchain technology has emerged. Blockchain technology uses data blocks to break the current Internet's dependence on central servers. All data generated in the network will be recorded by block generation nodes, and through data broadcast and verification by other nodes to form new blocks And uploaded to the end of the blockchain. After the block on the chain is confirmed, the new block is permanently recorded in the block chain; otherwise, for blocks that cannot be confirmed, the data in the block will be rolled back. [0003] In the existing technology, from the perspective of versatility, no matter what consensus mechanism and parameter deployment ...

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): G06F16/901
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD