CN109783699B - Method and apparatus for monitoring distributed ledgers of blockchain networks - Google Patents

Method and apparatus for monitoring distributed ledgers of blockchain networks Download PDF

Info

Publication number
CN109783699B
CN109783699B CN201910084958.6A CN201910084958A CN109783699B CN 109783699 B CN109783699 B CN 109783699B CN 201910084958 A CN201910084958 A CN 201910084958A CN 109783699 B CN109783699 B CN 109783699B
Authority
CN
China
Prior art keywords
transaction
graphical
graphical representation
distributed ledger
units
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910084958.6A
Other languages
Chinese (zh)
Other versions
CN109783699A (en
Inventor
陶星良
吴小川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baibao Shanghai Technology Co ltd
Zhongan Information Technology Service Co Ltd
Original Assignee
Baibao Shanghai Technology Co ltd
Zhongan Information Technology Service 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 Baibao Shanghai Technology Co ltd, Zhongan Information Technology Service Co Ltd filed Critical Baibao Shanghai Technology Co ltd
Priority to CN201910084958.6A priority Critical patent/CN109783699B/en
Publication of CN109783699A publication Critical patent/CN109783699A/en
Application granted granted Critical
Publication of CN109783699B publication Critical patent/CN109783699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the disclosure discloses a method and a device for monitoring a distributed ledger of a blockchain network. The method comprises the following steps: acquiring a distributed account book of a blockchain network; reading the transaction state and the transaction content of each transaction unit from the distributed account book, wherein the transaction content of each transaction unit comprises a reference relation between each transaction unit and other transaction units; selecting a graphic element for each transaction unit from a predefined graphic element library based on the transaction status of each transaction unit; displaying graphical elements of the respective transaction units in a graphical user interface and connecting the graphical elements of the respective transaction units based on a reference relationship between the respective transaction units to generate a first graphical representation; and monitoring the distributed ledger based on the first graphical representation. The method according to the embodiment of the present disclosure can intuitively present the distributed ledger of the blockless structure through visualization to easily observe and operate the blockchain and realize real-time monitoring of the distributed ledger.

Description

Method and apparatus for monitoring distributed ledgers of blockchain networks
Technical Field
The present disclosure relates generally to information processing technology, and more particularly, to a method, apparatus, and corresponding computer readable storage medium for monitoring a distributed ledger of a blockchain network.
Background
The Block Chain (Block Chain) technology is based on a decentralised peer-to-peer network, combines the cryptography principle with a consensus mechanism to ensure the data continuity and persistence of each distributed node, and realizes the characteristics of non-falsification, non-falsification and the like of a distributed account book, thereby creating a set of privacy, efficient and safe distributed trust system.
The distributed ledger of the traditional blockchain network adopts a block-based single-chain storage structure, and only one chain exists in the whole network at the same time, so that the blocks cannot be executed concurrently, the execution efficiency is low, and the distributed ledger is difficult to apply to some time delay sensitivity scenes. With the rapid development of blockchain technology, new blockchain architectures (e.g., blockchain architectures such as multi-chain, directed acyclic graph (DAG, directed Acyclic Graph) architectures) employing blockless-based distributed ledgers are now emerging that are superior to traditional blockchain architectures in terms of both transaction speed and scalability. However, the topology of this new blockchain architecture is more complex than that of the conventional single-chain blockchain architecture.
Thus, there is a need for a method that can graphically depict such new blockchain structures.
Disclosure of Invention
In general, embodiments of the present disclosure provide methods, apparatus, and corresponding computer-readable storage media for monitoring a distributed ledger of a blockchain network to at least partially solve the above and other potential problems of the prior art.
A first aspect of an embodiment of the present disclosure provides a method of monitoring a distributed ledger of a blockchain network, the method comprising: acquiring a distributed account book of a blockchain network, wherein the distributed account book comprises transaction units which are directly linked without blocks; reading each transaction unit in the transaction units from the distributed account book to acquire the transaction state and the transaction content of each transaction unit, wherein the transaction content of each transaction unit comprises a reference relation between each transaction unit and other transaction units; selecting a graphic element of each transaction unit from a predefined graphic element library based on the transaction state of each transaction unit; displaying graphical elements of the respective transaction units in a graphical user interface and connecting the graphical elements of the respective transaction units based on a reference relationship between the respective transaction units to generate a first graphical representation; based on the first graphical representation, the distributed ledger is monitored.
In some embodiments, the method further comprises: obtaining a first message from the blockchain network representing generation of a new transaction, the first message including a transaction status and transaction content of a new transaction unit, the new transaction unit included in the distributed ledger; selecting the graphic elements of the new transaction unit from the predefined graphic element library according to the transaction state of the new transaction unit; and adding a graphical element of the new transaction unit to the graphical user interface to update the first graphical representation.
In some embodiments, the method further comprises: obtaining a second message from the blockchain network representing an updated transaction status, the second message including a latest transaction status of an updated transaction unit and a latest reference relationship between the updated transaction unit and other transaction units in the distributed ledger, the updated transaction unit being included in the distributed ledger; reselecting a graphic element of the updated transaction unit from the predefined graphic element library based on the updated transaction status of the updated transaction unit; redisplaying the updated transaction unit in the graphical user interface to update the first graphical representation based on the re-selected graphical element of the updated transaction unit; and reconnecting the graphical elements of the updated transaction unit with the graphical elements of other transaction units in the distributed ledger based on the updated reference relationship between the updated transaction unit and other transaction units in the distributed ledger.
In some embodiments, monitoring the distributed ledger based on the first graphical representation includes: detecting whether a directed loop exists in the first graphical representation; and when a directed loop is detected to exist in the first graphical representation, displaying first alert information in the graphical user interface to indicate that the distributed ledger does not satisfy a directed acyclic graph structure.
In some embodiments, monitoring the distributed ledger based on the first graphical representation includes: the transaction state includes an unverified state and a verified state; when the time that the transaction state of at least one of the transaction units in the first graphical representation is in an unverified state exceeds a first threshold, a second alert message is displayed in the graphical user interface to indicate that the at least one transaction unit has timed out to be unverified.
In some embodiments, the method further comprises: selecting a graphical element of one or more transaction units in the first graphical representation; and displaying transaction content of the one or more transaction units in the graphical user interface to generate a second graphical representation.
In some embodiments, the method further comprises: selecting a graphical element of a particular transaction unit in the first graphical representation; and determining all transaction units with the same transaction participants as the specific transaction unit according to the transaction content of each transaction unit, wherein the transaction participants comprise transaction sponsors and/or transaction acceptors; and displaying graphical elements of all transaction units having the same transaction participant as the particular transaction unit in the graphical user interface and connecting the graphical elements of all transaction units based on the reference relationship between the all transaction units to generate a third graphical representation.
In some embodiments, the method further comprises: simultaneously displaying the first graphical representation and the third graphical representation in the graphical user interface; and the particular instance of time shown in the first graphical representation is aligned on the display with the particular instance of time shown in the third graphical representation.
A second aspect of an embodiment of the present disclosure provides an apparatus for monitoring a distributed ledger of a blockchain network, the apparatus comprising: a memory for storing instructions; and a processor coupled to the memory, the instructions, when executed by the processor, cause the processor to perform the method described in accordance with the first aspect of the disclosed embodiments.
A third aspect of the disclosed embodiments provides a non-transitory computer-readable storage medium. The non-transitory computer readable storage medium stores instructions that, when executed, are to implement the method described in accordance with the first aspect of the embodiments of the present disclosure.
Embodiments of the present disclosure may intuitively present a distributed ledger of a blockless structure through visualization to easily observe and operate blockchains and enable real-time monitoring of the distributed ledger.
Drawings
Embodiments of the present disclosure will now be described, by way of example only, with reference to the accompanying schematic drawings in which corresponding or analogous reference symbols indicate corresponding or analogous elements, and in which:
FIG. 1 illustrates an exemplary environment 100 in which embodiments of the present disclosure may be implemented.
Fig. 2 illustrates a flowchart of an exemplary method 200 for monitoring a distributed ledger of a blockchain network in accordance with embodiments of the present disclosure.
Fig. 3 illustrates a schematic diagram of an exemplary apparatus 300 for monitoring a distributed ledger of a blockchain network in accordance with an embodiment of the present disclosure.
Fig. 4 illustrates an exemplary graphical user interface 400 according to an embodiment of the present disclosure.
Fig. 5 illustrates an exemplary graphical user interface 500 according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the same reference numerals may be used throughout the figures for similar parts or functional components. The drawings are intended to depict only embodiments of the disclosure. Alternative embodiments will become apparent to those skilled in the art from the following description without departing from the spirit and scope of the disclosure.
The terms "comprising," including, "and similar terms used herein should be interpreted as open-ended terms, i.e., including, but not limited to," meaning that other elements may also be included. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment," and so forth. The word "exemplary" is used herein to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate. For the purpose of illustration only, the connection between elements in the figures is meant to indicate that at least the elements at both ends of the connection are in communication with each other and is not intended to limit the inability to communicate between elements that are not connected.
As described above, with the rapid development of blockchain technology, new blockchain architectures employing non-blockless distributed ledgers are now presented, and the topology of such new blockchain architectures becomes more complex than that of the traditional single-chain blockchain architecture. In view of this, embodiments of the present disclosure are directed to such a new blockchain architecture, visually exposing a blockless structured distributed ledger through visualization to easily observe and operate the blockchain, and to enable real-time monitoring of the distributed ledger.
FIG. 1 illustrates an exemplary environment 100 in which embodiments of the present disclosure may be implemented. The exemplary environment 100 includes a blockchain network 110, an apparatus 120 (e.g., a computing device such as a server, etc.) communicatively connected to the blockchain network 110, clients 130 and 140 (e.g., desktop computers, notebook computers, tablet devices, personal Digital Assistants (PDAs), etc.) communicatively coupled to the apparatus 120 (e.g., communicatively coupled via a wired or wireless network or link). The blockchain network 110 includes a plurality of blockchain nodes 111, 112, 113, 114. Because of the decentralized, distributed nature of blockchain technology, blockchain nodes can exchange information with each other over a variety of communication mediums. Transaction participants may initiate transactions by accessing several of blockchain nodes 111-114, blockchain network 110 employing a blockless-based distributed ledger that includes individual transaction units that are directly linked up without blocks. Further, management operations of the smart contracts, such as installation and deployment of the smart contracts, etc., may be performed at the various blockchain nodes 111-114 such that the transaction is effected by invoking the smart contracts. In addition, the number of exemplary environments 110 and blockchain nodes of FIG. 1 are merely illustrative and not limiting, and the number of blockchain nodes may be other numbers, and the blockchain network 110 may also include other various types of nodes. It should be appreciated that the blockchain network 110 in the exemplary environment of fig. 1 may be an actual running blockchain network, or a blockchain network that is emulated in a virtual environment.
Device 120 may obtain a message or a distributed ledger from blockchain network 110, receive a distributed ledger from one or more blockchain nodes of blockchain network 110, etc., for example, by periodically querying or listening for logs at one or more blockchain nodes of blockchain network 110. The apparatus 120 may have a display device (e.g., a display screen, etc.) for displaying a Graphical User Interface (GUI) related to the data obtained from the blockchain network 110. In one embodiment, the apparatus 120 may periodically obtain a message or a distributed ledger from the blockchain network 110 and display a graphical user interface related to the blockchain architecture on a display device based on the data obtained from the blockchain network 110. In one embodiment, the apparatus 120 may receive a visualization request regarding the blockchain architecture directly from a user, request related data from the blockchain network, and display a graphical user interface related to the blockchain architecture on a display device based on the data obtained from the blockchain network 110. In another embodiment, the apparatus 120 may receive a visualization request for the blockchain structure from either of the clients 130 and 140 associated with the user (e.g., the client may initiate such a request by accessing (e.g., via web access to) the apparatus 120) and display a graphical user interface associated with the blockchain architecture on a display device of the apparatus 120 based on the data obtained from the blockchain network 110, and then send the obtained data to the client such that the client may automatically adjust the display layout of the associated graphical user interface based on factors such as the size, resolution, etc. of the display device of the client.
Fig. 2 illustrates a flowchart of an exemplary method 200 for monitoring a distributed ledger of a blockchain network in accordance with embodiments of the present disclosure. The method 200 may be performed, for example, by the apparatus 120 in the exemplary environment 100 of fig. 1. As shown in the flowchart, the method 200 includes the steps of:
step 201: a distributed ledger of the blockchain network is obtained, the distributed ledger including individual transaction units that are directly linked up without blocks. For example, a distributed ledger may be obtained from one or more blockchain nodes of a blockchain network that includes individual transaction units that are directly linked up without blocks, as opposed to a traditional single-chain storage structure, e.g., a ledger based on DAG technology or similar technical organizations.
Step 202: each of the respective transaction units is read from the distributed ledger to obtain a transaction status and transaction content for each transaction unit, the transaction content for each transaction unit including a reference relationship between each transaction unit and other transaction units. For example, the transaction state may include an unverified state and a verified state, corresponding to a tip or a committed transaction unit, respectively. For example, the transaction content of each transaction unit may include a hash of a number of transaction units verified by the transaction unit to indicate a reference relationship with the number of transaction units. For example, the transaction content of a transaction unit may include transaction participant information to indicate a referencing relationship between different transaction units. In one embodiment, the distributed ledger employs a DAG structure, where each transaction unit must authenticate one or more previous transaction units.
Step 203: the graphic element of each transaction unit is selected from a predefined graphic element library based on the transaction status of each transaction unit. In this step, the respective graphic elements for the transaction unit are determined in accordance with the different transaction states. For example, the graphic elements may be distinguished by shape, size, color, etc.
Step 204: the graphical elements of the respective transaction units are displayed in a graphical user interface and are connected based on the referencing relationship between the respective transaction units to generate a first graphical representation. In this step, a first graphical representation for visually exposing the blockchain architecture is generated based on the referencing relationship between the transaction units.
Step 205: based on the first graphical representation, a distributed ledger is monitored. In this step, the distributed ledger may be monitored by visualized graphical representations, such as monitoring dynamic changes of the transaction units, etc.
The above-described steps 201-205 provide a solution to visually present a distributed ledger without blockwise structure by visualization to easily observe and operate blockwise chains and to enable real-time monitoring of the distributed ledger.
In some embodiments, the method 200 may further comprise: obtaining a first message from the blockchain network representing generation of a new transaction, the first message including a transaction status and transaction content of a new transaction unit, the new transaction unit included in the distributed ledger; selecting graphic elements of the new transaction unit from a predefined graphic element library according to the transaction state of the new transaction unit; and adding the graphical element of the new transaction unit to the graphical user interface to update the first graphical representation. For example, a first message from the blockchain network may be obtained by periodically querying or listening to the blockchain network that indicates that a new transaction is to be generated. In this step, when a new transaction occurs in the blockchain network, the new transaction element will be included in the distributed ledger to update the distributed ledger, and accordingly, the new transaction element may be added and displayed in the first graphical representation, thereby enabling a real-time updated display of the distributed ledger.
In some embodiments, the method 200 may further comprise: obtaining a second message from the blockchain network representing an updated transaction status, the second message including the updated transaction status of the updated transaction unit and the updated reference relationship between the updated transaction unit and other transaction units in the distributed ledger, the updated transaction unit being included in the distributed ledger; reselecting graphic elements of the updated transaction unit from a predefined graphic element library based on the updated transaction status of the updated transaction unit; redisplaying the updated transaction unit in the graphical user interface to update the first graphical representation based on the re-selected graphical element of the updated transaction unit; and reconnecting the graphical elements of the updated transaction unit with the graphical elements of the other transaction units in the distributed ledger based on the updated reference relationship between the updated transaction unit and the other transaction units in the distributed ledger. For example, a second message from the blockchain network indicating an updated transaction status may be obtained by periodically querying or listening to the blockchain network. In this step, when the transaction state and the reference relationship of the updated transaction unit change, the graphic element of the transaction unit may be reselected according to the latest transaction state, and the graphic element of the transaction unit may be redisplayed, and the graphic element of the transaction unit may be reconnected with the graphic elements of other transaction units according to the latest reference relationship, thereby implementing the real-time updating display of the distributed ledger.
In some embodiments, step 205 may comprise: detecting whether a directed loop exists in the first graphical representation; and when a directed loop is detected to exist in the first graphical representation, displaying first alert information in the graphical user interface to indicate that the distributed ledger does not satisfy the directed loop-free graph structure. In this step, it may be determined whether the distributed ledger satisfies a predetermined rule by detecting the first graphical representation. In one embodiment, the predetermined rule is that the distributed ledger needs to employ a DAG, for example, by performing a depth search on the graphical elements in the first graphical representation or by its adjacency matrix or the like to detect whether a directed loop is present in the first graphical representation. In this step, it may be indicated by displaying first alarm information that the monitored distributed ledger has an error that does not satisfy the predetermined rule. In some embodiments, the user may configure a predetermined rule that the distributed ledger needs to satisfy, and detect whether the distributed ledger satisfies the predetermined rule by detecting the first graphical representation, and further display corresponding alarm information based on the detection result.
In some embodiments, step 205 may comprise: the transaction state includes an unverified state and a verified state; when the time that the transaction state of at least one of the transaction units in the first graphical representation is in an unverified state exceeds a first threshold, a second alert message is displayed in the graphical user interface to indicate that the at least one transaction unit has timed out to be unverified. Unlike the distributed ledger of the conventional single-chain storage structure, the transaction unit is directly linked, and a transaction unit which is not verified for a long time may occur.
In some embodiments, the method 200 may further comprise: selecting a graphical element of one or more transaction units in the first graphical representation; and displaying transaction content of the one or more transaction units in the graphical user interface to generate a second graphical representation. For example, the transaction content may include transaction participant information (e.g., transaction initiator and transaction recipient addresses, transfer amounts, etc.), transaction initiator signatures, nonces, altitude, etc. In this step, specific transaction details of each transaction unit may be displayed in detail in the second graphical representation in order to intuitively query the transaction information of the transaction unit corresponding to the graphical element in the first graphical representation.
In some embodiments, the method 200 may further comprise: selecting a graphical element of a particular transaction unit in the first graphical representation; and determining all transaction units with the same transaction participants as the specific transaction unit according to the transaction content of each transaction unit, wherein the transaction participants comprise transaction sponsors and/or transaction acceptors; and displaying graphical elements of all transaction units having the same transaction participant as the particular transaction unit in a graphical user interface and connecting the graphical elements of all transaction units based on the reference relationship between all transaction units to generate a third graphical representation. In this step, the transaction units of the particular transaction participant may be displayed in detail in the third graphical representation so as to visually observe the transaction units involved by the particular transaction participant corresponding to the graphical elements in the first graphical representation.
In some embodiments, the method 200 may further comprise: simultaneously displaying the first graphical representation and the third graphical representation in a graphical user interface; and the particular instance of time shown in the first graphical representation is aligned on the display with the particular instance of time shown in the third graphical representation. In this step, the particular transaction participant may be further intuitively observed, e.g., by aligning the first graphical representation with a particular instance of time shown in the third graphical representation on the display, such as observing the activity level and frequency with which the particular transaction participant initiates transactions. For example, when a certain transaction participant initiates a large number of transactions in a short period of time, it is necessary to determine whether it is likely to act as a malicious node to generate a transaction unit to authenticate other transaction units.
According to the embodiment depicted in fig. 2, a solution for monitoring a distributed ledger of a blockchain network is provided, which has the following advantages: the running state of the blockless-based blockchain is known in an intuitive way by a user; allowing a user to configure the observation node by himself so as to facilitate the user to observe the specific blockchain running state of the user; the complex blockchain structure is visualized, so that blockchain developers and users can monitor and observe the blockchain more easily, and the actual blockchain development or application can be facilitated.
Fig. 3 illustrates a schematic diagram of an exemplary apparatus 300 for monitoring a distributed ledger of a blockchain network in accordance with an embodiment of the present disclosure. The apparatus 300 may include: a memory 301 and a processor 302 coupled to the memory 301. The memory 301 is for storing instructions, and the processor 302 is configured to cause the processor 302 to implement one or more of any of the steps of the method described for the embodiments of the present disclosure (e.g., the method 200 of fig. 2) based on the instructions stored by the memory 301.
As shown in fig. 3, the apparatus 300 may further comprise a communication interface 303 for information interaction with other devices. In addition, the apparatus 300 may further comprise a bus 304, the memory 301, the processor 302 and the communication interface 303 communicating with each other via the bus 304.
The memory 301 may include volatile memory or nonvolatile memory. Processor 302 may be a Central Processing Unit (CPU), microcontroller, application Specific Integrated Circuit (ASIC), digital Signal Processor (DSP), field Programmable Gate Array (FPGA) or other programmable logic device, or one or more integrated circuits configured to implement embodiments of the present invention.
Fig. 4 illustrates an exemplary graphical user interface 400 according to an embodiment of the present disclosure. Graphical user interface 400 includes a first graphical representation 401, where first graphical representation 401 shows a DAG-based distributed ledger including, for example, a plurality of transaction units TX1-TX12, it being understood that transaction unit tx+ numbers are used to identify the different transaction units and not necessarily to represent the actual order in which transactions occur. For example, in the first graphical representation 401, transaction units identified with boxes (e.g., TX1-TX 9) represent transaction units in a verified state, while transaction units identified with circles (e.g., TX10-TX 12) represent transaction units in an unverified state, with directional arrows representing verification of previous transaction units by the transaction units. It should be appreciated that the display, number, and connection between transaction units in the first graphical representation 401 may vary as transactions occur on the blockchain network. When a transaction unit TX9 in the first graphical representation 401 is selected (as indicated by the arrow in fig. 4, for example, when a mouse is moved to or clicks on a TX9 graphical element), a second graphical representation 402 for displaying the transaction content of the transaction unit TX9 may be generated in the graphical user interface 400 to display the specific transaction details of the transaction unit TX 9. When the presence of a directed loop in the first graphical representation 401 is detected, first alert information 403 may be displayed in the graphical user interface 400 to indicate that the distributed ledger does not satisfy the directed loop-free graph structure. When the time that the transaction state of the at least one transaction unit is in the unverified state exceeds a first threshold, a second alert message 404 may be displayed in the graphical user interface 400 to indicate that the at least one transaction unit has timed out to be unverified. It should be appreciated that the display layout of the first graphical representation 401, the second graphical representation 402, the first alert information 403, and the second alert information 404 is merely illustrative and not limiting, and that these information may be displayed on the same page or on different pages in the graphical user interface 400.
Fig. 5 illustrates an exemplary graphical user interface 500 according to an embodiment of the present disclosure. The graphical user interface 500 comprises a first graphical representation 501, the first graphical representation 501 showing a distributed ledger similar to the first graphical representation of fig. 4, and a second graphical representation 502 in the graphical user interface 500 also similar to the second graphical representation 402 of fig. 4, which is not described in detail. For example, when a graphical element (e.g., TX 3) of a particular transaction unit is selected in the first graphical representation 501, all transaction units (e.g., TX3, TX5, TX9, and TX 12) having the same transaction participant as transaction unit TX3 may be determined based on the transaction content of each transaction unit TX1-TX12, and the graphical elements of all of these transaction units and their connections may be displayed in the third graphical display 503. For example, the first graphical display 501 and the third graphical display 503 may be displayed simultaneously, and the particular instance of time shown in the first graphical representation 501 (i.e., the graphical element of the transaction unit) is aligned on display with the particular instance of time shown in the third graphical representation 503, as indicated by the dashed line in fig. 5.
Furthermore, alternatively, the above-described method for monitoring a distributed ledger of a blockchain network can be embodied by a computer program product, i.e., a tangible computer-readable storage medium. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for performing aspects of embodiments of the present disclosure. The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The foregoing is merely an alternative embodiment of the present disclosure, and is not intended to limit the embodiments of the present disclosure, and various modifications and variations may be made to the embodiments of the present disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure are intended to be included within the scope of the embodiments of the present disclosure. Furthermore, while a particular feature or aspect of the embodiments may have been disclosed with respect to only one of several implementations, such feature or aspect may be combined with one or more other features or aspects of the other implementations as may be desired and advantageous for any given or particular application.
Although embodiments of the present disclosure have been described with reference to a number of specific embodiments, it should be understood that embodiments of the present disclosure are not limited to the specific embodiments disclosed. The embodiments of the disclosure are intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims (8)

1. A method for monitoring a distributed ledger of a blockchain network, comprising:
acquiring a distributed account book of a blockchain network, wherein the distributed account book comprises transaction units which are directly linked without blocks;
reading each transaction unit in the transaction units from the distributed account book to acquire the transaction state and the transaction content of each transaction unit, wherein the transaction content of each transaction unit comprises a reference relation between each transaction unit and other transaction units;
selecting a graphic element of each transaction unit from a predefined graphic element library based on the transaction state of each transaction unit;
displaying graphical elements of the respective transaction units in a graphical user interface via a display device and connecting the graphical elements of the respective transaction units based on a reference relationship between the respective transaction units to generate a first graphical representation;
monitoring the distributed ledger based on the first graphical representation;
obtaining a second message from the blockchain network representing an updated transaction status, the second message including a latest transaction status of an updated transaction unit and a latest reference relationship between the updated transaction unit and other transaction units in the distributed ledger, the updated transaction unit being included in the distributed ledger;
reselecting a graphic element of the updated transaction unit from the predefined graphic element library based on the updated transaction status of the updated transaction unit;
redisplaying the updated transaction unit in the graphical user interface to update the first graphical representation based on the re-selected graphical element of the updated transaction unit; and
reconnecting the graphical elements of the updated transaction unit with the graphical elements of other transaction units in the distributed ledger based on the updated reference relationship between the updated transaction unit and other transaction units in the distributed ledger;
selecting a graphical element of a particular transaction unit in the first graphical representation; and
determining all transaction units with the same transaction participants as the specific transaction unit according to the transaction content of each transaction unit, wherein the transaction participants comprise transaction sponsors and/or transaction acceptors; and
displaying graphical elements of all transaction units having the same transaction participant as the particular transaction unit in the graphical user interface and connecting the graphical elements of all transaction units based on the reference relationship between the all transaction units to generate a third graphical representation.
2. The method as recited in claim 1, further comprising:
obtaining a first message from the blockchain network representing generation of a new transaction, the first message including a transaction status and transaction content of a new transaction unit, the new transaction unit included in the distributed ledger;
selecting the graphic elements of the new transaction unit from the predefined graphic element library according to the transaction state of the new transaction unit; and
adding graphical elements of the new transaction unit to the graphical user interface to update the first graphical representation.
3. The method of claim 1, wherein monitoring the distributed ledger based on the first graphical representation comprises:
detecting whether a directed loop exists in the first graphical representation; and
when a directed loop is detected to exist in the first graphical representation, first alert information is displayed in the graphical user interface to indicate that the distributed ledger does not satisfy a directed acyclic graph structure.
4. The method of claim 1, wherein monitoring the distributed ledger based on the first graphical representation comprises:
the transaction state includes an unverified state and a verified state;
when the time that the transaction state of at least one of the transaction units in the first graphical representation is in an unverified state exceeds a first threshold, a second alert message is displayed in the graphical user interface to indicate that the at least one transaction unit has timed out to be unverified.
5. The method as recited in claim 1, further comprising:
selecting a graphical element of one or more transaction units in the first graphical representation; and
the transaction content of the one or more transaction units is displayed in the graphical user interface to generate a second graphical representation.
6. The method as recited in claim 1, further comprising:
simultaneously displaying the first graphical representation and the third graphical representation in the graphical user interface; and
the particular instance of time shown in the first graphical representation is aligned on the display with the particular instance of time shown in the third graphical representation.
7. An apparatus for monitoring a distributed ledger of a blockchain network, comprising:
a memory for storing instructions; and
a processor coupled to the memory, the instructions when executed causing the processor to perform the method for monitoring a distributed ledger of a blockchain network as in any of claims 1-6.
8. A non-transitory computer-readable storage medium storing instructions that, when executed, are configured to implement the method for monitoring a distributed ledger of a blockchain network of any of claims 1-6.
CN201910084958.6A 2019-01-29 2019-01-29 Method and apparatus for monitoring distributed ledgers of blockchain networks Active CN109783699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910084958.6A CN109783699B (en) 2019-01-29 2019-01-29 Method and apparatus for monitoring distributed ledgers of blockchain networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910084958.6A CN109783699B (en) 2019-01-29 2019-01-29 Method and apparatus for monitoring distributed ledgers of blockchain networks

Publications (2)

Publication Number Publication Date
CN109783699A CN109783699A (en) 2019-05-21
CN109783699B true CN109783699B (en) 2023-07-21

Family

ID=66503158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910084958.6A Active CN109783699B (en) 2019-01-29 2019-01-29 Method and apparatus for monitoring distributed ledgers of blockchain networks

Country Status (1)

Country Link
CN (1) CN109783699B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113205339B (en) * 2019-09-30 2023-01-10 支付宝(杭州)信息技术有限公司 Transaction query and transaction data processing method, device and equipment based on block chain
CN111652718B (en) * 2020-07-09 2023-07-28 平安银行股份有限公司 Value flow direction monitoring method, device, equipment and medium based on relational network graph

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018206468A1 (en) * 2017-05-06 2018-11-15 Vivaro Ltd Mediated peer to peer transaction systems and methods
CN109272374A (en) * 2018-08-08 2019-01-25 深圳前海荣创科技有限公司 The cross-border trading platform of both sides and method based on block chain technology

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10121019B2 (en) * 2015-06-02 2018-11-06 ALTR Solutions, Inc. Storing differentials of files in a distributed blockchain
US10445698B2 (en) * 2016-06-30 2019-10-15 Clause, Inc. System and method for forming, storing, managing, and executing contracts
CN108389129B (en) * 2018-02-27 2020-12-04 创新先进技术有限公司 Transaction execution method and device based on block chain and electronic equipment
CN108769154B (en) * 2018-05-15 2021-01-01 北京工业大学 Data storage method based on directed acyclic graph and distributed account book
CN108985732B (en) * 2018-06-08 2020-09-04 中国地质大学(武汉) Consensus and account book data organization method and system based on block-free DAG technology
CN108984789B (en) * 2018-08-15 2021-07-13 赵东洋 Distributed accounting method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018206468A1 (en) * 2017-05-06 2018-11-15 Vivaro Ltd Mediated peer to peer transaction systems and methods
CN109272374A (en) * 2018-08-08 2019-01-25 深圳前海荣创科技有限公司 The cross-border trading platform of both sides and method based on block chain technology

Also Published As

Publication number Publication date
CN109783699A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109308284B (en) Report menu generation method and device, computer equipment and storage medium
CN110266505B (en) Method and equipment for managing session group
US20140040920A1 (en) Strategy based event notification chain
CN109783699B (en) Method and apparatus for monitoring distributed ledgers of blockchain networks
CN108289034A (en) A kind of fault discovery method and apparatus
CN110336733B (en) Method and equipment for presenting emoticon
EP3828722A2 (en) Method and apparatus of constructing a fused relationship network, electronic device and medium
EP3014492B1 (en) Method and apparatus for automating network data analysis of user's activities
CN111966255A (en) Information display method and device, electronic equipment and computer readable medium
CN111506473A (en) Server monitoring system and server monitoring method
CN110290058B (en) Method and equipment for presenting session message in application
CN113312560B (en) Group detection method and device and electronic equipment
CN104657406A (en) Interactive Splitting Of Entries In Social Collaboration Environments
CN113067860B (en) Method, apparatus, device, medium and product for synchronizing information
US9973410B2 (en) Notifying original state listeners of events in a domain model
JP6501924B2 (en) Method and server for canceling alert
US10440144B2 (en) Near real time notifications distribution platform
CN109818851A (en) A kind of information persistence method, device and electronic equipment
TW201719455A (en) Metadata server, network device and automatic resource management method
US9887945B2 (en) System and method for unfiltering filtered status messages
JPWO2019186777A1 (en) Information processing equipment, control methods, and programs
CN110457632B (en) Webpage loading processing method and device
US11196766B2 (en) Detecting denial of service attacks in serverless computing
US10574538B1 (en) Network visualization user interface
US10897446B2 (en) Initiating an action based on a determined navigation path data structure

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210917

Address after: Room 201, building a, No.1 Qianwan 1st Road, Shenzhen Hong Kong cooperation zone, Qianhai, Shenzhen, Guangdong 518066

Applicant after: ZHONGAN INFORMATION TECHNOLOGY SERVICE Co.,Ltd.

Applicant after: Baibao (Shanghai) Technology Co.,Ltd.

Address before: 518052 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant before: ZHONGAN INFORMATION TECHNOLOGY SERVICE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant