WO2020224253A1 - Blockchain information pushing method and apparatus, computer device and storage medium - Google Patents

Blockchain information pushing method and apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2020224253A1
WO2020224253A1 PCT/CN2019/122488 CN2019122488W WO2020224253A1 WO 2020224253 A1 WO2020224253 A1 WO 2020224253A1 CN 2019122488 W CN2019122488 W CN 2019122488W WO 2020224253 A1 WO2020224253 A1 WO 2020224253A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
information
blockchain
information table
management system
Prior art date
Application number
PCT/CN2019/122488
Other languages
French (fr)
Chinese (zh)
Inventor
薛明策
冯承勇
张松松
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020224253A1 publication Critical patent/WO2020224253A1/en

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]

Definitions

  • This application relates to a blockchain information push method, device, computer equipment and storage medium.
  • Blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • the so-called consensus mechanism is a mathematical algorithm in the blockchain system to establish trust between different nodes and obtain rights and interests.
  • Blockchain technology has the advantages of reliability, openness, and convenience. Blockchain technology is applied in more and more technologies and fields in the Internet.
  • the blockchain management system In traditional blockchain technology, the blockchain management system is used for data management. Most management systems manage the underlying blockchain network nodes. The blockchain information that can be pushed to users (managers) is very Limited, unable to provide strong data support for users to understand the blockchain situation.
  • a blockchain information push method is provided.
  • a method for pushing blockchain information including:
  • the data type includes blockchain information, block data, transaction data, node information, and Contract information;
  • a block chain information push device including:
  • connection module is used to send a database access request to the blockchain management system and establish a connection with the blockchain management system;
  • the table reading module is used to read the preset block chain information table, block data table, transaction data table, node information table and contract information table;
  • the update module is used to periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type.
  • the data type includes block chain information, block data, transaction Data, node information and contract information;
  • the push module is used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods, and push the statistical information.
  • a computer device including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
  • the data type includes blockchain information, block data, transaction data, node information, and Contract information;
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • the data type includes blockchain information, block data, transaction data, node information, and Contract information;
  • Fig. 1 is an application scenario diagram of a method for pushing blockchain information according to one or more embodiments.
  • Fig. 2 is a schematic flowchart of a method for pushing blockchain information according to one or more embodiments.
  • Fig. 3 is a schematic flowchart of a method for pushing blockchain information in another embodiment.
  • Fig. 4 is a block diagram of a blockchain information pushing device according to one or more embodiments.
  • Figure 5 is a block diagram of a computer device according to one or more embodiments.
  • the blockchain information push method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the database server 102 communicates with the blockchain management server 104 and the terminal 106 through the network through the network.
  • the database server 102 sends a database access request to the blockchain management server 104 to establish a connection with the blockchain management server 104.
  • the database server 102 reads the preset blockchain information table, block data table, transaction data table, and node Information table and contract information table, periodically generate data capture instructions carrying the type of captured data, and update the captured data to the data table corresponding to the type. According to different statistical periods, count the latest blocks multiple times Information in the chain information table, block data table, transaction data table, node information table, and contract information table, and push the statistical information to the terminal 106.
  • the terminal 106 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • a method for pushing blockchain information is provided. Taking the method applied to the database server in FIG. 1 as an example, the method includes the following steps:
  • S200 Send a database access request to the blockchain management system to establish a connection with the blockchain management system.
  • the database server sends an access request to the blockchain management server, and waits for the access permission message fed back by the blockchain relationship system.
  • the access request sent by the database server will carry its own identity, and the access permission message returned by the blockchain management system will carry the assigned access port.
  • the database server sends an access request.
  • the blockchain management system returns the data required for registration to the database server, and the database server responds to the required data Fill in and send it to the blockchain management system.
  • the blockchain management system generates an access port based on the filled data, and sends the access port to the database server, which is connected to the blockchain management system through the access port.
  • S400 Read the preset blockchain information table, block data table, transaction data table, node information table, and contract information table.
  • Block chain information table, block data table, transaction data table, node information table, and contract information table are pre-built in the database server.
  • Block data, transaction data, node information, and contract information and construct the corresponding data table so that the subsequent captured data is stored in the corresponding table to achieve accurate storage of various types of data and subsequent processing (such as statistics, push) operating.
  • the block chain information table, block data table, transaction data table, node information table, and contract information table are stored in different areas. These storage areas are allocated with different storage spaces to update and store corresponding types of data. .
  • S600 Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type.
  • the data type includes blockchain information, block data, transaction data, node information, and Contract information.
  • the database server periodically creates data capture tasks.
  • Each data capture task has a clear target type for the data to be captured. For example, create a data capture task to capture blockchain information, which specifies the block that needs to be captured currently Chain information, the captured data will be stored in the blockchain information table in the future.
  • Another example is to create a data capture task that captures contract information. This task specifies the contract information that needs to be captured currently, and will capture The contract information data obtained is stored in the contract information table. It should be pointed out that for the captured data, no further analysis processing, decryption processing or format conversion processing is required.
  • the captured data is ciphertext data
  • the data in ciphertext form is directly written to the corresponding data. Table.
  • S800 According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for multiple times, and push the statistical information.
  • Different statistical periods include year, month, week, day, hour, minute, etc., which are stored in the database server for the blockchain information table, block data table, transaction data table, node information table, and contract information table.
  • the data is counted by year, month, week, day, hour, and minute, and the statistical data is pushed to users.
  • the changes in the blockchain, blocks, transactions, nodes and contracts at different time nodes are recorded according to time
  • the sequential writing into the corresponding data table facilitates the subsequent push of data to the user in the time dimension, which brings convenience to the user.
  • the above block chain information push method sends a database access request to the block chain management system to establish a connection with the block chain management system; reads the preset block chain information table, block data table, transaction data table, Node information table and contract information table; periodically generate data capture instructions that carry the type of captured data, and update the captured data to the data table corresponding to the type; according to different statistical periods, count the latest areas multiple times Information in the block chain information table, block data table, transaction data table, node information table, and contract information table, and push the statistical information.
  • collect blockchain information including blockchain information, block data, transaction data, node information, and contract information, and use the corresponding table storage to ensure that the blockchain information is comprehensive and accurate collection and push to users Bring convenience.
  • step S800 includes:
  • S820 According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for multiple times.
  • S860 Use real-time update method to push quantity information, and use visit feedback method to push detailed information.
  • the statistical quantitative information refers to the statistical information related to the quantity, such as the number of blocks, the number of transaction entries, the number of active nodes, and the number of contract entries.
  • the statistical information represents the current degree of activity and load of the blockchain, and its transmission This is the approximate operation of the entire blockchain. Generally speaking, its data volume is relatively small and it is convenient for users to receive and consult. Therefore, the real-time push method is adopted.
  • the statistical detailed information refers to the statistical list information, such as the list of each transaction, the operation and connection status of each node, the detailed information of each contract, etc. The statistical detailed information characterizes the current blockchain operation details. Generally speaking, the amount of data is relatively large and needs to be pushed to users under appropriate or necessary conditions.
  • the access feedback method means that the server pushes the detailed information to the user when the user actively accesses the server to request the detailed information.
  • the server uses real-time display updates to push the statistical information to the user.
  • the user browses the statistical information, he needs to learn more about the detailed information.
  • the user sends an access request to the server.
  • the access request carries some information.
  • the server feeds back the detailed information corresponding to the information type carried in the access request.
  • the access request carries the detailed information type as contract information, and the server will The detailed information of the contract is displayed to the user.
  • the server collected A piece of transaction information within 1 minute, and the A piece of transaction information was updated and written to the transaction data table in the database.
  • the server statistics transaction data information has A pieces, respectively
  • the corresponding detailed information is a, b, c..., the server actively pushes the currently collected transaction information.
  • the user browses this information, if he wants to know more about the transaction information, he can access the server.
  • the detailed information corresponding to the A piece of transaction information is pushed to the user.
  • periodically generating a data capture instruction carrying a type of captured data, and updating the captured data to a data table corresponding to the type includes: periodically generating a data capture carrying the type of captured data Fetch instructions; send data capture instructions to the blockchain management system; receive the captured data feedback from the blockchain management system; maintain the captured data format and encryption status, and update the captured data to the type The corresponding data sheet.
  • the database server requests the blockchain management system to capture different types of data by generating and sending data capture instructions. After the blockchain management system responds to the data capture instructions, it will specify the types of data for the data capture instructions Grabbing is performed and the captured data is fed back to the database server.
  • the database server sorts and stores the feedback data in the corresponding data table, and maintains the captured data format and encryption state during the storage process. For example, if the captured block data is ciphertext data, the data updated in the block table is also ciphertext data, and the data will not be decrypted.
  • counting the information in the blockchain information table, block data table, transaction data table, node information table, and contract information table according to different time dimensions, and pushing the statistical information further includes:
  • the visualization tool uses graphic display, block display or log display to display statistical information.
  • visualization includes the use of graphic display, block display or log display.
  • the content of the graphic display includes: display the connection or offline status of the blockchain status service; real-time display of the connection or offline status of each node in the blockchain; real-time display of the initiator and propagation process of the blockchain transaction; block display
  • the content includes: the block stack displayed in a collapsible manner; the block content displayed in a tree form; the automatic layout of the network and off-network nodes; the content of the log display includes the number of automatically updated blocks, the number of transactions, etc.
  • different visualization tools can be used for different visualization requirements.
  • Visualization tools can be used to create dialog boxes or other interfaces to display variables or objects in a manner suitable for the data types of variables or objects.
  • HTML HyperText Markup Language
  • Hypertext Markup Language Hypertext Markup Language
  • conventional visualization tools include text visualization tools, HTML visualization tools, and XML (Extensible Markup Language, Extensible Markup Language) visualization tool, WPF (Windows Presentation Foundation, Windows Presentation Foundation) tree visualization tool, and data set visualization tool.
  • step S200 includes:
  • S210 Send a database access request to the blockchain management system, where the database access request carries a database identity.
  • S220 Fill in the data sheet required to receive the registration feedback from the blockchain management system.
  • S230 Send the completed data sheet required for registration to the blockchain management system.
  • S240 Receive the access port allocated by the blockchain management system.
  • S250 Establish a connection with the blockchain management system according to the access port.
  • the database server When the database requests access to the blockchain management system, it needs to be registered. When the registration is completed, it will access the blockchain management system according to the feedback access port of the blockchain management system. Specifically, the database server sends an access request to the blockchain management system, and the access request carries the identity tag of the database, and the blockchain management system queries whether the identity tag is in the whitelist according to the received identity tag When in, the blockchain management system recognizes that the database server is a legal and allowed access device, and sends the data form required for registration to the database server, and the database server fills in the relevant information of itself to the data form required for registration, and Send the completed data sheet for registration to the blockchain management system. The blockchain management system completes the registration of the database server, allocates access ports, and sends the access ports to the blockchain management system. The database server The access port establishes a connection with the blockchain management system.
  • the table generation software before reading the preset block chain information table, block data table, transaction data table, node information table, and contract information table, it further includes: running the table generation software to generate the block chain information table , Block data table, transaction data table, node information table and contract information table; obtain the data volume ratio of block chain information, block data, transaction data, node information and contract information in the historical record per unit time; according to the data Allocate the storage space of the blockchain information table, block data table, transaction data table, node information table and contract information table; combine the blockchain information table, block data table, transaction data table, node information table and The contract information table is stored in a storage location that matches the storage space.
  • the table generation software can be pre-loaded into the database server. When the table generation software is run, it generates 5 tables.
  • the database server defines the 5 tables as blockchain information table, block data table, transaction data table, and node Information tables and contract information tables, and the database server allocates a reasonable storage space for the five tables according to the data size ratio of each type of information in the historical record, and then stores the five tables in a storage location matching the storage space.
  • the table generation software is used to efficiently generate tables, and considering the difference in the amount of information between different types of information, the storage space corresponding to each type of information table is reasonably allocated, which is beneficial to the rational use of storage resources and brings convenience to users.
  • the above-mentioned block chain information push method further includes: when a change in the state of the block chain is detected, creating temporary block chain information, block data, transaction data, node information, and contract information capture Task; store the temporarily captured data in the data table corresponding to the type.
  • the database server analyzes the captured data, for example, compares with the last capture time point, and creates a temporary data capture task when the data fluctuates abnormally. Increase the frequency of data capture and track the operation of the blockchain more accurately.
  • a block chain information push device the device includes:
  • connection module 200 is used to send a database access request to the blockchain management system to establish a connection with the blockchain management system;
  • the table reading module 400 is used to read the preset block chain information table, block data table, transaction data table, node information table and contract information table;
  • the update module 600 is used to periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type.
  • the data type includes blockchain information, block data, and transaction data. , Node information and contract information;
  • the push module 800 is used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods, and push the statistical information.
  • the connection module 200 sends a database access request to the block chain management system to establish a connection with the block chain management system;
  • the table reading module 400 reads the preset block chain information table and zone Block data table, transaction data table, node information table, and contract information table;
  • the update module 600 periodically generates a data capture instruction carrying the captured data type, and updates the captured data to the data table corresponding to the type;
  • push The module 800 counts information in the latest block chain information table, block data table, transaction data table, node information table, and contract information table multiple times according to different statistical periods, and pushes the statistical information.
  • collect blockchain information including blockchain information, block data, transaction data, node information, and contract information, and use the corresponding table storage to ensure that the blockchain information is comprehensive and accurate collection and push to users Bring convenience.
  • the push module 800 is also used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods;
  • the statistical information is divided into quantitative information and detailed information; the quantitative information is pushed in real-time update mode, and the detailed information is pushed in access feedback mode.
  • the update module 600 is also used to periodically generate a data capture instruction carrying the type of captured data; send the data capture instruction to the blockchain management system; receive the capture feedback from the blockchain management system The captured data; keep the captured data format and encryption status, and update the captured data to the data table corresponding to the type.
  • the above-mentioned block chain information pushing device also includes a visualization module, which is used to display the statistical information through a visualization tool in a graphic display, block display or log display mode.
  • connection module 200 is also used to send a database access request to the blockchain management system, the database access request carries the database identity; to receive the feedback of the blockchain management system to fill in the data form required for registration; and send The completed registration needs to fill in the data sheet to the blockchain management system; receive the access port allocated by the blockchain management system; establish a connection with the blockchain management system according to the access port.
  • the above-mentioned block chain information pushing device further includes a table generation module for running table generation 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 ; Obtain the data volume ratio of block chain information, block data, transaction data, node information and contract information in the historical record per unit time; according to the data volume ratio, distribute the block chain information table, block data table, and transaction Data table, node information table, and contract information table storage space; store the blockchain information table, block data table, transaction data table, node information table, and contract information table to a storage location matching the storage space.
  • a table generation module for running table generation 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 ;
  • the above-mentioned blockchain information pushing device further includes a detection module, which is used to create temporary blockchain information, block data, transaction data, and node information when the state of the blockchain is detected to change.
  • a detection module which is used to create temporary blockchain information, block data, transaction data, and node information when the state of the blockchain is detected to change.
  • contract information capture task the temporarily captured data is stored in the data table corresponding to the type.
  • Each module in the above-mentioned blockchain information pushing device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 5.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile 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 the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used to store historical blockchain-related data.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a blockchain information push method.
  • FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors implement the methods provided in any of the embodiments of the present application.
  • the steps of the blockchain information push.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors implement any one of the embodiments of the present application. Provide the steps for pushing blockchain information.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

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

Abstract

Provided is a blockchain information pushing method. The method comprises: sending a database access request to a blockchain management system, and establishing a connection with the blockchain management system; reading a preset blockchain 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 the type of data to be captured, and updating the captured data in a data table corresponding to the type thereof; and compiling statistics on information in the latest blockchain 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 statistical periods, and pushing the information after compiling the statistics.

Description

区块链信息推送方法、装置、计算机设备和存储介质Block chain information push method, device, computer equipment and storage medium
相关申请的交叉引用Cross references to related applications
本申请要求于2019年05月07日提交中国专利局,申请号为2019103741484,申请名称为“区块链信息推送方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 07, 2019. The application number is 2019103741484 and the application name is "Blockchain information push method, device, computer equipment and storage medium". Incorporated in this application by reference.
技术领域Technical field
本申请涉及一种区块链信息推送方法、装置、计算机设备和存储介质。This application relates to a blockchain information push method, device, computer equipment and storage medium.
背景技术Background technique
区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。所谓共识机制是区块链系统中实现不同节点之间建立信任、获取权益的数学算法。Blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. The so-called consensus mechanism is a mathematical algorithm in the blockchain system to establish trust between different nodes and obtain rights and interests.
目前越来越多的人关注区块链技术,区块链技术具有可靠、开放、便捷等优势,在互联网中越来越多的技术和领域都应用区块链技术。At present, more and more people are paying attention to blockchain technology. Blockchain technology has the advantages of reliability, openness, and convenience. Blockchain technology is applied in more and more technologies and fields in the Internet.
传统区块链技术中,采用区块链管理系统进行数据的管理,大多数管理系统都是进行底层区块链网络节点的管理,其能够推送给到用户(管理者)的区块链信息非常有限,无法为用户了解区块链情况提供有力的数据支持。In traditional blockchain technology, the blockchain management system is used for data management. Most management systems manage the underlying blockchain network nodes. The blockchain information that can be pushed to users (managers) is very Limited, unable to provide strong data support for users to understand the blockchain situation.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种区块链信息推送方法、装置、计算机设备和存储介质。According to various embodiments disclosed in this application, a blockchain information push method, device, computer equipment, and storage medium are provided.
一种区块链信息推送方法,包括:A method for pushing blockchain information, including:
发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;Send a database access request to the blockchain management system to establish a connection with the blockchain management system;
读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;Read the preset blockchain information table, block data table, transaction data table, node information table and contract information table;
周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information; and
根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。According to different statistical cycles, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for many times, and push the statistical information.
一种区块链信息推送装置,包括:A block chain information push device, including:
连接模块,用于发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;The connection module is used to send a database access request to the blockchain management system and establish a connection with the blockchain management system;
表格读取模块,用于读取预设的区块链信息表、区块数据表、交易数据表、节点信息 表以及合约信息表;The table reading module is used to read the preset block chain information table, block data table, transaction data table, node information table and contract information table;
更新模块,用于周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及The update module is used to periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes block chain information, block data, transaction Data, node information and contract information; and
推送模块,用于根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。The push module is used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods, and push the statistical information.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device, including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;Send a database access request to the blockchain management system to establish a connection with the blockchain management system;
读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;Read the preset blockchain information table, block data table, transaction data table, node information table and contract information table;
周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information; and
根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。According to different statistical cycles, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for many times, and push the statistical information.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;Send a database access request to the blockchain management system to establish a connection with the blockchain management system;
读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;Read the preset blockchain information table, block data table, transaction data table, node information table and contract information table;
周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information; and
根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。According to different statistical cycles, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for many times, and push the statistical information.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为根据一个或多个实施例中区块链信息推送方法的应用场景图。Fig. 1 is an application scenario diagram of a method for pushing blockchain information according to one or more embodiments.
图2为根据一个或多个实施例中区块链信息推送方法的流程示意图。Fig. 2 is a schematic flowchart of a method for pushing blockchain information according to one or more embodiments.
图3为又一个实施例中区块链信息推送方法的流程示意图。Fig. 3 is a schematic flowchart of a method for pushing blockchain information in another embodiment.
图4为根据一个或多个实施例中区块链信息推送装置的框图。Fig. 4 is a block diagram of a blockchain information pushing device according to one or more embodiments.
图5为根据一个或多个实施例中计算机设备的框图。Figure 5 is a block diagram of a computer device according to one or more embodiments.
具体实施方式Detailed ways
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.
本申请提供的区块链信息推送方法,可以应用于如图1所示的应用环境中。其中,数据库服务器102通过网络与区块链管理服务器104以及终端106通过网络进行通信。数据库服务器102发送数据库接入请求至区块链管理服务器104,建立与区块链管理服务器104连接,数据库服务器102读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表,周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送至终端106。其中,终端106可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。The blockchain information push method provided in this application can be applied to the application environment as shown in FIG. 1. Among them, the database server 102 communicates with the blockchain management server 104 and the terminal 106 through the network through the network. The database server 102 sends a database access request to the blockchain management server 104 to establish a connection with the blockchain management server 104. The database server 102 reads the preset blockchain information table, block data table, transaction data table, and node Information table and contract information table, periodically generate data capture instructions carrying the type of captured data, and update the captured data to the data table corresponding to the type. According to different statistical periods, count the latest blocks multiple times Information in the chain information table, block data table, transaction data table, node information table, and contract information table, and push the statistical information to the terminal 106. Among them, the terminal 106 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
在一个实施例中,如图2所示,提供了一种区块链信息推送方法,以该方法应用于图1中的数据库服务器为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a method for pushing blockchain information is provided. Taking the method applied to the database server in FIG. 1 as an example, the method includes the following steps:
S200:发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接。S200: Send a database access request to the blockchain management system to establish a connection with the blockchain management system.
在区块链管理系统侧构建一个独立的数据库服务器,该数据库服务器发送接入请求至区块链管理服务器,等待区块链关系系统反馈的允许接入消息,当接收到允许接入消息时,建立与区块链管理系统的连接。数据库服务器发送的接入请求中会携带有自身身份标识,区块链管理系统返回的允许接入消息中会携带有分配的接入端口等。具体来说,数据库服务器与区块链管理系统之间需要进行多次交互,数据库服务器发送接入请求,区块链管理系统回传注册所需填写数据至数据库服务器,数据库服务器对所需填写数据进行填写发送至区块链管理系统,区块链管理系统根据填写的数据生成接入端口,发送接入端口至数据库服务器,数据库服务器通过接入端口与区块链管理系统连接。Build an independent database server on the side of the blockchain management system, the database server sends an access request to the blockchain management server, and waits for the access permission message fed back by the blockchain relationship system. When the access permission message is received, Establish a connection with the blockchain management system. The access request sent by the database server will carry its own identity, and the access permission message returned by the blockchain management system will carry the assigned access port. Specifically, there are multiple interactions between the database server and the blockchain management system. The database server sends an access request. The blockchain management system returns the data required for registration to the database server, and the database server responds to the required data Fill in and send it to the blockchain management system. The blockchain management system generates an access port based on the filled data, and sends the access port to the database server, which is connected to the blockchain management system through the access port.
S400:读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表。S400: Read the preset blockchain information table, block data table, transaction data table, node information table, and contract information table.
在数据库服务器中预先构建有区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表,在这里还在对交易数据以及合约信息数据进行关注,针对区块链信息、区块数据、交易数据、节点信息以及合约信息,构建对应的数据表,以便后续抓取到的数据存储至对应的表格中,实现各类型数据的准确存储以及后续处理(例如统计、推送)的操作。非必要的,区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表分别存储在不同区域,这些存储区域划设有不同的存储空间,以便对应类型数据更新与存 储。Block chain information table, block data table, transaction data table, node information table, and contract information table are pre-built in the database server. Here we are still paying attention to transaction data and contract information data. Block data, transaction data, node information, and contract information, and construct the corresponding data table so that the subsequent captured data is stored in the corresponding table to achieve accurate storage of various types of data and subsequent processing (such as statistics, push) operating. If not necessary, the block chain information table, block data table, transaction data table, node information table, and contract information table are stored in different areas. These storage areas are allocated with different storage spaces to update and store corresponding types of data. .
S600:周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息。S600: Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information.
数据库服务器周期创建数据抓取任务,每个数据抓取任务都有待抓取数据的明确目标类型,例如创建一个抓取区块链信息的数据抓取任务,该任务指定当前需要抓取的区块链信息,其抓取到的数据在后续会存储至区块链信息表中、又如创建一个抓取合约信息的数据抓取任务,该任务指定当前需要抓取的为合约信息,将抓取到的合约信息数据存储至合约信息表中。需要指出的是,针对抓取到的数据可以不做进一步的解析处理、解密处理或格式转换处理,当抓取的数据为密文数据时,直接将密文形式的数据写入至对应的数据表中。The database server periodically creates data capture tasks. Each data capture task has a clear target type for the data to be captured. For example, create a data capture task to capture blockchain information, which specifies the block that needs to be captured currently Chain information, the captured data will be stored in the blockchain information table in the future. Another example is to create a data capture task that captures contract information. This task specifies the contract information that needs to be captured currently, and will capture The contract information data obtained is stored in the contract information table. It should be pointed out that for the captured data, no further analysis processing, decryption processing or format conversion processing is required. When the captured data is ciphertext data, the data in ciphertext form is directly written to the corresponding data. Table.
S800:根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。S800: According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for multiple times, and push the statistical information.
不同的统计周期包括年、月、周、日、时、分等,即针对数据库服务器针中针对区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表已经存储的数据,分别采用年、月、周、日、时、分方式进行统计,并且将统计后的数据推送至用户。在这里,采用不同的统计周期,多次统计数据,可以得到不同时间维度的统计数据,统计过程中记录在不同时间节点下区块链、区块、交易、节点和合约的变化情况,按照时间顺序写入至对应数据表中,有利于后续按照时间维度推送数据至用户,给用户带来便利。Different statistical periods include year, month, week, day, hour, minute, etc., which are stored in the database server for the blockchain information table, block data table, transaction data table, node information table, and contract information table. The data is counted by year, month, week, day, hour, and minute, and the statistical data is pushed to users. Here, using different statistical periods and multiple statistical data, you can get statistical data in different time dimensions. During the statistical process, the changes in the blockchain, blocks, transactions, nodes and contracts at different time nodes are recorded according to time The sequential writing into the corresponding data table facilitates the subsequent push of data to the user in the time dimension, which brings convenience to the user.
上述区块链信息推送方法,发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中;根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。整个过程中,采集包括区块链信息、区块数据、交易数据、节点信息以及合约信息的区块链信息,且采用对应的表格存储,确保区块链信息全面且准确采集与推送,给用户带来便利。The above block chain information push method sends a database access request to the block chain management system to establish a connection with the block chain management system; reads the preset block chain information table, block data table, transaction data table, Node information table and contract information table; periodically generate data capture instructions that carry the type of captured data, and update the captured data to the data table corresponding to the type; according to different statistical periods, count the latest areas multiple times Information in the block chain information table, block data table, transaction data table, node information table, and contract information table, and push the statistical information. Throughout the process, collect blockchain information including blockchain information, block data, transaction data, node information, and contract information, and use the corresponding table storage to ensure that the blockchain information is comprehensive and accurate collection and push to users Bring convenience.
如图3所示,在其中一个实施例中,步骤S800包括:As shown in FIG. 3, in one of the embodiments, step S800 includes:
S820:根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息。S820: According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for multiple times.
S840:将统计后的信息划分为数量信息和明细信息。S840: Divide the statistical information into quantitative information and detailed information.
S860:采用实时更新方式推送数量信息、并采用访问反馈方式推送明细信息。S860: Use real-time update method to push quantity information, and use visit feedback method to push detailed information.
统计的数量信息是指统计出来与数量相关的信息,例如区块数量、交易条目数量、激活节点数量、合约条目数量,统计的数量信息表征是当前区块链的活跃程度和负载程度,其传递的是整个区块链大概的运行情况,一般来说,其数据量比较少也便于用户接收与查阅,因此,采用实时推送的方式。统计的明细信息是指统计出来的清单信息,例如每条交 易清单、每个节点的运行情况以及连接情况、每条合约的明细信息等,统计的明细信息表征是当前区块链运行详细情况,一般来说,其数据量比较大,需要在合适或有需要条件下推送至用户。访问反馈方式是指用户主动访问服务器请求推送明细信息时,服务器才将明细信息推送至用户。在实际应用中,服务器采用实时显示更新的方式将统计的数量信息推送至用户,用户在浏览到统计的数量信息时,需要进一步了解明细信息,用户发送访问请求至服务器,访问请求中携带有所需明细信息的信息类型,服务器反馈与访问请求中携带信息类型对应的明细信息。例如用户在浏览到当前合约条目数量时,需要进一步了解一些合约的明细信息,用户点击合约条目数量的数字,发送访问请求至服务器,在该访问请求中携带明细信息类型为合约信息,服务器将每条合约的明细信息显示给到用户。The statistical quantitative information refers to the statistical information related to the quantity, such as the number of blocks, the number of transaction entries, the number of active nodes, and the number of contract entries. The statistical information represents the current degree of activity and load of the blockchain, and its transmission This is the approximate operation of the entire blockchain. Generally speaking, its data volume is relatively small and it is convenient for users to receive and consult. Therefore, the real-time push method is adopted. The statistical detailed information refers to the statistical list information, such as the list of each transaction, the operation and connection status of each node, the detailed information of each contract, etc. The statistical detailed information characterizes the current blockchain operation details. Generally speaking, the amount of data is relatively large and needs to be pushed to users under appropriate or necessary conditions. The access feedback method means that the server pushes the detailed information to the user when the user actively accesses the server to request the detailed information. In practical applications, the server uses real-time display updates to push the statistical information to the user. When the user browses the statistical information, he needs to learn more about the detailed information. The user sends an access request to the server. The access request carries some information. For the information type that needs detailed information, the server feeds back the detailed information corresponding to the information type carried in the access request. For example, when the user browses to the number of current contract items, he needs to know more about the detailed information of some contracts. The user clicks on the number of contract items and sends an access request to the server. The access request carries the detailed information type as contract information, and the server will The detailed information of the contract is displayed to the user.
在上述实施例中,针对不同数据分别采用不同的方式进行推送,可以在有限的时间和空间范围给展示给用户更多、更全面的数据。以交易数据表中记录的数据为例,服务器在1分钟内采集到了A条交易信息,该A条交易信息更新写入至数据库中的交易数据表,服务器统计交易数据信息有A条,其分别对应的明细信息为a、b、c……,服务器主动推送当前采集到有A条交易信息,用户在浏览到这个信息时,若想进一步了解交易信息的明细信息,对服务器进行访问操作,服务器响应用户的访问操作,将该A条交易信息对应的明细信息推送至用户。In the foregoing embodiment, different data is pushed in different ways, which can show users more and more comprehensive data in a limited time and space. Taking the data recorded in the transaction data table as an example, the server collected A piece of transaction information within 1 minute, and the A piece of transaction information was updated and written to the transaction data table in the database. The server statistics transaction data information has A pieces, respectively The corresponding detailed information is a, b, c..., the server actively pushes the currently collected transaction information. When the user browses this information, if he wants to know more about the transaction information, he can access the server. In response to the user's access operation, the detailed information corresponding to the A piece of transaction information is pushed to the user.
在其中一个实施例中,周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中包括:周期性生成携带有抓取数据类型的数据抓取指令;将数据抓取指令发送至区块链管理系统;接收区块链管理系统反馈的抓取到的数据;保持抓取到的数据格式以及加密状态,将抓取到的数据更新至类型对应的数据表中。In one of the embodiments, periodically generating a data capture instruction carrying a type of captured data, and updating the captured data to a data table corresponding to the type includes: periodically generating a data capture carrying the type of captured data Fetch instructions; send data capture instructions to the blockchain management system; receive the captured data feedback from the blockchain management system; maintain the captured data format and encryption status, and update the captured data to the type The corresponding data sheet.
数据库服务器通过生成并发送数据抓取指令的方式,请求区块链管理系统对不同类型数据进行抓取,区块链管理系统在响应数据抓取指令后,会针对数据抓取指令指定类型的数据进行抓取,并且将抓取的数据反馈至数据库服务器,数据库服务器按照反馈的数据分类存储至对应的数据表中,在存储的过程保持抓取到的数据格式以及加密状态。例如,若抓取的区块数据为密文数据,更新至区块表内的数据也为密文数据,并不会对数据进行解密。The database server requests the blockchain management system to capture different types of data by generating and sending data capture instructions. After the blockchain management system responds to the data capture instructions, it will specify the types of data for the data capture instructions Grabbing is performed and the captured data is fed back to the database server. The database server sorts and stores the feedback data in the corresponding data table, and maintains the captured data format and encryption state during the storage process. For example, if the captured block data is ciphertext data, the data updated in the block table is also ciphertext data, and the data will not be decrypted.
在其中一个实施例中,根据不同的时间维度统计区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送之后还包括:通过可视化工具,采用图形显示、区块显示或日志显示方式显示统计后的信息。In one of the embodiments, counting the information in the blockchain information table, block data table, transaction data table, node information table, and contract information table according to different time dimensions, and pushing the statistical information further includes: The visualization tool uses graphic display, block display or log display to display statistical information.
可视化显示统计后的信息可以高效将统计后的信息推送至用户。具体来说,可视化包括采用图形显示、区块显示或日志显示方式。图形显示的内容包括:显示区块链状态服务的连线或离线状态;实时显示区块链中各个节点的连线或离线状态;实时显示区块链交易的发起方及传播过程;区块显示的内容包括:可折叠方式显示的块堆栈;树状形式显示的块内容;入网和离网节点的自动布局;日志显示的内容包括自动更新区块数量、交易数量等。具体来说,针对不同的可视化需求可以借助不同的可视化工具,“可视化工具”可用 来创建对话框或其他界面,以一种适合于变量或对象数据类型的方式来显示变量或对象。例如,HTML(HyperText Markup Language,超文本标记语言)可视化工具解释HTML字符串,并按照该字符串出现在浏览器窗口中时的样子显示结果;常规可视化工具包括文本可视化工具、HTML可视化工具、XML(Extensible Markup Language,可扩展标记语言)可视化工具、WPF(Windows Presentation Foundation,Windows呈现基础)树可视化工具以及数据集可视化工具。The visual display of statistical information can effectively push the statistical information to users. Specifically, visualization includes the use of graphic display, block display or log display. The content of the graphic display includes: display the connection or offline status of the blockchain status service; real-time display of the connection or offline status of each node in the blockchain; real-time display of the initiator and propagation process of the blockchain transaction; block display The content includes: the block stack displayed in a collapsible manner; the block content displayed in a tree form; the automatic layout of the network and off-network nodes; the content of the log display includes the number of automatically updated blocks, the number of transactions, etc. Specifically, different visualization tools can be used for different visualization requirements. "Visualization tools" can be used to create dialog boxes or other interfaces to display variables or objects in a manner suitable for the data types of variables or objects. For example, HTML (HyperText Markup Language, Hypertext Markup Language) visualization tools interpret HTML strings and display the results as they appear in the browser window; conventional visualization tools include text visualization tools, HTML visualization tools, and XML (Extensible Markup Language, Extensible Markup Language) visualization tool, WPF (Windows Presentation Foundation, Windows Presentation Foundation) tree visualization tool, and data set visualization tool.
如图3所示,在其中一个实施例中,步骤S200包括:As shown in Figure 3, in one of the embodiments, step S200 includes:
S210:发送数据库接入请求至区块链管理系统,数据库接入请求携带数据库身份标识。S210: Send a database access request to the blockchain management system, where the database access request carries a database identity.
S220:接收区块链管理系统反馈的注册所需填写数据表。S220: Fill in the data sheet required to receive the registration feedback from the blockchain management system.
S230:发送已填写的注册所需填写数据表至区块链管理系统。S230: Send the completed data sheet required for registration to the blockchain management system.
S240:接收区块链管理系统分配的接入端口。S240: Receive the access port allocated by the blockchain management system.
S250:根据接入端口建立与区块链管理系统的连接。S250: Establish a connection with the blockchain management system according to the access port.
数据库在请求接入区块链管理系统时,需要进行注册,待注册完成时,根据区块链管理系统反馈接入端口,接入区块链管理系统。具体来说,数据库服务器发送接入请求至区块链管理系统,在该接入请求中携带有数据库的身份标签,区块链管理系统根据接收到的身份标签,查询该身份标签是否在白名单中,当在时,区块链管理系统认定数据库服务器为合法、允许接入设备,发送注册所需填写数据表至数据库服务器,数据库服务器将自身相关信息对应填写至注册所需填写数据表,并发送已填写的注册所需填写数据表至区块链管理系统,区块链管理系统对数据库服务器完成注册,分配接入端口,并且发送接入端口至区块链管理系统,数据库服务器根据分配的接入端口建立与区块链管理系统的连接。When the database requests access to the blockchain management system, it needs to be registered. When the registration is completed, it will access the blockchain management system according to the feedback access port of the blockchain management system. Specifically, the database server sends an access request to the blockchain management system, and the access request carries the identity tag of the database, and the blockchain management system queries whether the identity tag is in the whitelist according to the received identity tag When in, the blockchain management system recognizes that the database server is a legal and allowed access device, and sends the data form required for registration to the database server, and the database server fills in the relevant information of itself to the data form required for registration, and Send the completed data sheet for registration to the blockchain management system. The blockchain management system completes the registration of the database server, allocates access ports, and sends the access ports to the blockchain management system. The database server The access port establishes a connection with the blockchain management system.
在其中一个实施例中,读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表之前,还包括:运行表格生成软件,生成区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;获取历史记录中单位时间内区块链信息、区块数据、交易数据、节点信息以及合约信息的数据量大小比例;根据数据量大小比例,分配区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表存储空间;将区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表存储至与存储空间匹配的存储位置。In one of the embodiments, before reading the preset block chain information table, block data table, transaction data table, node information table, and contract information table, it further includes: running the table generation software to generate the block chain information table , Block data table, transaction data table, node information table and contract information table; obtain the data volume ratio of block chain information, block data, transaction data, node information and contract information in the historical record per unit time; according to the data Allocate the storage space of the blockchain information table, block data table, transaction data table, node information table and contract information table; combine the blockchain information table, block data table, transaction data table, node information table and The contract information table is stored in a storage location that matches the storage space.
表格生成软件可以是预先加载到数据库服务器中的,运行表格生成软件时,其生成5个表格,数据库服务器将该5个表格定义为区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表,并且数据库服务器根据历史记录中各类型信息的数据量大小比例,对该5个表格分配合理的存储空间,再将5个表格存储至与存储空间匹配的存储位置。在上述实例中,采用表格生成软件高效生成表格,并且考虑不同类型信息之间其信息量存在差异,合理分配各类型信息表格对应的存储空间,有利于存储资源合理使用,给用户带来便利。The table generation software can be pre-loaded into the database server. When the table generation software is run, it generates 5 tables. The database server defines the 5 tables as blockchain information table, block data table, transaction data table, and node Information tables and contract information tables, and the database server allocates a reasonable storage space for the five tables according to the data size ratio of each type of information in the historical record, and then stores the five tables in a storage location matching the storage space. In the above example, the table generation software is used to efficiently generate tables, and considering the difference in the amount of information between different types of information, the storage space corresponding to each type of information table is reasonably allocated, which is beneficial to the rational use of storage resources and brings convenience to users.
在其中一个实施例中,上述区块链信息推送方法还包括:当侦听到区块链状态发生变 化时,创建临时区块链信息、区块数据、交易数据、节点信息以及合约信息抓取任务;将临时抓取的数据分别存储至类型对应的数据表中。In one of the embodiments, the above-mentioned block chain information push method further includes: when a change in the state of the block chain is detected, creating temporary block chain information, block data, transaction data, node information, and contract information capture Task; store the temporarily captured data in the data table corresponding to the type.
除了周期性从区块链管理系统上述抓取数据之外,还针对区块链运行状态变化情况主动创建临时数据抓取任务,第一时间抓取区块链状态变化时对应的数据,实现对区块链状态即使监控和数据实时推送,给用户带来便利。数据库服务器除了按照预先设定的抓取周期进行数据抓取之外,在针对抓取的数据进行分析,例如与上一抓取时间点比较,当数据波动异常时,创建临时数据抓取任务,提高数据抓取频率,更加准确跟踪区块链的运行情况。In addition to periodically grabbing data from the blockchain management system mentioned above, it also actively creates temporary data grab tasks for changes in the operating state of the blockchain, and grabs the data corresponding to the changes in the state of the blockchain as soon as possible. Even if the blockchain status is monitored and data is pushed in real time, it brings convenience to users. In addition to data capture according to the preset capture cycle, the database server analyzes the captured data, for example, compares with the last capture time point, and creates a temporary data capture task when the data fluctuates abnormally. Increase the frequency of data capture and track the operation of the blockchain more accurately.
应该理解的是,虽然图2-3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of FIGS. 2-3 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in Figure 2-3 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
如图4所示,一种区块链信息推送装置,装置包括:As shown in Figure 4, a block chain information push device, the device includes:
连接模块200,用于发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;The connection module 200 is used to send a database access request to the blockchain management system to establish a connection with the blockchain management system;
表格读取模块400,用于读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;The table reading module 400 is used to read the preset block chain information table, block data table, transaction data table, node information table and contract information table;
更新模块600,用于周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;The update module 600 is used to periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, and transaction data. , Node information and contract information;
推送模块800,用于根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。The push module 800 is used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods, and push the statistical information.
上述区块链信息推送装置,连接模块200发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;表格读取模块400读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;更新模块600周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中;推送模块800根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。整个过程中,采集包括区块链信息、区块数据、交易数据、节点信息以及合约信息的区块链信息,且采用对应的表格存储,确保区块链信息全面且准确采集与推送,给用户带来便利。In the block chain information pushing device, the connection module 200 sends a database access request to the block chain management system to establish a connection with the block chain management system; the table reading module 400 reads the preset block chain information table and zone Block data table, transaction data table, node information table, and contract information table; the update module 600 periodically generates a data capture instruction carrying the captured data type, and updates the captured data to the data table corresponding to the type; push The module 800 counts information in the latest block chain information table, block data table, transaction data table, node information table, and contract information table multiple times according to different statistical periods, and pushes the statistical information. Throughout the process, collect blockchain information including blockchain information, block data, transaction data, node information, and contract information, and use the corresponding table storage to ensure that the blockchain information is comprehensive and accurate collection and push to users Bring convenience.
在其中一个实施例中,推送模块800还用于根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息;将统计后的 信息划分为数量信息和明细信息;采用实时更新方式推送数量信息、并采用访问反馈方式推送明细信息。In one of the embodiments, the push module 800 is also used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods; The statistical information is divided into quantitative information and detailed information; the quantitative information is pushed in real-time update mode, and the detailed information is pushed in access feedback mode.
在其中一个实施例中,更新模块600还用于周期性生成携带有抓取数据类型的数据抓取指令;将数据抓取指令发送至区块链管理系统;接收区块链管理系统反馈的抓取到的数据;保持抓取到的数据格式以及加密状态,将抓取到的数据更新至类型对应的数据表中。In one of the embodiments, the update module 600 is also used to periodically generate a data capture instruction carrying the type of captured data; send the data capture instruction to the blockchain management system; receive the capture feedback from the blockchain management system The captured data; keep the captured data format and encryption status, and update the captured data to the data table corresponding to the type.
上述区块链信息推送装置还包括可视化模块,用于通过可视化工具,采用图形显示、区块显示或日志显示方式显示统计后的信息。The above-mentioned block chain information pushing device also includes a visualization module, which is used to display the statistical information through a visualization tool in a graphic display, block display or log display mode.
在其中一个实施例中,连接模块200还用于发送数据库接入请求至区块链管理系统,数据库接入请求携带数据库身份标识;接收区块链管理系统反馈的注册所需填写数据表;发送已填写的注册所需填写数据表至区块链管理系统;接收区块链管理系统分配的接入端口;根据接入端口建立与区块链管理系统的连接。In one of the embodiments, the connection module 200 is also used to send a database access request to the blockchain management system, the database access request carries the database identity; to receive the feedback of the blockchain management system to fill in the data form required for registration; and send The completed registration needs to fill in the data sheet to the blockchain management system; receive the access port allocated by the blockchain management system; establish a connection with the blockchain management system according to the access port.
在其中一个实施例中,上述区块链信息推送装置还包括表格生成模块,用于运行表格生成软件,生成区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;获取历史记录中单位时间内区块链信息、区块数据、交易数据、节点信息以及合约信息的数据量大小比例;根据数据量大小比例,分配区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表存储空间;将区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表存储至与存储空间匹配的存储位置。In one of the embodiments, the above-mentioned block chain information pushing device further includes a table generation module for running table generation 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 ; Obtain the data volume ratio of block chain information, block data, transaction data, node information and contract information in the historical record per unit time; according to the data volume ratio, distribute the block chain information table, block data table, and transaction Data table, node information table, and contract information table storage space; store the blockchain information table, block data table, transaction data table, node information table, and contract information table to a storage location matching the storage space.
在其中一个实施例中,上述区块链信息推送装置还包括侦测模块,用于当侦听到区块链状态发生变化时,创建临时区块链信息、区块数据、交易数据、节点信息以及合约信息抓取任务;将临时抓取的数据分别存储至类型对应的数据表中。In one of the embodiments, the above-mentioned blockchain information pushing device further includes a detection module, which is used to create temporary blockchain information, block data, transaction data, and node information when the state of the blockchain is detected to change. And contract information capture task; the temporarily captured data is stored in the data table corresponding to the type.
关于区块链信息推送装置的具体限定可以参见上文中对于区块链信息推送方法的限定,在此不再赘述。上述区块链信息推送装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the blockchain information pushing device, please refer to the above limitation on the blockchain information pushing method, which will not be repeated here. Each module in the above-mentioned blockchain information pushing device can be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储历史区块链相关的数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种区块链信息推送方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 5. The computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile 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 the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store historical blockchain-related data. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to realize a blockchain information push method.
本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构 的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的区块链信息推送的步骤。A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the one or more processors implement the methods provided in any of the embodiments of the present application. The steps of the blockchain information push.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的区块链信息推送的步骤。One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors implement any one of the embodiments of the present application. Provide the steps for pushing blockchain information.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions, which can be stored in a non-volatile computer. In a readable storage medium, when the computer-readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种区块链信息推送方法,包括:A method for pushing blockchain information, including:
    发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;Send a database access request to the blockchain management system to establish a connection with the blockchain management system;
    读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;Read the preset blockchain information table, block data table, transaction data table, node information table and contract information table;
    周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information; and
    根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。According to different statistical cycles, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for many times, and push the statistical information.
  2. 根据权利要求1所述的方法,其特征在于,所述根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送包括:The method according to claim 1, wherein the information in the latest block chain information table, block data table, transaction data table, node information table, and contract information table is counted multiple times according to different statistical periods , And push the statistical information including:
    根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息;According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table and contract information table for many times;
    将统计后的信息划分为数量信息和明细信息;及Divide the statistical information into quantitative information and detailed information; and
    采用实时更新方式推送所述数量信息、并采用访问反馈方式推送所述明细信息。The quantitative information is pushed in a real-time update method, and the detailed information is pushed in an access feedback method.
  3. 根据权利要求1所述的方法,其特征在于,所述周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中包括:The method according to claim 1, wherein said periodically generating a data capture instruction carrying a type of captured data, and updating the captured data to a data table corresponding to the type comprises:
    周期性生成携带有抓取数据类型的数据抓取指令;Periodically generate data capture instructions carrying the type of captured data;
    将所述数据抓取指令发送至所述区块链管理系统;Sending the data capture instruction to the blockchain management system;
    接收所述区块链管理系统反馈的抓取到的数据;及Receiving the captured data fed back by the blockchain management system; and
    保持所述抓取到的数据格式以及加密状态,将所述抓取到的数据更新至类型对应的数据表中。Keep the captured data format and encryption status, and update the captured data to the data table corresponding to the type.
  4. 根据权利要求1所述的方法,其特征在于,将统计后的信息推送之后,还包括:The method according to claim 1, wherein after pushing the statistical information, the method further comprises:
    通过可视化工具,采用图形显示、区块显示或日志显示方式显示统计后的信息。Through visualization tools, the statistical information can be displayed using graphic display, block display or log display.
  5. 根据权利要求1所述的方法,其特征在于,所述发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接包括:The method according to claim 1, wherein the sending a database access request to a blockchain management system, and establishing a connection with the blockchain management system comprises:
    发送数据库接入请求至区块链管理系统,所述数据库接入请求携带数据库身份标识;Sending a database access request to the blockchain management system, where the database access request carries a database identity;
    接收所述区块链管理系统反馈的注册所需填写数据表;Fill in the data sheet required to receive the registration feedback from the blockchain management system;
    发送已填写的注册所需填写数据表至区块链管理系统;Send the completed data form required for registration to the blockchain management system;
    接收区块链管理系统分配的接入端口;及Receive the access port allocated by the blockchain management system; and
    根据所述接入端口建立与区块链管理系统的连接。Establish a connection with the blockchain management system according to the access port.
  6. 根据权利要求1所述的方法,其特征在于,所述读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表之前,还包括:The method according to claim 1, characterized in that before said reading the preset blockchain information table, block data table, transaction data table, node information table, and contract information table, the method further comprises:
    运行表格生成软件,生成区块链信息表、区块数据表、交易数据表、节点信息表以及 合约信息表;Run the table generation software to generate the blockchain information table, block data table, transaction data table, node information table and contract information table;
    获取历史记录中单位时间内区块链信息、区块数据、交易数据、节点信息以及合约信息的数据量大小比例;Obtain the data volume ratio of block chain information, block data, transaction data, node information and contract information in the history record per unit time;
    根据所述数据量大小比例,分配区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表存储空间;及According to the data volume ratio, allocate storage space for the blockchain information table, block data table, transaction data table, node information table, and contract information table; and
    将所述区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表存储至与存储空间匹配的存储位置。The block chain information table, block data table, transaction data table, node information table, and contract information table are stored in a storage location matching the storage space.
  7. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    当侦听到区块链状态发生变化时,创建临时区块链信息、区块数据、交易数据、节点信息以及合约信息抓取任务;及When a change in the state of the blockchain is detected, create temporary blockchain information, block data, transaction data, node information, and contract information capture tasks; and
    将临时抓取的数据分别存储至类型对应的数据表中。Store the temporarily captured data in the data table corresponding to the type.
  8. 根据权利要求1所述的方法,其特征在于,所述于读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表之前,还包括:构建区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;The method according to claim 1, characterized in that, before reading the preset blockchain information table, block data table, transaction data table, node information table, and contract information table, the method further comprises: a construction area Block chain information table, block data table, transaction data table, node information table and contract information table;
    将所述区块链信息表、所述区块数据表、所述交易数据表、所述节点信息表以及所述合约信息表分别存储在不同存储区域。The block chain information table, the block data table, the transaction data table, the node information table, and the contract information table are respectively stored in different storage areas.
  9. 根据权利要求1所述的方法,其特征在于,所述根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送包括:The method according to claim 1, wherein the information in the latest block chain information table, block data table, transaction data table, node information table, and contract information table is counted multiple times according to different statistical periods , And push the statistical information including:
    根据年、月、周、日、时以及分的统计周期,分别统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,得到不同时间维度下的区块链信息;According to the statistical cycle of year, month, week, day, hour and minute, respectively count the latest block chain information table, block data table, transaction data table, node information table and contract information table to obtain information in different time dimensions Blockchain information;
    推送所述同时间维度下的区块链信息。Push the blockchain information in the same time dimension.
  10. 一种区块链信息推送装置,包括:A block chain information push device, including:
    连接模块,用于发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;The connection module is used to send a database access request to the blockchain management system and establish a connection with the blockchain management system;
    表格读取模块,用于读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;The table reading module is used to read the preset block chain information table, block data table, transaction data table, node information table and contract information table;
    更新模块,用于周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及The update module is used to periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes block chain information, block data, transaction Data, node information and contract information; and
    推送模块,用于根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。The push module is used to count the latest blockchain information table, block data table, transaction data table, node information table, and contract information table for multiple times according to different statistical periods, and push the statistical information.
  11. 根据权利要求10所述的装置,其特征在于,所述推送模块还用于根据不同的统 计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息;将统计后的信息划分为数量信息和明细信息;及采用实时更新方式推送所述数量信息、并采用访问反馈方式推送所述明细信息。The device according to claim 10, wherein the push module is further configured to count the latest block chain information table, block data table, transaction data table, node information table, and multiple times according to different statistical periods. Information in the contract information table; divide the statistical information into quantitative information and detailed information; and push the quantitative information in a real-time update method, and push the detailed information in an access feedback method.
  12. 根据权利要求10所述的装置,其特征在于,所述更新模块600还用于周期性生成携带有抓取数据类型的数据抓取指令;将所述数据抓取指令发送至所述区块链管理系统;接收所述区块链管理系统反馈的抓取到的数据;及保持所述抓取到的数据格式以及加密状态,将所述抓取到的数据更新至类型对应的数据表中。The device according to claim 10, wherein the update module 600 is further configured to periodically generate a data capture instruction carrying a type of captured data; and send the data capture instruction to the blockchain Management system; receiving the captured data fed back by the blockchain management system; and maintaining the captured data format and encryption state, and updating the captured data to the data table corresponding to the type.
  13. 根据权利要求10所述的装置,其特征在于,所述连接模块200还用于发送数据库接入请求至区块链管理系统,所述数据库接入请求携带数据库身份标识;接收所述区块链管理系统反馈的注册所需填写数据表;发送已填写的注册所需填写数据表至区块链管理系统;接收区块链管理系统分配的接入端口;及根据所述接入端口建立与区块链管理系统的连接。The device according to claim 10, wherein the connection module 200 is further configured to send a database access request to a blockchain management system, the database access request carries a database identity; to receive the blockchain The management system feedbacks the registration required data form; sends the filled-in registration required data form to the blockchain management system; receives the access port allocated by the blockchain management system; and establishes a zone according to the access port Block chain management system connection.
  14. 根据权利要求10所述的装置,其特征在于,还包括可视化模块,用于通过可视化工具,采用图形显示、区块显示或日志显示方式显示统计后的信息。The device according to claim 10, further comprising a visualization module, which is used to display the statistical information in a graphical display, block display or log display mode through a visualization tool.
  15. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;Send a database access request to the blockchain management system to establish a connection with the blockchain management system;
    读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;Read the preset blockchain information table, block data table, transaction data table, node information table and contract information table;
    周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information; and
    根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。According to different statistical cycles, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for many times, and push the statistical information.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 15, wherein the processor further executes the following steps when executing the computer-readable instruction:
    根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息;According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table and contract information table for many times;
    将统计后的信息划分为数量信息和明细信息;及Divide the statistical information into quantitative information and detailed information; and
    采用实时更新方式推送所述数量信息、并采用访问反馈方式推送所述明细信息。The quantitative information is pushed in a real-time update method, and the detailed information is pushed in an access feedback method.
  17. 根据权利要求15所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 15, wherein the processor further executes the following steps when executing the computer-readable instruction:
    周期性生成携带有抓取数据类型的数据抓取指令;Periodically generate data capture instructions carrying the type of captured data;
    将所述数据抓取指令发送至所述区块链管理系统;Sending the data capture instruction to the blockchain management system;
    接收所述区块链管理系统反馈的抓取到的数据;及Receiving the captured data fed back by the blockchain management system; and
    保持所述抓取到的数据格式以及加密状态,将所述抓取到的数据更新至类型对应的数据表中。Keep the captured data format and encryption status, and update the captured data to the data table corresponding to the type.
  18. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    发送数据库接入请求至区块链管理系统,建立与区块链管理系统的连接;Send a database access request to the blockchain management system to establish a connection with the blockchain management system;
    读取预设的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表;Read the preset blockchain information table, block data table, transaction data table, node information table and contract information table;
    周期性生成携带有抓取数据类型的数据抓取指令,并将抓取到数据更新至类型对应的数据表中,所述数据类型包括区块链信息、区块数据、交易数据、节点信息以及合约信息;及Periodically generate a data capture instruction carrying the type of captured data, and update the captured data to the data table corresponding to the type. The data type includes blockchain information, block data, transaction data, node information, and Contract information; and
    根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息,并将统计后的信息推送。According to different statistical cycles, count the latest block chain information table, block data table, transaction data table, node information table, and contract information table for many times, and push the statistical information.
  19. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:18. The storage medium of claim 18, wherein the following steps are further performed when the computer-readable instructions are executed by the processor:
    根据不同的统计周期,多次统计最新的区块链信息表、区块数据表、交易数据表、节点信息表以及合约信息表中信息;According to different statistical periods, count the latest block chain information table, block data table, transaction data table, node information table and contract information table for many times;
    将统计后的信息划分为数量信息和明细信息;及Divide the statistical information into quantitative information and detailed information; and
    采用实时更新方式推送所述数量信息、并采用访问反馈方式推送所述明细信息。The quantitative information is pushed in a real-time update method, and the detailed information is pushed in an access feedback method.
  20. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:18. The storage medium of claim 18, wherein the following steps are further performed when the computer-readable instructions are executed by the processor:
    周期性生成携带有抓取数据类型的数据抓取指令;Periodically generate data capture instructions carrying the type of captured data;
    将所述数据抓取指令发送至所述区块链管理系统;Sending the data capture instruction to the blockchain management system;
    接收所述区块链管理系统反馈的抓取到的数据;及Receiving the captured data fed back by the blockchain management system; and
    保持所述抓取到的数据格式以及加密状态,将所述抓取到的数据更新至类型对应的数据表中。Keep the captured data format and encryption status, and update the captured data to the data table corresponding to the type.
PCT/CN2019/122488 2019-05-07 2019-12-02 Blockchain information pushing method and apparatus, computer device and storage medium WO2020224253A1 (en)

Applications Claiming Priority (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
CN201910374148.4 2019-05-07

Publications (1)

Publication Number Publication Date
WO2020224253A1 true WO2020224253A1 (en) 2020-11-12

Family

ID=67914245

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122488 WO2020224253A1 (en) 2019-05-07 2019-12-02 Blockchain information pushing method and apparatus, computer device and storage medium

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507028A (en) * 2020-12-18 2021-03-16 杭州趣链科技有限公司 Data storage method, device, equipment and storage medium
CN113268546A (en) * 2021-06-15 2021-08-17 中国电子科技网络信息安全有限公司 Block chain account book data capture analysis method
CN113961545A (en) * 2021-10-26 2022-01-21 北京市科学技术情报研究所 Block chain-based information value database construction method

Families Citing this family (7)

* 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

Citations (4)

* 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
CN109145006A (en) * 2018-09-21 2019-01-04 深圳蜜獾智抄科技有限公司 A kind of collection copies data analysis management system
WO2019078622A1 (en) * 2017-10-17 2019-04-25 주식회사 코인플러그 Blockchain-based payment method, and payment server using same
CN110266752A (en) * 2019-05-07 2019-09-20 深圳壹账通智能科技有限公司 Block chain information method for pushing, device, computer equipment and storage medium

Family Cites Families (5)

* 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
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
CN108259594B (en) * 2018-01-11 2020-02-18 杭州秘猿科技有限公司 Data interaction system based on block chain and relay server
CN108933819A (en) * 2018-06-26 2018-12-04 尹煦 A kind of information-pushing method based on block chain

Patent Citations (4)

* 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
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
CN110266752A (en) * 2019-05-07 2019-09-20 深圳壹账通智能科技有限公司 Block chain information method for pushing, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507028A (en) * 2020-12-18 2021-03-16 杭州趣链科技有限公司 Data storage method, device, equipment and storage medium
CN113268546A (en) * 2021-06-15 2021-08-17 中国电子科技网络信息安全有限公司 Block chain account book data capture analysis method
CN113961545A (en) * 2021-10-26 2022-01-21 北京市科学技术情报研究所 Block chain-based information value database construction method

Also Published As

Publication number Publication date
CN110266752A (en) 2019-09-20
CN110266752B (en) 2021-11-12

Similar Documents

Publication Publication Date Title
WO2020224253A1 (en) Blockchain information pushing method and apparatus, computer device and storage medium
US8468352B2 (en) Retrieving and using cloud based storage credentials
Mwilu et al. Design science research contribution to business intelligence in the cloud—A systematic literature review
WO2020232884A1 (en) Data table migration method, apparatus, computer device and storage medium
WO2021031688A1 (en) Service parameter acquisition method and apparatus, computer device and storage medium
CN109766253B (en) Performance data sending method and device, computer equipment and storage medium
WO2021073510A1 (en) Statistical method and device for database
AU2017254506B2 (en) Method, apparatus, computing device and storage medium for data analyzing and processing
CN112199442B (en) Method, device, computer equipment and storage medium for distributed batch downloading files
US20130347127A1 (en) Database management by analyzing usage of database fields
US20230177527A1 (en) Block chain system, and biological product monitoring method and device
US20180005121A1 (en) Provide enhanced relationship graph signals
CN111400465B (en) Generation method and device of customer service robot, electronic equipment and medium
CN112612988A (en) Page processing method and device, computer equipment and storage medium
US11620445B2 (en) System and method for implementing an automatic data collection and presentation generator module
CN111858278A (en) Log analysis method and system based on big data processing and readable storage device
CN107451301B (en) Processing method, device, equipment and storage medium for real-time delivery bill mail
US20120192052A1 (en) Hybrid client/network service application integration
CN115687826A (en) Page refreshing method and device, computer equipment and storage medium
LU501006B1 (en) Atmospheric environment quality management method, electronic equipment and storage system
CN115629940A (en) Micro-service full-link tracking method, device, system and medium
Rani et al. Social data provenance framework based on zero-information loss graph database
CN113722007A (en) Configuration method, device and system of VPN branch equipment
US20140143278A1 (en) Application programming interface layers for analytical applications
CN113656520B (en) Spatial analysis method, spatial analysis device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19928270

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19928270

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19928270

Country of ref document: EP

Kind code of ref document: A1