CN109087096B - Block chain account checking method, device, equipment and storage medium - Google Patents

Block chain account checking method, device, equipment and storage medium Download PDF

Info

Publication number
CN109087096B
CN109087096B CN201810799474.5A CN201810799474A CN109087096B CN 109087096 B CN109087096 B CN 109087096B CN 201810799474 A CN201810799474 A CN 201810799474A CN 109087096 B CN109087096 B CN 109087096B
Authority
CN
China
Prior art keywords
transaction
transaction record
block
block chain
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810799474.5A
Other languages
Chinese (zh)
Other versions
CN109087096A (en
Inventor
田新雪
马书惠
肖征荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810799474.5A priority Critical patent/CN109087096B/en
Publication of CN109087096A publication Critical patent/CN109087096A/en
Application granted granted Critical
Publication of CN109087096B publication Critical patent/CN109087096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The embodiment of the invention provides a block chain account checking method, a block chain account checking device, block chain account checking equipment and a storage medium. The method comprises the following steps: the transaction receiving node receives a current transaction record sent by the transaction initiating node; the transaction receiving node determines the generation time of the last block in the blockchain network according to a locally stored blockchain account book; the transaction receiving node sends request information to a transaction initiating node, wherein the request information is used for requesting to acquire a first transaction record recorded by the transaction initiating node from the current moment to the last block generation moment in the block chain network; and the transaction receiving node performs reconciliation according to the first transaction record and a second transaction record which is locally stored and is not written into the block from the current moment to the last block generation moment in the block chain network. The embodiment of the invention ensures that the transaction initiating node can also carry out normal transaction with the transaction receiving node under the condition of not accessing the block chain network.

Description

Block chain account checking method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a block chain account checking method, a device, equipment and a storage medium.
Background
In the blockchain network, nodes of both transaction parties need to be kept online at the same time and receive transaction information broadcasted in the blockchain network in real time. And generating a transaction record by a transaction initiator, signing the transaction record and broadcasting the signed transaction record to the blockchain network. The accounting node in the blockchain network writes the transaction record into a block so as to confirm the transaction.
The receiving party of the two parties of the transaction is usually a shop owner and can keep accessing the blockchain network in real time, but the initiating party of the two parties of the transaction is usually a user terminal, and due to the limitation of the electric quantity and the network flow of the user terminal, the initiating party cannot keep accessing the blockchain network in real time, so that the transaction between the two parties of the transaction cannot be normally carried out.
Disclosure of Invention
The embodiment of the invention provides a block chain reconciliation method, a device, equipment and a storage medium, so that a transaction initiating node can perform normal transaction with a transaction receiving node under the condition of not accessing a block chain network.
In a first aspect, an embodiment of the present invention provides a block chain reconciliation method, including:
the transaction receiving node receives a current transaction record sent by the transaction initiating node;
the transaction receiving node determines the generation time of the last block in the blockchain network according to a locally stored blockchain account book;
the transaction receiving node sends request information to a transaction initiating node, wherein the request information is used for requesting to acquire a first transaction record recorded by the transaction initiating node from the current moment to the last block generation moment in the block chain network;
and the transaction receiving node performs reconciliation according to the first transaction record and a second transaction record which is locally stored and is not written into the block from the current moment to the last block generation moment in the block chain network.
In a second aspect, an embodiment of the present invention provides a block chain reconciliation apparatus, including:
the receiving module is used for receiving the current transaction record sent by the transaction initiating node;
the determining module is used for determining the generation time of the last block in the block chain network according to the locally stored block chain account book;
a sending module, configured to send request information to a transaction initiating node, where the request information is used to request to obtain a first transaction record recorded by the transaction initiating node from a current time to a last block generation time in the block chain network;
and the reconciliation module is used for reconciling according to the first transaction record and a second transaction record which is locally stored and is not written into the block from the current moment to the last block generation moment in the block chain network.
In a third aspect, an embodiment of the present invention provides a block link point, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
According to the block chain reconciliation method, the block chain reconciliation device, the block chain reconciliation equipment and the storage medium, the generation time of the last block in the block chain network is determined by the transaction receiving node according to the locally stored block chain account book, the transaction initiating node is requested to acquire the first transaction record recorded by the transaction initiating node from the current time to the generation time of the last block in the block chain network, and the reconciliation is carried out according to the first transaction record and the transaction record which is locally stored by the transaction receiving node and is not written with the block from the generation time of the last block in the block chain network to the current time in the block chain network, so that the transaction initiating node can carry out normal transaction with the transaction receiving node under the condition that the transaction initiating node is not accessed into the block chain network.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
fig. 2 is a flowchart of a block chain reconciliation method according to an embodiment of the present invention;
fig. 3 is a flowchart of a block chain reconciliation method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a blockchain reconciliation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The block chain reconciliation method provided by the invention can be applied to the communication system shown in figure 1. As shown in fig. 1, the communication system includes: access network device 11, terminal device 12, and server 13. It should be noted that the communication System shown in fig. 1 may be applicable to different network formats, for example, may be applicable to Global System for Mobile communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (Long Term Evolution, LTE), and future 5G network formats. Optionally, the communication system may be a system in a scenario of high-reliability and Low-Latency Communications (URLLC) transmission in a 5G communication system.
Therefore, optionally, the access Network device 11 may be a Base Station (BTS) and/or a Base Station Controller in GSM or CDMA, a Base Station (NodeB, NB) and/or a Radio Network Controller (RNC) in WCDMA, an evolved Node B (eNB or eNodeB) in LTE, or a relay Station or an access point, or a Base Station (gbb) in a future 5G Network, and the present invention is not limited thereto.
The terminal device 12 may be a wireless terminal or a wired terminal. A wireless terminal may refer to a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal, which may be a mobile terminal such as a mobile telephone (or "cellular" telephone) and a computer having a mobile terminal, for example, a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device, may communicate with one or more core Network devices via a Radio Access Network (RAN), and may exchange language and/or data with the RAN. For another example, the Wireless terminal may also be a Personal Communication Service (PCS) phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), and other devices. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and a User Device or User Equipment (User Equipment), which are not limited herein. Optionally, the terminal device 12 may also be a smart watch, a tablet computer, or the like. Alternatively, the terminal device 12 and the server 13 may be nodes in a blockchain network. In addition, the blockchain network may further include other nodes, such as node 15 and node 14, and the terminal device 12, the server 13, the node 15, and the node 14 may specifically form a peer-to-peer network.
The invention provides a block chain reconciliation method, which aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a block chain reconciliation method according to an embodiment of the present invention. The embodiment of the invention provides a block chain account checking method aiming at the technical problems in the prior art, and the method comprises the following specific steps:
step 201, the transaction receiving node receives the current transaction record sent by the transaction initiating node.
In this embodiment, the transaction receiving node may specifically be the server 13 shown in fig. 1, and the transaction initiating node may specifically be the terminal device 12 shown in fig. 1, and it can be understood that the server 13 may be a cloud server of a store, a server local to the store, or a remote server providing an accounting service for the store. The terminal device 12 may specifically be a user terminal held by a consumer, such as a mobile phone. In this embodiment, the terminal device 12 and the server 13 may be nodes in a blockchain network, but due to the limitations of the power and the network traffic of the terminal device 12, the terminal device 12 cannot maintain real-time access to the blockchain network. In addition, the server 13 may maintain a real-time access blockchain network. The terminal device 12 and the server 13 may be connected by a plurality of network connection methods, for example, the network connection methods include: infrared, bluetooth, NFC, wifi, internet connection, scanning two-dimensional code or modes such as third party transfer.
The terminal device 12 obtains address information of the server 13, such as an IP address, through a network connection with the server 13, and further the terminal device 12 generates a current transaction record according to a transaction amount of a current transaction with the server 13, signs the current transaction record, and sends the signed current transaction record to the server 13.
Step 202, the transaction receiving node determines the generation time of the last block in the blockchain network according to the locally stored blockchain account book.
After receiving the current transaction record sent by the terminal device 12, the server 13 queries a locally stored blockchain ledger, and determines the generation time of the last block in the blockchain network according to the blockchain ledger.
Step 203, the transaction receiving node sends request information to a transaction initiating node, where the request information is used to request to obtain a first transaction record recorded by the transaction initiating node from the current time to the last block generation time in the block chain network.
After determining the generation time of the last block in the blockchain network from the locally stored blockchain book, the server 13 sends request information to the terminal device 12, where the request information may specifically include the generation time of the last block in the blockchain network, and is used to request the terminal device 12 to obtain a first transaction record recorded by the terminal device 12 from the current time to the generation time of the last block in the blockchain network, where the first transaction record includes a transaction record of the terminal device 12 when offline and/or a transaction record when online, where offline refers to: terminal device 12 does not access the state of the blockchain network.
And step 204, the transaction receiving node checks accounts according to the first transaction record and a second transaction record which is locally stored and is not written with a block from the current time to the last block generation time in the block chain network.
In this embodiment, the server 13 may also locally store a transaction pool, where the transaction pool may be a list, and a transaction record of an unwritten block in the blockchain network from a last block generation time to a current time in the blockchain network is recorded in the list. The transaction records in the list may change over time, for example, if a new tile is created in the blockchain network at some time after the current time, some transaction records not written to the tile are written to the new tile, and the transaction records written to the new tile are deleted from the list. In addition, if a new transaction record is broadcast in the blockchain network and the new transaction record is not yet written into the block, the server 13 may also write the new transaction record broadcast in the blockchain network into the list.
After the server 13 receives the first transaction record recorded by the terminal device 12 from the current time to the last block generation time in the block chain network, which is sent by the terminal device 12, the server 13 obtains all transaction records related to the terminal device 12 from the transaction pool, and sorts the transaction records according to the time sequence. Here, all transaction records related to the terminal device 12 obtained from the above-mentioned transaction pool are regarded as the second transaction record.
Further, the server 13 performs reconciliation according to the first transaction record and all transaction records related to the terminal device 12 acquired from the transaction pool.
Optionally, the transaction receiving node performs reconciliation according to the first transaction record and a second transaction record which is locally stored and is not written into the block from the current time to the last block generation time in the blockchain network, where the reconciliation includes the following possible ways:
one possible way is: and if the transaction receiving node determines that the first transaction record is consistent with a second transaction record which is stored locally and is not written with a block between the current time and the last block generation time in the block chain network, determining to perform transaction with the transaction initiating node.
For example, if the server 13 determines that the first transaction record sent by the terminal device 12 is consistent with all transaction records related to the terminal device 12 and obtained by the server 13 from the transaction pool, and the terminal device 12 has the capability of paying the corresponding transaction amount, the server 13 determines to perform a transaction with the terminal device 12.
Another possible way is: and if the transaction receiving node determines that the first transaction record is less than a second transaction record which is stored locally and is not written with blocks from the current moment to the last block generation moment in the block chain network, the second transaction record is sent to the transaction initiating node.
For example, if the server 13 determines that the first transaction record sent by the terminal device 12 is less than all transaction records related to the terminal device 12 and acquired from the transaction pool by the server 13, the server 13 sends all transaction records related to the terminal device 12 and acquired from the transaction pool to the terminal device 12, and sends feedback information to the terminal device 12, which indicates that the local payment fails.
Yet another possible way is: and if the transaction receiving node determines that the first transaction record is more than a second transaction record which is locally stored and has no block written in between the current moment and the last block generation moment in the block chain network, performing reconciled according to the first transaction record.
For example, if the server 13 determines that the first transaction record sent by the terminal device 12 is more than all transaction records related to the terminal device 12 and acquired by the server 13 from the transaction pool, the server 13 performs reconciled according to the first transaction record provided by the terminal device 12.
The generation time of the last block in the blockchain network is determined by the transaction receiving node according to the locally stored blockchain account book, the first transaction record recorded by the transaction initiating node between the current time and the generation time of the last block in the blockchain network is requested to be acquired from the transaction initiating node, and account checking is carried out according to the first transaction record and the transaction record which is locally stored by the transaction receiving node and is not written with the block from the generation time of the last block in the blockchain network to the current time, so that the transaction initiating node can carry out normal transaction with the transaction receiving node under the condition that the transaction initiating node is not accessed into the blockchain network.
Fig. 3 is a flowchart of a block chain reconciliation method according to another embodiment of the present invention. On the basis of the foregoing embodiment, the block chain reconciliation method provided in this embodiment specifically includes the following steps:
step 301, the transaction receiving node receives the current transaction record sent by the transaction initiating node.
The specific principle and implementation of step 301 and step 201 are the same, and are not described herein again.
Step 302, the transaction receiving node calculates the hash value of the current transaction record.
When the server 13 receives the current transaction record sent by the terminal device 12, the hash value of the current transaction record is calculated.
Step 303, the transaction receiving node sends the hash value to a timestamp server in the blockchain network.
The server 13 further sends the hash value of the current transaction record to a timestamp server in the blockchain network, the timestamp server stamps a timestamp of the current time on the hash value, and sends the hash value and the timestamp to the server 13 after being signed by a private key of the timestamp server.
And step 304, the transaction receiving node receives the timestamp corresponding to the hash value sent by the timestamp server.
The server 13 receives the hash value signed by the private key of the timestamp server and the timestamp corresponding to the hash value, which are sent by the timestamp server.
Step 305, the transaction receiving node broadcasts the hash value and the timestamp corresponding to the hash value to the blockchain network.
The server 13 broadcasts the hash value signed by the private key of the timestamp server and the timestamp corresponding to the hash value into the blockchain network.
Step 306, the transaction receiving node determines the generation time of the last block in the blockchain network according to the locally stored blockchain ledger.
The implementation manner of step 306 and step 202 is consistent with specific principles, and will not be described herein.
Step 307, the transaction receiving node sends a request message to the transaction initiating node, where the request message is used to request to obtain a first transaction record recorded by the transaction initiating node from the current time to the last block generation time in the block chain network.
The implementation manner of step 307 and step 203 is consistent with specific principles, and is not described herein again.
And step 308, the transaction receiving node checks accounts according to the first transaction record and a second transaction record which is locally stored and is not written with a block from the current time to the last block generation time in the block chain network.
The implementation manner of step 308 and step 204 is consistent with specific principles, and will not be described herein.
The generation time of the last block in the blockchain network is determined by the transaction receiving node according to the locally stored blockchain account book, the first transaction record recorded by the transaction initiating node between the current time and the generation time of the last block in the blockchain network is requested to be acquired from the transaction initiating node, and account checking is carried out according to the first transaction record and the transaction record which is locally stored by the transaction receiving node and is not written with the block from the generation time of the last block in the blockchain network to the current time, so that the transaction initiating node can carry out normal transaction with the transaction receiving node under the condition that the transaction initiating node is not accessed into the blockchain network.
Fig. 4 is a schematic structural diagram of a blockchain reconciliation apparatus according to an embodiment of the present invention. The blockchain reconciliation device may be specifically the transaction receiving node in the above embodiment. The blockchain reconciliation device provided by the embodiment of the invention can execute the processing flow provided by the blockchain reconciliation method embodiment, as shown in fig. 4, the blockchain reconciliation device 40 includes: a receiving module 41, a determining module 42, a sending module 43 and a reconciliation module 44; the receiving module 41 is configured to receive a current transaction record sent by a transaction initiating node; the determining module 42 is configured to determine a generation time of a last block in the blockchain network according to a locally stored blockchain account book; the sending module 43 is configured to send request information to a transaction initiating node, where the request information is used to request to obtain a first transaction record recorded by the transaction initiating node from a current time to a last block generation time in the block chain network; the reconciliation module 44 is configured to perform reconciliation according to the first transaction record and a second transaction record, which is locally stored and has no block written in between a current time and a last block generation time in the blockchain network.
Optionally, the reconciliation module 44 is specifically configured to: and if the first transaction record is consistent with a second transaction record which is stored locally and is not written with a block between the current moment and the last block generation moment in the block chain network, determining to perform transaction with the transaction initiating node.
Optionally, the reconciliation module 44 is specifically configured to: and if the first transaction record is less than a second transaction record which is locally stored and has no written block between the current moment and the last block generation moment in the block chain network, sending the second transaction record to the transaction initiating node through the sending module.
Optionally, the reconciliation module 44 is specifically configured to: and if the first transaction record is more than a second transaction record which is locally stored and has no written block from the current moment to the last block generation moment in the block chain network, re-checking according to the first transaction record.
Optionally, the blockchain reconciliation apparatus 40 further includes: a calculation module 45; the calculating module 45 is configured to calculate a hash value of the current transaction record after the receiving module receives the current transaction record sent by the transaction initiating node; the sending module 43 is further configured to: sending the hash value to a timestamp server in the blockchain network; the receiving module 41 is further configured to: receiving a timestamp corresponding to the hash value sent by the timestamp server; the sending module 43 is further configured to: and broadcasting the hash value and the timestamp corresponding to the hash value to the blockchain network.
The blockchain reconciliation apparatus in the embodiment shown in fig. 4 can be used for executing the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention. The block link point provided by the embodiment of the present invention may execute the processing flow provided by the block chain reconciliation method embodiment, as shown in fig. 5, the block link point 50 includes a memory 51, a processor 52, a computer program, and a communication interface 53; wherein a computer program is stored in the memory 51 and configured to execute the block chain reconciliation method described in the above embodiments by the processor 52.
The block link points of the embodiment shown in fig. 5 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
In addition, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the block chain reconciliation method described in the above embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A blockchain reconciliation method comprising:
the transaction receiving node receives a current transaction record sent by the transaction initiating node;
the transaction receiving node determines the generation time of the last block in the blockchain network according to a locally stored blockchain account book;
the transaction receiving node sends request information to a transaction initiating node, wherein the request information is used for requesting to acquire a first transaction record recorded by the transaction initiating node from the current moment to the last block generation moment in the block chain network;
the transaction receiving node performs reconciliation according to the first transaction record and a second transaction record which is locally stored and is not written into the block from the current moment to the last block generation moment in the block chain network;
the transaction receiving node performs reconciliation according to the first transaction record and a second transaction record which is locally stored and is not written with a block from the current time to the last block generation time in the block chain network, and the reconciliation method comprises the following steps:
and if the transaction receiving node determines that the first transaction record is less than a second transaction record which is stored locally and is not written with blocks from the current moment to the last block generation moment in the block chain network, the second transaction record is sent to the transaction initiating node.
2. The method of claim 1, wherein the transaction receiving node reconciling the first transaction record with a second transaction record stored locally for unwritten blocks from a current time to a last block generation time in the blockchain network comprises:
and if the transaction receiving node determines that the first transaction record is consistent with a second transaction record which is stored locally and is not written with a block between the current time and the last block generation time in the block chain network, determining to perform transaction with the transaction initiating node.
3. The method of claim 1, wherein the transaction receiving node reconciling the first transaction record with a second transaction record stored locally for unwritten blocks from a current time to a last block generation time in the blockchain network comprises:
and if the transaction receiving node determines that the first transaction record is more than a second transaction record which is locally stored and has no block written in between the current moment and the last block generation moment in the block chain network, performing reconciled according to the first transaction record.
4. The method according to any one of claims 1-3, wherein after the transaction receiving node receives the current transaction record sent by the transaction initiating node, the method further comprises:
the transaction receiving node calculates the hash value of the current transaction record;
the transaction receiving node sends the hash value to a timestamp server in the blockchain network;
the transaction receiving node receives a timestamp corresponding to the hash value sent by the timestamp server;
and the transaction receiving node broadcasts the hash value and the timestamp corresponding to the hash value to the blockchain network.
5. A blockchain reconciliation apparatus comprising:
the receiving module is used for receiving the current transaction record sent by the transaction initiating node;
the determining module is used for determining the generation time of the last block in the block chain network according to the locally stored block chain account book;
a sending module, configured to send request information to a transaction initiating node, where the request information is used to request to obtain a first transaction record recorded by the transaction initiating node from a current time to a last block generation time in the block chain network;
the reconciliation module is used for reconciling according to the first transaction record and a second transaction record which is locally stored and is not written into the block from the current moment to the last block generation moment in the block chain network;
the reconciliation module is specifically configured to:
and if the first transaction record is less than a second transaction record which is locally stored and has no written block between the current moment and the last block generation moment in the block chain network, sending the second transaction record to the transaction initiating node through the sending module.
6. The blockchain reconciliation device of claim 5, wherein the reconciliation module is specifically configured to:
and if the first transaction record is consistent with a second transaction record which is stored locally and is not written with a block between the current moment and the last block generation moment in the block chain network, determining to perform transaction with the transaction initiating node.
7. The blockchain reconciliation device of claim 5, wherein the reconciliation module is specifically configured to:
and if the first transaction record is more than a second transaction record which is locally stored and has no written block from the current moment to the last block generation moment in the block chain network, re-checking according to the first transaction record.
8. A blockchain tie-out apparatus according to any one of claims 5 to 7, further comprising:
the calculation module is used for calculating the hash value of the current transaction record after the receiving module receives the current transaction record sent by the transaction initiating node;
the sending module is further configured to: sending the hash value to a timestamp server in the blockchain network;
the receiving module is further configured to: receiving a timestamp corresponding to the hash value sent by the timestamp server;
the sending module is further configured to: and broadcasting the hash value and the timestamp corresponding to the hash value to the blockchain network.
9. A block link point, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-4.
10. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-4.
CN201810799474.5A 2018-07-19 2018-07-19 Block chain account checking method, device, equipment and storage medium Active CN109087096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810799474.5A CN109087096B (en) 2018-07-19 2018-07-19 Block chain account checking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810799474.5A CN109087096B (en) 2018-07-19 2018-07-19 Block chain account checking method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109087096A CN109087096A (en) 2018-12-25
CN109087096B true CN109087096B (en) 2020-12-15

Family

ID=64838210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810799474.5A Active CN109087096B (en) 2018-07-19 2018-07-19 Block chain account checking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109087096B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599170B (en) * 2019-09-16 2021-06-25 腾讯科技(深圳)有限公司 Transaction information processing method and system based on block chain and storage medium
CN113595724B (en) * 2021-07-29 2023-10-20 成都质数斯达克科技有限公司 Block chain-based accounting method, device, equipment and readable 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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767127A (en) * 2017-10-23 2018-03-06 中国联合网络通信集团有限公司 Exchange information processing method and device in block chain

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101939945B (en) * 2007-08-08 2012-07-04 黄金富 A payment method and system for certification by a smart card with a display and a keyboard using one time dynamic cipher code
US9177313B1 (en) * 2007-10-18 2015-11-03 Jpmorgan Chase Bank, N.A. System and method for issuing, circulating and trading financial instruments with smart features
WO2012090074A2 (en) * 2010-12-30 2012-07-05 Kanngard Lars Olof Terminal authenticity verification
EP2936420A4 (en) * 2013-06-24 2016-08-03 Aequitas Innovations Inc System and method for automated trading of financial interests
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN108288157A (en) * 2018-01-25 2018-07-17 青岛闪收付信息技术有限公司 A kind of supply chain management method based on financial block chain technology
CN108681965B (en) * 2018-04-24 2021-01-29 全链通有限公司 Block chain network transaction processing method and device for offline node

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767127A (en) * 2017-10-23 2018-03-06 中国联合网络通信集团有限公司 Exchange information processing method and device in block chain

Also Published As

Publication number Publication date
CN109087096A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109118360B (en) Block chain account checking method, device, equipment and storage medium
CN109451451B (en) Terminal roaming method, device and storage medium
CN108712506B (en) Block chain node communication method and device and block chain node
CN109451446B (en) Number portability method, device and equipment
CN108810119A (en) block chain processing method, device and block chain node
CN109087096B (en) Block chain account checking method, device, equipment and storage medium
CN108769142B (en) Transaction information processing method and block generation node
CN109067724A (en) Block chain data trade method, apparatus, equipment and storage medium
CN108200568B (en) Mobile communication electronic SIM card data processing method and device
RU2008137607A (en) AUTOMATED TRANSFORMATION OF ACCOUNTS IN THE SETTLEMENT SYSTEM WITH WIRELESS COMMUNICATION SUBSCRIBERS
CN108683727B (en) Block processing method and main node
CN101754189A (en) Method for realizing multiple-card-one-number service, device and system thereof
CN108810120B (en) Block chain node communication method and device and block chain node
CN108596636B (en) Anti-counterfeiting method and device and terminal equipment
CN105530630B (en) A kind of OTA upgrade method and equipment
CN108876611B (en) Transaction information processing method and device and block link points
CN109673010A (en) The number of taking based on block chain turns network method and device, storage medium
CN108243631B (en) Network access method and equipment
CN108777710B (en) Inter-node communication method and device of block chain and block chain node
CN109639715B (en) Method, device and equipment for avoiding double-flower attack and computer readable storage medium
US9179004B2 (en) Method and apparatus for charging
CN103916444A (en) Method for displaying number information through cloud model
CN103841080A (en) Called number completion method, device and system
CN108898419B (en) Reward information processing method and device and block link points
CN108985765A (en) Enterprise user information processing method, equipment and storage medium

Legal Events

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