CN108876331B - Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof - Google Patents

Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof Download PDF

Info

Publication number
CN108876331B
CN108876331B CN201810511351.7A CN201810511351A CN108876331B CN 108876331 B CN108876331 B CN 108876331B CN 201810511351 A CN201810511351 A CN 201810511351A CN 108876331 B CN108876331 B CN 108876331B
Authority
CN
China
Prior art keywords
transaction
reconciliation
proxy node
hash value
node
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.)
Expired - Fee Related
Application number
CN201810511351.7A
Other languages
Chinese (zh)
Other versions
CN108876331A (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.)
Iallchain Co Ltd
Original Assignee
Iallchain 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 Iallchain Co Ltd filed Critical Iallchain Co Ltd
Priority to CN201810511351.7A priority Critical patent/CN108876331B/en
Publication of CN108876331A publication Critical patent/CN108876331A/en
Application granted granted Critical
Publication of CN108876331B publication Critical patent/CN108876331B/en
Expired - Fee Related 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a block chain transaction reconciliation proxy node and an information synchronization method thereof, wherein the method comprises the following steps: the first transaction reconciliation agent node acquires a first transaction quantity corresponding to the transaction time period and a hash value thereof, and compares the first transaction quantity with a second transaction quantity; and if the first transaction quantity is smaller than the second transaction quantity, calculating a difference value between the second synchronous information quantity and the first synchronous information quantity, and paying the synchronous service cost to the second transaction reconciliation agent node according to the difference value and the pre-negotiated paid synchronous condition. Therefore, when the block chain transaction reconciliation agent node is introduced to meet daily transactions, the information synchronization of the transaction reconciliation agent node is ensured, the information synchronization contribution agent node is compensated, and the operation fairness of the reconciliation agent node in the block chain network is maintained.

Description

Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof
Technical Field
The invention relates to the technical field of communication, in particular to a terminal device where a block chain transaction reconciliation proxy node is located and an information synchronization method thereof.
Background
Generally, based on an operation mechanism of a block chain, transaction verification before a node needs to ensure that all nodes currently participating in a transaction participate in the block chain, however, with the development of the era of mobile internet, on one hand, a mobile terminal becomes a mainstream as a transaction node of the block chain, and due to the limitation of electric quantity and flow of the mobile terminal and the like, the node which cannot participate in the transaction is in an online mode of the block chain network in real time, and thus, the transaction verification of the node in an offline mode of the block chain network cannot be realized. On the other hand, even if the nodes participating in the transaction are in the online mode of the blockchain network, the transaction amount is more common along with the increase of the nodes participating in the transaction, the network flow is increased rapidly when the blockchain operation is based, the generation time of the waiting blocks is longer when the transaction verification is carried out, and the transaction confirmation time is too long to meet the rapid requirement of daily transactions. The deficiencies of the above two aspects result in the inability of blockchain techniques to be applied to daily transactions.
Disclosure of Invention
The invention provides a terminal device where a blockchain transaction reconciliation proxy node is located and an information synchronization method thereof, and aims to solve the technical problems that in the prior art, the blockchain transaction reconciliation proxy node causes the blockchain technology to be difficult to apply to daily transactions and cannot be compensated during information synchronization.
A first embodiment of the present invention provides an information synchronization method for a blockchain transaction reconciliation proxy node, including: the method comprises the following steps that a first transaction reconciliation proxy node receives a block information synchronization request sent by a second transaction reconciliation proxy node, wherein the block information synchronization request comprises: a second transaction amount in a transaction recording time period and a hash value of a second transaction record, wherein the transaction recording time period is from last (N-1) th block generation time to current latest Nth block generation time; the first transaction reconciliation proxy node inquires locally stored transaction information, acquires a first transaction quantity corresponding to the transaction time period and a hash value of a first transaction record, and compares the first transaction quantity with the second transaction quantity; if the first transaction reconciliation proxy node learns that the first transaction quantity is smaller than the second transaction quantity, sending a paid exchange request to the second transaction reconciliation proxy node, acquiring a second transaction detail which is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and sending a first transaction detail which corresponds to the hash value of the first transaction record to the second transaction reconciliation proxy node; the first transaction reconciliation proxy node determines a first synchronous information quantity provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node and a second synchronous information quantity provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node according to different values of the hash value of the first transaction record and the hash value of the second transaction record; and the first transaction reconciliation agent node calculates the difference value between the second synchronous information quantity and the first synchronous information quantity, and pays the synchronous service cost to the second transaction reconciliation agent node according to the difference value and the pre-negotiated paid synchronous condition.
A second embodiment of the present invention provides a terminal device where a transaction reconciliation proxy node is located, including: a receiving module, configured to receive a block information synchronization request sent by a second transaction reconciliation proxy node, where the block information synchronization request includes: a second transaction amount in a transaction recording time period and a hash value of a second transaction record, wherein the transaction recording time period is from last (N-1) th block generation time to current latest Nth block generation time; the comparison module is used for inquiring transaction information stored locally, acquiring a first transaction quantity corresponding to the transaction time period and a hash value of a first transaction record, and comparing the first transaction quantity with the second transaction quantity; a sending module, configured to send a gratuitous exchange request to the second transaction reconciliation proxy node if it is known that the first transaction amount is smaller than the second transaction amount, obtain a second transaction detail, which is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and send a first transaction detail, which corresponds to the hash value of the first transaction record, to the second transaction reconciliation proxy node; a determining module, configured to determine, according to different values of the hash value of the first transaction record and the hash value of the second transaction record, a first amount of synchronization information provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node, and a second amount of synchronization information provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node; and the payment module is used for calculating the difference value between the second synchronous information quantity and the first synchronous information quantity and paying the synchronous service fee to the second transaction reconciliation agent node according to the difference value and the pre-negotiated paid synchronous condition.
A third embodiment of the present invention provides a computer apparatus including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the information synchronization method of the blockchain transaction reconciliation proxy node according to the embodiment.
A fourth embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the information synchronization method of the blockchain transaction reconciliation proxy node according to the above embodiment.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when the blockchain transaction account checking agent node is introduced to meet daily transactions, the information synchronization of the transaction account checking agent node is guaranteed, the information synchronization contribution agent node is compensated, the operation fairness of the account checking agent node in a blockchain network is maintained, and the operation enthusiasm of the transaction account checking agent node is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
FIG. 1 is a diagram of an application scenario of a blockchain execution mechanism according to the prior art;
FIG. 2 is a flow diagram of a block link point proxy reconciliation method according to one embodiment of the invention;
FIG. 3 is a flow diagram of a method for information synchronization of a blockchain transaction reconciliation proxy node according to one embodiment of the invention;
FIG. 4 is a flow diagram of a method for information synchronization of a blockchain transaction reconciliation proxy node according to another embodiment of the present invention;
fig. 5(a) is a schematic diagram of hash values of recorded transactions of a first transaction reconciliation agent node and a second transaction reconciliation agent node according to a first embodiment of the invention;
fig. 5(b) is a schematic diagram of hash values of recorded transactions of a first transaction reconciliation agent node and a second transaction reconciliation agent node according to a second embodiment of the invention;
fig. 5(c) is a schematic diagram of hash values of recorded transactions of a first transaction reconciliation agent node and a second transaction reconciliation agent node according to a third embodiment of the invention;
fig. 5(d) is a schematic diagram of hash values of recorded transactions of a first transaction reconciliation agent node and a second transaction reconciliation agent node according to a fourth embodiment of the invention;
FIG. 6 is a flow diagram of a method for information synchronization of a blockchain transaction reconciliation proxy node according to yet another embodiment of the present invention;
FIG. 7 is a flow diagram of a method for information synchronization of a blockchain transaction reconciliation proxy node according to one embodiment of the present invention;
FIG. 8 is a schematic diagram of a transaction reconciliation proxy node according to one embodiment of the present invention;
FIG. 9 is a schematic diagram of a transaction reconciliation proxy node according to another embodiment of the present invention;
FIG. 10 is a schematic diagram of a transaction reconciliation proxy node according to yet another embodiment of the present invention; and
fig. 11 is a schematic structural diagram of a transaction reconciliation proxy node according to yet another embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
Based on the description of the background art, it is understood that in the prior art, as the daily transaction is actually performed, the receiver of the transaction is generally a shop owner, and such a block participating node has a real-time online condition, but the initiator of the block chain transaction is generally a common public user, and generally a mobile terminal is adopted, and generally does not have a condition of accessing to a block chain in real time.
On the other hand, when the current blockchain performs transaction verification, for example, as shown in fig. 1, when a node a and a node B perform a transaction, both participating nodes must be kept in the blockchain network online mode, receive various broadcast records in real time, generate a transaction record by a transaction initiator node, sign the transaction record, and broadcast the transaction record to the blockchain P2P network, but when a mobile terminal participating in the transaction cannot guarantee that the mobile terminal is in the blockchain network online mode in real time, the blockchain is difficult to apply to daily transactions.
On the other hand, based on the operation mechanism of the block chain, the block chain must wait until the transaction record is written into the block to confirm the transaction, i.e. referring to fig. 1, the node B needs to receive the verification information written into the block to confirm the transaction success, however, daily transactions, especially face-to-face transactions, need to be fast and fast, and need to complete payment and confirmation within 1-2 minutes, wait for writing into the block, or generate a plurality of blocks. Completely unacceptable to the user.
In order to solve the problem that the blockchain is difficult to apply to daily transactions, the invention provides a blockchain link point proxy reconciliation method, which is characterized in that a blockchain transaction reconciliation proxy node is introduced to carry out authentication of transaction transfer, so that the generation of a block is not required to be waited for, the transaction success can be confirmed even if a payer is offline, the transaction can be completed within a few seconds according to a verification mechanism, and a support is provided for the application of a blockchain technology to daily transactions. And transaction authentication is carried out on the account checking agent node based on the introduced blockchain transaction, the pressure of the transaction authentication is transferred to a special agent node for bearing, and the technical problem that when transaction authentication is carried out by a payer node or a receiver node, the operation of the node is blocked due to occupation of related network resources is avoided.
Specifically, fig. 2 is a flowchart of a block link point proxy reconciliation method according to an embodiment of the invention, as shown in fig. 2, the method comprising:
step 101, when a sender node in an offline mode of a blockchain network sends transaction transfer information signed by a private key to a receiver node in an online mode, a blockchain transaction reconciliation agent node receives a reconciliation query request sent by the receiver node, wherein the reconciliation query request comprises: service charges, compensation information, transaction transfer information, and a node identification of the sender node.
The sender node in the offline mode of the blockchain network may be understood that the current sender node cannot be online in the blockchain network in real time due to limitations of electric quantity, flow and the like, and cannot be used as a node stably existing in the blockchain.
Specifically, when the sender node is in the offline mode of the blockchain network, the transaction transfer information sent to the receiver node in the online mode is signed by the private key, so that other illegal mobile terminals can be prevented from pretending that the sender node initiates a transaction behavior.
And 102, judging whether the service cost meets a preset payment threshold value or not by the blockchain transaction reconciliation proxy node, and inquiring a blockchain account book currently stored in the blockchain transaction reconciliation proxy node according to the node identifier if the service cost meets the preset payment threshold value, so as to obtain all transaction records of the sender node.
It should be understood that the blockchain transaction reconciliation proxy node has active selectivity for transaction authentication, and the blockchain transaction reconciliation proxy node sets a corresponding payment threshold value in advance according to cost and the like, and determines whether the service cost meets a preset payment threshold value, and if the service cost meets the preset payment threshold value, for example, the service cost is greater than or equal to the corresponding payment threshold value, the current service cost is indicated to meet the reward requirement, so that a blockchain account book currently stored in the blockchain transaction reconciliation proxy node is inquired according to the node identifier, and all transaction records of the sender node are obtained, wherein all transaction records of the current sender node refer to all transaction records of a generated block, and are transactions authenticated through a blockchain network.
And 103, analyzing all transaction records of the sender node by the blockchain transaction reconciliation agent node according to a preset reconciliation rule and account information of the sender node, judging whether the transaction transfer information is successful, and feeding back all transaction records and reconciliation query results signed by a private key to the receiver node.
In the embodiment of the invention, the blockchain transaction reconciliation proxy node presets a corresponding reconciliation rule, analyzes all transaction records of the sender node according to the preset reconciliation rule and account information of the sender node, judges whether the transaction transfer information is successful, and feeds back all transaction records and reconciliation query results signed by a private key to the receiver node.
And 104, the blockchain transaction reconciliation proxy node sends a broadcast message to the blockchain network, broadcasts the inquiry cost corresponding to the reconciliation inquiry request, and informs the receiving party node of performing transfer service to the blockchain transaction reconciliation proxy node.
Specifically, the blockchain transaction reconciliation proxy node sends a broadcast message to the blockchain network, broadcasts the inquiry cost corresponding to the reconciliation inquiry request, and informs the receiving party node of performing transfer service to the blockchain transaction reconciliation proxy node, so that the blockchain transaction reconciliation proxy node is paid under the supervision mechanism of the blockchain network, and therefore, based on the operation mechanism of the blockchain network, under the supervision of each node in the blockchain network, the inquiry cost payment from the receiving party node to the blockchain transaction reconciliation proxy node is realized, and the reliability and the normalization of the transaction are ensured.
And 105, the blockchain transaction reconciliation proxy node learns that the reconciliation query result is wrong, and performs corresponding transaction compensation operation on the compensation node according to the compensation information.
Based on the above description, it is understood that the reconciliation rule of the blockchain transaction reconciliation proxy node is not based on the actual payment behavior, and therefore, it is inevitable that in some scenarios, the result of the reconciliation query may be erroneous, in this case, in order to guarantee the rights and interests of both transaction parties, if the blockchain transaction reconciliation proxy node knows that the reconciliation query result is wrong, then the corresponding transaction compensation operation is performed on the compensation node according to the compensation information, for example, after a certain time, the generated blockchain for the current transaction in the blockchain network is inconsistent with the account checking query result, for example, the generated blockchain does not correspond to the current transaction, and if the account checking inquiry result is successful, judging that the block chain transaction account checking agent node knows the error of the account checking inquiry result, and performing corresponding transaction compensation operation on the compensation node according to the compensation information.
Therefore, the block chain link point proxy reconciliation method provided by the embodiment of the invention introduces the block chain transaction reconciliation proxy node, can provide real-time reconciliation proxy service for daily transaction parties, and obtains a certain proxy reward, and once the block is generated and the accounting fails, the transaction parties obtain corresponding compensation through a preset compensation mechanism.
Based on the above description of the blockchain transaction reconciliation proxy node, it is understood that, on the one hand, the stability of the blockchain transaction reconciliation proxy node depends on the guarantee of the reward system, so that it is crucial to provide effective benefit guarantee for the blockchain transaction reconciliation proxy node.
On the other hand, there may be more than one transaction reconciliation agent node in the blockchain, and for safety and reliability, it is preferable that the transaction reconciliation agent node is not only one, and it is also possible that a certain transaction reconciliation agent node is not on-line all day for 24 hours, so when the transaction reconciliation agent node is on-line again, complete transaction information should be synchronized with other transaction reconciliation agent nodes, and in order to ensure the reliability of the transaction reconciliation agent node in a daily payment scenario, information synchronization needs to be ensured.
Therefore, in order to comprehensively consider the above two factors, in one embodiment of the present invention, information synchronization is performed based on information interaction between the transaction reconciliation proxy nodes, and corresponding compensation is performed for the transaction reconciliation proxy nodes contributing to the information synchronization, so as to maintain operation fairness between the transaction reconciliation proxy nodes, thereby improving stability of the blockchain network including the transaction reconciliation proxy nodes.
The following describes a blockchain transaction reconciliation proxy node and an information synchronization method thereof according to an embodiment of the invention with reference to the drawings.
For convenience of description, the following embodiments differentiate the different transaction reconciliation proxy nodes by the first transaction reconciliation proxy node and the second transaction reconciliation proxy node.
Specifically, fig. 3 is a flowchart of an information synchronization method of a blockchain transaction reconciliation proxy node according to an embodiment of the invention, and as shown in fig. 3, the method includes:
step 201, a first transaction reconciliation proxy node receives a block information synchronization request sent by a second transaction reconciliation proxy node, wherein the block information synchronization request includes: and the second transaction quantity in the transaction recording time period and the hash value of the second transaction record, wherein the transaction recording time period is from the last (N-1) th block generation time to the current latest Nth block generation time.
It should be noted that all current latest transaction information is stored in all transaction reconciliation proxy nodes in the blockchain network to provide redundancy and supervision mechanism for transaction reconciliation, but due to network failure, machine failure and the like, the transaction information in some transaction reconciliation proxy nodes is not synchronized with the latest actual transaction condition, obviously, such transaction that is not synchronized mainly refers to the transaction that is not determined by the blockchain network, and in the embodiment of the present invention, the transaction is defined from the last (N-1) th block generation time to the current latest nth block generation time in the transaction recording time period. Wherein N is a positive integer greater than or equal to 1, and transactions in the time period are usually not authenticated by the blockchain network yet, and require the blockchain transaction reconciliation proxy node to participate in transaction authentication.
Specifically, in order to verify whether the transaction information held by the second transaction reconciliation proxy node is comprehensive or not, the second transaction reconciliation proxy node sends a block information synchronization request to the first transaction reconciliation proxy node, wherein the block information synchronization request comprises a second transaction quantity in the transaction recording time period and a hash value of a second transaction record, and the hash value of the second transaction record is used for identifying the uniqueness of each transaction.
It can be understood that the second transaction reconciliation proxy node only sends the second transaction amount and the hash value of the second transaction record to the first transaction reconciliation proxy node, so that the first transaction reconciliation proxy node can only know the number and the identification of the transaction information contained in the second transaction reconciliation proxy node according to the information and can not know the specific transaction content, thereby avoiding the problem that the operation fairness of the transaction reconciliation proxy node is influenced because the specific transaction content is directly provided for other transaction reconciliation proxy nodes to cause the failure in obtaining the reward on the premise that the compensation or the reward is not obtained.
In the embodiment of the present invention, the communication modes of the first transaction reconciliation proxy node and the second transaction reconciliation proxy node may be determined according to the distance between the first transaction reconciliation proxy node and the second transaction reconciliation proxy node, and according to the difference of the distances and the difference of the working mechanisms, the communication modes of the first transaction reconciliation proxy node and the second transaction reconciliation proxy node include, but are not limited to: the transaction verification proxy node comprises an infrared connection mode, a bluetooth connection mode, an NFC (Near Field Communication), a WiFi connection mode, an internet connection mode, or a connection mode such as a third-party transfer mode (for example, the second transaction verification proxy node sends the second transaction verification proxy node to a third-party server, and the third-party server sends the second transaction verification proxy node to the first transaction verification proxy node).
Step 202, the first transaction reconciliation proxy node queries locally stored transaction information, obtains a first transaction quantity corresponding to the transaction time period and a hash value of the first transaction record, and compares the first transaction quantity with the second transaction quantity.
It can be understood that the first transaction reconciliation proxy node queries locally stored transaction information, obtains a first transaction amount corresponding to the transaction time period and a hash value of the first transaction record, and compares the first transaction amount and the second transaction amount to determine a difference in the transaction information recorded between the first transaction reconciliation proxy node and the second transaction reconciliation proxy node, where the difference includes a difference in amount and a difference in transaction details.
Step 203, if the first transaction reconciliation proxy node knows that the first transaction amount is smaller than the second transaction amount, the first transaction reconciliation proxy node sends a paid exchange request to the second transaction reconciliation proxy node, acquires a second transaction detail sent by the second transaction reconciliation proxy node and corresponding to the hash value of the second transaction record, and sends a first transaction detail corresponding to the hash value of the first transaction record to the second transaction reconciliation proxy node.
Specifically, if the first transaction reconciliation proxy node learns that the first transaction amount is smaller than the second transaction amount, it is obvious that the transaction information that is not recorded in the first transaction reconciliation proxy node exists in the second transaction reconciliation proxy node, so that, in order to complement the transaction information, the first transaction reconciliation proxy node sends a paid exchange request to the second transaction reconciliation proxy node to obtain a second transaction detail that is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and sends a first transaction detail that corresponds to the hash value of the first transaction record to the second transaction reconciliation proxy node.
In an embodiment of the present invention, the reason why the first transaction detail corresponding to the hash value of the first transaction record is sent to the second transaction reconciliation proxy node is that although the first transaction amount recorded in the first transaction reconciliation proxy node is smaller than the second transaction amount, the first transaction amount recorded in the first transaction reconciliation proxy node still contains the transactions not recorded in the second transaction reconciliation proxy node, and thus, in order to facilitate the completion of the information between the first transaction reconciliation proxy node and the second transaction reconciliation proxy node and further to facilitate the compensation operation based on the specific difference of the transaction information recorded between the first transaction reconciliation proxy node and the second transaction reconciliation proxy node, the first transaction reconciliation proxy node and the second transaction reconciliation proxy node need to share the transaction details with each other, wherein the transaction details contain specific transaction contents including the transaction amount, the transaction commodity, the transaction time, and the transaction time, The transaction party's store name and transaction location, etc.
Of course, in actual implementation, to ensure the benefit of the transaction reconciliation node, the transaction reconciliation node has a two-way active option for the paid exchange request:
specifically, in one embodiment of the present invention, as shown in fig. 4, step 103 comprises:
step 301, a first transaction reconciliation proxy node sends a paid exchange request signed by a private key to a second transaction reconciliation proxy node, wherein the paid exchange request comprises: a first transaction detail and a paid synchronization condition corresponding to the hash value of the first transaction record.
The private key signature is adopted for the paid exchange request, so that the first transaction reconciliation agent node is disguised as a first transaction reconciliation agent node to avoid payment and acquire transaction information and the like.
In addition, the paid exchange request includes: a first transaction detail corresponding to the hash value of the first transaction record and a paid synchronization condition, wherein the paid synchronization condition comprises a payment offer or the like for which the transaction information not contained is obtained.
Specifically, in this example, since the first transaction amount is smaller than the second transaction amount, the first transaction reconciliation node may record relatively less transaction information and has no initiative for exchanging with other proxy nodes, for example, as shown in fig. 5(a), 3 transactions corresponding to the hash value A, B, C are recorded in the first transaction reconciliation proxy node, 7 transactions corresponding to the hash values A, B, C, D, E, F and G are recorded in the second transaction reconciliation proxy node, all transaction records in the first transaction reconciliation proxy node are recorded by other nodes, and the exchanged capital is absent, so that when information synchronization with other nodes is requested, the first transaction details corresponding to the hash value of the first transaction record are directly provided to other nodes to improve the agreement rate of the second transaction reconciliation proxy node, increasing the efficiency of the synchronization.
Step 302, the first transaction reconciliation proxy node receives a second transaction detail corresponding to the hash value of the second transaction record sent by the second transaction reconciliation proxy node after determining the paid synchronization condition.
Specifically, after the first transaction reconciliation proxy node receives the second transaction reconciliation proxy node and determines the paid synchronization condition, the second transaction reconciliation proxy node agrees the payment offer and the like of the first transaction reconciliation proxy node, so that the two nodes establish synchronous transaction, and the second transaction reconciliation proxy node sends a second transaction detail corresponding to the hash value of the second transaction record to the first transaction reconciliation proxy node.
Specifically, in one embodiment of the present invention, as shown in fig. 6, step 103 comprises:
step 401, a first transaction reconciliation proxy node sends a paid exchange request signed by a private key to a second transaction reconciliation proxy node, wherein the paid exchange request includes: the first transaction amount and a hash value of the first transaction record.
In this embodiment, considering that even if the first transaction amount is smaller than the second transaction amount, it is possible that some of the transactions recorded in the first transaction reconciliation agent node are not recorded in the second transaction reconciliation agent node, for example, as shown in fig. 5(b), 3 transactions corresponding to the hash value A, B, H are recorded in the first transaction reconciliation agent node, 7 transactions corresponding to the hash values A, B, C, D, E, F and G are recorded in the second transaction reconciliation agent node, and the transaction corresponding to the hash value H in the first transaction reconciliation agent node is not recorded in the second transaction reconciliation agent node, and has a certain exchanged capital, so that, in order to reduce the cost of information synchronization of the first transaction reconciliation agent node, the first transaction reconciliation agent node sends a private key-signed paid exchange request to the second transaction reconciliation agent node, including the first transaction amount and the hash value of the first transaction record, and does not include specific transaction details.
Step 402, the first transaction reconciliation proxy node receives a paid exchange response sent by the second transaction reconciliation proxy node and signed by a private key, wherein the paid exchange response comprises: a second transaction detail and a paid synchronization condition corresponding to the hash value of the second transaction record.
Specifically, after the first transaction reconciliation proxy node receives a paid exchange response sent by the second transaction reconciliation proxy node and signed by a private key, the second transaction reconciliation proxy node indicates that the second transaction reconciliation proxy node agrees with a payment offer and the like of the first transaction reconciliation proxy node, so as to establish the synchronous transaction, and the feedback of the second transaction reconciliation proxy node to the first transaction reconciliation proxy node comprises the following steps: a second transaction detail corresponding to the hash value of the second transaction record and a paid synchronization condition, wherein the paid synchronization condition comprises: payment offers for which transaction information not included is obtained, and the like.
The reason that the paid exchange response sent by the second transaction reconciliation agent node is signed by the private key is to avoid other agent nodes from being disguised as the second transaction reconciliation agent node, and to send inaccurate transaction detail information to the first transaction reconciliation agent node to pretend as a false transaction or illegally obtain transaction information and the like.
And step 403, after the first transaction reconciliation proxy node determines the paid synchronization condition, sending a second transaction detail corresponding to the hash value of the second transaction record to the second transaction reconciliation proxy node.
Specifically, after the first transaction reconciliation proxy node determines the paid synchronization condition, it indicates that the first transaction reconciliation proxy node agrees with the payment offer and the like of the second transaction reconciliation proxy node, so as to send the first transaction details corresponding to the hash value of the first transaction record to the second transaction reconciliation proxy node.
Of course, in the actual implementation process, even if the first transaction amount is the same as the second transaction amount, the transaction contents of the first transaction amount and the second transaction amount are not the same, for example, as shown in fig. 5(c), when the hash value of the first transaction tie-out agent node according to the first transaction record is A, B, and the hash value of the second transaction tie-out agent node according to the second transaction record is C, D, the transaction contents are not actually the same although the transaction amounts are the same. Therefore, in an embodiment of the present invention, after comparing the first transaction amount and the second transaction amount, if the first transaction reconciliation proxy node knows that the first transaction amount is the same as the second transaction amount, it compares whether the hash value of the first transaction record is the same as the hash value of the second transaction record.
If the first transaction reconciliation agent node knows that the hash values are different, a gratuitous exchange request is sent to the second transaction reconciliation agent node, that is, the first transaction reconciliation agent node and the second transaction reconciliation agent node have transactions which are not recorded, for example, under the condition shown in fig. 5(c), the first transaction reconciliation agent node and the second transaction reconciliation agent node have 2 transactions which are not recorded by the opposite side, at this time, the gratuitous exchange request can be initiated to the opposite side, and under the condition of not paying, the transaction details are exchanged, that is, the second transaction details which are sent by the second transaction reconciliation agent node and correspond to the hash value of the second transaction record are obtained, and the first transaction details which correspond to the hash value of the first transaction record are sent to the second transaction reconciliation agent node.
And step 204, the first transaction reconciliation proxy node determines a first synchronous information quantity provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node and a second synchronous information quantity provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node according to the different values of the hash value of the first transaction record and the hash value of the second transaction record.
Specifically, in order to clarify a specific paid fee and the like, the first transaction reconciliation proxy node determines a first amount of synchronization information provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node and a second amount of synchronization information provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node according to different values of the hash value of the first transaction record and the hash value of the second transaction record, wherein the amount of synchronization information corresponds to the amount of transaction owned by the counterpart transaction reconciliation proxy node which is not included in the corresponding transaction reconciliation proxy node.
For example, as shown in fig. 5(d), when the hash value of the first transaction reconciliation agent node according to the first transaction record is A, B, and the hash value of the second transaction reconciliation agent node according to the second transaction record is A, C, D, it is determined that the transaction detail corresponding to the hash value B is provided by the first transaction reconciliation agent node for the second transaction reconciliation agent node, the first synchronization information quantity is 1, the transaction detail corresponding to the hash value C, D is provided by the second transaction reconciliation agent node for the first transaction reconciliation agent node, and the second synchronization information quantity is 2.
In step 205, the first transaction reconciliation proxy node calculates the difference between the second synchronization information quantity and the first synchronization information quantity, and pays the synchronization service fee to the second transaction reconciliation proxy node according to the difference and the pre-negotiated paid synchronization condition.
It can be understood that, when information synchronization is performed, payment needs to be made for each transaction which is not recorded, but a transaction reconciliation proxy node which has a large number of transactions which are not available to the other party is a node with a high final profit, so that, in order to simplify the exchange step, the first transaction reconciliation proxy node calculates the difference value between the second synchronization information quantity and the first synchronization information quantity, and pays the synchronization service fee to the second transaction reconciliation proxy node according to the difference value and the pre-negotiated paid synchronization condition.
For example, if the pre-negotiation is that the transaction information is 100 yuan, when the second synchronization information amount is 3 and the first synchronization information amount is 1, the first transaction reconciliation proxy node only needs to pay 200 yuan of the synchronization service fee of 3-1 ═ 2 transactions to the second transaction reconciliation proxy node, and does not need to pay 300 yuan of the synchronization service fee of 3 transactions to the second transaction reconciliation proxy node, and then the second transaction reconciliation proxy node pays 100 yuan of the synchronization service fee of 1 transaction to the first transaction reconciliation proxy node.
Based on the above description, it is obvious that better and more comprehensive recording of transaction information to collect the synchronous fee paid by other agent nodes is a big source of the profit of the account checking agent node of the transaction, so that, in order to further improve the enthusiasm of the account checking agent node of the transaction to record transaction information and maintain the stability of the system, when the information recorded by the account checking agent node is more comprehensive and faster, corresponding measures can be taken to expand the profit of the account checking agent node.
Specifically, in an embodiment of the present invention, as shown in fig. 7, after the step 105, the method further includes:
step 501, after knowing that the current latest nth block is confirmed by the blockchain network, the first transaction reconciliation proxy node detects whether the transaction quantity of the local node in the latest transaction recording time period is greater than or equal to a preset first threshold, wherein the latest transaction recording time period is from the nth block generation time to the current latest (N +1) th block generation time.
After the block chain network is confirmed in the latest Nth block, the first transaction reconciliation agent node quickly enters the next round of transaction authentication service to strive for obtaining higher income in the next round of transaction authentication, and whether the transaction quantity of the local node in the latest transaction recording time period is greater than or equal to a preset first threshold value is detected, wherein the latest transaction recording time period is from the Nth block generation time to the current latest (N +1) th block generation time, and the transaction in the transaction recording time period is the transaction which is not yet confirmed by the block chain network.
The first threshold is calibrated according to a large amount of experimental data, and is used for measuring whether the transaction quantity currently recorded by the first transaction reconciliation proxy node is in a relatively large level in all transaction reconciliation proxy nodes.
Step 502, if the first transaction reconciliation proxy node detects that the transaction quantity in the transaction record time period is greater than or equal to a first threshold value, determining whether the transaction quantity is greater than a preset second threshold value, wherein the second threshold value is greater than or equal to the first threshold value.
Specifically, if the first transaction reconciliation agent node detects that the transaction quantity in the transaction record time period is greater than or equal to a first threshold value, it indicates that the transaction quantity currently recorded by the first transaction reconciliation agent node is at a relatively high level in all transaction reconciliation agent nodes, and in order to further judge that the transaction quantity currently recorded by the first transaction reconciliation agent node is at an absolutely high level in all transaction reconciliation agent nodes, it is judged whether the transaction quantity is greater than a preset second threshold value, wherein the second threshold value is calibrated according to a large amount of experimental data and is greater than or equal to the first threshold value.
Step 503, if the first transaction reconciliation proxy node detects that the transaction number is greater than or equal to the second threshold, broadcasting a block information synchronization request to other transaction reconciliation proxy nodes in the blockchain network, where the block information synchronization request includes: the first transaction amount in the latest transaction record time period and the hash value of the first transaction record.
Specifically, if the first transaction reconciliation proxy node detects that the transaction amount is greater than or equal to the second threshold, the transaction amount indicating that the first transaction reconciliation proxy node currently records is at an absolutely greater level in all transaction reconciliation proxy nodes, so that in order to maximize the profit of the first transaction reconciliation proxy node, a block information synchronization request is actively broadcasted to other transaction reconciliation proxy nodes in the blockchain network, wherein the block information synchronization request comprises: the first transaction amount in the latest transaction record time period and the hash value of the first transaction record.
Step 504, if the first transaction reconciliation proxy node detects that the transaction number is smaller than the second threshold, then directionally sending a block information synchronization request to a target transaction reconciliation proxy node in the blockchain network, wherein the block information synchronization request includes: the first transaction amount in the target transaction record time period and the hash value of the first transaction record.
Specifically, if the first transaction reconciliation proxy node detects that the transaction number is smaller than the second threshold, it indicates that the transaction number currently recorded by the first transaction reconciliation proxy node is at a relatively large level but not absolutely large in all transaction reconciliation proxy nodes, and therefore, a block information synchronization request is directionally sent to a target transaction reconciliation proxy node in a block chain network, where the block information synchronization request includes: the method comprises the steps that a first transaction quantity and a hash value of a first transaction record in a target transaction record time period are obtained, wherein the target transaction reconciliation agent node is preferably a reconciliation agent node which reports a network fault or is newly registered in the transaction record time period, the transaction quantity recorded by the reconciliation agent nodes is less, and therefore the probability of receiving an information synchronization request of the first transaction reconciliation agent node is higher, and the benefit of information synchronization of the first transaction reconciliation agent node is maximized.
In summary, the information synchronization method for the blockchain transaction reconciliation agent node according to the embodiment of the invention ensures the information synchronization of the transaction reconciliation agent node when the blockchain transaction reconciliation agent node is introduced to satisfy daily transactions, compensates for the contribution agent node of the information synchronization, maintains the operation fairness of the reconciliation agent node in the blockchain network, and improves the operation enthusiasm of the transaction reconciliation agent node.
In order to implement the foregoing embodiment, the present invention further provides a terminal device where the transaction reconciliation proxy node is located, fig. 8 is a schematic structural diagram of the terminal device where the transaction reconciliation proxy node is located according to an embodiment of the present invention, and as shown in fig. 8, the terminal device where the transaction reconciliation proxy node is located includes: the system comprises a receiving module 10, a comparing module 20, a sending module 30, a determining module 40 and a payment module 50. The receiving module 10 is configured to receive a block information synchronization request sent by a second transaction reconciliation proxy node, where the block information synchronization request includes: and the second transaction quantity in the transaction recording time period and the hash value of the second transaction record, wherein the transaction recording time period is from the last (N-1) th block generation time to the current latest Nth block generation time.
The comparison module 20 is configured to query locally stored transaction information, obtain a first transaction amount corresponding to the transaction time period and a hash value of the first transaction record, and compare the first transaction amount with the second transaction amount.
The sending module 30 is configured to send a paid exchange request to the second transaction reconciliation proxy node if it is known that the first transaction amount is smaller than the second transaction amount, obtain a second transaction detail, which is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and send a first transaction detail, which corresponds to the hash value of the first transaction record, to the second transaction reconciliation proxy node.
In one embodiment of the present invention, the comparison module 20 is further configured to: and if the first transaction quantity is the same as the second transaction quantity, comparing whether the hash value of the first transaction record is the same as the hash value of the second transaction record.
The sending module 30 is further configured to send a gratuitous exchange request to the second transaction reconciliation proxy node if the hash values are different, obtain a second transaction detail sent by the second transaction reconciliation proxy node and corresponding to the hash value of the second transaction record, and send a first transaction detail corresponding to the hash value of the first transaction record to the second transaction reconciliation proxy node.
The determining module 40 is configured to determine, according to different values of the hash value of the first transaction record and the hash value of the second transaction record, a first amount of synchronization information provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node, and a second amount of synchronization information provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node.
And the payment module 50 is configured to calculate a difference between the second synchronization information amount and the first synchronization information amount, and pay the synchronization service fee to the second transaction reconciliation agent node according to the difference and a pre-negotiated paid synchronization condition.
In an embodiment of the present invention, as shown in fig. 9, on the basis of fig. 8, the sending module 30 includes: a first transmitting unit 31 and a first receiving unit 32.
Wherein, the first sending unit 31 is configured to send a private key-signed paid exchange request to the second transaction reconciliation proxy node, where the paid exchange request includes: a first transaction detail and a paid synchronization condition corresponding to the hash value of the first transaction record.
A first receiving unit 32, configured to receive a second transaction detail, which is sent by the second transaction reconciliation proxy node after determining the paid synchronization condition and corresponds to the hash value of the second transaction record.
In an embodiment of the present invention, as shown in fig. 10, on the basis of fig. 8, the sending module 30 includes: a second transmitting unit 33, a second receiving unit 34 and a determining unit 35.
Wherein, the second sending unit 33 is configured to send a paid exchange request signed by a private key to the second transaction reconciliation proxy node, where the paid exchange request includes: the first transaction amount and a hash value of the first transaction record.
A second receiving unit 34, configured to receive a paid exchange response sent by the second transaction reconciliation proxy node and signed by the private key, where the paid exchange response includes: a second transaction detail and a paid synchronization condition corresponding to the hash value of the second transaction record.
The determining unit 35 is configured to send the first transaction details corresponding to the hash value of the first transaction record to the second transaction reconciliation proxy node after determining the paid synchronization condition.
In an embodiment of the present invention, as shown in fig. 11, on the basis of fig. 8, the terminal device where the transaction reconciliation proxy node is located further includes a detecting module 60, a determining module 70 and a broadcasting module 80.
The detecting module 60 is configured to detect whether a transaction amount of the local node in a latest transaction recording time period is greater than or equal to a preset first threshold after the current nth block is confirmed by the blockchain network, where the latest transaction recording time period is between the nth block generation time and the current latest (N +1) th block generation time.
The determining module 70 is configured to determine whether the transaction amount is greater than a preset second threshold when it is detected that the transaction amount in the transaction recording time period is greater than or equal to the first threshold, where the second threshold is greater than or equal to the first threshold.
A broadcasting module 80, configured to broadcast a blocking information synchronization request to other transaction reconciliation proxy nodes in a blockchain network when it is detected that the transaction number is greater than or equal to the second threshold, where the blocking information synchronization request includes: a first transaction amount in the latest transaction record time period and a hash value of the first transaction record.
In this embodiment, the sending module 30 is further configured to directionally send a blocking information synchronization request to a target transaction reconciliation proxy node in a blockchain network when it is detected that the transaction number is smaller than the second threshold, where the blocking information synchronization request includes: a first transaction amount in the target transaction record time period and a hash value of the first transaction record.
It should be noted that the explanation of the information synchronization method for the blockchain transaction reconciliation proxy node is also applicable to the transaction reconciliation proxy node in the embodiment of the present invention, and the implementation principle is similar, and is not described herein again.
In summary, in the terminal device where the blockchain transaction reconciliation agent node is located according to the embodiment of the present invention, when the blockchain transaction reconciliation agent node is introduced to satisfy daily transactions, information synchronization of the transaction reconciliation agent node is ensured, and compensation is performed for the contributing agent node of the information synchronization, so that operation fairness of the reconciliation agent node in the blockchain network is maintained, and operation enthusiasm of the transaction reconciliation agent node is improved.
In order to implement the foregoing embodiments, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the information synchronization method of the blockchain transaction reconciliation proxy node described in the foregoing embodiments is implemented.
In order to implement the foregoing embodiments, the present invention also proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor is capable of implementing the information synchronization method of the blockchain transaction reconciliation proxy node according to the foregoing embodiments.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (12)

1. An information synchronization method for a blockchain transaction reconciliation proxy node, comprising the following steps:
the method comprises the following steps that a first transaction reconciliation proxy node receives a block information synchronization request sent by a second transaction reconciliation proxy node, wherein the block information synchronization request comprises: a second transaction amount in a transaction recording time period and a hash value of a second transaction record, wherein the transaction recording time period is from last (N-1) th block generation time to current latest Nth block generation time;
the first transaction reconciliation proxy node inquires locally stored transaction information, acquires a first transaction quantity corresponding to the transaction time period and a hash value of a first transaction record, and compares the first transaction quantity with the second transaction quantity;
if the first transaction reconciliation proxy node learns that the first transaction quantity is smaller than the second transaction quantity, sending a paid exchange request to the second transaction reconciliation proxy node, acquiring a second transaction detail which is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and sending a first transaction detail which corresponds to the hash value of the first transaction record to the second transaction reconciliation proxy node;
the first transaction reconciliation proxy node determines a first synchronous information quantity provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node and a second synchronous information quantity provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node according to different values of the hash value of the first transaction record and the hash value of the second transaction record;
and the first transaction reconciliation agent node calculates the difference value between the second synchronous information quantity and the first synchronous information quantity, and pays the synchronous service cost to the second transaction reconciliation agent node according to the difference value and the pre-negotiated paid synchronous condition.
2. The method of claim 1, wherein sending a gratuitous exchange request to the second transaction reconciliation agent node, obtaining a second transaction detail sent by the second transaction reconciliation agent node corresponding to the hash value of the second transaction record, and sending a first transaction detail to the second transaction reconciliation agent node corresponding to the hash value of the first transaction record, comprises:
the first transaction reconciliation proxy node sends a private key signed paid exchange request to the second transaction reconciliation proxy node, wherein the paid exchange request comprises: a first transaction detail and paid synchronization condition corresponding to the hash value of the first transaction record;
and the first transaction reconciliation proxy node receives a second transaction detail which is sent by the second transaction reconciliation proxy node after the second transaction reconciliation proxy node determines the paid synchronization condition and corresponds to the hash value of the second transaction record.
3. The method of claim 1, wherein sending a gratuitous exchange request to the second transaction reconciliation agent node, obtaining a second transaction detail sent by the second transaction reconciliation agent node corresponding to the hash value of the second transaction record, and sending a first transaction detail to the second transaction reconciliation agent node corresponding to the hash value of the first transaction record, comprises:
the first transaction reconciliation proxy node sends a private key signed paid exchange request to the second transaction reconciliation proxy node, wherein the paid exchange request comprises: the first transaction amount and a hash value of a first transaction record;
the first transaction reconciliation proxy node receives a private key signed paid-exchange response sent by the second transaction reconciliation proxy node, wherein the paid-exchange response comprises: a second transaction detail and paid synchronization condition corresponding to the hash value of the second transaction record;
and the first transaction reconciliation agent node sends a first transaction detail corresponding to the hash value of the first transaction record to the second transaction reconciliation agent node after determining the paid synchronization condition.
4. The method of claim 1, wherein after said comparing said first transaction amount and said second transaction amount, further comprising:
if the first transaction reconciliation proxy node knows that the first transaction quantity is the same as the second transaction quantity, comparing whether the hash value of the first transaction record is the same as the hash value of the second transaction record;
and if the obtained hash values are different, the first transaction reconciliation agent node sends a gratuitous exchange request to the second transaction reconciliation agent node, obtains a second transaction detail which is sent by the second transaction reconciliation agent node and corresponds to the hash value of the second transaction record, and sends a first transaction detail which corresponds to the hash value of the first transaction record to the second transaction reconciliation agent node.
5. The method of claim 1, further comprising:
after the first transaction reconciliation proxy node knows that the current latest nth block is confirmed by the block chain network, detecting whether the transaction quantity of a local node in a latest transaction recording time period is greater than or equal to a preset first threshold value, wherein the latest transaction recording time period is between the nth block generation time and the current latest (N +1) th block generation time;
if the first transaction reconciliation agent node detects that the transaction quantity in the transaction record time period is greater than or equal to the first threshold value, judging whether the transaction quantity is greater than a preset second threshold value, wherein the second threshold value is greater than or equal to the first threshold value;
if the first transaction reconciliation proxy node detects that the transaction quantity is greater than or equal to the second threshold value, broadcasting a block information synchronization request to other transaction reconciliation proxy nodes in a block chain network, wherein the block information synchronization request comprises: a first transaction amount and a hash value of a first transaction record in the latest transaction record time period;
if the first transaction reconciliation proxy node detects that the transaction quantity is smaller than the second threshold value, directionally sending a block information synchronization request to a target transaction reconciliation proxy node in a blockchain network, wherein the block information synchronization request comprises: the first transaction amount in the target transaction record time period and the hash value of the first transaction record.
6. A terminal device where a transaction reconciliation proxy node is located, comprising:
a receiving module, configured to receive a block information synchronization request sent by a second transaction reconciliation proxy node, where the block information synchronization request includes: a second transaction amount in a transaction recording time period and a hash value of a second transaction record, wherein the transaction recording time period is from last (N-1) th block generation time to current latest Nth block generation time;
the comparison module is used for inquiring transaction information stored locally, acquiring a first transaction quantity corresponding to the transaction time period and a hash value of a first transaction record, and comparing the first transaction quantity with the second transaction quantity;
a sending module, configured to send a gratuitous exchange request to the second transaction reconciliation proxy node if it is known that the first transaction amount is smaller than the second transaction amount, obtain a second transaction detail, which is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and send a first transaction detail, which corresponds to the hash value of the first transaction record, to the second transaction reconciliation proxy node;
a determining module, configured to determine, according to different values of the hash value of the first transaction record and the hash value of the second transaction record, a first amount of synchronization information provided by the first transaction reconciliation proxy node for the second transaction reconciliation proxy node, and a second amount of synchronization information provided by the second transaction reconciliation proxy node for the first transaction reconciliation proxy node;
and the payment module is used for calculating the difference value between the second synchronous information quantity and the first synchronous information quantity and paying the synchronous service fee to the second transaction reconciliation agent node according to the difference value and the pre-negotiated paid synchronous condition.
7. The terminal device of claim 6, wherein the sending module comprises:
a first sending unit, configured to send a private key-signed paid exchange request to the second transaction reconciliation proxy node, where the paid exchange request includes: a first transaction detail and paid synchronization condition corresponding to the hash value of the first transaction record;
and the first receiving unit is used for receiving a second transaction detail which is sent by the second transaction reconciliation proxy node after the paid synchronization condition is determined and corresponds to the hash value of the second transaction record.
8. The terminal device of claim 6, wherein the sending module comprises:
a second sending unit, configured to send a private key-signed paid exchange request to the second transaction reconciliation proxy node, where the paid exchange request includes: the first transaction amount and a hash value of a first transaction record;
a second receiving unit, configured to receive a paid exchange response sent by the second transaction reconciliation proxy node and signed by a private key, where the paid exchange response includes: a second transaction detail and paid synchronization condition corresponding to the hash value of the second transaction record;
and the determining unit is used for sending a first transaction detail corresponding to the hash value of the first transaction record to the second transaction reconciliation proxy node after determining the paid synchronization condition.
9. The terminal device of claim 6, wherein the comparing module is further configured to:
if the first transaction quantity is the same as the second transaction quantity, comparing whether the hash value of the first transaction record is the same as the hash value of the second transaction record;
the sending module is further configured to:
and if the hash values are different, sending a gratuitous exchange request to the second transaction reconciliation proxy node, acquiring a second transaction detail which is sent by the second transaction reconciliation proxy node and corresponds to the hash value of the second transaction record, and sending a first transaction detail which corresponds to the hash value of the first transaction record to the second transaction reconciliation proxy node.
10. The terminal device of claim 6, further comprising:
the detection module is used for detecting whether the transaction quantity of the local node in a latest transaction recording time period is greater than or equal to a preset first threshold value after the current latest nth block is confirmed by the block chain network, wherein the latest transaction recording time period is from the nth block generation time to the current latest (N +1) th block generation time;
the judging module is used for judging whether the transaction quantity is greater than a preset second threshold value when detecting that the transaction quantity in the transaction recording time period is greater than or equal to the first threshold value, wherein the second threshold value is greater than or equal to the first threshold value;
a broadcasting module, configured to broadcast a blocking information synchronization request to other transaction reconciliation proxy nodes in a blockchain network when it is detected that the transaction number is greater than or equal to the second threshold, where the blocking information synchronization request includes: a first transaction amount and a hash value of a first transaction record in the latest transaction record time period;
the sending module is further configured to directionally send a block information synchronization request to a target transaction reconciliation proxy node in a blockchain network when it is detected that the transaction number is smaller than the second threshold, where the block information synchronization request includes: the first transaction amount in the target transaction record time period and the hash value of the first transaction record.
11. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method of information synchronization of a blockchain transaction reconciliation proxy node according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the information synchronization method of a blockchain transaction reconciliation proxy node according to any one of claims 1 to 5.
CN201810511351.7A 2018-05-25 2018-05-25 Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof Expired - Fee Related CN108876331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810511351.7A CN108876331B (en) 2018-05-25 2018-05-25 Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810511351.7A CN108876331B (en) 2018-05-25 2018-05-25 Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof

Publications (2)

Publication Number Publication Date
CN108876331A CN108876331A (en) 2018-11-23
CN108876331B true CN108876331B (en) 2020-12-22

Family

ID=64333662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810511351.7A Expired - Fee Related CN108876331B (en) 2018-05-25 2018-05-25 Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof

Country Status (1)

Country Link
CN (1) CN108876331B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816422B (en) * 2018-12-13 2022-11-18 深圳市先河***技术有限公司 Compensation method of block chain node equipment, node equipment and device
CN109636622B (en) * 2019-01-03 2024-03-29 平安科技(深圳)有限公司 Block chain-based fund data sharing method and system and electronic equipment
CN111327624B (en) * 2020-02-29 2022-05-06 国网上海市电力公司 On-chain detection method and system for key information system
CN112613880A (en) * 2020-12-28 2021-04-06 青岛海链数字科技有限公司 Block chain-based consumption processing system, method, apparatus, device, and medium
CN112988893B (en) * 2021-03-15 2023-05-12 中国联合网络通信集团有限公司 Information management method, system, block chain node and medium based on block chain
CN113342857B (en) * 2021-06-28 2022-09-16 北京三快在线科技有限公司 Transaction record checking method and device, electronic equipment and storage medium
CN113761064B (en) * 2021-08-27 2023-06-30 成都质数斯达克科技有限公司 Block chain-based day cut account checking method, device and equipment and readable storage medium
CN113973064B (en) * 2021-12-24 2022-02-25 南京金宁汇科技有限公司 Stability testing method and system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
WO2016177026A1 (en) * 2015-05-07 2016-11-10 中兴通讯股份有限公司 Data processing method and apparatus of decentralized autonomous organization
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107332826A (en) * 2017-06-09 2017-11-07 中国联合网络通信集团有限公司 The communication means and device of block chain agent node
CN107423973A (en) * 2017-08-04 2017-12-01 现在(北京)支付股份有限公司 The method of payment of passive barcode scanning on customer mobile terminal based on block chain technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016177026A1 (en) * 2015-05-07 2016-11-10 中兴通讯股份有限公司 Data processing method and apparatus of decentralized autonomous organization
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107332826A (en) * 2017-06-09 2017-11-07 中国联合网络通信集团有限公司 The communication means and device of block chain agent node
CN107423973A (en) * 2017-08-04 2017-12-01 现在(北京)支付股份有限公司 The method of payment of passive barcode scanning on customer mobile terminal based on block chain technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Blockchain application and outlook in the banking industry;Ye Guo,etc;《Financial Innovation》;20161209;第1-12页 *
区块链技术在保险行业的应用研究;张新宇;《中国金融电脑》;20170131;第48-50页 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108876331B (en) Terminal equipment where block chain transaction reconciliation proxy node is located and information synchronization method thereof
CN108764868B (en) Block chain node proxy reconciliation method and block reconciliation proxy node
CN108681965B (en) Block chain network transaction processing method and device for offline node
US11347726B2 (en) Cross-chain transaction method and apparatus
WO2020258846A1 (en) Method and apparatus for sending certifiable messages across chains
KR101354898B1 (en) Electronic commerce transactions over a peer-to-peer communications channel
US12015595B2 (en) Mobile device identification using second entity matching
CA2771816C (en) Trusted message storage and transfer protocol and system
CN109146483B (en) Credit recording method and system based on block chain network
EP2248058B1 (en) Peer to peer software license management system for temporarily relocating available software licenses
WO2004092915A2 (en) Payment processing method and system using a peer-to-peer network
CN112948809B (en) Application authorization method and device
CN108933789B (en) Method for preventing personal information leakage and third-party application server
CN110324416A (en) Download path tracking, device, server, terminal and medium
CN113810453B (en) Timestamp marking method and device based on consensus blockchain
KR20220012315A (en) Edge Computing Implementation Methods, Devices and Systems
CN112272114A (en) Method, device, equipment and storage medium for sending information across block chain network
WO2017107933A1 (en) Vehicle registration method, vehicle charging method, device, and system, and storage medium
US9723436B2 (en) Mobile device location
CN115277001B (en) Certificate distribution method, device, system and medium for co-building shared network
CN111092958A (en) Node access method, device, system and storage medium
CN112258184B (en) Method, apparatus, electronic device and readable storage medium for freezing blockchain network
CN117061538A (en) Consensus processing method and related device based on block chain network
CN114238520A (en) Data sharing method and device
CN114302349B (en) Method and system for extracting number by client

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100191 1107c, 11 / F, Xueyuan international building, 1 Zhichun Road, Haidian District, Beijing

Applicant after: IALLCHAIN Co.,Ltd.

Address before: 100043 5158, 5 floor, 11 Shixing street, Shijingshan District, Beijing.

Applicant before: IALLCHAIN Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201222

Termination date: 20210525