CN112632121B - Block chain data acquisition method and device - Google Patents

Block chain data acquisition method and device Download PDF

Info

Publication number
CN112632121B
CN112632121B CN202011484225.0A CN202011484225A CN112632121B CN 112632121 B CN112632121 B CN 112632121B CN 202011484225 A CN202011484225 A CN 202011484225A CN 112632121 B CN112632121 B CN 112632121B
Authority
CN
China
Prior art keywords
index information
data
blockchain
behavior
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011484225.0A
Other languages
Chinese (zh)
Other versions
CN112632121A (en
Inventor
邵珠光
张爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202011484225.0A priority Critical patent/CN112632121B/en
Publication of CN112632121A publication Critical patent/CN112632121A/en
Application granted granted Critical
Publication of CN112632121B publication Critical patent/CN112632121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Computational Linguistics (AREA)
  • Educational Administration (AREA)
  • Probability & Statistics with Applications (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • General Business, Economics & Management (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a block chain data acquisition method and a device, wherein the method comprises the following steps: receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format; acquiring index information pre-configured by a target block chain system; analyzing the standard data information to obtain a target field corresponding to the index information, and judging whether the content of the target field is matched with the index information; and if the content of the target field is successfully matched with the index information, accumulating the data result corresponding to the index information in the current cache. Therefore, the statistics of the data in the blockchain is flexibly satisfied on the basis of not updating the blockchain, and the statistics efficiency is higher.

Description

Block chain data acquisition method and device
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain data acquisition method and apparatus.
Background
With the development and wide application of blockchain technology, more and more blockchain systems have been developed. More and more applications are also gradually beginning to access the blockchain system, and as more and more applications are applied, more and more statistical requirements are put forward.
In the related art, blockchain statistics mainly refers to statistics information written in a blockchain ledger, such as transaction number, contract number, block number and the like of the blockchain, and the manner of the statistics information depends on the statistics information in the blockchain ledger.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems in the related art to some extent.
Therefore, a first object of the present invention is to provide a blockchain data acquisition method, so as to flexibly meet statistics of data in a blockchain without upgrading the blockchain, and have high statistics efficiency.
A second object of the present invention is to provide a blockchain data acquisition device.
A third object of the invention is to propose a computer device.
A fourth object of the present invention is to propose a non-transitory computer readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present invention provides a blockchain data acquisition method, including: receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format; acquiring index information pre-configured by the target block chain system; analyzing the standard data information to obtain a target field corresponding to the index information, and judging whether the content of the target field is matched with the index information; and if the content of the target field is successfully matched with the index information, accumulating the data result corresponding to the index information in the current cache.
To achieve the above object, a second aspect of the present invention provides a blockchain data acquisition device, including: the receiving module is used for receiving standard data information which is transmitted by the target block chain system and converted according to a preset standard format; the first acquisition module is used for acquiring index information pre-configured by the target blockchain system; the judging module is used for analyzing the standard data information to obtain a target field corresponding to the index information and judging whether the content of the target field is matched with the index information or not; and the processing module is used for accumulating the data result corresponding to the index information in the current cache when the content of the target field is successfully matched with the index information.
To achieve the above object, an embodiment of a third aspect of the present invention provides a computer apparatus, including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the blockchain data acquisition method according to the embodiment when executing the computer program.
In order to achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a blockchain data acquisition method as described in the above embodiments.
The embodiment provided by the invention at least comprises the following additional technical effects:
receiving standard data information converted according to a preset standard format sent by a target block chain system, obtaining index information pre-configured by the target block chain system, analyzing the standard data information to obtain a target field corresponding to the index information, judging whether the content of the target field is matched with the index information, and further, if the content of the target field is successfully matched with the index information, accumulating a data result corresponding to the index information in a current cache. Therefore, the statistics of the data in the blockchain is flexibly satisfied on the basis of not updating the blockchain, and the statistics efficiency is higher.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flowchart of a block chain data acquisition method according to an embodiment of the present invention;
FIG. 2 is a diagram of a Binlog format according to an embodiment of the present invention;
FIG. 3 is a block diagram of a block chain data acquisition scenario provided by an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another exemplary method for blockchain data acquisition according to the present invention;
FIG. 5 is a schematic diagram of a block chain data acquisition device according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another block chain data acquisition device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a block chain data acquisition device according to an embodiment of the present invention; and
fig. 8 is a schematic structural diagram of a block chain data acquisition device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
The following describes a blockchain data acquisition method and apparatus according to an embodiment of the present invention with reference to the accompanying drawings.
Aiming at the technical problem that the statistical requirement is difficult to meet due to the fact that the existing statistical mode depends on information recorded in a blockchain account book, the invention provides a novel multi-element storage mode of blockchain data, wherein the multi-element storage mode stores the statistical requirement, and the statistical requirement is met.
In addition, the data storage mode provided by the embodiment of the invention does not need to upgrade and reform the blockchain, reform the blockchain code and change the data compatibility of the data in the blockchain ledger.
Specifically, fig. 1 is a flowchart of a blockchain data acquisition method according to an embodiment of the present invention. The execution main body of the blockchain data acquisition method of the embodiment of the invention can be an independent third party data statistics platform, thereby being convenient for data statistics management and maintenance without modifying a blockchain system, as shown in fig. 1, and the blockchain data acquisition method comprises the following steps:
step 101, receiving standard data information converted according to a preset standard format sent by a target block chain system.
In this embodiment, the preset standard format may be a data format that is specified by the third party data statistics platform and is convenient to manage, and as a possible implementation manner, the standard format is a Binlog format, and the Binlog format is shown in fig. 2.
Of course, in order to facilitate the feedback data of each blockchain in the standard format, a standard format is also sent to each blockchain system in advance, where the standard format includes: a behavior description field, a behavior parameter field, a behavior result field, wherein the behavior description field includes content of an execution behavior, executor identification information of the execution behavior, etc., the behavior parameter field includes a specific parameter of the content of the execution, etc., and the execution result field generally includes whether an execution result is failure or success, etc.
Taking contract call corresponding data as an example, the corresponding standard format is: the caller name contract parameter contract execution output, where caller and contract name may be understood as behavior description fields, contract parameter may be understood as behavior parameter fields, and contract execution output may be understood as behavior result fields.
Wherein the behavior description field may be described in terms of simple discernable characters as shown in fig. 2, i.e., in terms of CI, where CI is the conteractinvoke field in fig. 2.
Step 102, obtaining index information pre-configured by the target block chain system.
It can be appreciated that, if the blockchain wants to perform data statistics on the corresponding platform, the blockchain needs to be configured in advance, so in the embodiment of the present invention, index information pre-configured by the target blockchain system needs to be acquired. Wherein the index information may include a statistical index to the standard data information.
In some possible embodiments, a correspondence between the blockchain type of the blockchain system and the index information may be pre-constructed, where the correspondence may be summarized according to empirical data, and then the correspondence is queried to obtain the corresponding index information.
In some possible embodiments, general index information preconfigured by the target blockchain system may be obtained, and a first processing period corresponding to the general index information, where the general index information may include behavior configuration and the like, and the first processing period may include how often corresponding data corresponding to the behavior configuration is counted.
Continuing with the example of a contract invocation scenario, the generic configuration may include a configuration of the contract execution behavior, specifically in the CI field, and a first processing cycle of the contract execution behavior of 1 minute.
In some possible examples, the index information corresponds to a field, and in this example, to further flexibly meet the statistical requirement, the preconfigured index information may further include: acquiring at least one keyword index corresponding to the universal index information and configured in advance by the target blockchain system, and a second processing period corresponding to each keyword index, wherein the at least one keyword index can be a processing index of a keyword of a part of fields corresponding to the universal index information, for example, the processing index of the keyword field comprises: statistics keywords, exclusion keywords, convergence fields (statistics index), etc.;
continuing with the contract call example, the keyword index may include a pair statistics field: the setting of the contract name may include setting of the statistical keyword a, may include setting of the exclusion keyword b, and may include a degree exclusion field: setting of contract names, etc.
And 103, analyzing the standard data information to obtain a target field corresponding to the index information, and judging whether the content of the target field is matched with the index information.
In this embodiment, the standard data information is analyzed to obtain the target field corresponding to the index information, and whether the content of the target field matches with the index information is determined, for example, whether the keyword field contains the keyword indicated in the index information or not is determined, so as to meet the corresponding screening statistical requirement.
For another example, when the target field is a contract name field, it is determined whether the contract name field is a contract name or the like corresponding to index information set in advance so as to satisfy aggregation or the like of data of all contracts corresponding to the contract name.
And 104, if the content of the target field is successfully matched with the index information, accumulating the data result corresponding to the index information in the current cache.
In this embodiment, if the content of the target field is successfully matched with the index information, the data results corresponding to the index information in the current buffer are accumulated, that is, the data results corresponding to all the index information are statistically accumulated, so as to generate a total accumulated processing result.
For example, if the target field is a contract name field and the corresponding index information is all contract data with the statistical contract name a, the accumulated statistics is performed on all contract data with the contract name field a.
As mentioned above, the index information has a corresponding processing period, in order to avoid memory overflow, the cache is cleaned according to the processing period, that is, whether a preset processing period corresponding to the index information is reached, for example, whether a second processing period corresponding to each keyword index is reached, etc., and if the processing period corresponding to the index information is reached, the data result corresponding to the index information in the current cache is cleared, so as to release the memory, where the accumulation of the data result in the processing period may be stored in the database corresponding to the blockchain system.
To make it clear to those skilled in the art how to acquire blockchain data in the present invention, a contract invoking scenario is specifically described below, where in the following embodiment, a preset standard format is described below as a binlog example:
in this example, the data acquisition of the blockchain may be performed by a specific data processing module, as shown in fig. 3, wherein with reference to fig. 3, the data receiving module receives standard data information in binlog format sent from the respective blockchain system over a network or otherwise. The data distribution module is used for distributing according to the pre-configured index information of the account book in the binlog and the level of the account book, the data statistics module is used for receiving the data distributed by the data distribution module and carrying out data statistics on target content meeting the index information, wherein the data listing module is used for listing the statistical result and storing the accumulated data result in the database so as to prevent the communication information from being lost (generally realized by the database). In this scenario, to facilitate the traceability of the blockchain system to the accumulated data results, the database also provides an SDK interface for clients used by each blockchain system.
When processing standard data information, referring to fig. 4, the specific process starts a timer first, monitors the standard data information converted according to a preset standard format sent by a target blockchain system in real time, performs data analysis on the obtained data, and determines whether the information belongs to data of a field corresponding to the preset standard format, so as to determine whether the obtained new data needs to be counted.
If the statistics are not needed, continuing to monitor. If statistics is needed, statistics information corresponding to index information in the cache (the data result corresponding to the index information mentioned above) is obtained, at this time, whether the customizer meets a preset time rule (namely, whether a preset processing period is reached) is judged, whether statistics is needed for internal data of new data is analyzed, namely, standard data information is analyzed to obtain a target field corresponding to the index information, whether the content of the target field is matched with the index information is judged, and if so, accumulation processing is carried out on the data result corresponding to the index information in the current cache. And meanwhile, monitoring whether a preset processing period corresponding to the index information is reached, if so, performing landing storage on the corresponding data result, and clearing the data result corresponding to the index information in the current cache.
In summary, the blockchain data acquisition method of the embodiment of the invention receives standard data information converted according to the preset standard format sent by the target blockchain system, further acquires index information pre-configured by the target blockchain system, analyzes the standard data information to acquire a target field corresponding to the index information, judges whether the content of the target field is matched with the index information, and finally, if the content of the target field is successfully matched with the index information, performs accumulation processing on a data result corresponding to the index information in the current cache. Therefore, any blockchain system connected into the system can complete statistics of index information only by generating a corresponding statistics log according to a preset standard format, the blockchain system is not required to be updated and the codes of the blockchain system are not required to be adjusted, different blockchain systems can be compatible, the blockchain systems achieve uniformity in statistics indexes, and technical support of statistics business among blockchains is provided.
In order to implement the above embodiment, the present invention further provides a blockchain data acquisition device.
Fig. 5 is a schematic structural diagram of a blockchain data acquisition device according to an embodiment of the present invention.
As shown in fig. 5, the blockchain data acquisition device includes: the device comprises a receiving module 510, a first obtaining module 520, a judging module 530 and a processing module 540.
The receiving module 510 is configured to receive standard data information sent by the target blockchain system and converted according to a preset standard format;
a first obtaining module 520, configured to obtain index information pre-configured by the target blockchain system;
a judging module 530, configured to parse the standard data information to obtain a target field corresponding to the index information, and judge whether the content of the target field matches with the index information;
and the processing module 540 is configured to perform accumulation processing on the data result corresponding to the index information in the current cache when the content of the target field is successfully matched with the index information.
In one embodiment of the present invention, as shown in fig. 6, the apparatus further comprises, on the basis of that shown in fig. 5: a transmitting module 550, wherein,
a sending module 550, configured to send a standard format to each blockchain system, where the standard format includes: a behavior description field, a behavior parameter field, and a behavior result field.
In one embodiment of the present invention, the first obtaining module 520 is specifically configured to:
the method comprises the steps of obtaining general index information pre-configured by a target blockchain system and a first processing period corresponding to the general index information.
In one embodiment of the present invention, as shown in fig. 7, the apparatus further comprises, on the basis of that shown in fig. 6: a second acquisition module 560, wherein,
the second obtaining module 560 is configured to obtain at least one keyword index corresponding to the universal index information and a second processing period corresponding to each keyword index, which are preconfigured by the target blockchain system.
In one embodiment of the present invention, as shown in fig. 8, the apparatus further comprises, on the basis of that shown in fig. 5: a monitoring module 570 and a purging module 580, wherein,
a monitoring module 570, configured to monitor whether a preset processing period corresponding to the index information is reached;
and the clearing module 580 is configured to clear the data result corresponding to the index information in the current cache when the processing period corresponding to the index information is reached.
It should be noted that the foregoing explanation of the embodiment of the blockchain data acquisition method is also applicable to the blockchain data acquisition device of this embodiment, and will not be repeated herein.
In summary, the blockchain data acquisition device of the embodiment of the invention receives standard data information converted according to a preset standard format sent by a target blockchain system, further acquires index information pre-configured by the target blockchain system, analyzes the standard data information to acquire a target field corresponding to the index information, judges whether the content of the target field is matched with the index information, and finally, if the content of the target field is successfully matched with the index information, performs accumulation processing on a data result corresponding to the index information in the current cache. Therefore, any blockchain system connected into the system can complete statistics of index information only by generating a corresponding statistics log according to a preset standard format, the blockchain system is not required to be updated and the codes of the blockchain system are not required to be adjusted, different blockchain systems can be compatible, the blockchain systems achieve uniformity in statistics indexes, and technical support of statistics business among blockchains is provided.
In order to implement the above embodiment, the present invention further proposes a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the blockchain data acquisition method as described in the above embodiment when executing the computer program.
In order to implement the above-described embodiments, the present invention also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a blockchain data acquisition method as described in the above-described embodiments.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (10)

1. A method for obtaining blockchain data, comprising:
receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format;
acquiring index information pre-configured by the target block chain system;
analyzing the standard data information to obtain a target field corresponding to the index information, and judging whether the content of the target field is matched with the index information;
if the content of the target field is successfully matched with the index information, accumulating the data result corresponding to the index information in the current cache;
transmitting the standard format to each blockchain system, wherein the standard format comprises: the system comprises a behavior description field, a behavior parameter field and a behavior result field, wherein the behavior description field comprises content of an execution behavior and executor identification information of the execution behavior, the behavior parameter field comprises specific parameters of the content of the execution, and the behavior result field comprises failure or success of the execution result.
2. The method of claim 1, wherein the obtaining the target blockchain system preconfigured index information comprises:
and acquiring the preset general index information of the target block chain system and a first processing period corresponding to the general index information.
3. The method as recited in claim 2, further comprising:
and acquiring at least one keyword index corresponding to the universal index information and preconfigured by the target block chain system, and a second processing period corresponding to each keyword index.
4. The method as recited in claim 1, further comprising:
monitoring whether a preset processing period corresponding to the index information is reached or not;
and if the processing period corresponding to the index information is reached, clearing the data result corresponding to the index information in the current cache.
5. A blockchain data acquisition device, comprising:
the receiving module is used for receiving standard data information which is transmitted by the target block chain system and converted according to a preset standard format;
the first acquisition module is used for acquiring index information pre-configured by the target blockchain system;
the judging module is used for analyzing the standard data information to obtain a target field corresponding to the index information and judging whether the content of the target field is matched with the index information or not;
the processing module is used for accumulating the data result corresponding to the index information in the current cache when the content of the target field is successfully matched with the index information;
the sending module is configured to send the standard format to each blockchain system, where the standard format includes: the system comprises a behavior description field, a behavior parameter field and a behavior result field, wherein the behavior description field comprises content of an execution behavior and executor identification information of the execution behavior, the behavior parameter field comprises specific parameters of the content of the execution, and the behavior result field comprises failure or success of the execution result.
6. The apparatus of claim 5, wherein the first acquisition module is specifically configured to:
and acquiring the preset general index information of the target block chain system and a first processing period corresponding to the general index information.
7. The apparatus as recited in claim 6, further comprising:
and the second acquisition module is used for acquiring at least one keyword index corresponding to the universal index information and preconfigured by the target blockchain system, and a second processing period corresponding to each keyword index.
8. The apparatus as recited in claim 5, further comprising:
the monitoring module is used for monitoring whether a preset processing period corresponding to the index information is reached or not;
and the clearing module is used for clearing the data result corresponding to the index information in the current cache when the processing period corresponding to the index information is reached.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the blockchain data acquisition method of any of claims 1-4 when executing the computer program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the blockchain data acquisition method of any of claims 1-4.
CN202011484225.0A 2020-12-15 2020-12-15 Block chain data acquisition method and device Active CN112632121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011484225.0A CN112632121B (en) 2020-12-15 2020-12-15 Block chain data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011484225.0A CN112632121B (en) 2020-12-15 2020-12-15 Block chain data acquisition method and device

Publications (2)

Publication Number Publication Date
CN112632121A CN112632121A (en) 2021-04-09
CN112632121B true CN112632121B (en) 2024-04-16

Family

ID=75313440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011484225.0A Active CN112632121B (en) 2020-12-15 2020-12-15 Block chain data acquisition method and device

Country Status (1)

Country Link
CN (1) CN112632121B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591162B (en) * 2021-09-29 2022-02-15 金蝶软件(中国)有限公司 Block chain evidence storing method and device and computer equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493218A (en) * 2018-10-22 2019-03-19 联动优势科技有限公司 A kind of marketing message update system and method based on block chain
CN110348975A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 Customs declaration information calibration method and device, electronic equipment and storage medium
CN110675256A (en) * 2019-08-30 2020-01-10 阿里巴巴集团控股有限公司 Method and device for deploying and executing intelligent contracts
KR20200048676A (en) * 2018-10-30 2020-05-08 삼성에스디에스 주식회사 Method for managing data based on blockchain, apparatus and system for the same
KR20200048440A (en) * 2018-10-30 2020-05-08 삼성에스디에스 주식회사 System for providing retrieval service based on blockchain and method of the same
CN111274276A (en) * 2020-01-14 2020-06-12 腾讯科技(深圳)有限公司 Operation auditing method and device, electronic equipment and computer-readable storage medium
WO2020140649A1 (en) * 2019-01-03 2020-07-09 深圳壹账通智能科技有限公司 Blockchain smart contract management method and apparatus, electronic device and storage medium
CN111787041A (en) * 2019-08-09 2020-10-16 北京沃东天骏信息技术有限公司 Method and apparatus for processing data
CN111813829A (en) * 2020-06-30 2020-10-23 平安国际智慧城市科技股份有限公司 Data resolution method, device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018119585A1 (en) * 2016-12-26 2018-07-05 深圳前海达闼云端智能科技有限公司 Permission control method, apparatus and system for block chain, and node device
WO2018120121A1 (en) * 2016-12-30 2018-07-05 深圳前海达闼云端智能科技有限公司 Block chain permission control method, device, and node apparatus
CN114662159A (en) * 2018-10-26 2022-06-24 蚂蚁双链科技(上海)有限公司 Data processing method, device and equipment
US20200226546A1 (en) * 2019-01-14 2020-07-16 International Business Machines Corporation Global optimizer for supply chain
US11886958B2 (en) * 2019-02-04 2024-01-30 American Express Travel Related Services Company, Inc. Automated data extraction and adaptation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493218A (en) * 2018-10-22 2019-03-19 联动优势科技有限公司 A kind of marketing message update system and method based on block chain
KR20200048676A (en) * 2018-10-30 2020-05-08 삼성에스디에스 주식회사 Method for managing data based on blockchain, apparatus and system for the same
KR20200048440A (en) * 2018-10-30 2020-05-08 삼성에스디에스 주식회사 System for providing retrieval service based on blockchain and method of the same
WO2020140649A1 (en) * 2019-01-03 2020-07-09 深圳壹账通智能科技有限公司 Blockchain smart contract management method and apparatus, electronic device and storage medium
CN110348975A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 Customs declaration information calibration method and device, electronic equipment and storage medium
CN111787041A (en) * 2019-08-09 2020-10-16 北京沃东天骏信息技术有限公司 Method and apparatus for processing data
CN110675256A (en) * 2019-08-30 2020-01-10 阿里巴巴集团控股有限公司 Method and device for deploying and executing intelligent contracts
CN111274276A (en) * 2020-01-14 2020-06-12 腾讯科技(深圳)有限公司 Operation auditing method and device, electronic equipment and computer-readable storage medium
CN111813829A (en) * 2020-06-30 2020-10-23 平安国际智慧城市科技股份有限公司 Data resolution method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112632121A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN106850830B (en) Service request processing method, device and system and related server
CN104035800B (en) A kind of delta package generation method, version upgrading method, device and system
CN110971485B (en) Service index monitoring system and method
CN112783725B (en) Index collection method and device
CN101268620A (en) Device management system and method for managing device management object
CN111245873B (en) Service degradation method, device, equipment and storage medium
CN111177601B (en) Page rendering processing method, device, equipment and readable storage medium
CN107688520A (en) distributed service tracking system and method
CN104408068A (en) Report form data processing method and related equipment
CN112632121B (en) Block chain data acquisition method and device
CN107203464B (en) Method and device for positioning service problem
CN108595505A (en) The method and apparatus of data query
CN108399574B (en) Claim data acquisition method, butt-joint claim subsystem, medium and electronic equipment
CN109669915A (en) A kind of computer task management method, device and relevant device
CN116339934A (en) Task execution method, device, electronic equipment and medium
CN113806594A (en) Business data processing method, device, equipment and storage medium based on decision tree
US20190109886A1 (en) Selected data exchange
CN107422991B (en) Storage strategy management system
CN110908642A (en) Policy generation and execution method and device
CN111199079A (en) Simulation task scheduling method and device
CN113408865A (en) Task work order processing method, device, equipment and storage medium
CN112311823B (en) Flow control method and device of auditing system and server
CN106874004A (en) The method and client and server of lowest version software compatibility highest version file
CN111143377B (en) Automatic driving simulation data collection method, device and system
CN114064428A (en) Log processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

GR01 Patent grant
GR01 Patent grant