Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Block generation method, device, device and storage medium

A block and new block technology, applied in the field of blockchain, can solve problems such as transaction data rollback, business layer troubles, poor business performance, etc., and achieve the effect of reducing the probability of blockchain forks and avoiding being discarded

Active Publication Date: 2021-07-02
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

If the block generation time is too slow, the uplink confirmation speed of transaction data will be slow and the business performance will be poor
However, if the block generation time is too fast, there will be a block chain bifurcation caused by block generation failure, and transaction data rollback will easily occur, causing troubles to the business layer

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] 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:

[0025] S110. Obtain the initial block generation time of the local node in this block generation cycle.

[0026] 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 processes the transaction processing request in the blockchain network, and finally generates a new block r...

Embodiment 2

[0036] On the basis of the first embodiment above, this embodiment provides a preferred implementation of the block generation method, which can improve the timeliness of block generation and the system performance of the block chain. 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:

[0037] S210. Acquire the inter-node transition time from the consensus mechanism data deployed locally.

[0038] 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 the transition time between nodes is The time interval when the node is switched, takes turns as the current block generation node to process the transaction processing request in the ...

Embodiment 3

[0064] image 3 It is a schematic structural diagram of a block generation device provided by Embodiment 3 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 device is configured in the block generation node , the block generation method described in any embodiment of the present invention can be implemented. Specifically, the device includes:

[0065] The initial block generation time acquisition module 310 is used to obtain the initial block generation time of the local node in this block generation cycle, wherein the initial block generation time is based on the block generation cycle of the previous block generation node and the transition time between nodes is determined;

[0066] The block generation module 320 is configured to generate a new block according to the block generation rules within the node after detecting the initial block generation time of t...

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: obtaining the initial block generation time of the local node in this block generation cycle, wherein the initial block generation time is determined according to the block generation cycle of the previous block generation node and the transition time between nodes ; After detecting the arrival of the initial block generation time of the local node, a new block is generated according to the block generation rules within the node. In the embodiment of the present invention, when the block generation node is switched, the node transition time is increased between adjacent switching nodes, so that even if the block generation time within the node is shortened according to the block generation rules within the node, the node can also be generated for the previous block The generation of middle and tail blocks and the transmission to the blockchain network provide sufficient time. In the case of shortening the block generation time of nodes and increasing the confirmation speed of blocks, the probability of blockchain bifurcation is reduced and the previous block is avoided. Tail blocks are discarded in generator nodes.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of block chains, and in particular, to a block generation method, device, device, 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 method is adopt...

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): G06F21/60
CPCG06F21/604
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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
Eureka Blog
Learn More
PatSnap group products