CN108876611B - Transaction information processing method and device and block link points - Google Patents

Transaction information processing method and device and block link points Download PDF

Info

Publication number
CN108876611B
CN108876611B CN201810553865.9A CN201810553865A CN108876611B CN 108876611 B CN108876611 B CN 108876611B CN 201810553865 A CN201810553865 A CN 201810553865A CN 108876611 B CN108876611 B CN 108876611B
Authority
CN
China
Prior art keywords
storage node
node
slave storage
transaction
slave
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
CN201810553865.9A
Other languages
Chinese (zh)
Other versions
CN108876611A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810553865.9A priority Critical patent/CN108876611B/en
Publication of CN108876611A publication Critical patent/CN108876611A/en
Application granted granted Critical
Publication of CN108876611B publication Critical patent/CN108876611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • 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 invention provides a transaction information processing method, a transaction information processing device and a block chain node. The method comprises the following steps: the main storage node receives a first query request sent by a transaction node; according to the first query request, sending locally stored identification information of a plurality of slave storage nodes to the transaction node so that the transaction node sends a second query request to at least one slave storage node in the plurality of slave storage nodes; the main storage node receives a first query result and a second query result sent by the transaction node, wherein the first query result and the second query result are inconsistent; and the master storage node determines the slave storage node with lower reliability by comparing the first query result with the block chain account book stored in the master storage node and comparing the second query result with the block chain account book stored in the master storage node. The embodiment of the invention ensures that the transaction node obtains the query result from the high-reliability storage node, thereby improving the reliability of the query result.

Description

Transaction information processing method and device and block link points
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a transaction information processing method and device and a block chain node.
Background
In a blockchain network, each node needs to store a complete blockchain ledger, resulting in a large amount of occupied storage space for each node, and therefore, the prior art considers storing the blockchain ledger to one or more blockchain storage nodes.
However, when the block storage nodes are simultaneously attacked, the block or block chain book provided by the block storage nodes is unreliable, and thus the query result obtained by the transaction node from the block storage nodes is unreliable.
Disclosure of Invention
The embodiment of the invention provides a transaction information processing method and device and a block link point method and device, which are used for improving the reliability of a query result acquired by a transaction node from a block storage node.
In a first aspect, an embodiment of the present invention provides a transaction information processing method, including:
the main storage node receives a first query request sent by a transaction node;
the master storage node sends locally stored identification information of a plurality of slave storage nodes to the transaction node according to the first query request, so that the transaction node sends a second query request to at least one slave storage node in the plurality of slave storage nodes, wherein the second query request is used for querying partial content of a blockchain ledger stored in the slave storage node;
the main storage node receives a first query result and a second query result sent by the transaction node, wherein the first query result and the second query result are inconsistent, the first query result is obtained by the transaction node from a first slave storage node in the plurality of slave storage nodes, and the second query result is obtained by the transaction node from a second slave storage node in the plurality of slave storage nodes;
and the master storage node determines a slave storage node with lower reliability from the first slave storage node and the second slave storage node by comparing the first query result with the blockchain ledger stored in the master storage node and the second query result with the blockchain ledger stored in the master storage node.
In a second aspect, an embodiment of the present invention provides a transaction information processing apparatus, including:
the receiving module is used for receiving a first query request sent by a transaction node;
a sending module, configured to send, according to the first query request, locally stored identification information of a plurality of slave storage nodes to the transaction node, so that the transaction node sends a second query request to at least one of the plurality of slave storage nodes, where the second query request is used to query a partial content of a blockchain ledger stored in the slave storage node;
the receiving module is further configured to: receiving a first query result and a second query result sent by the transaction node, wherein the first query result and the second query result are inconsistent, and the first query result is obtained by the transaction node from a first slave storage node in the plurality of slave storage nodes, and the second query result is obtained by the transaction node from a second slave storage node in the plurality of slave storage nodes;
and the determining module is used for determining a slave storage node with lower reliability from the first slave storage node and the second slave storage node by comparing the first query result with the blockchain ledger stored in the main storage node and the second query result with the blockchain ledger stored in the main storage node.
In a third aspect, an embodiment of the present invention provides a block link point, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
The transaction information processing method, the device and the block chain node provided by the embodiment of the invention send the locally stored identification information of a plurality of slave storage nodes to the transaction node through the master storage node, such that the trading node sends a query request to at least one of the plurality of slave storage nodes, to query the contents of a portion of the blockchain ledger stored in the secondary storage node, when the transaction node obtains different query results from different secondary storage nodes, the transaction node sends the different query results to the main storage node, so that the main storage node determines a slave storage node with lower reliability according to the different query results and the block chain account book locally stored by the main storage node, therefore, the transaction node obtains the query result from the high-reliability storage node, and the reliability of the query result is improved.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
FIG. 2 is a flow chart of a transaction information processing method according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a blockchain network according to an embodiment of the present invention;
FIG. 4 is a flow chart of a transaction information processing method according to another embodiment of the invention;
FIG. 5 is a schematic structural diagram of a transaction information processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The transaction information processing method provided by the invention can be applied to the communication system shown in figure 1. As shown in fig. 1, the communication system includes: access network device 11, terminal device 12, and server 13. It should be noted that the communication System shown in fig. 1 may be applicable to different network formats, for example, may be applicable to Global System for Mobile communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (Long Term Evolution, LTE), and future 5G network formats. Optionally, the communication system may be a system in a scenario of high-reliability and Low-Latency Communications (URLLC) transmission in a 5G communication system.
Therefore, optionally, the access Network device 11 may be a Base Station (BTS) and/or a Base Station Controller in GSM or CDMA, a Base Station (NodeB, NB) and/or a Radio Network Controller (RNC) in WCDMA, an evolved Node B (eNB or eNodeB) in LTE, or a relay Station or an access point, or a Base Station (gbb) in a future 5G Network, and the present invention is not limited thereto.
The terminal device 12 may be a wireless terminal or a wired terminal. A wireless terminal may refer to a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal, which may be a mobile terminal such as a mobile telephone (or "cellular" telephone) and a computer having a mobile terminal, for example, a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device, may communicate with one or more core Network devices via a Radio Access Network (RAN), and may exchange language and/or data with the RAN. For another example, the Wireless terminal may also be a Personal Communication Service (PCS) phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), and other devices. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and a User Device or User Equipment (User Equipment), which are not limited herein. Optionally, the terminal device 12 may also be a smart watch, a tablet computer, or the like. In this embodiment, the terminal device 12 and the server 13 may be nodes in a blockchain network.
The invention provides a transaction information processing method, which aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a transaction information processing method according to an embodiment of the present invention. The embodiment of the invention provides a transaction information processing method aiming at the technical problems in the prior art, which comprises the following specific steps:
step 201, a main storage node receives a first query request sent by a transaction node.
As shown in fig. 3, the blockchain network includes a master storage node 31, a master storage node 32, a master storage node 33, a master storage node 34, a slave storage node 41, a slave storage node 42, and a slave storage node 43, which is only illustrated schematically and is not limited to the specific network architecture of the blockchain network. Optionally, each master storage node may be communicatively connected to a plurality of slave storage nodes, for example, the master storage node 31 may be communicatively connected to the slave storage node 41, the slave storage node 42, and the slave storage node 43, and optionally, the master storage node 32 may be communicatively connected to the slave storage node 41, the slave storage node 42, the slave storage node 43, or may be communicatively connected to other slave storage nodes. Similarly, the master storage node 33 and the master storage node 34 may also be communicatively connected with the slave storage node 41, the slave storage node 42, the slave storage node 43, or other slave storage nodes. In addition, the number of slave storage nodes communicatively connected to each master storage node is not limited in this embodiment.
In this embodiment, the identity information of the master storage node needs to be broadcast into the blockchain network, and the identity information and IP address of the master storage node need to be recorded in the foundational block.
When a transaction node first joins the block chain network, a created block needs to be acquired from a node adjacent to the transaction node, and optionally, the created block is stored in all nodes in the block chain network. In order to ensure that the trading node acquires a real created region, the trading node may send created region query requests to a plurality of adjacent nodes, for example, the trading node a first joins the block chain network, the trading node a sends created region query requests to the adjacent node B and the adjacent node C, the adjacent node B and the adjacent node C receive the created region query requests, and then send respective locally stored created regions to the trading node a, the trading node a compares whether created regions fed back by the adjacent node B and the adjacent node C are consistent, if the created regions fed back by the adjacent node B and the adjacent node C are consistent, the trading node a stores the created regions locally; if the created blocks fed back by the adjacent node B and the adjacent node C are not consistent, the trading node A can further continuously send created block query requests to the adjacent node D and the adjacent node E and receive the created blocks fed back by the adjacent node D and the adjacent node E respectively.
When the transaction node A acquires a real created block, the IP address of a main storage node is acquired from the created block, and a first query request is sent to the main storage node according to the IP address of the main storage node, wherein the first query request is used for acquiring the identification information of a plurality of auxiliary storage nodes stored by the main storage node.
Step 202, the master storage node sends locally stored identification information of a plurality of slave storage nodes to the transaction node according to the first query request, so that the transaction node sends a second query request to at least one of the plurality of slave storage nodes, wherein the second query request is used for querying partial content of a blockchain ledger stored in the slave storage node.
As shown in fig. 3, the master storage node 31 locally stores the identification information of the slave storage node 41, the slave storage node 42, and the slave storage node 43, and when the master storage node 31 receives a first query request sent by the transaction node a, the identification information of the slave storage node 41, the slave storage node 42, and the slave storage node 43 is sent to the transaction node a according to the first query request. In the present embodiment, the blockchain ledger is stored in the slave storage node 41, the slave storage node 42, and the slave storage node 43, and the transaction node a may send a second query request to the slave storage node 41, the slave storage node 42, and the slave storage node 43, the second query request being used for querying partial content of the blockchain ledger stored in the slave storage node.
Alternatively, when receiving a second query request sent by the transaction node a from the storage node 41, the storage node 42, and the storage node 43, calculating offer information corresponding to a part of the content of the blockchain book requested to be obtained by the transaction node a according to the data amount of the part of the content, and sending the offer information to the transaction node a, when the transaction node a receives offer information sent from the storage node 41, the storage node 42, and the storage node 43, respectively, determining which slave storage node or slave storage nodes to transfer to according to the offer information of each slave storage node and the reliability of each slave storage node, for example, when the transaction node a determines to transfer to the slave storage node 41 and the slave storage node 42, generating transfer information to the slave storage node 41 and transfer information to the slave storage node 42, and sending the transfer information to the slave storage node 41, the transfer information includes the amount of money transferred from the storage node 41 and the contents of the inquiry required to be provided from the storage node 41; similarly, the transaction node a transmits transfer information to the slave storage node 42, which includes the amount of money transferred to the slave storage node 42 and the contents of the query required to be provided from the slave storage node 42, to the slave storage node 42. Alternatively, the transfer information sent by the transaction node a to the storage node 41 and the storage node 42 may be the transfer information signed by the transaction node a with its own private key.
When the transfer information of the transaction node a is received from the storage node 41 and from the storage node 42, the query content required by the transaction node a or the access address and the access code corresponding to the query content are transmitted to the transaction node a from the storage node 41 and from the storage node 42, respectively. Optionally, the slave storage node 41 signs the query content sent from the storage node 41 to the transaction node a or the access address and the access code corresponding to the query content with the public key of the transaction node a, and sends the signed result to the transaction node a. The slave storage node 42 signs the query content sent from the storage node 42 to the transaction node a or the access address and the access code corresponding to the query content by using the public key of the transaction node a, and sends the signed result to the transaction node a.
In this embodiment, the query content sent from the storage node 41 to the transaction node a, or the query content corresponding to the access address and the access code sent from the storage node 41 to the transaction node a is recorded as a first query result; and recording the query content sent from the storage node 42 to the transaction node a, or the query content corresponding to the access address and the access code sent from the storage node 42 to the transaction node a as a second query result.
After the transaction node a receives the first query result and the second query result, it compares whether the first query result and the second query result are consistent, specifically, the transaction node a compares whether the query content sent from the storage node 41 to the transaction node a is consistent with the query content sent from the storage node 42 to the transaction node a, or the transaction node a compares whether the query content corresponding to the access address and the access code sent from the storage node 41 to the transaction node a is consistent with the query content corresponding to the access address and the access code sent from the storage node 42 to the transaction node a.
If the query content sent from the storage node 41 to the transaction node a is inconsistent with the query content sent from the storage node 42 to the transaction node a, or the query content corresponding to the access address and the access code sent from the storage node 41 to the transaction node a is inconsistent with the query content corresponding to the access address and the access code sent from the storage node 42 to the transaction node a, or access is not possible according to the access address and the access code sent from the storage node 41 or from the storage node 42 to the transaction node a, the transaction node a sends the first query result and the second query result to the main storage node 31.
Step 203, the master storage node receives a first query result and a second query result sent by the transaction node, where the first query result and the second query result are not consistent, and the first query result is obtained by the transaction node from a first slave storage node in the plurality of slave storage nodes, and the second query result is obtained by the transaction node from a second slave storage node in the plurality of slave storage nodes.
The main storage node 31 receives the first query result and the second query result sent by the transaction node a.
And step 204, the master storage node determines a slave storage node with lower reliability from the first slave storage node and the second slave storage node by comparing the first query result with the blockchain ledger stored in the master storage node and the second query result with the blockchain ledger stored in the master storage node.
The master storage node 31 compares the first query result with the locally stored blockchain ledger, and compares the second query result with the locally stored blockchain ledger, thereby determining a slave storage node with lower reliability from among the slave storage nodes 41 and 42.
The master storage node determining a slave storage node with lower reliability from the first slave storage node and the second slave storage node by comparing the first query result with the blockchain ledger stored in the master storage node and the second query result with the blockchain ledger stored in the master storage node, including: if the first query result is consistent with the blockchain account book stored in the main storage node, and the second query result is inconsistent with the blockchain account book stored in the main storage node, the main storage node determines that the second slave storage node is a slave storage node with lower reliability in the first slave storage node and the second slave storage node.
For example, after comparing the first query result with the locally stored blockchain ledger, and comparing the second query result with the locally stored blockchain ledger, the master storage node 31 determines that the second query result is not consistent with the locally stored blockchain ledger, and the first query result is consistent with the locally stored blockchain ledger, which indicates that the first query result sent from the storage node 41 to the transaction node a is real, and the second query result sent from the storage node 42 to the transaction node a is false, that is, the slave storage node 42 is a slave storage node with lower reliability.
Optionally, after the master storage node determines that the second slave storage node is a slave storage node with lower reliability in the first slave storage node and the second slave storage node, the master storage node deletes the locally stored identification information of the second slave storage node.
For example, the master storage node 31 may delete locally stored identification information of the slave storage node 42.
Or after the master storage node determines that the second slave storage node is the slave storage node with lower reliability in the first slave storage node and the second slave storage node, the master storage node broadcasts the identification information of the second slave storage node to the blockchain network so as to cancel the transaction information transferred from the transaction node to the second slave storage node.
For example, the master storage node 31 may also broadcast the identification information of the slave storage node 42 into the blockchain network in order to cancel the transaction information transferred by the transaction node a to the slave storage node 42, which is the previously described transfer information of the transaction node a to the slave storage node 42 based on the offer information of the slave storage node 42.
Optionally, after the transaction node a sends the transfer information to the slave storage node 42, the amount transferred to the slave storage node 42 by the transaction node a is transferred to the account of the slave storage node 42 after a preset time, and within the preset time, if the master storage node 31 determines that the slave storage node 42 is a slave storage node with lower reliability, the identification information of the slave storage node 42 may be broadcast to the blockchain network, so as to avoid the transfer of the amount transferred to the slave storage node 42 by the transaction node a to the account of the slave storage node 42. The preset time can be determined according to the data volume of the query result downloaded by the transaction node A, the network speed and other factors. Or, when the transaction node a receives the second query result from the storage node 42 and confirms the second query result, the confirmation information of the second query result is broadcast to the blockchain network, so that the amount transferred from the storage node 42 to the transaction node a is transferred to the account of the storage node 42. In order to avoid that the transaction node a receives the second query result, confirms the second query result and does not broadcast confirmation information of the second query result, a time threshold value may be set in the block chain network, and when the time threshold value is exceeded, the transaction node a also broadcasts the confirmation information of the second query result, and the amount transferred from the storage node 42 by the transaction node a is transferred to the account of the storage node 42.
The embodiment of the invention sends the identification information of a plurality of locally stored slave storage nodes to the transaction node through the master storage node, so that the transaction node sends a query request to at least one slave storage node in the plurality of slave storage nodes to query partial contents of the blockchain ledger stored in the slave storage node, when the query results obtained by the transaction node from different slave storage nodes are different, the transaction node sends the different query results to the master storage node, so that the master storage node determines the slave storage node with lower reliability according to the different query results and the blockchain ledger locally stored by the master storage node, thereby the transaction node obtains the query results from the slave storage nodes with high reliability, and the reliability of the query results is improved.
Fig. 4 is a flowchart of a transaction information processing method according to another embodiment of the invention. On the basis of the foregoing embodiment, the transaction information processing method provided in this embodiment specifically includes the following steps:
step 401, the master storage node sends the second query request to the plurality of slave storage nodes.
As shown in fig. 3, the master storage node 31 may send a second query request to the slave storage node 41, the slave storage node 42, and the slave storage node 43, respectively, the second query request being used for querying partial contents of a target chunk in the blockchain ledger. Optionally, the partial content of the target block includes at least one of: partial transaction information in the target block, target field values in a block of the target block.
In this embodiment, the partial block chain accounts stored in the slave storage node 41, the slave storage node 42, and the slave storage node 43 may be the same or different, and for example, alternatively, the P-th block is stored in the slave storage node 41, the P + 1-th block is stored in the slave storage node 42, and the P + 2-th block is stored in the slave storage node 43. This is merely an illustrative example, and does not limit the number of blocks stored in each slave storage node.
Optionally, the master storage node 31 sends a second query request to the slave storage node 41 to query and obtain a certain transaction information in the pth block or a value of a certain field in the block body of the pth block.
The master storage node 31 sends a second query request to the slave storage node 42 to query for a certain transaction information in the P +1 th block or a value of a certain field in the block of the P +1 th block.
The master storage node 31 sends a second query request to the slave storage node 43 to query for a certain transaction information in the P +2 th block or a value of a certain field in the block body of the P +2 th block.
Step 402, the master storage node receives a query result fed back by each of the plurality of slave storage nodes.
Accordingly, the main storage node 31 receives a certain transaction information in the block of the P-th block or a certain field value in the block of the P-th block fed back from the storage node 41.
The main storage node 31 receives a certain transaction information in the P +1 th block or a certain field value in the block body of the P +1 th block fed back from the storage node 42.
The main storage node 31 receives a certain transaction information in the P +2 th block or a certain field value in the block body of the P +2 th block fed back from the storage node 43.
And step 403, the master storage node determines the reliability of each slave storage node by comparing the query result fed back by each slave storage node with the block chain ledger stored in the master storage node.
Since the main storage node 31 locally stores a complete blockchain account book, the main storage node 31 may compare whether a certain transaction information in the P-th block fed back from the storage node 41 is consistent with a certain transaction information in the locally stored P-th block, or the main storage node 31 may compare whether a value of a certain field in the block body of the P-th block fed back from the storage node 41 is consistent with a value of a certain field in the block body of the locally stored P-th block, and if so, the main storage node 31 may correspondingly increase the reliability of the slave storage node 41.
Similarly, the master storage node 31 adjusts the reliability of the slave storage node 42 by comparing whether the partial content of the P +1 th block fed back from the slave storage node 42 is consistent with the partial content of the P +1 th block stored locally; and the main storage node 31 adjusts the reliability of the slave storage node 43 by comparing whether the partial content of the P +2 th chunk fed back from the slave storage node 43 is consistent with the partial content of the P +2 th chunk stored locally.
And 404, the master storage node sorts the identification information of the plurality of locally stored slave storage nodes according to the reliability of each slave storage node.
Optionally, the master storage node locally stores a list including identification information and reliability of slave storage nodes communicatively connected to the master storage node, for example, the master storage node 31 locally stores a list including identification information and reliability of the slave storage node 41, identification information and reliability of the slave storage node 42, identification information and reliability of the slave storage node 43, and optionally, identification information and reliability of each slave storage node is an entry of the list.
After the master storage node 31 adjusts the reliabilities of the slave storage node 41, the slave storage node 42, and the slave storage node 43, respectively, each entry in the locally stored list may be reordered according to the adjusted reliabilities of the slave storage node 41, the slave storage node 42, and the slave storage node 43. For example, the master storage node 31 reorders each entry in the list in order of high to low reliability.
The embodiment of the invention sends a query request to a plurality of slave storage nodes through a master storage node to query and acquire the partial content of the target block stored by each slave storage node, and further determines the reliability of each slave storage node by comparing the partial content of the target block fed back by each slave storage node with the partial content of the target block stored in the master storage node, so that when a block generation node generates a new block, the new block is sent to a slave storage node with higher reliability, thereby improving the reliability of a block chain account book.
Fig. 5 is a schematic structural diagram of a transaction information processing apparatus according to an embodiment of the present invention. The transaction information processing device may specifically be the main storage node described in the above embodiments. As shown in fig. 5, the transaction information processing apparatus 50 according to an embodiment of the present invention may execute a processing flow provided by the transaction information processing method according to an embodiment of the present invention, and includes: a receiving module 51, a transmitting module 52 and a determining module 53; the receiving module 51 is configured to receive a first query request sent by a transaction node; the sending module 52 is configured to send, according to the first query request, locally stored identification information of a plurality of slave storage nodes to the transaction node, so that the transaction node sends a second query request to at least one of the plurality of slave storage nodes, where the second query request is used to query a partial content of a blockchain ledger stored in the slave storage node; the receiving module 51 is further configured to: receiving a first query result and a second query result sent by the transaction node, wherein the first query result and the second query result are inconsistent, and the first query result is obtained by the transaction node from a first slave storage node in the plurality of slave storage nodes, and the second query result is obtained by the transaction node from a second slave storage node in the plurality of slave storage nodes; the determining module 53 is configured to determine a slave storage node with lower reliability from the first slave storage node and the second slave storage node by comparing the first query result with the blockchain ledger stored in the master storage node, and comparing the second query result with the blockchain ledger stored in the master storage node.
Optionally, the determining module 53 is specifically configured to: when the first query result is consistent with the blockchain account book stored in the main storage node and the second query result is inconsistent with the blockchain account book stored in the main storage node, determining that the second slave storage node is a slave storage node with lower reliability in the first slave storage node and the second slave storage node.
Optionally, the transaction information processing apparatus 50 further includes: a deletion module 54; the deleting module 54 is configured to delete the locally stored identification information of the second slave storage node.
Optionally, the sending module 52 is further configured to: broadcasting identification information of the second slave storage node to a blockchain network to cancel transaction information transferred by the transaction node to the second slave storage node.
Optionally, the sending module 52 is further configured to: sending the second query request to the plurality of slave storage nodes; the receiving module 51 is further configured to: receiving a query result fed back by each slave storage node in the plurality of slave storage nodes; the determining module 53 is further configured to: determining the reliability of each slave storage node by comparing the query result fed back by each slave storage node with the block chain book stored in the master storage node; in addition, the transaction information processing apparatus 50 further includes: and the sorting module 55, where the sorting module 55 is configured to sort, according to the reliability of each slave storage node, the identification information of the plurality of slave storage nodes stored locally.
The transaction information processing apparatus of the embodiment shown in fig. 5 can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention. The block link point provided by the embodiment of the present invention may execute the processing flow provided by the transaction information processing method embodiment, as shown in fig. 6, the block link point 60 includes a memory 61, a processor 62, a computer program, and a communication interface 63; wherein the computer program is stored in the memory 61 and is configured to be executed by the processor 62 to execute the transaction information processing method described in the above embodiment.
The block link points of the embodiment shown in fig. 6 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
In addition, the present embodiment also provides a computer-readable storage medium on which a computer program is stored, the computer program being executed by a processor to implement the transaction information processing method described in the above embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A transaction information processing method, comprising:
the method comprises the steps that a main storage node receives a first query request sent by a transaction node, wherein the first query request is used for acquiring identification information of a plurality of slave storage nodes stored by the main storage node;
the master storage node sends locally stored identification information of a plurality of slave storage nodes to the transaction node according to the first query request, so that the transaction node sends a second query request to at least one slave storage node in the plurality of slave storage nodes, wherein the second query request is used for querying partial content of a blockchain ledger stored in the slave storage node;
the main storage node receives a first query result and a second query result sent by the transaction node, wherein the first query result and the second query result are inconsistent, the first query result is obtained by the transaction node from a first slave storage node in the plurality of slave storage nodes, and the second query result is obtained by the transaction node from a second slave storage node in the plurality of slave storage nodes;
if the first query result is consistent with the blockchain account book stored in the main storage node, and the second query result is inconsistent with the blockchain account book stored in the main storage node, the main storage node determines that the second slave storage node is a slave storage node with lower reliability in the first slave storage node and the second slave storage node.
2. The method of claim 1, wherein after the master storage node determines that the second slave storage node is a less reliable slave storage node of the first slave storage node and the second slave storage node, further comprising:
the master storage node deletes the locally stored identification information of the second slave storage node.
3. The method of claim 1, wherein after the master storage node determines that the second slave storage node is a less reliable slave storage node of the first slave storage node and the second slave storage node, further comprising:
the master storage node broadcasts identification information of the second slave storage node to a blockchain network to cancel transaction information transferred by the transaction node to the second slave storage node.
4. The method according to any one of claims 1-3, further comprising:
the master storage node sending the second query request to the plurality of slave storage nodes;
the master storage node receives the query result fed back by each slave storage node in the plurality of slave storage nodes;
the master storage node determines the reliability of each slave storage node by comparing the query result fed back by each slave storage node with a block chain book stored in the master storage node;
and the master storage node sequences the identification information of the plurality of locally stored slave storage nodes according to the reliability of each slave storage node.
5. A transaction information processing apparatus characterized by comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a first query request sent by a transaction node, and the first query request is used for acquiring identification information of a plurality of slave storage nodes stored by a master storage node;
a sending module, configured to send, according to the first query request, locally stored identification information of a plurality of slave storage nodes to the transaction node, so that the transaction node sends a second query request to at least one of the plurality of slave storage nodes, where the second query request is used to query a partial content of a blockchain ledger stored in the slave storage node;
the receiving module is further configured to: receiving a first query result and a second query result sent by the transaction node, wherein the first query result and the second query result are inconsistent, and the first query result is obtained by the transaction node from a first slave storage node in the plurality of slave storage nodes, and the second query result is obtained by the transaction node from a second slave storage node in the plurality of slave storage nodes;
a determining module, configured to determine a slave storage node with a lower reliability from the first slave storage node and the second slave storage node by comparing the first query result with a blockchain ledger stored in the transaction information processing apparatus, and comparing the second query result with the blockchain ledger stored in the transaction information processing apparatus;
the determining module is specifically configured to:
when the first query result is consistent with the blockchain ledger stored in the transaction information processing device and the second query result is inconsistent with the blockchain ledger stored in the transaction information processing device, determining that the second slave storage node is a slave storage node with lower reliability in the first slave storage node and the second slave storage node.
6. The transaction information processing apparatus according to claim 5, further comprising:
and the deleting module is used for deleting the locally stored identification information of the second slave storage node.
7. The transaction information processing device of claim 5, wherein the sending module is further configured to: broadcasting identification information of the second slave storage node to a blockchain network to cancel transaction information transferred by the transaction node to the second slave storage node.
8. The transaction information processing device of any of claims 5-7, wherein the sending module is further configured to: sending the second query request to the plurality of slave storage nodes;
the receiving module is further configured to: receiving a query result fed back by each slave storage node in the plurality of slave storage nodes;
the determination module is further to: determining the reliability of each slave storage node by comparing the query result fed back by each slave storage node with a blockchain ledger stored in the transaction information processing device;
the transaction information processing apparatus further includes: and the sequencing module is used for sequencing the identification information of the plurality of locally stored slave storage nodes according to the reliability of each slave storage node.
9. A block link point, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-4.
10. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-4.
CN201810553865.9A 2018-05-31 2018-05-31 Transaction information processing method and device and block link points Active CN108876611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810553865.9A CN108876611B (en) 2018-05-31 2018-05-31 Transaction information processing method and device and block link points

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810553865.9A CN108876611B (en) 2018-05-31 2018-05-31 Transaction information processing method and device and block link points

Publications (2)

Publication Number Publication Date
CN108876611A CN108876611A (en) 2018-11-23
CN108876611B true CN108876611B (en) 2021-05-18

Family

ID=64335267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810553865.9A Active CN108876611B (en) 2018-05-31 2018-05-31 Transaction information processing method and device and block link points

Country Status (1)

Country Link
CN (1) CN108876611B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049087B (en) * 2018-12-28 2020-05-05 阿里巴巴集团控股有限公司 Credibility verification method, system, device and equipment of alliance chain
CN110351276B (en) * 2019-07-12 2021-11-23 全链通有限公司 Data processing method, device and computer readable storage medium
CN113901144B (en) * 2021-10-15 2024-02-06 北京智融云河科技有限公司 Query method, device and storage medium under non-whole network consensus block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778343A (en) * 2016-12-12 2017-05-31 武汉优聘科技有限公司 It is a kind of that the data sharing method of private data is related to based on block chain
CN107222482A (en) * 2017-06-01 2017-09-29 黑龙江卓亚科技有限公司 A kind of data management system and method based on compound block chain network
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN107491519A (en) * 2017-08-15 2017-12-19 中国联合网络通信集团有限公司 The querying method and device of block chain account book

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778343A (en) * 2016-12-12 2017-05-31 武汉优聘科技有限公司 It is a kind of that the data sharing method of private data is related to based on block chain
CN107222482A (en) * 2017-06-01 2017-09-29 黑龙江卓亚科技有限公司 A kind of data management system and method based on compound block chain network
CN107396360A (en) * 2017-08-15 2017-11-24 中国联合网络通信集团有限公司 Block verification method and device
CN107491519A (en) * 2017-08-15 2017-12-19 中国联合网络通信集团有限公司 The querying method and device of block chain account book

Also Published As

Publication number Publication date
CN108876611A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108712506B (en) Block chain node communication method and device and block chain node
CN109118360B (en) Block chain account checking method, device, equipment and storage medium
CN108200568B (en) Mobile communication electronic SIM card data processing method and device
CN108769142B (en) Transaction information processing method and block generation node
CN108876611B (en) Transaction information processing method and device and block link points
CN109640274B (en) Short message sending method and device based on block chain and computer readable storage medium
CN108881296B (en) Block chain real-name authentication method, device, equipment and storage medium
CN108989043B (en) Block processing method and device and block link points
CN108810120B (en) Block chain node communication method and device and block chain node
CN108683727B (en) Block processing method and main node
CN108596636B (en) Anti-counterfeiting method and device and terminal equipment
CN103327013A (en) Contact person information sharing method and equipment based on sharing permission level
CN109087096B (en) Block chain account checking method, device, equipment and storage medium
CN108848455A (en) Acquisition methods, device, equipment and the computer readable storage medium of available network
CN108877290B (en) Parking space scheduling method, device, equipment and storage medium
CN109639715B (en) Method, device and equipment for avoiding double-flower attack and computer readable storage medium
CN108768733B (en) Block chain account book processing method and device and block chain link points
CN109067721B (en) Block chain real-name authentication method, device, equipment and storage medium
CN109379199B (en) User credit processing method, device, equipment and storage medium
CN109104285B (en) Block chain real-name authentication method, device, equipment and storage medium
CN104618853A (en) Method, device and system for information push
CN113194406B (en) Capability reporting method, device and terminal
CN108777712B (en) Block chain node communication method and device and block chain node
CN108898419B (en) Reward information processing method and device and block link points
CN108848144B (en) Method and device for accessing nodes in block chain and block chain link point

Legal Events

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