Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Storing and queuing method for blockchain transaction

A blockchain and transaction technology, applied in the blockchain field, can solve the problems of not setting transaction queuing mode, unable to change transaction queuing priority, consuming a lot of time and computing power, etc., to speed up storage speed and verification speed, Prevent zero-cost malicious swiping and improve flexibility

Active Publication Date: 2018-07-17
HANGZHOU FUZAMEI TECH CO LTD
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This process takes a lot of time and computing power
[0003] Existing blockchain transactions hardly set the transaction queuing method, or simply set different charging levels to change the transaction queuing priority, and cannot flexibly change the transaction queuing priority according to user needs

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
  • Storing and queuing method for blockchain transaction
  • Storing and queuing method for blockchain transaction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Embodiment 1: This embodiment specifically illustrates the content of the storage and queuing method of blockchain transactions, as follows:

[0036] The store and queue method includes the following steps:

[0037] Step S1: Generate transaction hash value:

[0038] The blockchain system generates a transaction hash value for each transaction, and the transaction hash value is a random number with a length of 64 characters (hexadecimal);

[0039] Step S2: Write the transaction to the bitmap:

[0040] The bitmap is a list composed of multiple storage bits; each storage bit includes status code, storage space and bit number; the bit number is a random number with a length of 3 characters (hexadecimal), only the first three characters and The transaction corresponding to the transaction hash value with the same bit number is the transaction that meets the conditions; the storage space is used to store transactions, and each storage space can only store one transaction th...

Embodiment 2

[0059] Embodiment 2: This embodiment illustrates the storage of blockchain transactions and the processing process of the queuing method, such as figure 1 and figure 2 :

[0060] Step S1: Each transaction will generate a transaction hash value.

[0061] Step S2: One bit can only store one transaction hash value that meets the conditions, and other transactions that meet the conditions will be queued, for example: the bit of 3 (011) can only store transactions with the first three transaction hash values ​​of 011.

[0062] Step S3: The status code of the bit stored in the transaction is changed from 0 to 1, and the status code of the bit not stored in the transaction is always 0.

[0063] Step S4: Consensus nodes perform mining, and the consensus node N that first calculates the Merkle root hash value broadcasts the Merkle root hash value and its own bitmap to other consensus nodes.

[0064] Step S5: The remaining consensus nodes calculate the Merkle root hash value. If the...

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 invention relates to a storing and queuing method for a blockchain transaction. The method comprises the following steps that: generating a transaction Hash value, writing the transaction into a bit map, regulating a status code, carrying out mining and consensus by a consensus node, and generating a blockchain. A formulated storage way sharply quickens the storage speed and the verification speed of transaction data. Through a formulated queuing way, a user can change a transaction priority according to the queuing way, the flexibility of transaction queuing is sharply improved, and attacks that the user carries out malicious scalping and the like can be effectively avoided.

Description

technical field [0001] The invention relates to the technical field of block chains, and relates to a storage and queuing method for block chain transactions. Background technique [0002] In the storage method of existing blockchain transactions, consensus nodes verify the consistency of each other's data through the Merkle root hash value. If the obtained Merkle root hash value is inconsistent, each layer needs to be retrieved from top to bottom The hash value of the leaf node until the underlying error transaction hash value is found, so as to determine which transaction is wrong. Only after the transaction is corrected and the transaction data reaches a consensus can the transaction be stored in the block. This process takes a lot of time and computing power. [0003] Existing blockchain transactions hardly set the transaction queuing method, or simply set different charging levels to change the transaction queuing priority, and cannot flexibly change the transaction qu...

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): G06Q20/38
CPCG06Q20/389
Inventor 吴思进王志文
Owner HANGZHOU FUZAMEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products