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

A proposal timeout threshold dynamic adjustment method and device and electronic equipment

A dynamic adjustment and time threshold technology, applied in the network field, can solve problems such as slow block generation

Pending Publication Date: 2021-01-15
HANGZHOU RIVTOWER TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of this specification provides a method, device and electronic device for dynamically adjusting the proposal timeout threshold to solve the problem in the prior art that there are no transactions and a large number of blank blocks are generated, and the block generation speed is slow

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
  • A proposal timeout threshold dynamic adjustment method and device and electronic equipment
  • A proposal timeout threshold dynamic adjustment method and device and electronic equipment
  • A proposal timeout threshold dynamic adjustment method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] refer to figure 1 As shown, a method for dynamically adjusting the proposal timeout threshold provided by the embodiment of this specification is applied to the blockchain system, and the method includes:

[0026] Step 101: Each node sets and records the number of consensus rounds R participated in and the blank count Nil_R; where the blank count is the number of proposals without transaction content sent or received by the node;

[0027] Step 102: The proposal consensus node obtains the transaction from the transaction time, if the transaction pool is empty, the proposal consensus node sends a blank proposal without transaction content;

[0028] Step 103: The proposal consensus node and other consensus nodes that received the proposal do not vote for the blank proposal in the first stage, and increment their own blank count Nil_R;

[0029] Step 104: Setting the proposal timeout threshold for voting in the first stage is positively correlated with the number of consens...

Embodiment 2

[0041] refer to figure 2 As shown, it is a schematic structural diagram of a device for dynamically adjusting the proposal timeout threshold provided by the embodiment of this specification. The device mainly includes:

[0042] Setting module 201: for each node to set and record the number of consensus rounds R and the blank count Nil_R; where the blank count is the number of proposals sent or received by the node without transaction content;

[0043] Proposal acquisition module 202: used for the proposal consensus node to obtain transactions from transaction time, if the transaction pool is empty, the proposal consensus node sends a blank proposal without transaction content;

[0044] The first-stage voting module 203: used to set the proposal consensus node and other consensus nodes that received the proposal not to vote for the blank proposal in the first stage, and increment its own blank count Nil_R;

[0045] Timeout threshold setting module 204: used to set the proposa...

Embodiment 3

[0055] image 3 It is a schematic structural diagram of an electronic device according to an embodiment of this specification. Please refer to image 3 , 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.

[0056] The processor, the network interface and the memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus or an EISA (Extended Industry StandardArchitecture, extended industry standard archite...

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 relates to a proposal timeout threshold dynamic adjustment method and device and electronic equipment. The proposal timeout threshold dynamic adjustment method mainly comprises the steps that each node sets and records a participated consensus round number R and a blank count Nil_R; the proposal consensus node obtains a transaction from the transaction, and if the transaction pool is empty, the proposal consensus node sends a blank proposal without transaction content; the proposal consensus node and other consensus nodes receiving the proposal do not carry outfirst-stage voting on the blank proposal and increase the blank count Nil_R of the proposal consensus node and the other consensus nodes; and a proposal timeout threshold of the first-stage voting isset to be positively correlated with a consensus round number R and negatively correlated with the blank count Nil_R. By means of the method, the effects that when no transaction exists in the transaction pool, the block is not output, and the proposal timeout threshold value of first-stage voting is dynamically adjusted can be achieved, so that after an application system is idle for a long timeand a user transaction arrives, a consensus can still be quickly achieved, and the block is output.

Description

technical field [0001] The embodiments of this specification relate to the field of network technology, and in particular to a method, device and electronic device for dynamically adjusting a proposal timeout threshold. Background technique [0002] Existing blockchain systems, such as systems that use the BFT consensus algorithm, will preset a block timeout time threshold in the consensus process. Within the preset time range, no matter whether there is a user's transaction coming, it will generate a block. In such a blockchain system where the semi-synchronous network assumes a consensus protocol, after view switching or the number of consensus rounds increases, the consensus mechanism tests the network situation by gradually increasing the proposal timeout threshold. When the proposal timeout threshold increases, it will inevitably lead to a delay in transaction entry. At the same time, for blockchain systems with relatively few applications, the proportion of empty blo...

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): G06Q40/04H04L29/08
CPCG06Q40/04H04L67/1097
Inventor 王晓亮俞波
Owner HANGZHOU RIVTOWER TECH CO LTD