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

Data query method and device based on block chain

A data query and block chain technology, applied in the direction of electronic digital data processing, special data processing applications, digital data information retrieval, etc., can solve problems such as low efficiency, achieve the effect of solving low efficiency, improving efficiency and accuracy

Pending Publication Date: 2019-09-27
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a blockchain-based data query method and device to solve the technical problem of inefficiency in querying the latest ledger data in related technologies

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
  • Data query method and device based on block chain
  • Data query method and device based on block chain
  • Data query method and device based on block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] The method embodiment provided in Embodiment 1 of the present application may be executed in a server, a computer terminal, or a similar computing device. Take running on the server as an example, figure 1 It is a block diagram of the hardware structure of a blockchain-based data query server according to an embodiment of the present invention. like figure 1 As shown, the server 10 may include one or more ( figure 1Only one is shown in ) processor 102 (processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA) and memory 104 for storing data. Optionally, the above-mentioned server can also be A transmission device 106 for communication functions and an input and output device 108 are included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and it does not limit the structure of the above server. For example, server 10 may also include ...

Embodiment 2

[0064] This embodiment also provides a blockchain-based data query device, which is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have already been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0065] Figure 4 is a structural block diagram of a block chain-based data query device according to an embodiment of the present invention, such as Figure 4 As shown, the device includes:

[0066] A receiving module 40, configured to receive a query request for querying book data;

[0067] The first query module 42 is used to query the latest block identifier in the account book status subsystem according to the quer...

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 provides a data query method and device based on a block chain. On one hand, the method comprises the following steps: receiving a query request for querying account book data; querying a latest block identifier in an account book state subsystem according to the query request, wherein the account book state subsystem stores accounting node information recording latest account book data, the account book state subsystem is a node in the distributed account book system or a sub-node of a consensus node in the distributed account book system, and the distributed account book system comprises the consensus node and the accounting node; querying a target accounting node corresponding to the latest block identifier according to a preset strategy; and querying the latest account book data from the target accounting node. Through the method and device, the technical problem that the efficiency is low when latest account book data is queried in the related art is solved, and the data query efficiency and accuracy are improved.

Description

【Technical field】 [0001] The present invention relates to the field of computers, in particular to a blockchain-based data query method and device. 【Background technique】 [0002] In related technologies, for a distributed ledger system, when a user queries data on the ledger through a certain node, it is very likely that the node is recovering from a failure or has not yet synchronized to the latest ledger data. In this case, the queried ledger data cannot be guaranteed to be up-to-date; if the user submits further transactions using the queried data, the transaction will fail due to data inconsistency. [0003] In related technologies, for the above problems, the solution in related technologies is that the user re-queries the data for the next transaction after the transaction fails; or requires the user to query all nodes in the distributed ledger, and then determine which node is based on a certain mechanism Have the latest ledger data, and then query the data through ...

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): G06F16/2458
CPCG06F16/2471
Inventor 代健武
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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