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

Block chain data acquisition method and device Download PDF

Info

Publication number
CN112632121A
CN112632121A CN202011484225.0A CN202011484225A CN112632121A CN 112632121 A CN112632121 A CN 112632121A CN 202011484225 A CN202011484225 A CN 202011484225A CN 112632121 A CN112632121 A CN 112632121A
Authority
CN
China
Prior art keywords
index information
block chain
data
information
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.)
Granted
Application number
CN202011484225.0A
Other languages
Chinese (zh)
Other versions
CN112632121B (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.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings 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 JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings 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

Images

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 block chain data acquisition 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, on the basis of not upgrading the block chain, the statistics of the data in the block chain is flexibly met, and the statistical efficiency is high.

Description

Block chain data acquisition method and device
Technical Field
The present invention relates to the field of block chain technologies, and in particular, to a block chain data acquisition method and apparatus.
Background
With the development and wide application of the blockchain technology, more and more blockchain systems are in use. More and more applications are gradually starting to be accessed into the blockchain system, and as the applications are more and more, more and more statistical demands are put forward.
In the related art, the blockchain statistics mainly refers to statistical information written in a blockchain account book, such as the transaction number, contract number, and block number of the blockchain, and the way of the statistical information depends on the statistical information in the blockchain account book, and when the information to be counted is not limited to the information recorded in the blockchain account book, the statistical requirement is difficult to meet.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a method for acquiring block chain data, so as to flexibly meet the requirement of counting data in a block chain without upgrading the block chain, and the statistical efficiency is high.
A second objective of the present invention is to provide an apparatus for acquiring block chain data.
A third object of the invention is to propose a computer device.
A fourth object of the 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 method for acquiring blockchain data, 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 block chain data acquisition apparatus, including: the receiving module is used for receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format; the first acquisition module is used for acquiring index information configured in advance by the target block chain 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; 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, a third embodiment of the present invention provides a computer device, including: the block chain data acquisition method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the block chain data acquisition method is realized as described in the embodiment.
In order to achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the block chain data acquisition method as described in the above embodiments.
The embodiment provided by the invention at least comprises the following additional technical effects:
the method comprises the steps of receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format, obtaining index information which is configured in advance 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 accumulating data results corresponding to the index information in a current cache if the content of the target field is successfully matched with the index information. Therefore, on the basis of not upgrading the block chain, the statistics of the data in the block chain is flexibly met, and the statistical efficiency is high.
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 present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart illustrating a block chain data acquisition method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the format of Binlog according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a block chain data acquisition scenario according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another block chain data acquisition method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a block chain data acquisition apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another block chain data acquisition apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another block chain data acquisition apparatus according to an embodiment of the present invention; and
fig. 8 is a schematic structural diagram of another block chain data acquisition apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The block chain data acquisition method and apparatus according to an embodiment of the present invention are described below with reference to the drawings.
In view of the above-mentioned technical problems in the background art, the present invention provides a new multivariate storage method for blockchain data, which stores data along with the statistical requirements of blockchain data, and meets the statistical requirements, in the prior art, the statistical method depends on information recorded in a blockchain ledger, thereby making the statistical requirements difficult to meet.
In addition, the data storage method provided by the embodiment of the invention does not need to upgrade and modify the blockchain, modify the blockchain code, and modify the data compatibility of the data in the blockchain account book.
Specifically, fig. 1 is a flowchart illustrating a method for acquiring block chain data according to an embodiment of the present invention. The execution main body of the block chain data acquisition method in the embodiment of the present invention may be an independent third-party data statistics platform, so that statistics management and maintenance of data are facilitated, and a block chain system does not need to be modified, as shown in fig. 1, the block chain data acquisition method includes the following steps:
step 101, receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format.
In this embodiment, the preset standard format may be a data format which is convenient for management and is statistically specified by a third-party data statistics platform, and as a possible implementation manner, the preset standard format is a Binlog format, and the Binlog format is as shown in fig. 2.
Certainly, in order to facilitate each blockchain to adopt the standard format feedback data, a standard format is also sent to each blockchain system in advance, 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 the content of an execution behavior, the executor identification information of the execution behavior and the like, the behavior parameter field comprises specific parameters of the content of the execution and the like, and the execution result field generally comprises the failure or success of the execution result and the like.
Taking the contract calling corresponding data as an example, the corresponding standard format is as follows: the method includes the steps of | caller | contract name | contract parameter | contract execution output |, wherein the caller and the contract name can be understood as a behavior description field, the contract parameter can be understood as a behavior parameter field, and the contract execution output can be understood as a behavior result field.
The behavior description field may be described by using simple recognizable characters as shown in fig. 2, i.e. by using CI, where CI is the contectinvoke field in fig. 2.
Step 102, index information pre-configured by the target block chain system is obtained.
It can be understood that, if the blockchain wants to perform data statistics on the corresponding platform, it needs to be configured in advance, and therefore, in the embodiment of the present invention, index information pre-configured by the target blockchain system also needs to be obtained. The index information may include a statistical index of the standard data information.
In some possible embodiments, a corresponding relationship between the type of the block chain system and the index information may be pre-constructed, and the corresponding relationship may be summarized according to empirical data, and then the corresponding relationship is queried to obtain the corresponding index information.
In some possible embodiments, general index information pre-configured 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 a behavior configuration and the like, and the first processing period may include data corresponding to how often the corresponding behavior configuration is counted.
Continuing with the contract invocation scenario as an example, the general configuration may include a configuration of the contract execution behavior, specifically configured in the CI field, and configuring the first processing period of the contract execution behavior to be 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 general 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 may be a processing index of a keyword in a partial field corresponding to the general index information, and for example, the processing index of the keyword field includes: statistics of keywords, exclusion of keywords, convergence fields (statistical indexes), and the like;
continuing with the contract invocation example, the keyword indicators may include a pair statistics field: the contract name setting may include setting of a statistical keyword a, may include setting of an exclusion keyword b, and may include a degree exclusion field: the 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 a target field corresponding to the index information, and whether the content of the target field matches the index information is determined, for example, whether a keyword field includes a keyword indicated in the index information is determined, so as to meet the corresponding requirement of the screening statistics.
For another example, when the target field is a contract name field, it is determined whether the contract name field is a contract name corresponding to preset index information, so as to satisfy aggregation 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 cache are accumulated, that is, the data results corresponding to all the index information are subjected to statistical accumulation processing, and the like, 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 a statistical contract name a, the cumulative statistics is performed on all contract data with a contract name field a.
As mentioned above, the index information has a corresponding processing cycle, and in order to avoid memory overflow, the cache is cleared according to the processing cycle, that is, whether a preset processing cycle corresponding to the index information is reached is detected, for example, whether a second processing cycle corresponding to each keyword index is reached, and if the processing cycle corresponding to the index information is reached, the data result corresponding to the index information in the current cache is cleared to release the memory, wherein the accumulation of the data result in the processing cycle may be stored in the database corresponding to the block chain system.
In order to make it clear for those skilled in the art how to acquire the blockchain data in the present invention, a contract invocation scenario is specifically described below, where in the following embodiment, a predetermined standard format is binlog as an example, and the following description is provided:
in this example, as shown in fig. 3, the data acquisition of the block chain may be performed by a specific data processing module, wherein, referring to fig. 3, the data receiving module receives the standard data information in binlog format transmitted from each block chain system through a network or other means. 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 the target content meeting the index information, the data destaging module is used for destaging the statistical result and storing the accumulated data result in the database so as to prevent communication information from being lost (usually realized by adopting the database). In this scenario, in order to facilitate tracing of the accumulated data result by the blockchain system, the database also provides an SDK interface for the client used by each blockchain system.
When standard data information is processed, referring to fig. 4 in a specific process, a timer is started, standard data information which is transmitted by a target block chain system and converted according to a preset standard format is monitored in real time, data analysis is performed on the obtained data, whether the information belongs to data of a field corresponding to the preset standard format is judged, and whether the obtained new data needs to be counted is determined.
If no statistics are needed, monitoring is continued. If the statistics is needed, the statistical information corresponding to the index information in the cache (the data result corresponding to the mentioned index information) is obtained, at this time, whether the customizer meets a preset time rule (that is, whether a preset processing period is reached) is judged, whether the data in the new data needs to be counted is analyzed, that is, the 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 the content of the target field is matched with the index information, the data result corresponding to the index information in the current cache is subjected to accumulation processing. And meanwhile, monitoring whether a preset processing period corresponding to the index information is reached, if the processing period corresponding to the index information is reached, performing disk-dropping storage on the corresponding data result, and clearing the data result corresponding to the index information in the current cache.
To sum up, the method for obtaining block chain data according to the embodiment of the present invention receives standard data information that is sent by a target block chain system and converted according to a preset standard format, further obtains index information configured in advance by the target block chain system, analyzes the standard data information to obtain a target field corresponding to the index information, determines whether the content of the target field matches the index information, and finally, if the content of the target field matches the index information successfully, performs accumulation processing on a data result corresponding to the index information in a current cache. Therefore, any block chain system accessed into the system can complete the statistics of the index information only by generating a corresponding statistical log according to a preset standard format, the block chain system is not required to be upgraded after the statistics is completed, the codes of the block chain system are not required to be adjusted, and different block chain systems can be compatible, so that the block chain systems achieve a uniform statistical index, and the technical support of statistical services among block chains is provided.
In order to implement the above embodiments, the present invention further provides a device for acquiring block chain data.
Fig. 5 is a schematic structural diagram of a block chain data acquisition apparatus according to an embodiment of the present invention.
As shown in fig. 5, the block chain data acquiring apparatus includes: 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, which is sent by a target block chain system and converted according to a preset standard format;
a first obtaining module 520, configured to obtain index information pre-configured for the target block chain system;
a judging module 530, configured to analyze 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, when the content of the target field is successfully matched with the index information, perform accumulation processing on a data result corresponding to the index information in the current cache.
In an embodiment of the present invention, as shown in fig. 6, on the basis of fig. 5, the apparatus further includes: a sending module 550 for sending, among other things,
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 an embodiment of the present invention, the first obtaining module 520 is specifically configured to:
the method comprises the steps of obtaining general index information configured in advance by a target block chain system and a first processing period corresponding to the general index information.
In an embodiment of the present invention, as shown in fig. 7, on the basis of fig. 6, the apparatus further includes: a second obtaining module 560, wherein,
the second obtaining module 560 is configured to obtain at least one keyword indicator corresponding to the general indicator information and configured in advance by the target blockchain system, and a second processing period corresponding to each keyword indicator.
In an embodiment of the present invention, as shown in fig. 8, on the basis of fig. 5, the apparatus further includes: a monitoring module 570 and a clearing module 580, wherein,
the monitoring module 570 is 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 cycle corresponding to the index information is reached.
It should be noted that the above explanation of the embodiment of the method for acquiring blockchain data is also applicable to the device for acquiring blockchain data of the embodiment, and is not repeated herein.
To sum up, the device for acquiring block chain data according to the embodiment of the present invention receives standard data information that is transmitted by a target block chain system and converted according to a preset standard format, further acquires index information configured in advance by the target block chain system, parses the standard data information to acquire a target field corresponding to the index information, determines whether the content of the target field matches the index information, and finally, if the content of the target field matches the index information successfully, performs accumulation processing on a data result corresponding to the index information in a current cache. Therefore, any block chain system accessed into the system can complete the statistics of the index information only by generating a corresponding statistical log according to a preset standard format, the block chain system is not required to be upgraded after the statistics is completed, the codes of the block chain system are not required to be adjusted, and different block chain systems can be compatible, so that the block chain systems achieve a uniform statistical index, and the technical support of statistical services among block chains is provided.
In order to implement the foregoing embodiments, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the block chain data acquisition method described in the foregoing embodiments is implemented.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the block chain data acquisition method as described in the above embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited 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 steps of a custom logic function or process, and alternate 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, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement 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). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can 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 should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A method for acquiring block chain 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;
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.
2. The method of claim 1, further comprising:
transmitting the standard format to each blockchain system, wherein the standard format comprises: a behavior description field, a behavior parameter field, and a behavior result field.
3. The method of claim 1, wherein the obtaining pre-configured metric information for the target blockchain system comprises:
and acquiring general index information pre-configured by the target block chain system and a first processing period corresponding to the general index information.
4. The method of claim 3, further comprising:
and acquiring at least one keyword index which is pre-configured by the target block chain system and corresponds to the general index information, and a second processing period corresponding to each keyword index.
5. The method of claim 1, further comprising:
monitoring whether a preset processing period corresponding to the index information is reached;
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.
6. A block chain data acquisition apparatus, comprising:
the receiving module is used for receiving standard data information which is transmitted by a target block chain system and converted according to a preset standard format;
the first acquisition module is used for acquiring index information configured in advance by the target block chain 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;
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.
7. The apparatus of claim 6, further comprising:
a sending module, configured to send the standard format to each blockchain system, where the standard format includes: a behavior description field, a behavior parameter field, and a behavior result field.
8. The apparatus of claim 6, wherein the first obtaining module is specifically configured to:
and acquiring general index information pre-configured by the target block chain system and a first processing period corresponding to the general index information.
9. The apparatus of claim 8, further comprising:
and the second acquisition module is used for acquiring at least one keyword index which is preset by the target block chain system and corresponds to the general index information, and a second processing period corresponding to each keyword index.
10. The apparatus of claim 6, further comprising:
the monitoring module is used for monitoring whether a preset processing period corresponding to the index information is reached;
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.
11. 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 block chain data acquisition method according to any one of claims 1 to 5 when executing the computer program.
12. 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 according to any one of claims 1 to 5.
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 true CN112632121A (en) 2021-04-09
CN112632121B 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)

Cited By (1)

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

Citations (14)

* 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
US20190140822A1 (en) * 2016-12-30 2019-05-09 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Block chain permission control method, device, and node apparatus
US20190238550A1 (en) * 2016-12-26 2019-08-01 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Permission control method, apparatus and system for block chain, and node device
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
US20200133949A1 (en) * 2018-10-26 2020-04-30 Alibaba Group Holding Limited Data processing method, apparatus, and device
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
US20200226546A1 (en) * 2019-01-14 2020-07-16 International Business Machines Corporation Global optimizer for supply chain
US20200250571A1 (en) * 2019-02-04 2020-08-06 American Express Travel Related Services Company, Inc. Automated data extraction and adaptation
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

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190238550A1 (en) * 2016-12-26 2019-08-01 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Permission control method, apparatus and system for block chain, and node device
US20190140822A1 (en) * 2016-12-30 2019-05-09 Cloudminds (Shenzhen) Robotics Systems Co., Ltd. Block chain permission control method, device, and node apparatus
CN109493218A (en) * 2018-10-22 2019-03-19 联动优势科技有限公司 A kind of marketing message update system and method based on block chain
US20200133949A1 (en) * 2018-10-26 2020-04-30 Alibaba Group Holding Limited Data processing method, apparatus, and device
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
US20200226546A1 (en) * 2019-01-14 2020-07-16 International Business Machines Corporation Global optimizer for supply chain
US20200250571A1 (en) * 2019-02-04 2020-08-06 American Express Travel Related Services Company, Inc. Automated data extraction and adaptation
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

Cited By (2)

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

Also Published As

Publication number Publication date
CN112632121B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN107704360B (en) Monitoring data processing method, equipment, server and storage medium
CN110971485B (en) Service index monitoring system and method
US20130232254A1 (en) Cloud resource utilization management
CN105471932B (en) Monitoring method, device and system for front-end application
CN113849294B (en) Kubernetes pod expansion and contraction system and method
CN112783725A (en) Index acquisition method and device
CN112395156A (en) Fault warning method and device, storage medium and electronic equipment
CN111045893B (en) Method, device and system for executing monitoring task, storage medium and electronic device
CN111190573A (en) Application program point burying method and device and electronic equipment
CN107203464B (en) Method and device for positioning service problem
CN112416712A (en) Monitoring method and device based on industrial cloud edge service data acquisition
CN112632121A (en) Block chain data acquisition method and device
CN112286757A (en) Data synchronization monitoring method and device, electronic equipment and storage medium
WO2019028114A1 (en) Cloud-based discovery and inventory
US8136012B2 (en) Method and system for updating topology changes of a computer network
CN112783906A (en) Log data management method and system for industrial internet
CN113626495A (en) Operation data acquisition method of energy management system
CN102986151A (en) Monitoring system and data transfer device and method thereof
CN113408865A (en) Task work order processing method, device, equipment and storage medium
CN110674079B (en) Log file recording method and device
CN111130921B (en) Method and device for processing performance index of core network element
CN113918204A (en) Metadata script management method and device, electronic equipment and storage medium
CN112311823A (en) Flow control method and device of auditing system and server
CN113487344B (en) Communication service prediction method, centralized server, edge service terminal and medium
CN112231612A (en) Configuration information transmission method and device, storage medium and electronic device

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant