CN110928950A - Block chain transaction information management method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN110928950A
CN110928950A CN201911164204.8A CN201911164204A CN110928950A CN 110928950 A CN110928950 A CN 110928950A CN 201911164204 A CN201911164204 A CN 201911164204A CN 110928950 A CN110928950 A CN 110928950A
Authority
CN
China
Prior art keywords
transaction
local
transaction total
information
account book
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
CN201911164204.8A
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201911164204.8A priority Critical patent/CN110928950A/en
Publication of CN110928950A publication Critical patent/CN110928950A/en
Priority to PCT/CN2020/085823 priority patent/WO2021103403A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the application belongs to the technical field of block chains, and relates to a block chain transaction information management method, a device, computer equipment and a storage medium, wherein the method comprises the steps of obtaining the current block height Hx and the local block height H; judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H; if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, monitoring the transaction in real time, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated; calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to a local account book; and when a transaction total query request is received, reading corresponding transaction total information from the local account book through a preset interface based on the synchronous state, and taking the read transaction total information as a query result. The method and the device improve the efficiency and instantaneity of inquiring the block chain transaction total number information.

Description

Block chain transaction information management method and device, computer equipment and storage medium
Technical Field
The present application relates to a blockchain transaction information management method, apparatus, computer device and storage medium, and belongs to the field of blockchain technology.
Background
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, and is a collection of data blocks associated by using cryptography, wherein each data block contains transaction information of a corresponding intelligent contract, and the transaction information of the intelligent contracts can be used for verifying the validity of the information (anti-counterfeiting function) and generating a next blockchain.
As these advantages of blockchains gradually show, more and more electronic transactions are performed using blockchains, and blockchain networks become more and more complex, so that the management end is required to maintain the blockchains regularly. For example, the management end needs to query and monitor the transaction total amount, the currently adopted mode is mainly to calculate the transaction total amount by traversing and counting the transaction information recorded in each block and traversing all the blocks in real time from the block storage, so as to obtain the information of the transaction total amount, and the management end needs to traverse all the blocks in real time each time, so that the speed of obtaining the transaction total amount by the mode is very slow, the instantaneity of the information of the transaction total amount is difficult to ensure, and the query efficiency of the transaction total amount by the mode is lower as the number of the blocks in the block chain is continuously increased.
Disclosure of Invention
An embodiment of the present application provides a method and an apparatus for managing blockchain transaction information, a computer device, and a storage medium, so as to solve the problems of poor instantaneity and low efficiency in the existing blockchain information query method.
In order to solve the above technical problem, an embodiment of the present application provides a method for managing blockchain transaction information, which adopts the following technical solutions:
acquiring a current block height Hx and a local block height H, wherein the current block height Hx is the height of a block in a block chain account book when a Peer node is started, and the local block height H is the height of a block in the local account book when the Peer node is started;
judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H;
if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, monitoring the transaction in real time, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated;
calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to a local account book;
when a transaction total query request is received, based on a synchronous state, reading corresponding transaction total information from historical transaction total information or current transaction total information in a local account book through a preset interface, and taking the read transaction total information as a query result, wherein the query result is the historical transaction total information or the current transaction total information.
Further, the obtaining the current block height Hx and the local block height H specifically includes:
when the Peer node is monitored to be started, a preset transaction total number state machine is operated to obtain the current block height Hx in the time zone block chain account book;
and acquiring the local block height H from the local book.
Further, according to the current block height Hx and the local block height H, determining the synchronization status of the block chain ledger and the local ledger specifically includes:
when the current block height Hx is 0, determining that the synchronization status is synchronous and readable R;
when the current block height Hx is larger than 0, judging whether the local block height H is consistent with the current block height Hx;
if the local block height H is consistent with the current block height Hx, the synchronization state is determined to be synchronized and readable R, otherwise, the synchronization state is determined to be unsynchronized U.
Further, after determining the synchronization status of the block chain ledger and the local ledger according to the current block height Hx and the local block height H, the method further includes:
if the synchronization state is unsynchronized U, taking the block from the local block height H to the current block height Hx as a block to be synchronized;
traversing all the blocks to be synchronized to obtain the transaction number of each block to be synchronized;
accumulating the transaction number of each block to be synchronized and the original historical transaction total number information in the local account book to calculate new historical transaction total number information;
and updating the new historical transaction total information to a local account book to replace the original historical transaction total information, and updating the synchronization state to be synchronized S.
Further, updating the new historical transaction total information to the local account book to replace the original historical transaction total information specifically comprises:
and updating the new historical transaction total information to a local account book by adopting a storage mode of a binary key value so as to replace the original historical transaction total information.
Further, calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to the local account book specifically includes:
judging the synchronous state of the block chain account book and the local account book in the new transaction process;
if the synchronization state is synchronized S, reading historical transaction total information from a local account book;
accumulating the transaction number of the new transaction to the historical transaction total information to obtain new current transaction total information;
and updating the new current transaction total information to a local account book to replace the original current transaction total information, and updating the synchronization state to be synchronized and readable R.
Further, when a transaction total query request is received, based on the synchronization state, reading corresponding transaction total information from the historical transaction total information or the current transaction total information in the local ledger through a preset interface specifically includes:
judging the synchronous state when a transaction total number inquiry request is received;
if the synchronous state is synchronous and readable R when the query request is received, reading the current transaction total number information from the local account book through a preset interface;
and if the synchronous state is the synchronized S and no new transaction is generated when the query request is received, reading historical transaction total number information from the local account book through a preset interface.
In order to solve the above technical problem, an embodiment of the present application further provides a device for managing blockchain transaction information, which adopts the following technical solutions:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring the current block height Hx and the local block height H, the current block height Hx is the height of a block in a block chain account book when a Peer node is started, and the local block height H is the height of a block in a local account book when the Peer node is started;
the judging module is used for judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H;
the monitoring module is used for monitoring the transaction in real time if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated;
the updating module is used for calculating the current transaction total information according to the transaction number of the new transaction and updating the current transaction total information to a local account book;
and the query module is used for reading corresponding transaction total information from historical transaction total information or current transaction total information in a local account book through a preset interface based on a synchronous state when receiving a transaction total query request, and taking the read transaction total information as a query result, wherein the query result is the historical transaction total information or the current transaction total information.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the above block chain transaction information management method when executing the computer program.
In order to solve the above technical problem, an embodiment of the present application 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 steps of the above block chain transaction information management method are implemented.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
according to the technical scheme, the application discloses a block chain transaction information management method, a device, computer equipment and a storage medium, wherein the method comprises the steps of obtaining the current block height Hx and the local block height H; judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H; if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, monitoring the transaction in real time, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated; calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to a local account book; when a transaction total query request is received, based on a synchronous state, reading corresponding transaction total information from historical transaction total information or current transaction total information in a local account book through a preset interface, and taking the read transaction total information as a query result. The method monitors the transaction in real time according to the synchronous state of the block chain account book and the local account book, realizes the synchronization of the transaction total number information in the local account book and the transaction total number information in the block chain account book, can directly acquire the corresponding transaction total number information from the local account book through the preset interface according to the synchronous state when inquiring the transaction total number, and compared with the prior block chain information inquiry mode which requires the management end to traverse each block in the block chain network to acquire the transaction total number information, the block chain transaction information management method provided by the invention greatly improves the efficiency and instantaneity of inquiring the block chain transaction total number information and saves system resources at the same time.
In addition, the block chain transaction information management method provided by the invention adopts a storage mode of binary key values to store the transaction total number information in the local account book, so that the efficiency of judging the synchronous state is improved, and the updating efficiency of the transaction total number information is improved.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a blockchain transaction information management method according to the present application;
FIG. 3 is a flowchart of a more complete embodiment of the blockchain transaction information management method of the present application of FIG. 2;
FIG. 4 is a block chain transaction information management device according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Before the technical solutions in the embodiments of the present application are clearly and completely described, some specific terms and custom terms related to the present application are explained, and the following specific terms and custom terms are specifically described below:
and the current block height Hx refers to the height of the current block in the block chain account book when the Peer node is started.
And the local block height H refers to the height of the block stored in the local account book when the Peer node is started.
Historical transaction total information, namely transaction total information calculated according to the transaction number synchronized to the current block height Hx of the local account book when the Peer node is started, and is called historical transaction total information.
And current transaction total information, namely transaction total information which is calculated according to the transaction number from the current block height Hx to the latest block height when the Peer node is started and is called as the current transaction total information when new transactions are successively completed after the Peer node is started.
Unsynchronized (U): when the Peer node is started, the transaction total information in the block chain account book and the transaction total information in the local account book are not synchronized, that is, the local block height H in the local account book is inconsistent with the current block height Hx in the block chain account book.
Synchronized (S): when the Peer node is started, the transaction total information in the block chain account book and the transaction total information in the local account book are synchronized, that is, the local block height H in the local account book is consistent with the current block height Hx in the block chain account book.
Synchronized and readable (R): under the condition that the transaction total information in the blockchain account book and the transaction total information in the local account book are synchronized, new transactions are generated on the blockchain in sequence, and the transaction total information in the block chain account book is continuously updated.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the method for managing blockchain transaction information provided by the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the device for managing blockchain transaction information is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow diagram of one embodiment of a blockchain transaction information management method according to the present application is shown. The block chain transaction information management method comprises the following steps:
s201, acquiring a current block height Hx and a local block height H, wherein the current block height Hx is the height of a block in a block chain account book when a Peer node is started, and the local block height H is the height of a block in a local account book when the Peer node is started;
the block height refers to the number of blocks linked to the main chain, that is, the total number of all blocks connected to the block chain, the block height is an identifier of the block, the block height indicates a specific position of a certain block in the block chain, a single block always has an explicit and fixed block height, when the current block height Hx is the Peer node, the height of the current block in the block chain account book, and the local block height H is the height of the block stored in the local account book when the Peer node is started.
It should be noted that the local ledger may be a local database, which may be a database that is pre-established and is used to store transaction information, the local database is connected to the above-mentioned blockchain network, and the local database may be any one of Mysql database, Oracle database, Sybase database, and the like, which is not limited herein.
In a further embodiment, the step S201 of obtaining the current block height Hx and the local block height H specifically includes the following steps:
when the Peer node is monitored to be started, a preset transaction total number state machine is operated to obtain the current block height Hx in the time zone block chain account book;
and acquiring the local block height H from the local book.
In this embodiment, a transaction total state machine is preset in each Peer node, and when it is monitored that the Peer node is started, the preset transaction total state machine is operated to obtain the current block height Hx in the block chain ledger, and meanwhile, the preset transaction total state machine obtains the local block height H from the local ledger so as to identify the synchronization state of the block chain ledger and the local ledger.
In this embodiment, the preset transaction total state machine refers to a Finite-state machine (FSM) used for determining whether a transaction total storage state between the blockchain account book and the local account book changes, and is a network virtual machine capable of identifying a Finite state and transitions and actions between the Finite state and the state.
S202, judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H;
the transaction total state machine can judge the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H, when the transaction total state machine judges that the current block height Hx is consistent with the local block height H, the synchronous state of the block chain account book and the local account book is determined to be synchronous, and when the transaction total state machine judges that the current block height Hx is inconsistent with the local block height H, the synchronous state of the block chain account book and the local account book is determined to be unsynchronized.
In this embodiment, a transaction total state machine preset at the Peer node judges a synchronization state between the block chain ledger and the local ledger according to the current block height Hx and the local block height H, and when the synchronization state between the block chain ledger and the local ledger is synchronized, that is, when the transaction total state machine judges that the current block height Hx is consistent with the local block height H, transaction total information stored in the block chain ledger is consistent with transaction total information stored in the local ledger, corresponding transaction total information can be read from the local ledger through a preset interface, and the read transaction total information is taken as a query result; when the synchronous state of the block chain account book and the local account book is unsynchronized, namely when the transaction total state machine judges that the current block height Hx is inconsistent with the local block height H, the transaction total information stored in the block chain account book is inconsistent with the transaction total information stored in the local account book, if the transaction total information of the local account book is read at the moment as an inquiry result, the inquiry result has an error, and therefore, when the synchronous state of the block chain account book and the local account book is unsynchronized, the transaction total information is not allowed to be directly read from the local account book through a preset interface.
It should be noted that there are three synchronization states between the block chain ledger book and the local ledger book, which are unsynchronized U, synchronized S, and synchronized and readable R, and the following is specifically described:
unsynchronized (U): when the Peer node is started, the transaction total information in the block chain account book and the transaction total information in the local account book are not synchronized, that is, the local block height H in the local account book is inconsistent with the current block height Hx in the block chain account book.
Synchronized (S): when the Peer node is started, the transaction total information in the block chain account book and the transaction total information in the local account book are synchronized, that is, the local block height H in the local account book is consistent with the current block height Hx in the block chain account book.
Synchronized and readable (R): under the condition that the transaction total information in the blockchain account book and the transaction total information in the local account book are synchronized, new transactions are generated on the blockchain in sequence, and the transaction total information in the block chain account book is continuously updated.
The synchronous state between the block chain account book and the local account book is judged by the transaction total state machine according to the current block height Hx and the local block height H.
In a further embodiment, the step S202 of determining the synchronization status of the blockchain ledger and the local ledger according to the current block height Hx and the local block height H specifically includes:
when the current block height Hx is 0, it is determined that the synchronization status is in synchronization and R can be read.
When the current block height Hx is larger than 0, judging whether the local block height H is consistent with the current block height Hx.
If the local block height H is consistent with the current block height Hx, the synchronization state is determined to be synchronized and readable R, otherwise, the synchronization state is determined to be unsynchronized U.
When the current block height Hx in the blockchain ledger is 0, it indicates that no transaction has been generated in the blockchain network, that is, there is no transaction record in the current blockchain ledger, the local block height H in the corresponding local ledger is also 0, the transaction total number state machine determines that the synchronization state of the blockchain ledger and the local ledger is synchronous and readable R, and continues to execute step S203; when the current block height Hx in the blockchain ledger is greater than 0, the transaction total state machine first determines whether the local block height H in the local ledger is consistent with the current block height Hx of the blockchain ledger, and when the local block height H is consistent with the current block height Hx, the transaction total state machine determines that the synchronization state of the blockchain ledger and the local ledger is synchronized and readable R, and continues to execute step S203; when the local block height H is not consistent with the current block height Hx, it is determined that the synchronization status of the blockchain ledger and the local ledger is unsynchronized U, and the following steps S301 to S304 are continuously performed, as shown in fig. 3.
S301, if the synchronization state is unsynchronized U, taking a block from the local block height H to the current block height Hx as a block to be synchronized;
s302, traversing all the blocks to be synchronized to obtain the transaction number of each block to be synchronized;
s303, accumulating the transaction number of each block to be synchronized and the original historical transaction total number information in the local account book to calculate new historical transaction total number information;
and S304, updating the new historical transaction total information to a local account book to replace the original historical transaction total information, and updating the synchronization state to be synchronized S.
When the transaction total state machine determines that the synchronization state of the blockchain account book and the local account book is unsynchronized U, the transaction total information is not allowed to be directly inquired through the local account book, and at the moment, the transaction total state machine is required to update the synchronization state and the transaction total information and then can inquire. Specifically, the transaction total state machine takes all blocks in the range from the height H of a local block in a local account book to the height Hx of a current block in a block chain account book as blocks to be synchronized, traverses all blocks to be synchronized to obtain the transaction number of each block to be synchronized, accumulates the transaction number of each block to be synchronized on the basis of the original historical transaction total information, namely accumulates the transaction number of each block to be synchronized and the original historical transaction total information in the local account book (the original historical transaction total information refers to the transaction total information calculated according to the transaction number of the height H of the local block in the local account book) to obtain new historical transaction total information, updates the new historical transaction total information to the local account book to replace the original historical transaction total information and updates the synchronization state to be synchronized S, and proceeds to step S203. It should be noted that, when the synchronization status is updated to be synchronized S, that is, the local block height H is consistent with the current block height Hx, the new historical transaction total information degree of the local ledger center is equal to the transaction total information calculated by the transaction number of Hx.
S203, if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, monitoring the transaction in real time, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated;
when the synchronization state of the block chain account book and the local account book is synchronized S, the current block height Hx of the block chain account book is consistent with the local block height H of the local account book, and no new transaction is generated in the continuous monitoring process, namely, the transaction total number information in the block chain account book and the local account book is not changed in the real-time monitoring process; when the synchronization state of the blockchain account book and the local account book is synchronous and readable R, it indicates that the current blockchain height Hx of the blockchain account book is consistent with the local blockchain height H of the local account book, and in the continuous monitoring process, a new transaction occurs, that is, in the real-time monitoring process, the transaction total number information in the blockchain account book and the local account book keeps an updated state synchronously.
S204, calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to a local account book;
in the blockchain network, after each new transaction is completed, transaction information of the new transaction is recorded on a blockchain account book in real time, wherein the transaction information comprises transaction number, and the transaction total state machine calculates current transaction total information according to the transaction number of the new transaction in real time and updates the current transaction total information to a local account book.
In a further specific embodiment, the step S204 of calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to the local ledger specifically includes:
judging the synchronous state of the block chain account book and the local account book in the new transaction process;
if the synchronization state is synchronized S, reading historical transaction total information from a local account book;
accumulating the transaction number of the new transaction to the historical transaction total information to obtain new current transaction total information;
and updating the new current transaction total information to a local account book to replace the original current transaction total information, and updating the synchronization state to be synchronized and readable R.
In the new transaction process, the transaction total state machine judges the synchronous state of the block chain account book and the local account book in real time, and when the synchronous state is synchronous and readable R, the current transaction total information is continuously updated according to the transaction number of the new transaction; when the synchronization state is synchronized S, reading historical transaction total number information from a local account book, then accumulating the transaction number of new transaction to the historical transaction total number information to obtain new current transaction total number information, and finally updating the new current transaction total number information to the local account book to replace the original current transaction total number information (the original current transaction total number information refers to the transaction total number information calculated according to the transaction number of the current block height Hx when the Peer node is started), and updating the synchronization state to be synchronized and readable R; when the synchronization status is unsynchronized U, the steps S302 to S304 are continuously executed, and when the synchronization status between the blockchain ledger and the local ledger is changed to synchronized S, the step S204 is executed again to obtain the current transaction total information. It should be noted that, at this time, the new current transaction total information in the local account book is equal to the transaction total information calculated from the transaction number starting from the current block height Hx to the latest block height when the Peer node is started, after the Peer node is started, a new transaction is successively completed.
And S205, when a transaction total query request is received, based on the synchronous state, reading corresponding transaction total information from the historical transaction total information or the current transaction total information in the local account book through a preset interface, and taking the read transaction total information as a query result, wherein the query result is the historical transaction total information or the current transaction total information.
The transaction total query request may be initiated by a user through a user side, after the user side receives the transaction total query request of the user, the transaction total state machine determines a synchronization state between the blockchain ledger and the local ledger when the transaction total query request is received, then reads corresponding transaction total information based on different synchronization states between the blockchain ledger and the local ledger, and takes the transaction total information as a query result, where the query result may be historical transaction total information or current transaction total information.
In this embodiment, the electronic device (for example, the server/terminal device shown in fig. 1) on which the blockchain transaction information management method operates may receive the request for the transaction total query through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In a further specific embodiment, when the transaction total query request is received in step S205, based on the synchronization status, reading the corresponding transaction total information from the historical transaction total information or the current transaction total information in the local ledger through the preset interface specifically includes:
judging the synchronous state when a transaction total number inquiry request is received;
if the synchronous state is synchronous and readable R when the query request is received, reading the current transaction total number information from the local account book through a preset interface;
and if the synchronous state is the synchronized S and no new transaction is generated when the query request is received, reading historical transaction total number information from the local account book through a preset interface.
The transaction total state machine firstly judges the synchronous state between the block chain account book and the local account book when receiving a transaction total query request, then reads corresponding transaction total information according to different synchronous states between the block chain account book and the local account book, and takes the transaction total information as a query result. Specifically, historical transaction total information and current transaction total information are simultaneously stored in a local account book, when an inquiry request is received, the synchronization state between a block chain account book and the local account book is synchronous and readable R, and the current transaction total information is read from the local account book through a preset interface to serve as an inquiry result; when an inquiry request is received, the synchronization state between the block chain account book and the local account book is synchronized S, and historical transaction total number information is read from the local account book through a preset interface to serve as an inquiry result. It should be further noted that the synchronization status between the blockchain ledger and the local ledger is synchronized S, and when no new transaction is generated in the monitoring process, the current transaction total information is identical to the historical transaction total information.
As another more complete implementation manner of the embodiment of the present application, when an inquiry request is received, the synchronization state between the blockchain ledger and the local ledger is unsynchronized U, step S302 to step S304 are continuously executed, so that the synchronization state between the blockchain ledger and the local ledger is converted into synchronized S, whether a new transaction is generated is continuously monitored, when no new transaction is generated, historical transaction total information is read from the local ledger through a preset interface as an inquiry result, when a new transaction is generated, the synchronization state between the blockchain ledger and the local ledger is converted into synchronized and readable R, and current transaction total information is read from the local ledger through the preset interface as an inquiry result.
The method monitors the transaction in real time according to the synchronous state of the block chain account book and the local account book, realizes the synchronization of the transaction total number information in the local account book and the transaction total number information in the block chain account book, can directly acquire the corresponding transaction total number information from the local account book through the preset interface according to the synchronous state when inquiring the transaction total number, and compared with the prior block chain information inquiry mode which requires the management end to traverse each block in the block chain network to acquire the transaction total number information, the block chain transaction information management method provided by the invention greatly improves the efficiency and instantaneity of inquiring the block chain transaction total number information and saves system resources at the same time.
As another more complete implementation manner of the embodiment of the present application, after the step S202 determines the synchronization status of the blockchain ledger and the local ledger according to the current block height Hx and the local block height H, the method further includes steps S301 to S304, which may be specifically described with reference to fig. 3.
S301, if the synchronization state is unsynchronized U, taking a block from the local block height H to the current block height Hx as a block to be synchronized;
s302, traversing all the blocks to be synchronized to obtain the transaction number of each block to be synchronized;
s303, accumulating the transaction number of each block to be synchronized and the original historical transaction total number information in the local account book to calculate new historical transaction total number information;
and S304, updating the new historical transaction total information to a local account book to replace the original historical transaction total information, and updating the synchronization state to be synchronized S.
Since the specific implementation of this embodiment has been described in other embodiments, it is not described herein.
As another more complete implementation manner of the embodiment of the present application, step S304 updates the new historical transaction total information to the local ledger to replace the original historical transaction total information, specifically:
s3041, updating the new historical transaction total information to the local ledger by using a storage method of binary key values, so as to replace the original historical transaction total information.
In this embodiment, a storage manner of a binary key value is adopted to update the new historical transaction total information to a local account book so as to replace the original historical transaction total information. Specifically, in one embodiment, if the current chain is testChain, the block height of the current chain is 100, and the transaction total number of the current chain is 1234, then the stored keys are: testChain + totalttxnum, the stored value is (100, 1234), where totalttxnum is a fixed string. The storage mode of the binary key values not only improves the efficiency of the transaction total state machine in judging the synchronous state between the block chain account book and the local account book, but also is beneficial to improving the updating efficiency of the transaction total information.
According to the technical scheme, the application discloses a block chain transaction information management method, a device, computer equipment and a storage medium, wherein the method comprises the steps of obtaining the current block height Hx and the local block height H; judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H; if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, monitoring the transaction in real time, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated; calculating the current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to a local account book; when a transaction total query request is received, based on a synchronous state, reading corresponding transaction total information from historical transaction total information or current transaction total information in a local account book through a preset interface, and taking the read transaction total information as a query result. The method monitors the transaction in real time according to the synchronous state of the block chain account book and the local account book, realizes the synchronization of the transaction total number information in the local account book and the transaction total number information in the block chain account book, can directly acquire the corresponding transaction total number information from the local account book through the preset interface according to the synchronous state when inquiring the transaction total number, and compared with the prior block chain information inquiry mode which requires the management end to traverse each block in the block chain network to acquire the transaction total number information, the block chain transaction information management method provided by the invention greatly improves the efficiency and instantaneity of inquiring the block chain transaction total number information and saves system resources at the same time.
In addition, the block chain transaction information management method provided by the invention adopts a storage mode of binary key values to store the transaction total number information in the local account book, so that the efficiency of judging the synchronous state is improved, and the updating efficiency of the transaction total number information is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 4, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a blockchain transaction information management apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be applied to various electronic devices.
As shown in fig. 4, the blockchain transaction information management apparatus of the present embodiment includes: an obtaining module 401, a judging module 402, a monitoring module 403, an updating module 404, and an inquiring module 405, wherein:
an obtaining module 401, configured to obtain a current block height Hx and a local block height H, where the current block height Hx is a height of a block in the block chain ledger when the Peer node is started, and the local block height H is a height of a block in the local ledger when the Peer node is started;
a determining module 402, configured to determine a synchronization state of the block chain ledger and the local ledger according to the current block height Hx and the local block height H;
the monitoring module 403 is configured to monitor the transaction in real time if the synchronization state is synchronized and readable R, or if the synchronization state is synchronized S, and obtain a transaction number of a new transaction when it is monitored that the new transaction is generated;
an updating module 404, configured to calculate current transaction total information according to the transaction number of the new transaction, and update the current transaction total information to a local account book;
the query module 405 is configured to, when receiving a transaction total query request, read corresponding transaction total information from historical transaction total information or current transaction total information in a local ledger through a preset interface based on a synchronization state, and use the read transaction total information as a query result, where the query result is the historical transaction total information or the current transaction total information.
The block chain transaction information management device monitors transactions in real time according to the synchronous state of the block chain account book and the local account book, the technical scheme realizes the synchronization of the transaction total information in the local account book and the transaction total information in the block chain account book, when the transaction total is inquired, the corresponding transaction total information can be directly obtained from the local account book through the preset interface according to requirements, and compared with the prior block chain information inquiry mode that the management end is required to traverse each block in the block chain network to obtain the transaction total information, the block chain transaction information management method provided by the invention greatly improves the efficiency and instantaneity of inquiring the block chain transaction total information, and simultaneously saves system resources.
It should be noted that, the determining module 402 is configured to determine, according to the current block height Hx and the local block height H, the synchronization state of the block chain ledger and the local ledger specifically includes:
when the current block height Hx is 0, determining that the synchronization status is synchronous and readable R;
when the current block height Hx is larger than 0, judging whether the local block height H is consistent with the current block height Hx;
if the local block height H is consistent with the current block height Hx, the synchronization state is determined to be synchronized and readable R, otherwise, the synchronization state is determined to be unsynchronized U.
In some optional implementation manners of this embodiment, the obtaining module 401 specifically includes: a first acquisition unit and a second acquisition unit, wherein:
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for running a preset transaction total state machine when the Peer node is monitored to be started, and acquiring the current block height Hx in a time zone block chain account book;
and the second acquisition unit is used for acquiring the local block height H from the local account book.
In some optional implementations of this embodiment, the updating module 404 specifically includes: first judgement unit, first reading unit, computational element and update unit, wherein:
the first judgment unit is used for judging the synchronous state of the block chain account book and the local account book in the new transaction process;
the first reading unit is used for reading the historical transaction total number information from the local account book if the synchronization state is the synchronized S;
the calculating unit is used for accumulating the transaction number of the new transaction to the historical transaction total information to obtain new current transaction total information;
and the updating unit is used for updating the new current transaction total information to a local account book so as to replace the original current transaction total information and updating the synchronization state into a synchronized and readable R.
In some optional implementations of this embodiment, the query module 405 specifically includes: a second determining unit, a second reading unit and a third reading unit, wherein:
the second judgment unit is used for judging the synchronization state when the transaction total inquiry request is received;
the second reading unit is used for reading the current transaction total number information from the local account book through a preset interface if the synchronization state is synchronized and readable R when the query request is received;
and the third reading unit is used for reading the historical transaction total number information from the local account book through the preset interface if the synchronization state is the synchronized S and no new transaction is generated when the query request is received.
In some optional implementation manners of this embodiment, the block chain transaction information management device further includes an unsynchronized processing module, configured to, if the synchronization state is unsynchronized U, use a block from the local block height H to the current block height Hx as a block to be synchronized;
traversing all the blocks to be synchronized to obtain the transaction number of each block to be synchronized; accumulating the transaction number of each block to be synchronized and the original historical transaction total number information in the local account book to calculate new historical transaction total number information; and updating the new historical transaction total information to a local account book to replace the original historical transaction total information, and updating the synchronization state to be synchronized S.
In some optional implementations of this embodiment, the unsynchronized processing module includes a storage unit, configured to update the new historical transaction total information to the local ledger in a storage manner using a binary key value, so as to replace the original historical transaction total information.
For specific limitations of the blockchain transaction information management device, reference may be made to the above limitations of the blockchain transaction information management method, which is not described herein again. The modules in the blockchain transaction information management device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The block chain transaction information management device disclosed by the application monitors transactions in real time according to the synchronous state of a block chain account book and a local account book, the technical scheme realizes the synchronization of transaction total information in the local account book and the transaction total information in the block chain account book, when the transaction total is inquired, the corresponding transaction total information can be directly acquired from the local account book through a preset interface according to requirements, and compared with the prior block chain information inquiry mode that a management end is required to traverse each block in a block chain network to acquire the transaction total information, the block chain transaction information management method provided by the invention greatly improves the efficiency and instantaneity of inquiring the block chain transaction total information and saves system resources at the same time.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 5, fig. 5 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only a computer device 6 having components 61-63 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), and the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal storage unit of the computer device 6 and an external storage device thereof. In this embodiment, the memory 61 is generally used for storing an operating system installed in the computer device 6 and various types of application software, such as program codes of a blockchain transaction information management method. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute the program code stored in the memory 61 or process data, for example, execute the program code of the blockchain transaction information management method.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
The present application provides yet another embodiment, which provides a computer-readable storage medium storing a program of a blockchain transaction information management method, which is executable by at least one processor to cause the at least one processor to perform the steps of the blockchain transaction information management method as described above.
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 platform, 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 application 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 device (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 application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A method for managing blockchain transaction information, comprising:
acquiring a current block height Hx and a local block height H, wherein the current block height Hx is the height of a block in a block chain account book when a Peer node is started, and the local block height H is the height of a block in a local account book when the Peer node is started;
according to the current block height Hx and the local block height H, judging the synchronous state of the block chain account book and the local account book;
if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, monitoring the transaction in real time, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated;
calculating current transaction total information according to the transaction number of the new transaction, and updating the current transaction total information to a local account book;
when a transaction total query request is received, based on the synchronous state, reading corresponding transaction total information from historical transaction total information or current transaction total information in the local account book through a preset interface, and taking the read transaction total information as a query result, wherein the query result is the historical transaction total information or the current transaction total information.
2. The method for managing blockchain transaction information according to claim 1, wherein the obtaining the current block height Hx and the local block height H further comprises:
when the Peer node is monitored to be started, a preset transaction total number state machine is operated to obtain the current block height Hx in the time zone block chain account book;
and acquiring the local block height H from the local account book.
3. The method as claimed in claim 1, wherein said determining the synchronization status of the blockchain ledger and the local ledger according to the current block height Hx and the local block height H specifically comprises:
determining that the synchronization status is in-sync and readable R when the current block height Hx is 0;
when the current block height Hx is larger than 0, judging whether the local block height H is consistent with the current block height Hx;
and if the local block height H is consistent with the current block height Hx, determining that the synchronization state is synchronized and readable R, otherwise, determining that the synchronization state is unsynchronized U.
4. The method as claimed in claim 3, wherein after determining the synchronization status of the blockchain ledger and the local ledger according to the current block height Hx and the local block height H, the method further comprises:
if the synchronization state is unsynchronized U, taking the block from the local block height H to the current block height Hx as a block to be synchronized;
traversing all the blocks to be synchronized to obtain the transaction number of each block to be synchronized;
accumulating the transaction number of each block to be synchronized and the original historical transaction total number information in the local account book to calculate new historical transaction total number information;
and updating the new historical transaction total information to a local account book to replace the original historical transaction total information, and updating the synchronization state to be synchronized S.
5. The blockchain transaction information management method of claim 4, wherein the updating the new historical transaction total information to a local ledger to replace the original historical transaction total information is specifically:
and updating the new historical transaction total information to a local account book by adopting a storage mode of a binary key value so as to replace the original historical transaction total information.
6. The method as claimed in claim 1, wherein the calculating the current transaction total information according to the transaction number of the new transaction and updating the current transaction total information to a local book includes:
judging the synchronous state of the block chain account book and the local account book in the new transaction process;
if the synchronization state is synchronized S, reading historical transaction total information from the local account book;
accumulating the transaction number of the new transaction to the historical transaction total information to obtain new current transaction total information;
and updating the new current transaction total information to a local ledger to replace the original current transaction total information, and updating the synchronization state to be synchronized and readable R.
7. The blockchain transaction information management method according to any one of claims 1 to 6, wherein when receiving a transaction total query request, based on the synchronization status, reading corresponding transaction total information from the historical transaction total information or the current transaction total information in the local ledger through a preset interface specifically includes:
judging the synchronization state when the transaction total number inquiry request is received;
if the synchronous state is synchronous and readable R when an inquiry request is received, reading current transaction total number information from a local account book through the preset interface;
and if the synchronous state is the synchronized S state and no new transaction is generated when the query request is received, reading historical transaction total number information from the local account book through the preset interface.
8. A blockchain transaction information management apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a current block height Hx and a local block height H, the current block height Hx is the height of a block in a block chain account book when a Peer node is started, and the local block height H is the height of a block in a local account book when the Peer node is started;
the judging module is used for judging the synchronous state of the block chain account book and the local account book according to the current block height Hx and the local block height H;
the monitoring module is used for monitoring the transaction in real time if the synchronous state is synchronous and readable R or the synchronous state is synchronous S, and acquiring the transaction number of the new transaction when the new transaction is monitored to be generated;
the updating module is used for calculating the information of the current transaction total number according to the transaction number of the new transaction and updating the information of the current transaction total number to a local account book;
and the query module is used for reading corresponding transaction total information from the historical transaction total information or the current transaction total information in the local account book through a preset interface based on the synchronous state when receiving a transaction total query request, and taking the read transaction total information as a query result, wherein the query result is the historical transaction total information or the current transaction total information.
9. A computer device comprising a memory having stored therein a computer program and a processor which when executed implements the steps of the blockchain transaction information management method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the blockchain transaction information management method according to any one of claims 1 to 7.
CN201911164204.8A 2019-11-25 2019-11-25 Block chain transaction information management method and device, computer equipment and storage medium Pending CN110928950A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911164204.8A CN110928950A (en) 2019-11-25 2019-11-25 Block chain transaction information management method and device, computer equipment and storage medium
PCT/CN2020/085823 WO2021103403A1 (en) 2019-11-25 2020-04-21 Blockchain transaction information management method and device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911164204.8A CN110928950A (en) 2019-11-25 2019-11-25 Block chain transaction information management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110928950A true CN110928950A (en) 2020-03-27

Family

ID=69851744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911164204.8A Pending CN110928950A (en) 2019-11-25 2019-11-25 Block chain transaction information management method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110928950A (en)
WO (1) WO2021103403A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694852A (en) * 2020-05-28 2020-09-22 平安科技(深圳)有限公司 Data processing method, device, terminal and storage medium based on distributed transaction
WO2021103403A1 (en) * 2019-11-25 2021-06-03 深圳壹账通智能科技有限公司 Blockchain transaction information management method and device, computer device and storage medium
CN112988891A (en) * 2021-03-11 2021-06-18 重庆文理学院 Method and device for storing block chain account book, electronic equipment and storage medium
CN113469679A (en) * 2021-05-11 2021-10-01 深圳前海移联科技有限公司 Method and system for identifying intelligent contract of block chaining Ponconth cheating and electronic equipment
US20220085991A1 (en) * 2020-05-13 2022-03-17 Ridgeline, Inc. Mutation processing for events
US11316921B2 (en) * 2020-09-25 2022-04-26 Alipay (Hangzhou) Information Technology Co., Ltd. Block synchronization methods and apparatuses
US11949784B2 (en) 2020-05-13 2024-04-02 Ridgeline, Inc. Auditing for events

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
WO2019100991A1 (en) * 2017-11-27 2019-05-31 北京京东金融科技控股有限公司 Information processing method, device and system, storage medium, and electronic device
CN110245190A (en) * 2019-06-11 2019-09-17 南京荣链科技有限公司 A kind of block data fragmented storage method, terminal and medium
CN110365768A (en) * 2019-07-15 2019-10-22 腾讯科技(深圳)有限公司 Method of data synchronization, device, medium, the electronic equipment of distributed system
CN110490590A (en) * 2019-09-27 2019-11-22 腾讯科技(深圳)有限公司 Activation record querying method, device, equipment and storage medium based on block chain

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190311357A1 (en) * 2018-04-04 2019-10-10 Vijay Madisetti Method and System for Exchange of Value or Tokens Between Blockchain Networks
CN109299336B (en) * 2018-09-30 2022-07-01 腾讯科技(深圳)有限公司 Data backup method and device, storage medium and computing equipment
CN110928950A (en) * 2019-11-25 2020-03-27 深圳壹账通智能科技有限公司 Block chain transaction information management method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019100991A1 (en) * 2017-11-27 2019-05-31 北京京东金融科技控股有限公司 Information processing method, device and system, storage medium, and electronic device
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN110245190A (en) * 2019-06-11 2019-09-17 南京荣链科技有限公司 A kind of block data fragmented storage method, terminal and medium
CN110365768A (en) * 2019-07-15 2019-10-22 腾讯科技(深圳)有限公司 Method of data synchronization, device, medium, the electronic equipment of distributed system
CN110490590A (en) * 2019-09-27 2019-11-22 腾讯科技(深圳)有限公司 Activation record querying method, device, equipment and storage medium based on block chain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021103403A1 (en) * 2019-11-25 2021-06-03 深圳壹账通智能科技有限公司 Blockchain transaction information management method and device, computer device and storage medium
US20220085991A1 (en) * 2020-05-13 2022-03-17 Ridgeline, Inc. Mutation processing for events
US11943344B2 (en) * 2020-05-13 2024-03-26 Ridgeline, Inc. Mutation processing for events
US11949784B2 (en) 2020-05-13 2024-04-02 Ridgeline, Inc. Auditing for events
CN111694852A (en) * 2020-05-28 2020-09-22 平安科技(深圳)有限公司 Data processing method, device, terminal and storage medium based on distributed transaction
US11316921B2 (en) * 2020-09-25 2022-04-26 Alipay (Hangzhou) Information Technology Co., Ltd. Block synchronization methods and apparatuses
CN112988891A (en) * 2021-03-11 2021-06-18 重庆文理学院 Method and device for storing block chain account book, electronic equipment and storage medium
CN113469679A (en) * 2021-05-11 2021-10-01 深圳前海移联科技有限公司 Method and system for identifying intelligent contract of block chaining Ponconth cheating and electronic equipment

Also Published As

Publication number Publication date
WO2021103403A1 (en) 2021-06-03

Similar Documents

Publication Publication Date Title
CN110928950A (en) Block chain transaction information management method and device, computer equipment and storage medium
CN112380227B (en) Data synchronization method, device, equipment and storage medium based on message queue
WO2021223662A1 (en) Page access based on code scanning
CN111800462A (en) Micro-service instance processing method and device, computer equipment and storage medium
CN112988674A (en) Method and device for processing big data file, computer equipment and storage medium
CN104881454A (en) Updating method and system of parameter
CN113537513A (en) Model training method, device, system, equipment and medium based on federal learning
CN111813418A (en) Distributed link tracking method, device, computer equipment and storage medium
CN114238506A (en) Data synchronization method and device, computer equipment and storage medium
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
CN112416934A (en) hive table incremental data synchronization method and device, computer equipment and storage medium
CN112685115A (en) International cue language generating method, system, computer equipment and storage medium
CN111813518A (en) Robot early warning method and device, computer equipment and storage medium
CN110990360A (en) File synchronization method based on network storage device and related components
CN112002352B (en) Random music playing method and device, computer equipment and storage medium
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN114168552A (en) Space sharing method and device based on block chain technology and computer equipment
CN114374737A (en) Message pushing method and device, computer equipment and storage medium
CN113283759A (en) Account risk portrait updating method, device, equipment and storage medium
CN112507676A (en) Energy report generation method and device, electronic equipment and computer readable medium
CN114189584B (en) Method and device for mobile terminal to acquire call duration, electronic equipment and storage medium
CN114650252B (en) Routing method and device based on enterprise service bus and computer equipment
CN111030856B (en) Cloud-based data access method, electronic device and computer readable medium
CN113946626A (en) Data synchronization detection method and device, computer equipment and storage medium

Legal Events

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