CN114022151A - Block chain data visualization method and system, electronic device and storage medium - Google Patents

Block chain data visualization method and system, electronic device and storage medium Download PDF

Info

Publication number
CN114022151A
CN114022151A CN202210019294.7A CN202210019294A CN114022151A CN 114022151 A CN114022151 A CN 114022151A CN 202210019294 A CN202210019294 A CN 202210019294A CN 114022151 A CN114022151 A CN 114022151A
Authority
CN
China
Prior art keywords
data
block
block chain
target node
chain network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210019294.7A
Other languages
Chinese (zh)
Inventor
朱雨朦
邹永强
杨晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202210019294.7A priority Critical patent/CN114022151A/en
Publication of CN114022151A publication Critical patent/CN114022151A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/903Querying
    • 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/904Browsing; Visualisation therefor

Abstract

The application discloses a block chain data visualization method, a block chain data visualization system, electronic equipment and a storage medium, and belongs to the technical field of block chains. The method for visualizing the blockchain data is connected with a first target node by receiving a connection request of the first target node on a first blockchain network; reading configuration information of a first target node, and connecting to a first block chain network through the configuration information of the first target node; acquiring data of a first block chain network, and storing the data of the first block chain network to a visual service database; receiving a data query request initiated by a second target node on the first blockchain network; the second target node comprises a first target node; extracting processed data corresponding to the data query request from a visual service database according to the data query request and sending the processed data to the second target node; the target node can quickly acquire the processed data in the block chain network where the target node is located, and the block chain data query efficiency is improved.

Description

Block chain data visualization method and system, electronic device and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, a system, an electronic device, and a storage medium for visualizing blockchain data.
Background
Today, many platforms for providing blockchain services have emerged, which are capable of providing multiple access nodes to provide blockchain transaction services for users. Along with the increase of transaction amount, data in a block chain is increased day by day, the timeliness and authenticity requirements of each transaction node on the block chain data, or the guarantee requirements of a supervision node on transaction safety and the like are met, so that the requirements on the block chain data display are increased, and the problems of long time consumption, slow updating and the like exist when the block chain platform provides block data query display.
Disclosure of Invention
The application provides a block chain data visualization method, a block chain data visualization system, electronic equipment and a storage medium, so that the problems of long time consumption, slow updating and the like existing in a block chain system when the block chain system provides block data query and display are solved, and the block chain data visualization efficiency is improved.
In order to achieve the purpose, the following scheme is adopted in the application:
in one aspect, an embodiment of the present application provides a method for visualizing blockchain data, including:
receiving a connection request of a first target node on a first blockchain network, and connecting with the first target node;
reading configuration information of the first target node, and connecting to the first block chain network through the configuration information of the first target node;
acquiring data of the first block chain network, and storing the data of the first block chain network to a visual service database;
receiving a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node;
and extracting the processed data corresponding to the data query request from the visual service database according to the data query request, and sending the processed data to the second target node.
Optionally, the data of the blockchain network includes: configuration information of the block chain network and block information of the block chain network;
the configuration information includes: channel information, billing nodes, endorsement nodes, sorting nodes, and/or chain codes.
Optionally, the method further includes:
detecting a new block appearing in the first blockchain network;
and when a new block appears, judging the block type:
if the new block is a configuration block, updating the configuration information of the first block chain network and the block information of the first block chain network in the visual service database;
if the new block is not a configuration block, updating the block information of the new block of the first block chain network in the visual service database;
wherein the allocation block is a block resulting from a change in the block chain network allocation.
Optionally, the method further includes:
checking block information stored in the visual service database at regular time, and if a missing block exists, inquiring and determining the missing block according to the height of the block;
judging whether the missing block is a configuration block, if so, updating the configuration information of the block chain network and the block information of the block chain network in the visual service database; and if the block is not the configuration block, directly updating the block information of the block chain network.
Optionally, the method further includes:
and checking whether the configuration information of the first block chain network is changed at regular time, and if so, modifying the configuration information of the first block chain network in a database.
Optionally, the extracting the processed data corresponding to the data query request from the visualization service database and sending the processed data to the second target node includes:
analyzing the block information data in the first block chain network:
analyzing all transaction data in each block in the first block chain network to obtain all data contained in each transaction, including state data of each transaction;
analyzing the read-write set of each transaction to obtain the read-write operation details of each transaction, wherein the read-write operation of the definition chain code of each user is recorded;
and associating the acquired state data of each transaction and all read-write operations with the original uplink service data.
Optionally, the method further includes:
connecting with a supervision node;
receiving a data query request initiated by the supervisory node;
and displaying the processed data corresponding to the data query request to the supervision node according to the data query request, and providing the service data associated with the corresponding processed data.
Optionally, the method further includes:
receiving a data verification task initiated by the supervision node, and initiating a data verification subtask to an assistant node in the block chain network according to the data verification task;
receiving data verification subtask completion feedback information of each assisting node;
according to the completion feedback information of each data verification subtask, integrating the completion information of the data verification tasks and sending the completion information to the supervision node;
and the assisting nodes are nodes capable of participating in the data verification subtasks and are selected according to the verification task rules.
In another aspect, an embodiment of the present application provides a system for visualizing blockchain data, including:
a first processing module, configured to receive a connection request of a first target node on a first blockchain network, and connect to the first target node;
the second processing module is used for reading the configuration information of the first target node and connecting the configuration information of the first target node to the first block chain network;
the storage module is used for acquiring the data of the first block chain network and storing the data of the first block chain network to a visual service database;
a receiving module, configured to receive a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node;
and the third processing module is used for extracting the processed data corresponding to the data query request from the visual service database according to the data query request and sending the processed data to the second target node.
In another aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the method for visualizing blockchain data as any one of the embodiments of the present application provides.
In another aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for visualizing blockchain data according to any one of the embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise: the method for visualizing the blockchain data provided by the embodiment of the application is connected with a first target node by receiving a connection request of the first target node on a first blockchain network; reading configuration information of the first target node, and connecting to the first block chain network through the configuration information of the first target node; acquiring data of the first block chain network, and storing the data of the first block chain network to a visual service database; receiving a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node; extracting processed data corresponding to the data query request from the visual service database according to the data query request and sending the processed data to the second target node; the target node can quickly acquire the processed data in the block chain network where the target node is located, and the block chain data query efficiency is improved.
Drawings
Fig. 1 is a flowchart of a method for visualizing blockchain data according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a node connection of a visual service block according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of monitoring a new block in a visual service area according to an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a process of checking a missing block in a visual service area according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a system for visualizing blockchain data according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings of the embodiments of the present application. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
In addition, the technical features mentioned in the different embodiments of the present application described below may be combined with each other as long as they do not conflict with each other.
The following describes in detail the method for visualizing blockchain data provided in the embodiment of the present application through a specific embodiment and an application scenario thereof with reference to the attached drawings, where the method for visualizing blockchain data can be applied to a system for visualizing service of blockchain provided in the embodiment of the present application, or other servers and network devices that need to provide a service of blockchain visualization.
Referring to fig. 1, a flowchart illustration of a block chain data visualization method provided in an embodiment of the present application is shown, where the block chain data visualization method includes:
step 101, receiving a connection request of a first target node on a first blockchain network, and connecting with the first target node.
Specifically, the first target node is a certain node on the first blockchain network, for example, referring to fig. 2, the node a is a node on the first blockchain network, and taking the node a as the first target node as an example, the visualization system receives a connection request of the node a, and connects with the first target node a.
It is worth noting that the block chain data visualization method provided by the embodiment of the application can be applied to a plurality of block chain networks to provide visualization services for a plurality of nodes on the plurality of block chain networks, and for the same block chain network, visualization of a plurality of channel block data on the network can be provided, wherein a channel is used for data isolation. Referring to fig. 2, a schematic of the connections between a 2 blockchain network, nodes, and a visualization service system is shown.
Step 102, reading the configuration information of the first target node, and connecting to the first blockchain network through the configuration information of the first target node.
Specifically, after the visualization system is connected to the first target node a, the configuration information of the node a is read, and the visualization system is connected to the first block chain network through the configuration information of the node a.
Step 103, acquiring data of the first block chain network, and storing the data of the first block chain network in a visual service database.
Specifically, the visualization system is connected to the first blockchain network through the configuration information of the node a, so as to obtain data of the first blockchain network, then store the data of the first blockchain network in a visualization service database, and process the data of the first blockchain network through the visualization system.
Illustratively, the data of the blockchain network includes: block information, configuration information of the blockchain network, etc.
It should be noted that, when a target node is connected to the visualization service system for the first time, the visualization service database is empty of target node data, for example, when the node a is connected to the visualization service system for the first time, the visualization service system is empty of data related to the node a, but after the first and subsequent connections, the database of the visualization service system stores data related to the node a in the previous n connections except that new data to be updated is not available. In addition, if the visualization service system is required to provide the service data association function, related service data needs to be imported into the target node in advance, and the service association part is described in detail later.
Step 104, receiving a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node.
Specifically, the visualization service system can receive a data query request from a node on a first blockchain network, for example, referring to fig. 2, which shows a connection relationship between a blockchain, a node and the visualization service system, the node connected to the visualization service system can initiate a data query request to the visualization service system, for example, node a and node B shown in the figure both belong to the first blockchain network, and both can initiate a data query request to the visualization service system about the first blockchain network.
And 105, extracting the processed data corresponding to the data query request from the visual service database according to the data query request, and sending the processed data to the second target node.
Specifically, since the blockchain visualization service system has stored data in the first blockchain network in the visualization service database in the previous connection with the first node, the data of the blockchain network is acquired by connecting to the first blockchain network through the certificate of the node a; and then, for a node in the first block chain network, such as the node a, or the node B, initiating a data query request to the visualization service system, wherein the visualization service system extracts the processed data corresponding to the data query request from the visualization service database and sends the processed data to the second target node, and analyzes the block data of the query request through the visualization service system, so as to provide visualization service for the node initiating the data query request on the first block chain network, such as the node A, B, and provide the processed data for the node initiating the query request, thereby relieving the computational pressure of the node and improving the query efficiency.
Specifically, according to the method, when a plurality of nodes in the same block chain network are respectively accessed to the visualization system, the visualization system does not need to repeatedly acquire acquired data, and can directly call the analyzed data response request in the database. If the first node is a, the second node may be any of A, B, N, where A, B, N all belong to the first blockchain network and they belong to one channel.
Optionally, the data of the blockchain network includes: configuration information of the block chain network and block information of the block chain network;
the configuration information includes: channel information, billing nodes, endorsement nodes, sorting nodes, and/or chain codes.
The block information includes: the method comprises the following steps of block basic information (block number, block hash, last block hash including transaction number, block size and creation time), transaction information (a block to which a transaction belongs, transaction hash, chain code corresponding to the transaction, specific state data in the transaction, transaction type (configuration or data)), a transaction generation mode (generated by a read or write chain), and a corresponding relation between the transaction and service data.
The configuration information includes: created channels, nodes (accounting nodes, endorsement nodes, sorting nodes), chain codes, relationships of nodes to chain codes (chain codes installed on nodes), relationships of nodes to channels (channels joined by nodes), chain codes installed by channels, number of blocks per channel, number of transactions, and the like.
The information of the blockchain network includes:
1. block chain network configuration-configuration information;
2. some or all block information-block information;
3. transaction information-for a certain transaction or for all transactions;
4. the number of uplink channels is counted, such as how many blocks are in total, how many transactions are, etc.
Optionally, the method further includes:
detecting a new block appearing in the first blockchain network;
and when a new block appears, judging the block type:
if the new block is a configuration block, updating the configuration information of the first block chain network and the block information of the first block chain network in the visual service database;
if the new block is not a configuration block, updating the block information of the new block of the first block chain network in the visual service database;
wherein the allocation block is a block resulting from a change in the block chain network allocation.
Specifically, the new block in each blockchain network may be monitored in real time by setting a listener service, and an exemplary execution flow diagram of the new block listener service is shown in fig. 3: firstly, reading configuration information, and connecting a block chain network, for example, connecting the block chain network to the block chain network through the configuration information of a target node; secondly, updating the network configuration; then, starting block event service, and monitoring a new block through the block event service: judging whether a new block exists, if so, starting a judgment transaction and judging the type of the new block; if the new block is a configuration block, updating the configuration, specifically, if the configuration information of the target block chain network and the block information of the target block chain network in the visual service database are updated; if the new block is not a configuration block, directly inserting the new block and corresponding transaction, and updating block information, specifically, updating the block information of the new block of the target block chain network in the visual service database, including the block and transaction number of the channel table, and updating the chain code table transaction number; it is noted that the difference between configuration blocks and non-configuration blocks is that configuration blocks need to update the configuration information of the new block, both blocks need to insert new blocks and corresponding transactions, as well as update their block information.
Optionally, the method further includes:
checking block information stored in the visual service database at regular time, and if a missing block exists, inquiring and determining the missing block according to the height of the block;
judging whether the missing block is a configuration block, if so, updating the configuration information of the block chain network and the block information of the block chain network in the visual service database; and if the block is not the configuration block, directly updating the block information of the block chain network.
Specifically, the block height continuity characteristic can be used to detect whether there is a discontinuity in the library or a block height different from the latest block height, so as to check the missing block.
Specifically, the missing block in each blockchain network may be checked by setting a listener service, and an exemplary execution flow diagram of the missing block listener service is shown in fig. 4: firstly, regularly checking a block table (if monitoring needs to be carried out on a first block chain network, regularly checking the block table of the first block chain network); obtaining a latest block height of the channel (e.g., obtaining the latest block height of the channel of the first blockchain network); then, traversing the block table, and judging whether a missing block exists; if the missing block exists, starting a judgment transaction, and judging the type of the missing block; if no missing block exists, returning to the link of checking the block table at regular time; if the missing block is a configuration block, updating the configuration, such as updating the configuration information of the target block chain network and the block information of the target block chain network in the visual service database; if the missing block is not a configuration block, directly inserting the missing block and corresponding transaction, and then updating block information, such as updating the block information of the missing block of the target block chain network in the visual service database; it should be noted that the difference between the configuration block and the non-configuration block is that the configuration block needs to update the configuration information of the missing block, then the missing block and the corresponding transaction are inserted, and then the block information is updated; both blocks need to update their block information.
Optionally, the method further includes:
and regularly checking whether the configuration information of the first block chain network is changed, and if so, modifying the configuration information of the first block chain network in a database.
Specifically, the visual service method provided in the embodiment of the present application can also check the configuration information of the target blockchain network at regular time, for example, the network configuration information of the first blockchain network, the second blockchain network, or other blockchain networks is checked at regular time according to a request of a node, and if there is a change, the network configuration information is updated, so that it is avoided that new blockchain information, data, and the like are not received in time due to updating of the blockchain network configuration information.
Optionally, the extracting the processed data corresponding to the data query request from the visualization service database and sending the processed data to the second target node includes:
analyzing the block information data in the first block chain network:
analyzing all transaction data in each block in the first block chain network to obtain all data contained in each transaction, including state data of each transaction;
analyzing the read-write set of each transaction to obtain the read-write operation details of each transaction, wherein the read-write operation of the definition chain code of each user is recorded;
and associating the acquired state data of each transaction and all read-write operations with the original uplink service data.
Specifically, in the block data analysis process, the invention simultaneously analyzes the state data of the transaction in the block to obtain all historical data of the state database, so that the uplink data is more transparent, and in addition, the authenticity and the correctness of the uplink data can be compared by associating the uplink data with the service data, thereby facilitating the statistics, the verification, the monitoring, the supervision and the like of the data.
Specifically, all transaction data in the block are analyzed to obtain all data contained in each transaction; and analyzing the read-write set in the transaction to obtain the read-write operation details of the transaction.
Specifically, the read-write operation for recording the definition chain code of each user includes parameters such as a transaction hash, a chain code name, a read/write key, a value and the like. The read-write set of the system chain code is not recorded here because the system chain code operation is related to the block chain network configuration, chain code management, etc., and is unrelated to the service data of the uplink of the user, and does not need to pay attention. It should be noted that if there is a need for monitoring the configuration of the blockchain network, managing the chain code, etc., the read/write operation of the system chain code can also be recorded.
Specifically, the obtained key is associated with the original uplink service data (the key value can be defined as a unique identifier such as ref, UUID, etc. of the original uplink service data during uplink operation, so as to find out the corresponding unique original uplink data).
By associating the transaction with the original uplink data in the above steps, all operations on the blockchain corresponding to the piece of data can be further obtained, for example, a certain transaction writes the piece of data on the chain for the first time, a certain transaction reads the piece of data on the chain, and a certain transaction modifies the piece of data on the chain. By analyzing these operations, the authenticity of the uplink data (whether the uplink is true), non-tampering (unmodified after the write chain), repeated uplink (multiple write chains), etc. can be verified.
In addition, by comparing the value of the uplink data writing chain with the value on the chain, the correctness and the non-tampering of the uplink data can also be verified. If the monitoring requirement exists, the state of the uplink data can be monitored in real time through the associated uplink data, and if the modification exists, an alarm is given in time to prevent the malicious node from tampering the data. If there is a data statistical requirement, statistics can be performed according to the recorded read-write operation, such as counting the number of write chains and the number of read chains of each chain code.
For example, each node has all accounts (block data), and for comparing whether a transaction in the first block is tampered, the key and value (the state data is a key-value pair) of the transaction can be obtained first, and the service data is associated by the key:
the service data is as follows: id: 1, name: Zhang III, and amount: 30;
the data on the chain is: key:1, value: 439fhdk 939;
a hash value is calculated from the traffic data indicating that the data on the chain is correct if 439fhdk939 and erroneous if it is not 439fhdk 939.
For example, to check all reads and writes for this transaction in the chain, the database can be queried according to key:1 to see if there is any modification in this data, if the modified value is not equal to 439fhdk 939.
Optionally, the method further includes:
connecting with a supervision node;
receiving a data query request initiated by the supervisory node;
and displaying the processed data corresponding to the data query request to the supervision node according to the data query request, and providing the service data associated with the corresponding processed data.
For example, the types of the business data are many, the business data of each company are different, and may be transaction flow, customer information, invoices, inventory of goods, and the like, and the specific types of the business data are determined according to the business data of different companies.
Illustratively, the service data is: id: 1, name: Zhang III, and amount: 30; the data on the chain is: key:1, value: 439fhdk 939;
1) calculating the hash of the service data;
2) comparing the hash with the value of the data on the corresponding chain, and if the hash is equal to the value of the data on the corresponding chain, indicating that the data on the chain is correct and is the same as the service data;
3) and comparing the external data with the service data, and if the external data is the same as the service data, indicating that the data provided by the service party is real and the data on the block chain is real and reliable.
In addition, data with different dimensions can be checked, for example, service data is:
trading: id: 1, name: Zhang three, and amount: 30 (representing 30 yuan for transaction flow);
invoice: id: 1, name: Zhang III, and amount: 20 (representing the invoicing amount of 20 yuan);
the data of the supervision party are as follows:
invoice: id: 1, name: Zhang III, and amount: 20 (representing the invoicing amount of 20 yuan);
the supervisor can not confirm whether the invoice amount is legal or not because no transaction runs, and can pass through:
1) checking whether the data is the same as the data on the service data chain;
2) checking whether the service data is the same as the supervisor data;
3) and (5) checking that the invoice amount is legal and no false invoice is issued.
The supervisor data refers to data stored by the supervisor, for example, if the supervisor is a tax bureau, the tax bureau itself is invoice data issued by three-piece tax bureau, because the invoice is issued by the tax bureau.
Specifically, the supervision node can acquire the block data of each node through accessing the block chain data visualization service, so that the transaction in the block chain network is monitored, the account checking of the target node or the transaction data of the target company is realized, and the transaction legality and the safety guarantee are greatly improved.
Optionally, the method further includes:
receiving a data verification task initiated by the supervision node, and initiating a data verification subtask to an assistant node in the block chain network according to the data verification task;
receiving data verification subtask completion feedback information of each assisting node;
according to the completion feedback information of each data verification subtask, integrating the completion information of the data verification tasks and sending the completion information to the supervision node;
and the assisting nodes are nodes capable of participating in the data verification subtasks and are selected according to the verification task rules.
Specifically, when the supervision node performs data verification and the self computational pressure is too high, a data verification task can be initiated in the blockchain network, the data verification task is split into a plurality of data verification subtasks, task assistance is initiated to other nodes without interest correlation in the blockchain network, feedback information of a plurality of assistance nodes is received and integrated into a final verification result, and how to specifically select the nodes of the data verification subtasks is selected according to a preset rule, so that the supervision node can fully utilize the computational resources of each node in the blockchain network.
To sum up, in the block chain data visualization method provided in the embodiment of the present application, the block chain data visualization method provided in the embodiment of the present application is connected to a first target node on a first block chain network by receiving a connection request of the first target node; reading configuration information of the first target node, and connecting to the first block chain network through the configuration information of the first target node; acquiring data of the first block chain network, and storing the data of the first block chain network to a visual service database; receiving a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node; extracting processed data corresponding to the data query request from the visual service database according to the data query request and sending the processed data to the second target node; the target node can quickly acquire the processed data in the block chain network where the target node is located, and the block chain data query efficiency is improved.
Referring to fig. 5, an embodiment of the present application provides a block chain data visualization system 50, including:
a first processing module 51, configured to receive a connection request of a first target node on a first blockchain network, and connect with the first target node;
a second processing module 52, configured to read configuration information of the first target node, and connect to the first blockchain network through the configuration information of the first target node;
a storage module 53, configured to acquire data of the first blockchain network, and store the data of the first blockchain network in a visualization service database;
a receiving module 54, configured to receive a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node;
and a third processing module 55, configured to extract, according to the data query request, processed data corresponding to the data query request from the visualization service database, and send the processed data to the second target node.
Optionally, the data of the blockchain network includes: configuration information of the block chain network and block information of the block chain network;
the configuration information includes: channel information, billing nodes, endorsement nodes, sorting nodes, and/or chain codes.
Optionally, the block chain data visualization system 50 further includes:
a new block detection module 56, configured to detect a new block appearing in the first blockchain network;
and when a new block appears, judging the block type:
if the new block is a configuration block, updating the configuration information of the first block chain network and the block information of the first block chain network in the visual service database;
if the new block is not a configuration block, updating the block information of the new block of the first block chain network in the visual service database;
wherein the allocation block is a block resulting from a change in the block chain network allocation.
Optionally, the block chain data visualization system 50 further includes:
a missing block detection module 57, configured to check block information stored in the visual service database at regular time, and if a missing block exists, query and determine the missing block according to a block height;
judging whether the missing block is a configuration block, if so, updating the configuration information of the block chain network and the block information of the block chain network in the visual service database; and if the block is not the configuration block, directly updating the block information of the block chain network.
Optionally, the block chain data visualization system 50 further includes:
a block chain configuration detecting module 58, configured to periodically check whether the configuration information of the first block chain network is changed, and if so, modify the configuration information of the first block chain network in the database.
Optionally, the extracting the processed data corresponding to the data query request from the visualization service database and sending the processed data to the second target node includes:
analyzing the block information data in the first block chain network:
analyzing all transaction data in each block in the first block chain network to obtain all data contained in each transaction, including state data of each transaction;
analyzing the read-write set of each transaction to obtain the read-write operation details of each transaction, wherein the read-write operation of the definition chain code of each user is recorded;
and associating the acquired state data of each transaction and all read-write operations with the original uplink service data.
Optionally, the blockchain data visualization system 50 further includes a supervision module 59 configured to:
connecting with a supervision node;
receiving a data query request initiated by the supervisory node;
and displaying the processed data corresponding to the data query request to the supervision node according to the data query request, and providing the service data associated with the corresponding processed data.
Optionally, the supervision module 59 is further configured to:
receiving a data verification task initiated by the supervision node, and initiating a data verification subtask to an assistant node in the block chain network according to the data verification task;
receiving data verification subtask completion feedback information of each assisting node;
according to the completion feedback information of each data verification subtask, integrating the completion information of the data verification tasks and sending the completion information to the supervision node;
and the assisting nodes are nodes capable of participating in the data verification subtasks and are selected according to the verification task rules.
The block chain data visualization system 50 provided in the embodiment of the present application can implement each process of the above-described embodiment of the block chain data visualization system method, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
Referring to fig. 6, an embodiment of the present invention further provides an electronic device 60, which includes a processor 61, a memory 62, and a computer program stored in the memory 62 and capable of running on the processor 61, where the computer program, when executed by the processor 61, implements each process of the above embodiment of the block chain data visualization method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the block chain data visualization method, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware system, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications of this invention are intended to be covered by the scope of the invention as expressed herein.

Claims (11)

1. A method for visualizing blockchain data, comprising:
receiving a connection request of a first target node on a first blockchain network, and connecting with the first target node;
reading configuration information of the first target node, and connecting to the first block chain network through the configuration information of the first target node;
acquiring data of the first block chain network, and storing the data of the first block chain network to a visual service database;
receiving a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node;
and extracting the processed data corresponding to the data query request from the visual service database according to the data query request, and sending the processed data to the second target node.
2. The method for visualizing data in a blockchain of claim 1,
the data of the blockchain network comprises: configuration information of the block chain network and block information of the block chain network;
the configuration information includes: channel information, billing nodes, endorsement nodes, sorting nodes, and/or chain codes.
3. The blockchain data visualization method according to claim 2, wherein the method further comprises:
detecting a new block appearing in the first blockchain network;
and when a new block appears, judging the block type:
if the new block is a configuration block, updating the configuration information of the first block chain network and the block information of the first block chain network in the visual service database;
if the new block is not a configuration block, updating the block information of the new block of the first block chain network in the visual service database;
wherein the allocation block is a block resulting from a change in the block chain network allocation.
4. The blockchain data visualization method according to claim 2, wherein the method further comprises:
checking block information stored in the visual service database at regular time, and if a missing block exists, inquiring and determining the missing block according to the height of the block;
judging whether the missing block is a configuration block, if so, updating the configuration information of the block chain network and the block information of the block chain network in the visual service database; and if the block is not the configuration block, directly updating the block information of the block chain network.
5. The blockchain data visualization method according to claim 1, wherein the method further comprises:
and checking whether the configuration information of the first block chain network is changed at regular time, and if so, modifying the configuration information of the first block chain network in a database.
6. The method for visualizing blockchain data of claim 4, wherein extracting the processed data corresponding to the data query request from the visualization service database and sending the processed data to the second target node comprises:
analyzing the block information data in the first block chain network:
analyzing all transaction data in each block in the first block chain network to obtain all data contained in each transaction, including state data of each transaction;
analyzing the read-write set of each transaction to obtain the read-write operation details of each transaction, wherein the read-write operation of the definition chain code of each user is recorded;
and associating the acquired state data of each transaction and all read-write operations with the original uplink service data.
7. The blockchain data visualization method according to claim 6, wherein the method further comprises:
connecting with a supervision node;
receiving a data query request initiated by the supervisory node;
and displaying the processed data corresponding to the data query request to the supervision node according to the data query request, and providing the service data associated with the corresponding processed data.
8. The blockchain data visualization method according to claim 7, wherein said method further comprises:
receiving a data verification task initiated by the supervision node, and initiating a data verification subtask to an assistant node in the block chain network according to the data verification task;
receiving data verification subtask completion feedback information of each assisting node;
according to the completion feedback information of each data verification subtask, integrating the completion information of the data verification tasks and sending the completion information to the supervision node;
and the assisting nodes are nodes capable of participating in the data verification subtasks and are selected according to the verification task rules.
9. A blockchain data visualization system, comprising:
a first processing module, configured to receive a connection request of a first target node on a first blockchain network, and connect to the first target node;
the second processing module is used for reading the configuration information of the first target node and connecting the configuration information of the first target node to the first block chain network;
the storage module is used for acquiring the data of the first block chain network and storing the data of the first block chain network to a visual service database;
a receiving module, configured to receive a data query request initiated by a second target node on the first blockchain network; the second target node comprises the first target node;
and the third processing module is used for extracting the processed data corresponding to the data query request from the visual service database according to the data query request and sending the processed data to the second target node.
10. An electronic device, comprising: processor, memory and program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the blockchain data visualization method according to any one of claims 1 to 8.
11. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for blockchain data visualization according to any one of claims 1 to 8.
CN202210019294.7A 2022-01-10 2022-01-10 Block chain data visualization method and system, electronic device and storage medium Pending CN114022151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210019294.7A CN114022151A (en) 2022-01-10 2022-01-10 Block chain data visualization method and system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210019294.7A CN114022151A (en) 2022-01-10 2022-01-10 Block chain data visualization method and system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114022151A true CN114022151A (en) 2022-02-08

Family

ID=80069795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210019294.7A Pending CN114022151A (en) 2022-01-10 2022-01-10 Block chain data visualization method and system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114022151A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116842511A (en) * 2023-09-01 2023-10-03 法诺信息产业有限公司 Blockchain data supervision method, system, equipment and storage medium
CN116976898A (en) * 2023-09-25 2023-10-31 腾讯科技(深圳)有限公司 Data acquisition method, data visualization method, device and related products

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985757A (en) * 2017-11-27 2018-12-11 北京京东金融科技控股有限公司 Information processing method, apparatus and system, storage medium, electronic equipment
CN109634679A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain configures update method, device, equipment and storage medium
CN110380919A (en) * 2019-08-30 2019-10-25 北京东软望海科技有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of block chain request
US20200112446A1 (en) * 2018-10-08 2020-04-09 International Business Machines Corporation Blockchain timestamp agreement

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985757A (en) * 2017-11-27 2018-12-11 北京京东金融科技控股有限公司 Information processing method, apparatus and system, storage medium, electronic equipment
US20200112446A1 (en) * 2018-10-08 2020-04-09 International Business Machines Corporation Blockchain timestamp agreement
CN109634679A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain configures update method, device, equipment and storage medium
CN110380919A (en) * 2019-08-30 2019-10-25 北京东软望海科技有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of block chain request

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116842511A (en) * 2023-09-01 2023-10-03 法诺信息产业有限公司 Blockchain data supervision method, system, equipment and storage medium
CN116842511B (en) * 2023-09-01 2023-11-14 法诺信息产业有限公司 Blockchain data supervision method, system, equipment and storage medium
CN116976898A (en) * 2023-09-25 2023-10-31 腾讯科技(深圳)有限公司 Data acquisition method, data visualization method, device and related products
CN116976898B (en) * 2023-09-25 2024-02-23 腾讯科技(深圳)有限公司 Data acquisition method, data visualization method, device and related products

Similar Documents

Publication Publication Date Title
CN107391359B (en) Service testing method and device
CN114022151A (en) Block chain data visualization method and system, electronic device and storage medium
CN109446208A (en) A kind of date storage method, computer readable storage medium and server
CN113034274A (en) Supply chain financial service system and method based on block chain and terminal equipment
CN111526063A (en) Link breakpoint monitoring method, device, terminal and storage medium based on whole service
CN113205402A (en) Account checking method and device, electronic equipment and computer readable medium
CN114282011B (en) Knowledge graph construction method and device, and graph calculation method and device
CN109582550A (en) A kind of method, apparatus and server obtaining full dose business scenario failure collection
CN115757623A (en) Account checking method, account checking system and electronic equipment
CN114840527A (en) Data processing method, device and computer readable storage medium
CN111125118A (en) Associated data query method, device, equipment and medium
CN110689333A (en) Block chain automatic account checking method, device, system and storage medium
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN113901046A (en) Virtual dimension table construction method and device
CN112488562A (en) Service implementation method and device
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service
CN111429125B (en) Account management method and device, storage medium and electronic equipment
CN110414186B (en) Data asset segmentation verification method and device
CN111488625B (en) Data processing method and device
CN117009202A (en) Buried data processing method, buried data processing device, buried data processing equipment and storage medium
CN114047910A (en) Inter-system interface processing method and device
CN117520322A (en) Data checking method and device, electronic equipment and medium
CN115641142A (en) Method and device for monitoring payment process
CN113590422A (en) Automatic fusing processing method, device and system for service exception
CN114519090A (en) Stop word management method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination