CN109087096A - Block chain account checking method, device, equipment and storage medium - Google Patents
Block chain account checking method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109087096A CN109087096A CN201810799474.5A CN201810799474A CN109087096A CN 109087096 A CN109087096 A CN 109087096A CN 201810799474 A CN201810799474 A CN 201810799474A CN 109087096 A CN109087096 A CN 109087096A
- Authority
- CN
- China
- Prior art keywords
- transaction
- block
- block chain
- node
- transaction record
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The embodiment of the present invention provides a kind of block chain account checking method, device, equipment and storage medium.This method comprises: transaction acceptance node, which receives transaction, initiates the current transaction record that node is sent;The transaction acceptance node determines the generation moment of the last one block in block chain network according to the block chain account book being locally stored;The transaction acceptance node initiates node to transaction and sends solicited message, and the solicited message is for request since the first transaction record for initiating nodes records current time the last one block generation moment by the transaction into the block chain network;The transaction acceptance node according to first transaction record and be locally stored since current time into the block chain network the last one block generate the moment be not written block the second transaction record carry out reconciliation.The embodiment of the present invention, which makes transaction initiate node, can also carry out arm's length dealing with transaction acceptance node in the case where not accessing block chain network.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of block chain account checking method, device, equipment and deposit
Storage media.
Background technique
In block chain network, both parties' node needs to keep online simultaneously, and in the real-time reception block chain network
The Transaction Information of broadcast.By transaction, initiator generates transaction record, is broadcast in block chain network after signing to the transaction record.
Accounting nodes in the block chain network could confirm transaction record write-in block to the transaction.
Recipient in both parties is usually hotel owner, can keep accessing block chain network in real time, but both parties
In initiator be usually user terminal, due to the electricity of user terminal, the limitation of network flow, so that initiator cannot keep
Access block chain network in real time, causes the transaction between both parties that can not be normally carried out.
Summary of the invention
The embodiment of the present invention provides a kind of block chain account checking method, device, equipment and storage medium, so that transaction is initiated
Node can also carry out arm's length dealing with transaction acceptance node in the case where not accessing block chain network.
In a first aspect, the embodiment of the present invention provides a kind of block chain account checking method, comprising:
Transaction acceptance node receives transaction and initiates the current transaction record that node is sent;
The transaction acceptance node determines the last one block in block chain network according to the block chain account book being locally stored
The generation moment;
The transaction acceptance node to transaction initiate node send solicited message, the solicited message for request from
Current time starts into the block chain network the last one block and generates between the moment by transaction initiation nodes records
The first transaction record;
The transaction acceptance node according to first transaction record and be locally stored since current time to institute
It states the last one block in block chain network and generates the second transaction record progress reconciliation that block is not written between the moment.
Second aspect, the embodiment of the present invention provide a kind of block chain account checking apparatus, comprising:
Receiving module initiates the current transaction record that node is sent for receiving transaction;
Determining module, for determining the last one block in block chain network according to the block chain account book being locally stored
Generate the moment;
Sending module sends solicited message for initiating node to transaction, and the solicited message is for request from working as
The preceding moment starts into the block chain network the last one block and generates between the moment by the transaction initiation nodes records
First transaction record;
Reconciliation module, for according to first transaction record and be locally stored since current time to the area
The last one block generates the second transaction record progress reconciliation that block is not written between the moment in block chain network.
The third aspect, the embodiment of the present invention provide a kind of block chain node, comprising:
Memory;
Processor;And
Computer program;
Wherein, the computer program stores in the memory, and is configured as being executed by the processor with reality
Method described in existing first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program,
The computer program is executed by processor to realize method described in first aspect.
Block chain account checking method, device, equipment and storage medium provided in an embodiment of the present invention, pass through transaction acceptance node
The generation moment of the last one block in the block chain network is determined according to the block chain account book being locally stored, and is initiated to transaction
Node request is since into the block chain network, the last one block is generated the moment by the friendship current time
Easily initiate the first transaction record of nodes records, the slave block being locally stored according to first transaction record and transaction acceptance node
The last one block generates moment to current time in chain network, the transaction record that is not written block in the block chain network carries out
Reconciliation, so that node is initiated in transaction can also normally be handed in the case where not accessing block chain network with transaction acceptance node
Easily.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of application scenarios provided in an embodiment of the present invention;
Fig. 2 is block chain account checking method flow chart provided in an embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides block chain account checking method flow chart;
Fig. 4 is the structural schematic diagram of block chain account checking apparatus provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of block chain node provided in an embodiment of the present invention.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Block chain account checking method provided by the invention, can be adapted for communication system shown in FIG. 1.As shown in Figure 1, this is logical
Letter system includes: access network equipment 11, terminal device 12 and server 13.It should be noted that communication system shown in FIG. 1
It can be adapted for different network formats, for example, can be adapted for global system for mobile telecommunications (Global System of Mobile
Communication, abbreviation GSM), CDMA (Code Division Multiple Access, abbreviation CDMA), broadband
CDMA (Wideband Code Division Multiple Access, abbreviation WCDMA), TD SDMA
(Time Division-Synchronous Code Division Multiple Access, abbreviation TD-SCDMA), it drills for a long time
Into network formats such as the 5G in (Long Term Evolution, abbreviation LTE) system and future.Optionally, above-mentioned communication system can
Think highly reliable low time delay communication (Ultra-Reliable and Low Latency in 5G communication system
Communications, abbreviation URLLC) transmission scene in system.
So optionally, above-mentioned access network equipment 11 can be base station (the Base Transceiver in GSM or CDMA
Station, abbreviation BTS) and/or base station controller, it is also possible to base station (NodeB, abbreviation NB) in WCDMA and/or wireless
Network controller (Radio Network Controller, abbreviation RNC), can also be the evolved base station in LTE
(Evolutional Node B, abbreviation eNB or eNodeB) perhaps base in relay station or access point or future 5G network
Stand (gNB) etc., and the present invention does not limit herein.
Above-mentioned terminal device 12 can be wireless terminal and be also possible to catv terminal.Wireless terminal can be directed to user and mention
For voice and/or the equipment of other business datum connectivity, there is the handheld device of wireless connecting function or be connected to wireless
Other processing equipments of modem.Wireless terminal can be through wireless access network (Radio Access Network, abbreviation
RAN it) is communicated with one or more equipments of the core network, wireless terminal can be mobile terminal, as mobile phone (or is
" honeycomb " phone) and computer with mobile terminal, for example, it may be portable, pocket, hand-held, built-in computer
Or vehicle-mounted mobile device, they exchange language and/or data with wireless access network.For another example wireless terminal can be with
It is personal communication service (Personal Communication Service, abbreviation PCS) phone, wireless phone, session setup
Agreement (Session Initiation Protocol, abbreviation SIP) phone, wireless local loop (Wireless Local
Loop, abbreviation WLL) it stands, the equipment such as personal digital assistant (Personal Digital Assistant, abbreviation PDA).It is wireless whole
End is referred to as system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), movement station
(Mobile Station), mobile station (Mobile), distant station (Remote Station), remote terminal (Remote
Terminal), access terminal (Access Terminal), user terminal (User Terminal), user agent (User
Agent), user equipment (User Device or User Equipment), is not limited thereto.Optionally, above-mentioned terminal is set
Standby 12 can also be the equipment such as smartwatch, tablet computer.Optionally, terminal device 12 and server 13 can be block link network
Node in network.In addition, in the block chain network can also include other nodes such as node 15, node 14, terminal device 12,
Server 13, node 15, node 14 specifically may make up peer-to-peer network.
Block chain account checking method provided by the invention, it is intended to solve the technical problem as above of the prior art.
How to be solved with technical solution of the specifically embodiment to technical solution of the present invention and the application below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is block chain account checking method flow chart provided in an embodiment of the present invention.The embodiment of the present invention is directed to the prior art
Technical problem as above, provide block chain account checking method, specific step is as follows for this method:
Step 201, transaction acceptance node receive transaction and initiate the current transaction record that node is sent.
In the present embodiment, transaction acceptance node specifically can be server 13 as shown in Figure 1, and node tool is initiated in transaction
Body can be terminal device 12 as shown in Figure 1, it will be understood that server 13 can be the cloud server of hotel owner, can also be with
It is the server of hotel owner local, or provide the remote server of billed services for hotel owner.Terminal device 12 specifically can be
The user terminal that consumer is held such as mobile phone.In the present embodiment, terminal device 12 and server 13 can be block chain
Node in network, but due to the electricity of terminal device 12, the limitation of network flow, so that terminal device 12 cannot keep reality
When access block chain network.In addition, server 13 can keep accessing block chain network in real time.Terminal device 12 and server 13
It can be attached by multiple network connection type, for example, the internetwork connection mode includes: infrared, bluetooth, NFC, wifi, mutually
Networking connection scans the two-dimensional code or the modes such as third party's transfer.
Terminal device 12 obtains the address information such as IP of the server 13 by the network connection between server 13
The transaction amount that address, further 12 basis of terminal device and server 13 are currently traded generates current transaction record, and
It signs to current transaction record, the current transaction record after signature is sent to server 13.
Step 202, the transaction acceptance node determine last in block chain network according to the block chain account book being locally stored
The generation moment of one block.
After server 13 receives the current transaction record of the transmission of terminal device 12, the block chain account being locally stored is inquired
Originally, and according to the block chain account book determine the generation moment of the last one block in the block chain network.
Step 203, the transaction acceptance node initiate node to transaction and send solicited message, and the solicited message is for asking
Ask acquisition since the last one block generates the moment by transaction initiation into the block chain network current time
First transaction record of nodes records.
When server 13 determines the last one block in the block chain network from the block chain account book being locally stored
After generating the moment, solicited message is sent to terminal device 12, which can specifically include last in the block chain network
The generation moment of one block, for terminal device 12 request obtain since current time into the block chain network most
The latter block generates the first transaction record recorded between the moment by terminal device 12, which includes that terminal is set
Standby 12 transaction records when offline and/or it is online when transaction record, referring to offline herein: the non-access area of terminal device 12
The state of block chain network.
Step 204, the transaction acceptance node according to first transaction record and be locally stored from current time
Start into the block chain network the last one block and generate the second transaction record of block is not written between the moment carrying out pair
Account.
In the present embodiment, server 13 is local can also be stored with a trading pit, which specifically can be one
A list, record has the last one block from block chain network to generate moment to current time, the block link network in the list
The transaction record of block is not written in network.Transaction record in the list can change with the time, for example, at current time
New block is generated in sometime block chain network later, some transaction records that block is not written have been written into this
In new block, then the transaction record being written in the new block will be deleted from the list.In addition, if block chain network
In broadcast new transaction record, and new transaction record has not been written in block, then server 13 can also be by the block chain
The new transaction record broadcasted in network is written in the list.
When server 13 receive the transmission of terminal device 12 since current time into the block chain network it is last
After one block generates the first transaction record recorded between the moment by terminal device 12, server 13 is from above-mentioned trading pit
All Activity record relevant to terminal device 12 is obtained, and the transaction record is ranked up according to chronological order.This
Place, is denoted as the second transaction record for the All Activity relevant to terminal device 12 obtained from above-mentioned trading pit.
Further, what server 13 was got according to first transaction record and from trading pit is related to terminal device 12
All Activity record carry out reconciliation.
Optionally, the transaction acceptance node is according to first transaction record and what is be locally stored open from current time
Begin into the block chain network the last one block generate the moment between be not written block the second transaction record carry out reconciliation,
Including following several possible modes:
A kind of possible mode is: if the transaction acceptance node determines first transaction record and is locally stored
Since into the block chain network, the second transaction of block is not written for the last one block the generation moment current time
Record is consistent, it is determined that initiates node with the transaction and trades.
For example, server 13 determines that the first transaction record that terminal device 12 is sent and server 13 are obtained from trading pit
All Activity relevant to terminal device 12 record arrived is consistent, and terminal device 12 has the ability to pay corresponding transaction amount,
The then determination of server 13 is traded with terminal device 12.
Alternatively possible mode is: if the transaction acceptance node determines that first transaction record is deposited less than local
Storage since current time into the block chain network the last one block generate the moment the second of block is not written
Second transaction record is then sent to the transaction and initiates node by transaction record.
For example, server 13 determines that the first transaction record that terminal device 12 is sent is obtained from trading pit less than server 13
All Activity relevant to terminal device 12 record got, then what server 13 got it from trading pit sets with terminal
Standby 12 relevant All Activity record is sent to terminal device 12, and sends feedback information to terminal device 12, indicates this twelve Earthly Branches
Pay failure.
Another possible mode is: if the transaction acceptance node determines that first transaction record is deposited more than local
Storage since current time into the block chain network the last one block generate the moment the second of block is not written
Transaction record then carries out reconciliation again according to first transaction record.
For example, server 13 determines that the first transaction record that terminal device 12 is sent is obtained from trading pit more than server 13
All Activity relevant to terminal device 12 record got, then server 13 is remembered according to the first transaction that terminal device 12 provides
Record carries out reconciliation again.
The embodiment of the present invention determines the block chain network according to the block chain account book being locally stored by transaction acceptance node
In the last one block the generation moment, and to transaction initiate node request since current time to the block link network
The last one block generates the first transaction record for initiating nodes records between the moment by the transaction in network, according to first friendship
The last one block slave block chain network that easily record and transaction acceptance node are locally stored generates moment to current time, is somebody's turn to do
The transaction record that block is not written in block chain network carries out reconciliation, so that node is initiated in transaction is not accessing block chain network
In the case of can also with transaction acceptance node carry out arm's length dealing.
Fig. 3 be another embodiment of the present invention provides block chain account checking method flow chart.On the basis of the above embodiments,
Block chain account checking method provided in this embodiment specifically comprises the following steps:
Step 301, transaction acceptance node receive transaction and initiate the current transaction record that node is sent.
Step 301 and the concrete principle of step 201 are consistent with implementation, and details are not described herein again.
Step 302, the transaction acceptance node calculate the cryptographic Hash of the current transaction record.
After server 13 receives the current transaction record of the transmission of terminal device 12, the Kazakhstan of the current transaction record is calculated
Uncommon value.
The cryptographic Hash is sent to the clothes of the timestamp in the block chain network by step 303, the transaction acceptance node
Business device.
The cryptographic Hash of the current transaction record is further sent to the time-stamping service in block chain network by server 13
Device is stamped the timestamp at current time to the cryptographic Hash by the time stamp server, and the cryptographic Hash and the timestamp is used
Server 13 is sent to after the private key signature of the time stamp server.
Step 304, the transaction acceptance node receive the cryptographic Hash that the time stamp server is sent it is corresponding when
Between stab.
Server 13 receives the cryptographic Hash after the private key signature by time stamp server that the time stamp server is sent
Timestamp corresponding with the cryptographic Hash.
The cryptographic Hash and the corresponding timestamp of the cryptographic Hash are broadcast to institute by step 305, the transaction acceptance node
It states in block chain network.
Server 13 is by the cryptographic Hash timestamp corresponding with the cryptographic Hash after the private key signature by time stamp server
It is broadcast in the block chain network.
Step 306, the transaction acceptance node determine last in block chain network according to the block chain account book being locally stored
The generation moment of one block.
Step 306 and the implementation of step 202 are consistent with concrete principle, and details are not described herein again.
Step 307, the transaction acceptance node initiate node to transaction and send solicited message, and the solicited message is for asking
Ask acquisition since the last one block generates the moment by transaction initiation into the block chain network current time
First transaction record of nodes records.
Step 307 and the implementation of step 203 are consistent with concrete principle, and details are not described herein again.
Step 308, the transaction acceptance node according to first transaction record and be locally stored from current time
Start into the block chain network the last one block and generate the second transaction record of block is not written between the moment carrying out pair
Account.
Step 308 and the implementation of step 204 are consistent with concrete principle, and details are not described herein again.
The embodiment of the present invention determines the block chain network according to the block chain account book being locally stored by transaction acceptance node
In the last one block the generation moment, and to transaction initiate node request since current time to the block link network
The last one block generates the first transaction record for initiating nodes records between the moment by the transaction in network, according to first friendship
The last one block slave block chain network that easily record and transaction acceptance node are locally stored generates moment to current time, is somebody's turn to do
The transaction record that block is not written in block chain network carries out reconciliation, so that node is initiated in transaction is not accessing block chain network
In the case of can also with transaction acceptance node carry out arm's length dealing.
Fig. 4 is the structural schematic diagram of block chain account checking apparatus provided in an embodiment of the present invention.Block chain account checking apparatus tool
Body can be the transaction acceptance node in above-described embodiment.Block chain account checking apparatus provided in an embodiment of the present invention can execute area
Block chain account checking method embodiment provide process flow, as shown in figure 4, block chain account checking apparatus 40 include: receiving module 41, really
Cover half block 42, sending module 43 and reconciliation module 44;Wherein, receiving module 41 is used to receive transaction and initiates the current of node transmission
Transaction record;Determining module 42 is used to determine the last one block in block chain network according to the block chain account book being locally stored
The generation moment;Sending module 43 is used to initiate node to transaction to send solicited message, and the solicited message is used for request
Since into the block chain network, the last one block is generated the moment by transaction initiation node note current time
First transaction record of record;Reconciliation module 44 is used for according to first transaction record and what is be locally stored open from current time
Begin into the block chain network the last one block generate the moment between be not written block the second transaction record carry out reconciliation.
Optionally, reconciliation module 44 is specifically used for: if first transaction record and be locally stored from current time
The second transaction record for starting into the block chain network not being written block between the last one block generation moment is consistent, then
It is determining to trade with transaction initiation node.
Optionally, reconciliation module 44 is specifically used for: if first transaction record be less than be locally stored from it is current when
The second transaction record for starting that into the block chain network, block is not written between the last one block generation moment is carved, then is led to
It crosses the sending module and second transaction record is sent to the transaction initiation node.
Optionally, reconciliation module 44 is specifically used for: if first transaction record be more than be locally stored from it is current when
The second transaction record for starting that into the block chain network, block is not written between the last one block generation moment is carved, then root
Reconciliation again is carried out according to first transaction record.
Optionally, block chain account checking apparatus 40 further include: computing module 45;Computing module 45 is used in the receiving module
After receiving the current transaction record that node transmission is initiated in transaction, the cryptographic Hash of the current transaction record is calculated;Sending module
43 are also used to: the cryptographic Hash is sent to the time stamp server in the block chain network;Receiving module 41 is also used to: being connect
Receive the corresponding timestamp of the cryptographic Hash that the time stamp server is sent;Sending module 43 is also used to: by the cryptographic Hash
Timestamp corresponding with the cryptographic Hash is broadcast in the block chain network.
The block chain account checking apparatus of embodiment illustrated in fig. 4 can be used for executing the technical solution of above method embodiment, in fact
Existing principle is similar with technical effect, and details are not described herein again.
Fig. 5 is the structural schematic diagram of block chain node provided in an embodiment of the present invention.Block provided in an embodiment of the present invention
Chain node can execute the process flow of block chain account checking method embodiment offer, as shown in figure 5, block chain node 50 includes depositing
Reservoir 51, processor 52, computer program and communication interface 53;Wherein, computer program is stored in memory 51, and is matched
It is set to and block chain account checking method described in above embodiments is executed as processor 52.
The block chain node of embodiment illustrated in fig. 5 can be used for executing the technical solution of above method embodiment, realize former
Reason is similar with technical effect, and details are not described herein again.
In addition, the present embodiment also provides a kind of computer readable storage medium, it is stored thereon with computer program, the meter
Calculation machine program is executed by processor to realize block chain account checking method described in above-described embodiment.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules
At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (12)
1. a kind of block chain account checking method characterized by comprising
Transaction acceptance node receives transaction and initiates the current transaction record that node is sent;
The transaction acceptance node determines the life of the last one block in block chain network according to the block chain account book being locally stored
At the moment;
The transaction acceptance node initiates node to transaction and sends solicited message, and the solicited message is for request from current
Moment starts into the block chain network the last one block and generates to initiate the of nodes records by the transaction between the moment
One transaction record;
The transaction acceptance node according to first transaction record and be locally stored since current time to the area
The last one block generates the second transaction record progress reconciliation that block is not written between the moment in block chain network.
2. the method according to claim 1, wherein the transaction acceptance node is according to first transaction record
And be locally stored since current time into the block chain network the last one block generate the moment be not written
Second transaction record of block carries out reconciliation, comprising:
If the transaction acceptance node determines first transaction record and is locally stored since current time to described
In block chain network the last one block generate the moment between be not written block the second transaction record it is consistent, it is determined that with it is described
Transaction initiates node and trades.
3. the method according to claim 1, wherein the transaction acceptance node is according to first transaction record
And be locally stored since current time into the block chain network the last one block generate the moment be not written
Second transaction record of block carries out reconciliation, comprising:
If the transaction acceptance node determine first transaction record be less than be locally stored since current time to institute
It states the last one block in block chain network and generates the second transaction record that block is not written between the moment, then handed over described second
Easily record is sent to the transaction and initiates node.
4. the method according to claim 1, wherein the transaction acceptance node is according to first transaction record
And be locally stored since current time into the block chain network the last one block generate the moment be not written
Second transaction record of block carries out reconciliation, comprising:
If the transaction acceptance node determine first transaction record be more than be locally stored since current time to institute
It states the last one block in block chain network and generates the second transaction record that block is not written between the moment, then according to described first
Transaction record carries out reconciliation again.
5. method according to claim 1-4, which is characterized in that the transaction acceptance node receives transaction and initiates
After the current transaction record that node is sent, further includes:
The transaction acceptance node calculates the cryptographic Hash of the current transaction record;
The cryptographic Hash is sent to the time stamp server in the block chain network by the transaction acceptance node;
The transaction acceptance node receives the corresponding timestamp of the cryptographic Hash that the time stamp server is sent;
The cryptographic Hash and the corresponding timestamp of the cryptographic Hash are broadcast to the block chain network by the transaction acceptance node
In.
6. a kind of block chain account checking apparatus characterized by comprising
Receiving module initiates the current transaction record that node is sent for receiving transaction;
Determining module, for determining the generation of the last one block in block chain network according to the block chain account book being locally stored
Moment;
Sending module, for transaction initiate node send solicited message, the solicited message for request from it is current when
It carves and starts into the block chain network to initiate the first of nodes records by the transaction between the last one block generation moment
Transaction record;
Reconciliation module, for according to first transaction record and be locally stored since current time to the block chain
The last one block generates the second transaction record progress reconciliation that block is not written between the moment in network.
7. block chain account checking apparatus according to claim 6, which is characterized in that the reconciliation module is specifically used for:
If first transaction record and be locally stored since current time into the block chain network the last one
Block is not written for block the second transaction record between the generation moment is consistent, it is determined that initiates node with the transaction and is handed over
Easily.
8. block chain account checking apparatus according to claim 6, which is characterized in that the reconciliation module is specifically used for:
If first transaction record be less than be locally stored since current time into the block chain network last
A block generates the second transaction record that block is not written between the moment, then is remembered second transaction by the sending module
Record is sent to the transaction and initiates node.
9. block chain account checking apparatus according to claim 6, which is characterized in that the reconciliation module is specifically used for:
If first transaction record be more than be locally stored since current time into the block chain network last
A block generates the second transaction record that block is not written between the moment, then it is again right to be carried out according to first transaction record
Account.
10. according to the described in any item block chain account checking apparatus of claim 6-9, which is characterized in that further include:
Computing module, for calculating institute after the current transaction record that the receiving module receives that node transmission is initiated in transaction
State the cryptographic Hash of current transaction record;
The sending module is also used to: the cryptographic Hash is sent to the time stamp server in the block chain network;
The receiving module is also used to: receiving the corresponding timestamp of the cryptographic Hash that the time stamp server is sent;
The sending module is also used to: the cryptographic Hash and the corresponding timestamp of the cryptographic Hash are broadcast to the block link network
In network.
11. a kind of block chain node characterized by comprising
Memory;
Processor;And
Computer program;
Wherein, the computer program stores in the memory, and is configured as being executed by the processor to realize such as
The described in any item methods of claim 1-5.
12. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, the computer program
It is executed by processor to realize the method according to claim 1 to 5.
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 true CN109087096A (en) | 2018-12-25 |
CN109087096B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599170A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Transaction information processing method and system based on block chain and storage medium |
CN113595724A (en) * | 2021-07-29 | 2021-11-02 | 成都质数斯达克科技有限公司 | Accounting method, device, equipment and readable storage medium based on block chain |
CN113761064A (en) * | 2021-08-27 | 2021-12-07 | 成都质数斯达克科技有限公司 | Block chain based daily cutting account checking method, device, equipment and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101939945A (en) * | 2007-08-08 | 2011-01-05 | 黄金富 | A payment method and system for certification by a smart card with a display and a keyboard using one time dynamic cipher code |
CN103548047A (en) * | 2010-12-30 | 2014-01-29 | 拉尔斯·奥洛夫·康恩葛尔迪 | Terminal authenticity verification |
WO2014205543A1 (en) * | 2013-06-24 | 2014-12-31 | Joseph Schmitt | 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 |
US9898781B1 (en) * | 2007-10-18 | 2018-02-20 | Jpmorgan Chase Bank, N.A. | System and method for issuing, circulating and trading financial instruments with smart features |
CN107767127A (en) * | 2017-10-23 | 2018-03-06 | 中国联合网络通信集团有限公司 | Exchange information processing method and device in block chain |
CN108288157A (en) * | 2018-01-25 | 2018-07-17 | 青岛闪收付信息技术有限公司 | A kind of supply chain management method based on financial block chain technology |
CN108681965A (en) * | 2018-04-24 | 2018-10-19 | 全链通有限公司 | The block chain network transaction processing method and recipient's node of offline node |
-
2018
- 2018-07-19 CN CN201810799474.5A patent/CN109087096B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101939945A (en) * | 2007-08-08 | 2011-01-05 | 黄金富 | A payment method and system for certification by a smart card with a display and a keyboard using one time dynamic cipher code |
US9898781B1 (en) * | 2007-10-18 | 2018-02-20 | Jpmorgan Chase Bank, N.A. | System and method for issuing, circulating and trading financial instruments with smart features |
CN103548047A (en) * | 2010-12-30 | 2014-01-29 | 拉尔斯·奥洛夫·康恩葛尔迪 | Terminal authenticity verification |
WO2014205543A1 (en) * | 2013-06-24 | 2014-12-31 | Joseph Schmitt | 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 |
CN107767127A (en) * | 2017-10-23 | 2018-03-06 | 中国联合网络通信集团有限公司 | Exchange information processing method and device in block chain |
CN108288157A (en) * | 2018-01-25 | 2018-07-17 | 青岛闪收付信息技术有限公司 | A kind of supply chain management method based on financial block chain technology |
CN108681965A (en) * | 2018-04-24 | 2018-10-19 | 全链通有限公司 | The block chain network transaction processing method and recipient's node of offline node |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599170A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Transaction information processing method and system based on block chain and storage medium |
CN113595724A (en) * | 2021-07-29 | 2021-11-02 | 成都质数斯达克科技有限公司 | Accounting method, device, equipment and readable storage medium based on block chain |
CN113595724B (en) * | 2021-07-29 | 2023-10-20 | 成都质数斯达克科技有限公司 | Block chain-based accounting method, device, equipment and readable storage medium |
CN113761064A (en) * | 2021-08-27 | 2021-12-07 | 成都质数斯达克科技有限公司 | Block chain based daily cutting account checking method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109087096B (en) | 2020-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810119A (en) | block chain processing method, device and block chain node | |
CN109067724A (en) | Block chain data trade method, apparatus, equipment and storage medium | |
CN107147501B (en) | Timestamp processing method and processing device | |
CN109118360A (en) | Block chain account checking method, device, equipment and storage medium | |
CN108989048A (en) | Cryptographic key distribution method, device, equipment and storage medium | |
CN107480990A (en) | Block chain bookkeeping methods and device | |
CN108712506A (en) | block chain node communication method, device and block chain node | |
EP1571790A3 (en) | Secure routing method for ad hoc networks, corresponding mobile node and network system | |
CN109640274A (en) | Note transmission method, device and computer readable storage medium based on block chain | |
CN109087096A (en) | Block chain account checking method, device, equipment and storage medium | |
CN101222325A (en) | Wireless multi-hop network key management method based on ID | |
CN108769142A (en) | Exchange information processing method and block generate node | |
CN109087100A (en) | Cryptographic key distribution method, device, equipment and storage medium | |
CN108566275A (en) | Identity identifying method, device and block chain node | |
CN108173915A (en) | Call chain processing method and processing device | |
CN108900528A (en) | Block chain real name identification method, device, equipment and storage medium | |
WO2008102204A2 (en) | Systems and methods for session records correlation | |
CN108881296A (en) | Block chain real name identification method, device, equipment and storage medium | |
CN108683727A (en) | Block processes method and host node | |
CN108810120A (en) | block chain node communication method, device and block chain node | |
CN110414979A (en) | Endorsement endorsement method, device, equipment and storage medium on line | |
CN110336779A (en) | A kind of construction method, device and the electronic equipment of block chain | |
CN109214648A (en) | New energy method of commerce, device, equipment and storage medium | |
CN108235823A (en) | Agency is without roaming cellular | |
CN108877290A (en) | Parking stall dispatching method, device, 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 |