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

BLOCK GENERATION METHOD, device, APPARATUS, AND STORAGE MEDIUM

A block and new block technology, applied in the blockchain field, can solve the problems of transaction data rollback, business layer troubles, poor business performance, etc., to reduce the probability of blockchain forks and avoid being discarded.

Active Publication Date: 2019-02-15
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF12 Cites 2 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, APPARATUS, AND STORAGE MEDIUM
  • BLOCK GENERATION METHOD, device, APPARATUS, AND STORAGE MEDIUM
  • BLOCK GENERATION METHOD, device, APPARATUS, 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, a device, an apparatus and a storage medium. The method comprises the following steps: obtaining the starting block-out time of thelocal node in the current block generation cycle, wherein the starting block-out time is determined according to the block generation cycle of the previous block generation node and the transition time between nodes; After detecting the start block-out time to the local node, a new block is generated according to a block-out rule within the node. At that time of handover of the block generation node, for the node transition time between adjacent handoff nodes is increased, so that even if the chunk-out time in the node is shortened according to the chunk-out rule in the node, The invention also provides sufficient time for the generation of tail blocks in the previous block generation node and the transmission to the block chain network, reduces the probability of the block chain bifurcation under the condition of shortening the block-out time of the node and improving the block acknowledgement speed, and avoids the tail blocks in the previous block generation node from being discarded.

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
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