CN110266752B - Block chain information pushing method and device, computer equipment and storage medium - Google Patents

Block chain information pushing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110266752B
CN110266752B CN201910374148.4A CN201910374148A CN110266752B CN 110266752 B CN110266752 B CN 110266752B CN 201910374148 A CN201910374148 A CN 201910374148A CN 110266752 B CN110266752 B CN 110266752B
Authority
CN
China
Prior art keywords
information
data
block chain
latest
block
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
CN201910374148.4A
Other languages
Chinese (zh)
Other versions
CN110266752A (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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201910374148.4A priority Critical patent/CN110266752B/en
Publication of CN110266752A publication Critical patent/CN110266752A/en
Priority to PCT/CN2019/122488 priority patent/WO2020224253A1/en
Application granted granted Critical
Publication of CN110266752B publication Critical patent/CN110266752B/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/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of block chains, is applied to the block chain management industry, and provides a block chain information pushing method, a block chain information pushing device, computer equipment and a storage medium, wherein the method comprises the steps of establishing connection with a block chain management system; reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table; periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type; and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table according to different time dimensions, and pushing the counted information. In the whole process, the blockchain information including blockchain information, blockchain data, transaction data, node information and contract information is collected and stored by adopting a corresponding table, so that the blockchain information is comprehensively and accurately collected and pushed, and convenience is brought to users.

Description

Block chain information pushing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for pushing blockchain information, a computer device, and a storage medium.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in the blockchain system.
At present, more and more people pay attention to the block chain technology, the block chain technology has the advantages of reliability, openness, convenience and the like, and the block chain technology is applied to more and more technologies and fields in the internet.
In the conventional block chain technology, a block chain management system is adopted for data management, most of the management systems manage underlying block chain network nodes, and block chain information which can be pushed to a user (manager) is very limited, so that powerful data support cannot be provided for the user to know the block chain condition.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for pushing blockchain information, which are comprehensive in pushing blockchain information.
A method of blockchain information push, the method comprising:
sending a database access request to a block chain management system, and establishing connection with the block chain management system;
reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information;
and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information.
In one embodiment, the counting information in the latest block chain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different counting periods, and pushing the counted information includes:
counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods;
dividing the counted information into quantity information and detail information;
and pushing the quantity information in a real-time updating mode and pushing the detail information in an access feedback mode.
In one embodiment, the periodically generating a data capture instruction carrying a capture data type, and updating the capture data into a data table corresponding to the type includes:
periodically generating a data grabbing instruction carrying a data grabbing type;
sending the data fetching instruction to the blockchain management system;
receiving the captured data fed back by the block chain management system;
and maintaining the format and the encryption state of the captured data, and updating the captured data into a data table corresponding to the type.
In one embodiment, after pushing the counted information, the method further includes:
and displaying the counted information by adopting a graphic display mode, a block display mode or a log display mode through a visualization tool.
In one embodiment, the sending the database access request to the blockchain management system, and the establishing the connection with the blockchain management system includes:
sending a database access request to a block chain management system, wherein the database access request carries a database identity identifier;
receiving a data table required to be filled in for registration fed back by the block chain management system;
sending the filled data table required for registration to the block chain management system;
receiving an access port distributed by a block chain management system;
and establishing connection with the block chain management system according to the access port.
In one embodiment, before reading the preset blockchain information table, the blockchain data table, the transaction data table, the node information table, and the contract information table, the method further includes:
running table generating software to generate a block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
acquiring data volume proportion of block chain information, block data, transaction data, node information and contract information in historical records in unit time;
distributing storage spaces of a block chain information table, a block data table, a transaction data table, a node information table and a contract information table according to the size proportion of the data volume;
and storing the block chain information table, the block data table, the transaction data table, the node information table and the contract information table to a storage position matched with a storage space.
In one embodiment, the method for pushing block chain information further includes:
when the block chain state is monitored to be changed, creating temporary block chain information, block data, transaction data, node information and contract information capture tasks;
and respectively storing the temporarily captured data into data tables corresponding to the types.
A blockchain information push apparatus, the apparatus comprising:
the connection module is used for sending a database access request to the block chain management system and establishing connection with the block chain management system;
the table reading module is used for reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
the updating module is used for periodically generating a data capturing instruction carrying a data capturing type and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information;
and the pushing module is used for counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods and pushing the counted information.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method as described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.
The block chain information pushing method, the block chain information pushing device, the computer equipment and the storage medium send the database access request to the block chain management system, and establish connection with the block chain management system; reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table; periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type; and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information. In the whole process, the blockchain information including blockchain information, blockchain data, transaction data, node information and contract information is collected and stored by adopting a corresponding table, so that the blockchain information is comprehensively and accurately collected and pushed, and convenience is brought to users.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for pushing blockchain information;
fig. 2 is a flowchart illustrating a method for pushing blockchain information according to an embodiment;
fig. 3 is a flowchart illustrating a method for pushing blockchain information according to another embodiment;
fig. 4 is a block diagram illustrating an exemplary embodiment of a device for pushing blockchain information;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The block chain information pushing method provided by the present application can be applied to the application environment shown in fig. 1. The database server 102 communicates with the blockchain management server 104 and the terminal 106 via a network. The database server 102 sends a database access request to the blockchain management server 104, a connection with the blockchain management server 104 is established, the database server 102 reads a preset blockchain information table, a preset blockchain data table, a preset transaction data table, a preset node information table and a preset contract information table, periodically generates a data capture instruction carrying a capture data type, updates the captured data into a data table corresponding to the type, repeatedly counts information in the latest blockchain information table, the latest transaction data table, the latest node information table and the latest contract information table according to different counting periods, and pushes the counted information to the terminal 106. The terminal 106 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, a method for pushing blockchain information is provided, which is described by taking the method as an example applied to the database server in fig. 1, and includes the following steps:
s200: and sending a database access request to the block chain management system, and establishing connection with the block chain management system.
And constructing an independent database server at the side of the block chain management system, sending an access request to the block chain management server by the database server, waiting for an access permission message fed back by the block chain relationship system, and establishing connection with the block chain management system when receiving the access permission message. The access request sent by the database server will carry its own identity, and the access permission message returned by the block chain management system will carry the allocated access port, etc. Specifically, interaction needs to be performed between a database server and a block chain management system for multiple times, the database server sends an access request, the block chain management system returns and registers data required to be filled to the database server, the database server fills the data required to be filled and sends the data to the block chain management system, the block chain management system generates an access port according to the filled data and sends the access port to the database server, and the database server is connected with the block chain management system through the access port.
S400: reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table.
The method comprises the steps that a block chain information table, a block data table, a transaction data table, a node information table and a contract information table are pre-constructed in a database server, attention is paid to transaction data and contract information data, and a corresponding data table is constructed according to the block chain information, the block data, the transaction data, the node information and the contract information, so that subsequently captured data are stored in the corresponding table, and accurate storage of various types of data and operation of subsequent processing (such as statistics and pushing) are achieved. Optionally, the blockchain information table, the blockchain data table, the transaction data table, the node information table and the contract information table are respectively stored in different areas, and different storage spaces are arranged in the storage areas so as to update and store corresponding types of data.
S600: and periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information.
The database server periodically creates data capture tasks, each data capture task has a definite target type of data to be captured, for example, a data capture task for capturing block chain information is created, the task specifies block chain information which needs to be captured currently, captured data of the task is stored into a block chain information table in the later period, and if a data capture task for capturing contract information is created, the task specifies contract information which needs to be captured currently, and captured contract information data is stored into a contract information table. It should be noted that, further parsing, decryption, or format conversion may not be performed on the captured data, and when the captured data is ciphertext data, the data in the form of ciphertext is directly written into the corresponding data table.
S800: and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information.
The different statistical periods include year, month, week, day, hour, minute, etc., that is, for the data stored in the database server for the block chain information table, the block data table, the transaction data table, the node information table and the contract information table, statistics is performed in a year, month, week, day, hour and minute manner, respectively, and the counted data is pushed to the user. The statistical data of different time dimensions can be obtained by adopting different statistical periods and counting the data for multiple times, the change conditions of block chains, blocks, transactions, nodes and contracts under different time nodes are recorded in the statistical process, and the change conditions are written into the corresponding data table according to the time sequence, so that the data can be pushed to a user according to the time dimension subsequently, and convenience is brought to the user.
The block chain information pushing method sends a database access request to a block chain management system, and establishes connection with the block chain management system; reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table; periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type; and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information. In the whole process, the blockchain information including blockchain information, blockchain data, transaction data, node information and contract information is collected and stored by adopting a corresponding table, so that the blockchain information is comprehensively and accurately collected and pushed, and convenience is brought to users.
As shown in fig. 3, in one embodiment, step S800 includes:
s820: and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods.
S840: and dividing the information after statistics into quantity information and detail information.
S860: and pushing quantity information in a real-time updating mode and pushing detailed information in an access feedback mode.
The statistical quantity information refers to information related to quantity, such as the number of blocks, the number of transaction entries, the number of activated nodes, and the number of contract entries, and the statistical quantity information represents the activity level and the load level of the current blockchain, which conveys the approximate operation condition of the whole blockchain. The statistical detail information refers to the counted list information, such as each transaction list, the operation condition and connection condition of each node, the detail information of each contract, and the like, and the statistical detail information represents the current block chain operation detail condition, generally, the data size is large, and the data size needs to be pushed to the user under a proper or required condition. The access feedback mode means that the server pushes the detail information to the user only when the user actively accesses the server to request for pushing the detail information. In practical application, the server pushes the counted quantity information to the user in a real-time display updating mode, the user needs to further know the detail information when browsing the counted quantity information, the user sends an access request to the server, the access request carries an information type of the required detail information, and the server feeds back the detail information corresponding to the information type carried in the access request. For example, when a user browses the current number of contract items, the user needs to further know the detail information of some contracts, clicks the number of the contract items, sends an access request to the server, the type of the detail information carried in the access request is contract information, and the server displays the detail information of each contract to the user.
In the embodiment, different data are pushed in different modes respectively, so that more and more comprehensive data can be displayed to a user in a limited time and space range. Taking data recorded in a transaction data table as an example, a server acquires A pieces of transaction information within 1 minute, the A pieces of transaction information are updated and written into the transaction data table in a database, the server counts that the transaction data information has A pieces, and the detail information respectively corresponding to the A pieces of transaction information is a, b and c … …, the server actively pushes the currently acquired A pieces of transaction information, and when a user browses the information, if the user wants to further know the detail information of the transaction information, the server performs access operation on the server, and the server responds to the access operation of the user and pushes the detail information corresponding to the A pieces of transaction information to the user.
In one embodiment, periodically generating a data capture instruction carrying a capture data type, and updating the capture data into a data table corresponding to the type includes: periodically generating a data grabbing instruction carrying a data grabbing type; sending a data capturing instruction to a block chain management system; receiving the captured data fed back by the block chain management system; and keeping the format and the encryption state of the captured data, and updating the captured data into a data table corresponding to the type.
The method comprises the steps that a database server requests a blockchain management system to capture different types of data in a mode of generating and sending a data capture instruction, the blockchain management system captures data of a type specified by the data capture instruction after responding to the data capture instruction and feeds the captured data back to the database server, the database server stores the data into a corresponding data table according to the fed data in a classified mode, and the captured data format and the encryption state are kept in the storage process. For example, if the captured block data is ciphertext data, the data updated to the block table is also ciphertext data, and the data is not decrypted.
In one embodiment, counting information in the block chain information table, the block data table, the transaction data table, the node information table, and the contract information table according to different time dimensions, and pushing the counted information further includes: and displaying the counted information by adopting a graphic display mode, a block display mode or a log display mode through a visualization tool.
The information after the statistics can be efficiently pushed to the user through visual display of the information after the statistics. Specifically, the visualization includes a graphical display, a block display, or a log display. The content of the graphic display comprises: displaying the on-line or off-line state of the block chain state service; displaying the connection or disconnection state of each node in the block chain in real time; displaying an initiator and a propagation process of the blockchain transaction in real time; the content displayed by the block comprises: a stack of blocks displayed in a foldable manner; the block content displayed in tree form; automatic layout of network-in and network-out nodes; the log display content includes the number of automatically updated blocks, the number of transactions, etc. In particular, different visualization tools may be utilized for different visualization needs, which may be used to create a dialog box or other interface to display variables or objects in a manner appropriate for the type of variable or object data. For example, an HTML (HyperText Markup Language) visualization tool interprets an HTML string and displays a result as it appears in a browser window; conventional visualization tools include text visualization tools, HTML visualization tools, XML (Extensible Markup Language) visualization tools, WPF (Windows Presentation Foundation) tree visualization tools, and dataset visualization tools.
As shown in fig. 3, in one embodiment, step S200 includes:
s210: and sending a database access request to the block chain management system, wherein the database access request carries the database identity identification.
S220: and receiving a data table required for registration fed back by the block chain management system.
S230: and sending the filled data table required for registration to the blockchain management system.
S240: an access port assigned by the blockchain management system is received.
S250: and establishing connection with the block chain management system according to the access port.
When the database requests to access the block chain management system, registration is needed, and when the registration is completed, the database accesses the block chain management system according to the feedback access port of the block chain management system. Specifically, the database server sends an access request to the blockchain management system, the access request carries an identity tag of the database, the blockchain management system inquires whether the identity tag is in a white list or not according to the received identity tag, when the identity tag is in the white list, the blockchain management system determines that the database server is legal and allows access equipment, sends a filling data table required for registration to the database server, the database server correspondingly fills relevant information of the database server into the filling data table required for registration, sends the filled filling data table required for registration to the blockchain management system, the blockchain management system completes registration on the database server, allocates an access port and sends the access port to the blockchain management system, and the database server establishes connection with the blockchain management system according to the allocated access port.
In one embodiment, before reading the preset blockchain information table, the blockchain data table, the transaction data table, the node information table, and the contract information table, the method further includes: running table generating software to generate a block chain information table, a block data table, a transaction data table, a node information table and a contract information table; acquiring data volume proportion of block chain information, block data, transaction data, node information and contract information in historical records in unit time; according to the data volume size proportion, allocating a block chain information table, a block data table, a transaction data table, a node information table and a contract information table storage space; and storing the block chain information table, the block data table, the transaction data table, the node information table and the contract information table to a storage position matched with the storage space.
The table generation software can be pre-loaded into the database server, when the table generation software is operated, 5 tables are generated, the database server defines the 5 tables as a block chain information table, a block data table, a transaction data table, a node information table and a contract information table, and the database server allocates reasonable storage space to the 5 tables according to the data volume size proportion of each type of information in the history record, and then stores the 5 tables to the storage position matched with the storage space. In the above example, the table is efficiently generated by using the table generation software, and the difference in information amount between different types of information is considered, so that the storage space corresponding to each type of information table is reasonably allocated, thereby facilitating reasonable use of storage resources and bringing convenience to users.
In one embodiment, the block chain information pushing method further includes: when the block chain state is monitored to be changed, creating temporary block chain information, block data, transaction data, node information and contract information capture tasks; and respectively storing the temporarily captured data into data tables corresponding to the types.
Besides the data capture from the block chain management system periodically, a temporary data capture task is actively created according to the running state change condition of the block chain, the corresponding data is captured at the first time when the state of the block chain changes, the monitoring and the real-time data pushing of the block chain state are realized, and convenience is brought to users. The database server performs data capture according to a preset capture cycle, analyzes captured data, for example, compares the captured data with a previous capture time point, creates a temporary data capture task when data fluctuation is abnormal, improves data capture frequency, and more accurately tracks the running condition of the block chain.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 4, an apparatus for pushing blockchain information includes:
a connection module 200, configured to send a database access request to the blockchain management system, and establish a connection with the blockchain management system;
a table reading module 400, configured to read a preset block chain information table, a block data table, a transaction data table, a node information table, and a contract information table;
the updating module 600 is configured to periodically generate a data capture instruction carrying a capture data type, and update the captured data into a data table corresponding to the type, where the data type includes block chain information, block data, transaction data, node information, and contract information;
the pushing module 800 is configured to count information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table, and the latest contract information table multiple times according to different counting periods, and push the counted information.
In the device for pushing blockchain information, the connection module 200 sends a database access request to the blockchain management system, and establishes a connection with the blockchain management system; the table reading module 400 reads a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table; the updating module 600 periodically generates a data capture instruction carrying a capture data type, and updates the captured data into a data table corresponding to the type; the pushing module 800 counts information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table, and the latest contract information table for many times according to different counting periods, and pushes the counted information. In the whole process, the blockchain information including blockchain information, blockchain data, transaction data, node information and contract information is collected and stored by adopting a corresponding table, so that the blockchain information is comprehensively and accurately collected and pushed, and convenience is brought to users.
In one embodiment, the pushing module 800 is further configured to count information in the latest blockchain information table, blockdata table, transaction data table, node information table, and contract information table multiple times according to different counting periods; dividing the counted information into quantity information and detail information; and pushing quantity information in a real-time updating mode and pushing detailed information in an access feedback mode.
In one embodiment, the update module 600 is further configured to periodically generate a data fetch instruction carrying a data fetch type; sending a data capturing instruction to a block chain management system; receiving the captured data fed back by the block chain management system; and keeping the format and the encryption state of the captured data, and updating the captured data into a data table corresponding to the type.
The block chain information pushing device further comprises a visualization module, and the visualization module is used for displaying the counted information in a graphic display mode, a block display mode or a log display mode through a visualization tool.
In one embodiment, the connection module 200 is further configured to send a database access request to the blockchain management system, where the database access request carries a database identity identifier; receiving a data table required to be filled in for registration fed back by the block chain management system; sending the filled data table required for registration to the block chain management system; receiving an access port distributed by a block chain management system; and establishing connection with the block chain management system according to the access port.
In one embodiment, the device for pushing blockchain information further includes a table generation module, configured to run table generation software to generate a blockchain information table, a blockchain data table, a transaction data table, a node information table, and a contract information table; acquiring data volume proportion of block chain information, block data, transaction data, node information and contract information in historical records in unit time; according to the data volume size proportion, allocating a block chain information table, a block data table, a transaction data table, a node information table and a contract information table storage space; and storing the block chain information table, the block data table, the transaction data table, the node information table and the contract information table to a storage position matched with the storage space.
In one embodiment, the device for pushing block chain information further includes a detection module, configured to create a temporary block chain information, block data, transaction data, node information, and a contract information capture task when a change in a state of the block chain is detected; and respectively storing the temporarily captured data into data tables corresponding to the types.
For specific limitations of the apparatus for pushing blockchain information, reference may be made to the above limitations of the method for pushing blockchain information, which are not described herein again. The modules in the block chain information pushing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data related to the historical blockchain. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for pushing block chain information.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
sending a database access request to a block chain management system, and establishing connection with the block chain management system;
reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information;
and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods; dividing the counted information into quantity information and detail information; and pushing quantity information in a real-time updating mode and pushing detailed information in an access feedback mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
periodically generating a data grabbing instruction carrying a data grabbing type; sending a data capturing instruction to a block chain management system; receiving the captured data fed back by the block chain management system; and keeping the format and the encryption state of the captured data, and updating the captured data into a data table corresponding to the type.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and displaying the counted information by adopting a graphic display mode, a block display mode or a log display mode through a visualization tool.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
sending a database access request to a block chain management system, wherein the database access request carries a database identity identifier; receiving a data table required to be filled in for registration fed back by the block chain management system; sending the filled data table required for registration to the block chain management system; receiving an access port distributed by a block chain management system; and establishing connection with the block chain management system according to the access port.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
running table generating software to generate a block chain information table, a block data table, a transaction data table, a node information table and a contract information table; acquiring data volume proportion of block chain information, block data, transaction data, node information and contract information in historical records in unit time; according to the data volume size proportion, allocating a block chain information table, a block data table, a transaction data table, a node information table and a contract information table storage space; and storing the block chain information table, the block data table, the transaction data table, the node information table and the contract information table to a storage position matched with the storage space.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the block chain state is monitored to be changed, creating temporary block chain information, block data, transaction data, node information and contract information capture tasks; and respectively storing the temporarily captured data into data tables corresponding to the types.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
sending a database access request to a block chain management system, and establishing connection with the block chain management system;
reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information;
and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods; dividing the counted information into quantity information and detail information; and pushing quantity information in a real-time updating mode and pushing detailed information in an access feedback mode.
In one embodiment, the computer program when executed by the processor further performs the steps of:
periodically generating a data grabbing instruction carrying a data grabbing type; sending a data capturing instruction to a block chain management system; receiving the captured data fed back by the block chain management system; and keeping the format and the encryption state of the captured data, and updating the captured data into a data table corresponding to the type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and displaying the counted information by adopting a graphic display mode, a block display mode or a log display mode through a visualization tool.
In one embodiment, the computer program when executed by the processor further performs the steps of:
sending a database access request to a block chain management system, wherein the database access request carries a database identity identifier; receiving a data table required to be filled in for registration fed back by the block chain management system; sending the filled data table required for registration to the block chain management system; receiving an access port distributed by a block chain management system; and establishing connection with the block chain management system according to the access port.
In one embodiment, the computer program when executed by the processor further performs the steps of:
running table generating software to generate a block chain information table, a block data table, a transaction data table, a node information table and a contract information table; acquiring data volume proportion of block chain information, block data, transaction data, node information and contract information in historical records in unit time; according to the data volume size proportion, allocating a block chain information table, a block data table, a transaction data table, a node information table and a contract information table storage space; and storing the block chain information table, the block data table, the transaction data table, the node information table and the contract information table to a storage position matched with the storage space.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the block chain state is monitored to be changed, creating temporary block chain information, block data, transaction data, node information and contract information capture tasks; and respectively storing the temporarily captured data into data tables corresponding to the types.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of blockchain information push, the method comprising:
sending a database access request to a block chain management system, and establishing connection with the block chain management system;
reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
periodically generating a data capture instruction carrying a capture data type, and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information;
and counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for many times according to different counting periods, and pushing the counted information.
2. The method according to claim 1, wherein the counting information in the latest blockchain information table, blockdata table, transaction data table, node information table and contract information table for a plurality of times according to different counting periods, and the pushing the counted information comprises:
counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods;
dividing the counted information into quantity information and detail information;
and pushing the quantity information in a real-time updating mode and pushing the detail information in an access feedback mode.
3. The method according to claim 1, wherein the periodically generating a data fetch instruction carrying a data fetch type, and updating the fetched data into a data table corresponding to the type comprises:
periodically generating a data grabbing instruction carrying a data grabbing type;
sending the data fetching instruction to the blockchain management system;
receiving the captured data fed back by the block chain management system;
and maintaining the format and the encryption state of the captured data, and updating the captured data into a data table corresponding to the type.
4. The method of claim 1, wherein after pushing the statistical information, further comprising:
and displaying the counted information by adopting a graphic display mode, a block display mode or a log display mode through a visualization tool.
5. The method of claim 1, wherein sending a database access request to a blockchain management system, establishing a connection with the blockchain management system comprises:
sending a database access request to a block chain management system, wherein the database access request carries a database identity identifier;
receiving a data table required to be filled in for registration fed back by the block chain management system;
sending the filled data table required for registration to the block chain management system;
receiving an access port distributed by a block chain management system;
and establishing connection with the block chain management system according to the access port.
6. The method of claim 1, wherein before reading the predetermined blockchain information table, the blockdata table, the transaction data table, the node information table, and the contract information table, the method further comprises:
running table generating software to generate a block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
acquiring data volume proportion of block chain information, block data, transaction data, node information and contract information in historical records in unit time;
distributing storage spaces of a block chain information table, a block data table, a transaction data table, a node information table and a contract information table according to the size proportion of the data volume;
and storing the block chain information table, the block data table, the transaction data table, the node information table and the contract information table to a storage position matched with a storage space.
7. The method of claim 1, further comprising:
when the block chain state is monitored to be changed, creating temporary block chain information, block data, transaction data, node information and contract information capture tasks;
and respectively storing the temporarily captured data into data tables corresponding to the types.
8. A block chain information pushing apparatus, the apparatus comprising:
the connection module is used for sending a database access request to the block chain management system and establishing connection with the block chain management system;
the table reading module is used for reading a preset block chain information table, a block data table, a transaction data table, a node information table and a contract information table;
the updating module is used for periodically generating a data capturing instruction carrying a data capturing type and updating the captured data into a data table corresponding to the type, wherein the data type comprises block chain information, block data, transaction data, node information and contract information;
and the pushing module is used for counting the information in the latest block chain information table, the latest block data table, the latest transaction data table, the latest node information table and the latest contract information table for multiple times according to different counting periods and pushing the counted information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910374148.4A 2019-05-07 2019-05-07 Block chain information pushing method and device, computer equipment and storage medium Active CN110266752B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910374148.4A CN110266752B (en) 2019-05-07 2019-05-07 Block chain information pushing method and device, computer equipment and storage medium
PCT/CN2019/122488 WO2020224253A1 (en) 2019-05-07 2019-12-02 Blockchain information pushing method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910374148.4A CN110266752B (en) 2019-05-07 2019-05-07 Block chain information pushing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110266752A CN110266752A (en) 2019-09-20
CN110266752B true CN110266752B (en) 2021-11-12

Family

ID=67914245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910374148.4A Active CN110266752B (en) 2019-05-07 2019-05-07 Block chain information pushing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110266752B (en)
WO (1) WO2020224253A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266752B (en) * 2019-05-07 2021-11-12 深圳壹账通智能科技有限公司 Block chain information pushing method and device, computer equipment and storage medium
CN112417268A (en) * 2019-12-20 2021-02-26 周梦洁 Block chain-based related information pushing method
CN111539005A (en) * 2020-04-23 2020-08-14 中国电子技术标准化研究院 Block chain data identification method and related device oriented to data security policy
CN111638963A (en) * 2020-06-08 2020-09-08 杭州复杂美科技有限公司 Transaction pool dynamic control method, device and storage medium
CN111932251A (en) * 2020-07-03 2020-11-13 杭州云象网络技术有限公司 Block chain-based digital currency transaction visualization method and system
CN112286984B (en) * 2020-09-29 2021-06-22 卓尔智联(武汉)研究院有限公司 Block data processing method and device, computer equipment and storage medium
CN112487282A (en) * 2020-11-04 2021-03-12 山东中创软件商用中间件股份有限公司 Business processing condition monitoring method and device, electronic equipment and storage medium
CN112507028B (en) * 2020-12-18 2023-02-21 杭州趣链科技有限公司 Data storage method, device, equipment and storage medium
CN113268546B (en) * 2021-06-15 2022-04-01 中国电子科技网络信息安全有限公司 Block chain account book data capture analysis method
CN113961545B (en) * 2021-10-26 2022-04-26 北京市科学技术情报研究所 Block chain-based information value database construction method
CN113885927A (en) * 2021-10-28 2022-01-04 中国平安人寿保险股份有限公司 Robot node system updating method, device, equipment and storage medium
CN118211941B (en) * 2024-05-21 2024-08-02 江苏移动信息系统集成有限公司 Automatic community work order circulation method and system based on RPA

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358502A (en) * 2017-07-04 2017-11-17 深圳齐心集团股份有限公司 A kind of electronic commerce information supplying system
CN108259594A (en) * 2018-01-11 2018-07-06 杭州秘猿科技有限公司 A kind of data interaction system and Relay Server based on block chain
CN108881362A (en) * 2018-01-03 2018-11-23 上海指旺信息科技有限公司 A kind of browser platform based on block chain
CN108933819A (en) * 2018-06-26 2018-12-04 尹煦 A kind of information-pushing method based on block chain
CN109558411A (en) * 2017-09-26 2019-04-02 浙江华信区块链科技服务有限公司 A kind of lower chain synchronous method and device based on block chain data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11165589B2 (en) * 2017-05-11 2021-11-02 Shapeshift Ag Trusted agent blockchain oracle
WO2019078622A1 (en) * 2017-10-17 2019-04-25 주식회사 코인플러그 Blockchain-based payment method, and payment server using same
CN109145006A (en) * 2018-09-21 2019-01-04 深圳蜜獾智抄科技有限公司 A kind of collection copies data analysis management system
CN110266752B (en) * 2019-05-07 2021-11-12 深圳壹账通智能科技有限公司 Block chain information pushing method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358502A (en) * 2017-07-04 2017-11-17 深圳齐心集团股份有限公司 A kind of electronic commerce information supplying system
CN109558411A (en) * 2017-09-26 2019-04-02 浙江华信区块链科技服务有限公司 A kind of lower chain synchronous method and device based on block chain data
CN108881362A (en) * 2018-01-03 2018-11-23 上海指旺信息科技有限公司 A kind of browser platform based on block chain
CN108259594A (en) * 2018-01-11 2018-07-06 杭州秘猿科技有限公司 A kind of data interaction system and Relay Server based on block chain
CN108933819A (en) * 2018-06-26 2018-12-04 尹煦 A kind of information-pushing method based on block chain

Also Published As

Publication number Publication date
WO2020224253A1 (en) 2020-11-12
CN110266752A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110266752B (en) Block chain information pushing method and device, computer equipment and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN109766253B (en) Performance data sending method and device, computer equipment and storage medium
CN111310427A (en) Service data configuration processing method and device, computer equipment and storage medium
CN112148674A (en) Log data processing method and device, computer equipment and storage medium
CN110620812A (en) Interactive information pushing method and device, computer equipment and storage medium
CN109885624A (en) Data processing method, device, computer equipment and storage medium
US20180159724A1 (en) Automatic task tracking
CN112612988A (en) Page processing method and device, computer equipment and storage medium
CN111258466A (en) Data visualization method and device, computer equipment and storage medium
CN112765497A (en) Business data analysis result query display method, device, equipment and medium
CN112017007A (en) User behavior data processing method and device, computer equipment and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN114218283A (en) Abnormality detection method, apparatus, device, and medium
US20230073190A1 (en) Method for providing scraping-based service and application for executing the same
CN111797297B (en) Page data processing method and device, computer equipment and storage medium
CN113221039A (en) Page display method and device, computer equipment and storage medium
CN112613275A (en) Receipt generation method and device, computer equipment and storage medium
CN113535726A (en) Database capacity expansion method and device
CN112862449A (en) Structural chemical industry bill generation method and device, computer equipment and storage medium
CN114780895A (en) Business object recommendation method and device, computer equipment and storage medium
CN109711809B (en) Merchant attribute setting method and device, computer equipment and storage medium
CN114185543A (en) Dynamic page generation method and device, computer equipment and storage medium
CN114116761A (en) Variable processing method, variable processing device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant