CN110517124A - Transaction control method and device, insert arrangement, computer readable storage medium - Google Patents
Transaction control method and device, insert arrangement, computer readable storage medium Download PDFInfo
- Publication number
- CN110517124A CN110517124A CN201910615312.6A CN201910615312A CN110517124A CN 110517124 A CN110517124 A CN 110517124A CN 201910615312 A CN201910615312 A CN 201910615312A CN 110517124 A CN110517124 A CN 110517124A
- Authority
- CN
- China
- Prior art keywords
- account book
- book data
- destination node
- task
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- 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
-
- 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/12—Accounting
- G06Q40/125—Finance or payroll
Abstract
The present embodiments relate to block chain technical field, a kind of transaction control method and device, insert arrangement, computer readable storage medium are disclosed.In the present invention, a kind of transaction control method is applied to insert arrangement, comprising: the account book data of destination node in duplication block chain obtain the first account book data of destination node;If detecting destination node, there are reading tasks, read operation is executed according to the first account book data.The embodiment of the invention also provides a kind of transaction control device, insert arrangement and computer readable storage mediums;Allow to the operation of parallel processing reading task, so as to improve the response efficiency of reading task.
Description
Technical field
The present embodiments relate to block chain technical field, in particular to a kind of transaction control method and device, plug-in unit dress
It sets, computer readable storage medium.
Background technique
Block chain (Blockchain) is that Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm etc. calculate
The new application mode of machine technology, including a string using the associated data block generated of cryptography methods, in each data block
Contain a batch network transaction information.Wherein, block chain infrastructure must be safeguarded by node, one node administration one
Account book data.
However, it is found by the inventors that at least there are the following problems in the related technology: each node packaged data carry out cochain and test
The process of card is serial operation, causes the response efficiency of transaction task lower.
Summary of the invention
Embodiment of the present invention be designed to provide a kind of transaction control method and device, insert arrangement, computer can
Storage medium is read, allows to the operation of parallel processing reading task, so as to improve the response efficiency of reading task.
In order to solve the above technical problems, embodiments of the present invention provide a kind of transaction control method, comprising: duplicate field
The account book data of destination node in block chain obtain the first account book data of destination node;If detecting that destination node exists to read to appoint
Business then executes read operation according to the first account book data.
Embodiments of the present invention additionally provide a kind of transaction control device, comprising: data generation module, transaction detection mould
Block;Data generation module obtains the first account book number of destination node for replicating the account book data of destination node in block chain
According to;Transaction detection module, for there are when reading task, executed to read according to the first account book data to grasp detecting destination node
Make.
Embodiments of the present invention additionally provide a kind of insert arrangement, comprising: at least one processor;And at least
The memory of one processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instruction
It is executed by least one processor, so that at least one processor is able to carry out above-mentioned transaction control method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
Machine program realizes above-mentioned transaction control method when being executed by processor.
Embodiment of the present invention in terms of existing technologies, provides a kind of transaction control method, by replicating block
The account book data of destination node in chain obtain the first account book data of destination node;If detect destination node there are reading task,
Then read operation is executed according to the first account book data.In present embodiment, even if the case where there are transaction tasks for destination node
Under, and detect that destination node, can be simultaneously due to that can execute read operation according to the first account book data there are reading task
The operation of row processing reading task, achievees the purpose that the response efficiency for improving reading task;By being executed thus according to the first account book data
Read operation, and the first account book data are obtained by replicating the account book data of destination node, therefore can guarantee first
The accuracy of account book data, and then can guarantee the accuracy of the read operation executed according to the first account book data.
In addition, transaction task is specially writing task, if detecting destination node, there are reading tasks, according to the first account book number
According to execution read operation, comprising: if detecting destination node, there are reading tasks, then occurring in the preset duration after writing task
According to writing task and the first account book data, the second account book data are obtained;Read operation is executed according to the second account book data.Pass through root
The second account book data are obtained according to writing task and the first account book data, the second account book data and destination node execution can be made to write and appoint
Account book data after business are consistent, and thereby may be ensured that the accuracy of the read operation of execution.
In addition, after according to the second account book data execution read operation, further includes: read the account book data of destination node;
According to the account book data of destination node, judging writing task, whether cochain is successful;When determining the failure of writing task cochain, to the second account
Notebook data executes data rewind operation.By executing data rewind to the second account book data when determining the failure of writing task cochain
Operation can cancel, dispose the influence that the writing task of cochain failure generates the second account book data.It does so, Ke Yibao
Card does not inquire dirty data on chain by other users, can be further improved the safety of the second account book data.
In addition, judging writing task, whether cochain is successful, comprising: comparison destination node according to the account book data of destination node
Account book data and the second account book data;If the account book data of destination node are identical with the second account book data, writing task is determined
Cochain success;Otherwise, then determine that writing task cochain fails.A kind of account book data according to destination node are provided, judgement, which is write, appoints
Business whether the successful specific implementation of cochain.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is a kind of flow chart for transaction control method that first embodiment provides according to the present invention;
Fig. 2 is a kind of flow chart for transaction control method that second embodiment provides according to the present invention;
Fig. 3 is in a kind of transaction control method that second embodiment provides according to the present invention, according to the second account book data
Execute the schematic diagram of read operation;
Fig. 4 is a kind of flow chart for transaction control method that third embodiment provides according to the present invention;
Fig. 5 is in a kind of transaction control method that third embodiment provides according to the present invention, and the first account book data are shown
It is intended to;
Fig. 6 is to hold in a kind of transaction control method that third embodiment provides according to the present invention to the second account book data
The schematic diagram of row data rolling back action;
Fig. 7 is a kind of structural schematic diagram for transaction control device that the 4th embodiment provides according to the present invention;
Fig. 8 is a kind of structure connection diagram for insert arrangement that the 5th embodiment provides according to the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of transaction control methods, are applied to insert arrangement.By replicating block
The account book data of destination node in chain obtain the first account book data of destination node;If detect destination node there are reading task,
Then read operation is executed according to the first account book data.
In present embodiment, even if in destination node there are in the case where transaction task, and detect that destination node exists
Reading task can be reached due to that can execute read operation according to the first account book data with the operation of parallel processing reading task
Improve the purpose of the response efficiency of reading task;By the read operation executed thus according to the first account book data, and the first account book number
According to being obtained by replicating the account book data of destination node, therefore it can guarantee the accuracy of the first account book data, Jin Erke
To guarantee the accuracy of the read operation executed according to the first account book data.
The realization details of the transaction control method of present embodiment is specifically described below, the following contents is only side
The realization details of offer is just provided, the necessary of this programme is not implemented.
The flow chart of one of present embodiment transaction control method is as shown in Figure 1, comprising:
Step 101, the account book data for replicating destination node in block chain, obtain the first account book data of destination node.
In one example, it can choose a part of node in block chain as destination node, and to these nodes point
It is not replicated, obtains the first account book data corresponding with each node in destination node respectively.For example it is shared in block chain
30 nodes can select 10 nodes as destination node in block chain at random, obtain distinguishing with this 10 destination nodes
Corresponding 10 the first account book data.
In another example, can be using whole nodes of block chain as destination node, and target complete node is divided
It is not replicated, obtains the first account book data corresponding with each node in destination node respectively.For example it is shared in block chain
30 nodes can then replicate the account book data of this 30 destination nodes, obtain and this 30 destination node corresponding 30
A first account book data.In this example embodiment, by that using whole nodes of block chain as destination node, can to work as any mesh
Node is marked there are when reading task, insert arrangement can execute according to the first account book data corresponding with the destination node and read behaviour
Make, rather than the first account book data based on any node in other nodes in addition to the destination node execute and read behaviour
Make, thereby may be ensured that the Information Security of each node itself in destination node.
Furthermore it is possible to replicate the account book number of destination node in block chain when detecting that transaction task occurs for destination node
According to obtaining the first account book data of destination node.Such as transaction can occur and appoint detecting the destination node in block chain
When business A, then the account book data of destination node are replicated, obtains the first account book data of destination node;If detecting the destination node
Reading task B occurs again, then can execute the read operation of reading task B directly according to the first account book data of destination node.Pass through
When detecting that transaction task occurs for destination node, then the account book data of destination node in block chain are replicated, obtains destination node
The first account book data, can be to avoid because of destination node and concurrent transaction task is not present due to executes: in duplication block chain
The step of account book data of destination node.
Wherein, above-mentioned described transaction task can be reading task, is also possible to writing task, is not especially limited herein.
Step 102, judge destination node with the presence or absence of reading task.If detecting destination node, there are reading tasks, enter
Step 103;Otherwise, which terminates.
Step 103, read operation is executed according to the first account book data.
That is, if detecting destination node, there are reading tasks, are directly executed according to the first account book data and read behaviour
Make.
It is appreciated that in the related art, when destination node is there are in the case where transaction task, if detecting target section again
There are reading tasks for point, then need to start to execute reading task after transaction task execution, and task of trading is held
Row process needs to expend certain duration, therefore causes the response efficiency of reading task low.In present embodiment, by according to
One account book data execute read operation, allow to the operation of parallel processing reading task, improve the response efficiency of reading task.
It is not difficult to find that a kind of transaction control method that present embodiment provides, if a certain node is on packaged data carry out
In chain verification process, the node again simultaneously multiple transaction tasks occur, then can by duplication after obtain, independently of block chain it
The first outer account book data, execute the transaction task, it is not necessary to until in block chain cochain verifying etc. transaction task operation it is complete
Cheng Hou can just execute concurrent transaction task, realize parallel work-flow, improve the response efficiency of transaction task;And it is possible to
Search operaqtion directly is executed according to the first account book data, without having traversed in the block chain on chain after whole account book data
Search operaqtion can be executed, so as to improve recall precision.
Second embodiment of the present invention is related to a kind of transaction control method.Second embodiment is in first embodiment
On the basis of be further improved, specifically the improvement is that: in the present embodiment, trade task specifically: writing task;
If detecting destination node, there are reading tasks, read operation is executed according to the first account book data, comprising: if writing task occurs
In preset duration afterwards, detecting destination node, there are reading tasks, then according to writing task and the first account book data, obtain the second account
Notebook data;Read operation is executed according to the second account book data.By obtaining the second account book according to writing task and the first account book data
Data, the account book data after the second account book data can be made to execute writing task with destination node are consistent, so as to protect
Demonstrate,prove the accuracy of the read operation executed.
The flow chart of one of present embodiment transaction control method is as shown in Figure 2, comprising:
Step 201, when detecting that writing task occurs for destination node, the account book data of destination node in block chain are replicated,
Obtain the first account book data of destination node.
Step 202, judge in the preset duration that writing task occurs, destination node whether there is reading task.If occurring
In preset duration after writing task, detecting destination node, there are reading tasks, then enter step 203;Otherwise, which terminates.
Step 203, according to writing task and the first account book data, the second account book data are obtained.
Specifically, the write operation that the first account book data can be executed with writing task characterization, obtains the second account book data.
Step 204, read operation is executed according to the second account book data.
The step 201 in present embodiment to step 204 is illustrated below:
Referring to Fig. 3, in one example, in the T1 time, a writing task, in the T2 time, target is had occurred in destination node
A reading task has occurred in node, and in the T3 time, a reading task is had occurred in destination node again.Wherein, the T2 time is in the T1 time
Later, the T3 time is after the T2 time, it is assumed that T3 time and T2 time are in the preset duration after writing task generation.Work as inspection
When measuring the T1 time writing task occurs, replicate the account book data of destination node, generate the first account book data, as shown in data
(V0).When detecting when the T2 time reading task occurring, then according to the first account book data and writing task, the second account book number is generated
According to, as shown in data (V1), and to the second account book data execute read operation, to the second account book data execute read behaviour
It after work, can also attempt to execute read operation to destination node, if failure is read, it can be said that bright destination node is carrying out and writes
Task, then subject to the reading data that after the read operation that is executed to the second account book data, obtain;When detect the T3 time again
When reading task occurs, then read operation directly can be executed to the second account book data, read behaviour executing to the second account book data
It after work, can also attempt to execute read operation to destination node, if failure is read, it can be said that bright destination node is carrying out and writes
Task, then subject to the reading data that after the read operation that is executed to the second account book data, obtain;It, can be with if reading successfully
Illustrate that the verifying of the cochain of writing task is completed, and be subject to read successfully after obtained reading data.
In another example, the value of the account book data characterization of destination node is 20 points, when detecting destination node
When writing task, the account book data of destination node in block chain are replicated, the first account book data of destination node, first obtained are obtained
The value of account book data characterization is 20 points.Judge in the preset duration (such as 5 minutes) that writing task occurs, whether destination node is deposited
In reading task, reading task, then can obtain the second account book data, it is assumed that write according to writing task and the first account book data if it exists
Task are as follows: reduce 5 points, then the value of the second account book data characterization obtained is 15 points, is held according to the second account book data (i.e. 15 points)
Row read operation, without read operation can be executed after the completion of the verifying of the writing task cochain of destination node;Due to
Before the verifying of writing task cochain is completed, that is, after the success of writing task cochain can be read, the account book data of the destination node, it is ensured that
The accuracy of the read operation of execution.
It is not difficult to find that a kind of transaction control method that present embodiment provides, by according to writing task and the first account book number
According to the second account book data are obtained, the account book data after the second account book data and destination node can be made to execute writing task keep one
It causes, thereby may be ensured that the accuracy of the read operation of execution.
Third embodiment of the present invention is related to a kind of transaction control method.Present embodiment is in second embodiment
On the basis of be further improved, specifically the improvement is that: in the present embodiment, executing reading according to the second account book data
After extract operation, further includes: read the account book data of destination node;According to the account book data of destination node, judge that writing task is
No cochain success;When determining the failure of writing task cochain, data rewind operation is executed to the second account book data.By being write when judgement
Task cochain fail when, to the second account book data execute data rewind operation, can cancel, dispose the cochain failure write appoint
The influence that business generates the second account book data.It does so, it is ensured that do not inquire dirty data on chain, Ke Yijin by other users
One step improves the safety of the second account book data.
The flow chart of one of present embodiment transaction control method is as shown in Figure 4, comprising:
Step 301, when detecting that writing task occurs for destination node, the account book data of destination node in block chain are replicated,
Obtain the first account book data of destination node.
Step 302, judge in the preset duration that writing task occurs, destination node whether there is reading task.If occurring
In preset duration after writing task, detecting destination node, there are reading tasks, then enter step 303;Otherwise, which terminates.
Step 303, according to writing task and the first account book data, the second account book data are obtained.
Step 304, read operation is executed according to the second account book data.
Due to the step 201 in the step 301 in present embodiment to step 304 and second embodiment to step 204
Roughly the same, to avoid repeating, details are not described herein again.
Step 305, judging writing task, whether cochain is successful.When determining the failure of writing task cochain, 306 are entered step;It is no
Then, which terminates.
In one example, the account book data and the second account book data of destination node can be compared;If the account of destination node
Notebook data and the second account book data are identical, then determine the success of writing task cochain;Otherwise, then determine that writing task cochain fails.It can be with
Understand, due to destination node can not parallel processing trade task, when there are writing tasks for destination node, and to writing task into
During row cochain is verified, insert arrangement can not get the account book data of destination node at all.Therefore, if available arrive
The account book data of destination node, it can be said that bright destination node is to writing task, cochain is completed.At this point, comparing the account of mark node
Notebook data and the second account book data illustrate writing task cochain if the account book data of destination node are identical with the second account book data
Success illustrates that writing task cochain fails if the account book data of destination node are different with the second account book data.
Wherein, the reason of cochain fails has very much, fail including the cochain such as to writing task progress cochain verification result,
Failure of cochain caused by insert arrangement is abnormal etc..
Step 306, data rewind operation is executed to the second account book data.
Specifically, insert arrangement can be according to the first account book data stored in flash back memory block, to execution writing task
The second account book data after the write operation of characterization execute data rewind operation.As shown in figure 5, in this example embodiment, to
Before one account book data execute write operation, the first account book data are 1. are as follows: t [id PK, name (1, shenjian) (2,
Zhangsan) (3, lisi)], roll-back segment at this time is in space state.If being characterized to the writing task that the first account book data execute
Write operation is as follows:
start trx;
delete(1,shenjian);
update set(3,lisi)to(3,xxx);
insert(4,wangwu);
After insert arrangement executes above-mentioned write operation to the first account book data, the second account book data are as follows: [(1, shenjian)
(2, zhangsan) (3, xxx) (4, wangwu)].Referring to Fig. 6, when destination node verifies mistake to the cochain of writing task in block chain
When losing, 2. data rewind operation is executed to the second account book data, so as to cancel, dispose above-mentioned write operation.
It should be noted that present embodiment is also possible to the improvement made on the basis of first embodiment.
It is not difficult to find that present embodiment provide a kind of transaction control method, by when determine writing task cochain failure when,
Data rewind operation is executed to the second account book data, can cancel, dispose the writing task of cochain failure to the second account book number
According to the influence of generation.It does so, it is ensured that do not inquire dirty data on chain by other users, can be further improved the second account
The safety of notebook data.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Four embodiment of the invention is related to a kind of insert arrangement, as shown in fig. 7, comprises: data generation module 401 is handed over
Easy detection module 402;
Specifically, data generation module 401 obtain target for replicating the account book data of destination node in block chain
First account book data of node;It trades detection module 402, for detecting destination node there are when reading task, according to first
Account book data execute read operation.
In one example, the account book data for replicating destination node in block chain, obtain the first account book number of destination node
According to, comprising: when detecting that transaction task occurs for destination node, the account book data of destination node in block chain are replicated, mesh is obtained
Mark the first account book data of node.
In one example, transaction task specifically: writing task;If detecting destination node, there are reading task, bases
First account book data execute read operation, comprising: if detecting that destination node exists occurring in the preset duration after writing task
Reading task obtains the second account book data then according to writing task and the first account book data;It is executed according to the second account book data and reads behaviour
Make.
In one example, according to writing task and the first account book data, the second account book data are obtained, comprising: to the first account
Notebook data executes the write operation of writing task characterization, obtains the second account book data.
In one example, after executing read operation according to the second account book data, further includes: read destination node
Account book data;According to the account book data of destination node, judging writing task, whether cochain is successful;When judgement writing task cochain failure
When, data rewind operation is executed to the second account book data.
In one example, according to the account book data of destination node, judging writing task, whether cochain is successful, comprising: comparison
The account book data of destination node and the second account book data;If the account book data of destination node are identical with the second account book data, sentence
Determine the success of writing task cochain;Otherwise, then determine that writing task cochain fails.
Compared with prior art, a kind of transaction control that present embodiment provides, appoints even if there is transaction in destination node
In the case where business, and detect destination node there are reading task, since read operation can be executed according to the first account book data, because
This can achieve the purpose that the response efficiency for improving reading task with the operation of parallel processing reading task;By thus according to the first account book
The read operation that data execute, and the first account book data are obtained by replicating the account book data of destination node, therefore it can be with
Guarantee the accuracy of the first account book data, and then can guarantee the accuracy of the read operation executed according to the first account book data.
It is not difficult to find that present embodiment is Installation practice corresponding with first embodiment, present embodiment can be with
First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment
Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in
In first embodiment.
Fifth embodiment of the invention is related to a kind of insert arrangement, as shown in Figure 8, comprising: at least one processor 501;
And the memory 502 with the communication connection of at least one processor 501;Wherein, be stored with can be by least one for memory 502
The instruction that processor 501 executes, instruction is executed by least one processor 501, so that at least one processor 501 is able to carry out
Above-mentioned transaction control method, wherein
Memory 502 is connected with processor 501 using bus mode, and bus may include the bus of any number of interconnection
And bridge, bus is by one or more processors 501 together with the various circuit connections of memory 502.Bus can also will be all
As peripheral equipment, voltage-stablizer and management circuit or the like various other circuit connections together with, these are all this fields
Known, therefore, it will not be further described herein.Bus interface provides interface between bus and transceiver.
Transceiver can be an element, be also possible to multiple element, such as multiple receivers and transmitter, provide for being situated between in transmission
The unit communicated in matter with various other devices.The data handled through processor 501 are passed on the radio medium by antenna
Defeated, further, antenna also receives data and transfers data to processor 501.
Processor 501 is responsible for management bus and common processing, can also provide various functions, including timing, periphery connects
Mouthful, voltage adjusting, power management and other control functions.And memory 502 can be used for storage processor 501 and execute
Used data when operation.
Sixth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
Above-mentioned transaction control method is realized when program is executed by processor.
It will be understood by those skilled in the art that implementing the method for the above embodiments is that can pass through
Program is completed to instruct relevant hardware, which is stored in a storage medium, including some instructions are used so that one
A equipment (can be single-chip microcontroller, chip etc.) or processor (processor) execute each embodiment the method for the application
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (9)
1. a kind of transaction control method, which is characterized in that be applied to insert arrangement, comprising:
The account book data for replicating destination node in block chain, obtain the first account book data of the destination node;
If detecting the destination node, there are reading tasks, read operation is executed according to the first account book data.
2. transaction control method according to claim 1, which is characterized in that the account of destination node in the duplication block chain
Notebook data obtains the first account book data of the destination node, comprising:
When detecting that transaction task occurs for the destination node, the account book data of destination node in block chain are replicated, institute is obtained
State the first account book data of destination node.
3. transaction control method according to claim 2, which is characterized in that
The transaction task specifically: writing task;
If described detect the destination node there are reading task, read operation, packet are executed according to the first account book data
It includes:
If detecting the destination node, there are reading tasks, then according to occurring in the preset duration after the writing task
Writing task and the first account book data, obtain the second account book data;
Read operation is executed according to the second account book data.
4. transaction control method according to claim 3, which is characterized in that described according to the writing task and described first
Account book data obtain the second account book data, comprising:
The write operation that the first account book data are executed with the writing task characterization, obtains the second account book data.
5. transaction control method according to claim 3, which is characterized in that held described according to the second account book data
After row read operation, further includes:
Read the account book data of the destination node;
According to the account book data of the destination node, judging the writing task, whether cochain is successful;
When determining writing task cochain failure, data rewind operation is executed to the second account book data.
6. transaction control method according to claim 4, which is characterized in that the account book number according to the destination node
According to judging the writing task, whether cochain is successful, comprising:
Compare the account book data and the second account book data of the destination node;
If the account book data of the destination node are identical with the second account book data, determine the writing task cochain at
Function;Otherwise, then determine the writing task cochain failure.
7. a kind of transaction control device characterized by comprising data generation module, transaction detection module;
The data generation module obtains the of the destination node for replicating the account book data of destination node in block chain
One account book data;
The transaction detection module, for detecting the destination node there are when reading task, according to the first account book number
According to execution read operation.
8. a kind of insert arrangement characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the control of the transaction as described in any one of claim 1 to 6
Method.
9. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is processed
The transaction control method as described in any one of claim 1 to 6 is realized when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615312.6A CN110517124A (en) | 2019-07-09 | 2019-07-09 | Transaction control method and device, insert arrangement, computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910615312.6A CN110517124A (en) | 2019-07-09 | 2019-07-09 | Transaction control method and device, insert arrangement, computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110517124A true CN110517124A (en) | 2019-11-29 |
Family
ID=68622371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910615312.6A Pending CN110517124A (en) | 2019-07-09 | 2019-07-09 | Transaction control method and device, insert arrangement, computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110517124A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731674A (en) * | 2015-02-02 | 2015-06-24 | 北京忆恒创源科技有限公司 | Method and device for storing electronic system firmware through MLC NVM |
CN107392610A (en) * | 2017-03-06 | 2017-11-24 | 钱德君 | A kind of implementation method in the authentic data source of distributed network |
CN108462568A (en) * | 2018-02-11 | 2018-08-28 | 西安电子科技大学 | A kind of secure file storage and sharing method based on block chain |
CN109300036A (en) * | 2018-09-14 | 2019-02-01 | 百度在线网络技术(北京)有限公司 | The bifurcated homing method and device of block chain network |
CN109379418A (en) * | 2018-10-09 | 2019-02-22 | 上海点融信息科技有限责任公司 | Method, equipment and the storage medium of file based on block chain processing business system |
US20190158274A1 (en) * | 2017-11-20 | 2019-05-23 | Acronis International Gmbh | Blockchain-based media content authentication methods and systems |
-
2019
- 2019-07-09 CN CN201910615312.6A patent/CN110517124A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731674A (en) * | 2015-02-02 | 2015-06-24 | 北京忆恒创源科技有限公司 | Method and device for storing electronic system firmware through MLC NVM |
CN107392610A (en) * | 2017-03-06 | 2017-11-24 | 钱德君 | A kind of implementation method in the authentic data source of distributed network |
US20190158274A1 (en) * | 2017-11-20 | 2019-05-23 | Acronis International Gmbh | Blockchain-based media content authentication methods and systems |
CN108462568A (en) * | 2018-02-11 | 2018-08-28 | 西安电子科技大学 | A kind of secure file storage and sharing method based on block chain |
CN109300036A (en) * | 2018-09-14 | 2019-02-01 | 百度在线网络技术(北京)有限公司 | The bifurcated homing method and device of block chain network |
CN109379418A (en) * | 2018-10-09 | 2019-02-22 | 上海点融信息科技有限责任公司 | Method, equipment and the storage medium of file based on block chain processing business system |
Non-Patent Citations (1)
Title |
---|
木霖森77: "CopyOnWrite写时复制", 《HTTPS://BLOG.CSDN.NET/MULINSEN77/ARTICLE/DETAILS/89051624》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102823222B (en) | For the method being identified and verifying RFID tags by reader | |
US20210049715A1 (en) | Blockchain-based data procesing method, apparatus, and electronic device | |
US9355206B2 (en) | System and method for automated functional coverage generation and management for IC design protocols | |
CN109726229A (en) | A kind of block chain date storage method and device | |
CN108648078A (en) | A kind of transaction preprocess method, device and electronic equipment | |
Wouters et al. | Dismantling DST80-based immobiliser systems | |
CN109992285A (en) | Block chain code block standalone upgrade method, apparatus and electronic equipment | |
CN112559635B (en) | Service processing method, device, equipment and medium for Ethernet alliance chain node | |
EP3949251A1 (en) | Local ledger block chain for secure updates | |
CN110505311A (en) | A kind of across the chain exchange method of isomorphism block chain and system | |
CN109587131A (en) | Data communications method and device between a kind of block chain network | |
US9684750B1 (en) | Concurrent design process | |
CN101169755A (en) | Test pin free contact type CPU card test method | |
CN103677754A (en) | Method and system for parallel structure for optimizing application program | |
CN110751486B (en) | Intelligent contract replay proof method, system, electronic equipment and storage medium | |
CN109447553A (en) | A kind of checking method of inventory, system and terminal device | |
CN110517124A (en) | Transaction control method and device, insert arrangement, computer readable storage medium | |
US9619608B1 (en) | Concurrent design process | |
CN106708445A (en) | Link selection method and device | |
CN107430533B (en) | A kind of data verification method and device | |
CN115271714A (en) | Automatic safety evaluation method of block chain consensus mechanism | |
CN112819464B (en) | Intelligent contract processing method, processing device, terminal equipment and storage medium | |
CN107678917A (en) | Test machine automatic management method, apparatus, equipment and storage medium | |
CN113449034A (en) | Intelligent contract data security management method, system and storage medium based on block chain network | |
CN113760751A (en) | Method for generating test case, electronic device 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191129 |