CN110070445A - A kind of transaction processing method and device based on block catenary system - Google Patents

A kind of transaction processing method and device based on block catenary system Download PDF

Info

Publication number
CN110070445A
CN110070445A CN201910350093.3A CN201910350093A CN110070445A CN 110070445 A CN110070445 A CN 110070445A CN 201910350093 A CN201910350093 A CN 201910350093A CN 110070445 A CN110070445 A CN 110070445A
Authority
CN
China
Prior art keywords
transaction
historical trading
node
mark
conflict
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
Application number
CN201910350093.3A
Other languages
Chinese (zh)
Other versions
CN110070445B (en
Inventor
张开翔
范瑞彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910350093.3A priority Critical patent/CN110070445B/en
Publication of CN110070445A publication Critical patent/CN110070445A/en
Priority to PCT/CN2020/080520 priority patent/WO2020220860A1/en
Application granted granted Critical
Publication of CN110070445B publication Critical patent/CN110070445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the invention discloses a kind of transaction processing method and device based on block catenary system, wherein method includes: that the first node in block catenary system receives the transaction request that client device is sent, and according to transaction request include first transaction mark, determine the consequences of hostilities of the first transaction, and then instructed according to the clash handle that the consequences of hostilities of the first transaction and transaction request include, the first transaction is handled.In the embodiment of the present invention, collision detection is carried out to the first transaction by the mark based on transaction, may not need the complete transaction data of comparison, so as to improve the efficiency of trading processing in block catenary system;And, transaction ID and clash handle instruction can be configured by client device, therefore different clash handle instructions can be set based on the requirement of different business scenario and client device, that is to say, that the transaction processing method in the embodiment of the present invention is more in line with actual conditions.

Description

A kind of transaction processing method and device based on block catenary system
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to a kind of transaction based on block catenary system Processing method and processing device.
Background technique
With the development of computer technology, more and more technical applications in financial field, traditional financial industry by It walks and changes to financial technology (Fintech), block chain technology is no exception, but since the safety of financial industry, real-time are wanted It asks, also to technology, more stringent requirements are proposed.Multiple nodes usually can be set in block catenary system, it can between multiple nodes To communicate with each other, in general, client device can some node into block catenary system send transaction request, the section After point receives transaction request, transaction can handle, and corresponding block of trading can be generated by the common recognition with other nodes Information.In actual operation, due to the diversity of type of service, the trade fair that block catenary system is handled whithin a period of time is very It is more, therefore, how each transaction is rationally handled, the development of block catenary system is very important.
In the prior art, node can usually carry out transaction request after the transaction request for receiving client transmission Parsing obtains transaction data, such as type of service belonging to the recipient of initiator, transaction to trade and transaction etc.;Further Ground, node can compare the transaction data for the historical trading that transaction data is handled with block catenary system, however, it is determined that transaction It is clashed with historical trading, then can be instructed according to clash handle preset in block catenary system and transaction is handled.So And using this kind of mode, the data volume for including in transaction data is more, it may be necessary to expend longer time and complete transaction data With the comparison process of the transaction data of historical trading, it is generally the case that the transaction in block catenary system can be triggered frequently, because This using aforesaid way may can not handle multiple transaction in time, cause the efficiency of trading processing in block catenary system compared with Difference.
To sum up, a kind of transaction processing method based on block catenary system is needed at present, is handed over to improve in block catenary system Tractable efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of transaction processing method and device based on block catenary system, to improve block chain The efficiency of trading processing in system.
In a first aspect, a kind of transaction processing method based on block catenary system provided in an embodiment of the present invention, the method Include:
First node in block catenary system receives the transaction request that client device is sent, and the transaction request includes the The mark and clash handle instruction of one transaction, the clash handle instruction, which exists including first transaction with historical trading, to conflict When to it is described first transaction processing mode, and/or, it is described first transaction with historical trading is not present conflict when to described first The processing mode of transaction;Further, the first node determines first transaction according to the mark of first transaction Consequences of hostilities, and instructed according to the consequences of hostilities and the clash handle of first transaction, at first transaction Reason, the consequences of hostilities of first transaction, which is used to indicate described first and trades to whether there is with historical trading, to conflict.
It, can be by the way of the mark of comparison transaction to first by the mark of setting transaction in above-mentioned technical proposal Transaction carries out collision detection, without comparing transaction data, so that carrying out the process of collision detection more to transaction Quickly, the efficiency of trading processing in block catenary system is improved;And be configured since clash handle is instructed by client device, Therefore different clash handle instructions can be set based on the requirement of different business scenario and client device, that is to say, that Transaction processing method in above-mentioned technical proposal is more in line with actual conditions.
Optionally, the first node determines the consequences of hostilities of first transaction according to the mark of first transaction, It include: the key assignments that the first node determines first transaction according to the mark of first transaction first;Further, institute State the mark that first node obtains target histories transaction from the first presetting database, and the mark that the target histories are traded Store default memory headroom;Wherein, first presetting database includes the mark of the multiple historical trading and described more The key assignments of a historical trading, the target histories transaction are the key of key assignments and first transaction in first presetting database It is worth matched historical trading;If it is determined that there is the mark with first transaction in the default memory headroom in the first node Matched target histories transaction, it is determined that first transaction exists with historical trading to conflict.
In the embodiment of the present invention, since the response speed of the first presetting database is usually relatively slow, above-mentioned technical proposal The mark of the first transaction and the mark of the target histories transaction stored in the first memory headroom are compared in advance, and it is not straight It connects and compares the mark of the mark of the first transaction and the historical trading stored in the first presetting database, conflict can be improved The response speed of detection process.On the one hand, it is screened based on the target histories transaction in the first presetting database of key-value pair, it can To reduce the occupied memory of screening process, screening efficiency is improved;On the other hand, it is handed over if existing in default memory headroom with first The matched target histories transaction of easy mark, then can directly determine the first transaction and conflict with historical trading, so as to avoid Subsequent collision detection process is executed, the efficiency of collision detection is improved.
Optionally, the method also includes: the first node if it is determined that there is no with described the in default memory headroom The matched target histories transaction of the mark of one transaction, then the mark by the first transaction is input to the first default filtering model, described First default filtering model is to be obtained using the Transaction Information training of the multiple historical trading, the transaction of each historical trading Information includes the mark of each historical trading, key assignments, transaction data, clash handle instruction, conflict number;Further, Conflict if the result of the first default filtering model output is not present for first transaction with historical trading, described first Node determines the first transaction, and there is no conflict with historical trading.
In above-mentioned technical proposal, the target histories transaction in based on memory carries out first time collision detection to the first transaction Afterwards, the first default filtering model can be used, second of collision detection is carried out to the first transaction, so as to improve collision detection Accuracy rate;And the process of second of collision detection is also possible to execute in default memory headroom, it is straight so as to avoid The historical trading connect in the first presetting database carries out collision detection, to improve detection efficiency.That is, above-mentioned technical side In case, by the way that based on the detection process twice in default memory headroom, the conflict of major part can be traded be detected, Detection accuracy is improved while improving detection efficiency.
Optionally, the method also includes: if the result of the first default filtering model output is first transaction Exist with historical trading and conflict, then in the mark and first presetting database that the first node is traded described first The mark of one or more historical tradings compares, however, it is determined that exists in first presetting database and first transaction The matched historical trading of mark, it is determined that it is described first transaction with historical trading presence conflicts;If it is determined that described first is default There is no the matched historical tradings of mark with first transaction in database, it is determined that first transaction and historical trading There is no conflicts.
In above-mentioned technical proposal, if not detecting the first friendship based on the process of collision detection twice in default memory headroom Easy consequences of hostilities then can carry out collision detection to the first transaction based on the historical trading in the first presetting database, thus The available consequences of hostilities to the first transaction, and the consequences of hostilities for the first transaction that detection is obtained is more accurate.
Optionally, clash handle instruction includes following any one or any multinomial: first transaction and history Refusal executes first transaction, first transaction and historical trading in the presence of executing described the when conflicting when transaction has conflict One transaction, first transaction, which exist that described first trades when conflicting with historical trading, is redirected to fault-tolerant contract, described the There is no first transaction is executed when conflicting with historical trading for one transaction;The first node is rushed according to first transaction Prominent result and clash handle instruction handle first transaction, comprising: if first transaction and historical trading There is no conflicts, and clash handle instruction is that first transaction executes described first when being not present and conflict with historical trading Transaction, alternatively, if it is described first transaction with historical trading exist conflict, and the clash handle instruction be it is described first trade and Historical trading executes first transaction when there is conflict, then the first node executes first transaction;If described first Transaction with historical trading exist conflict, and the clash handle instruction be it is described first transaction with historical trading in the presence of conflict when by First transaction is redirected to fault-tolerant contract, then the first node obtains the fault-tolerant conjunction for including in the clash handle instruction Address about, and send to the client device address of the fault-tolerant contract;If first transaction is deposited with historical trading Conflicting, and clash handle instruction has refusal when conflicting with historical trading for first transaction and executes first friendship Easily, then the first node to the client device sends conflict indicated value, and the conflict indicated value is used to indicate described the One transaction exists with the historical trading to conflict.
In above-mentioned technical proposal, clash handle instruction is to be arranged by client device, therefore can be set based on client The clash handle instruction that standby requirement or business scenario setting tally with the actual situation, correspondingly, based at clash handle instruction The first transaction of reason, can make the processing result of the first transaction meet the needs of client device, and can be more in line with reality Situation.
Optionally, the first node executes first transaction, comprising: the first node is if it is determined that the block chain The quantity for the node reached common understanding in system to first transaction is greater than or equal to preset threshold, then generates first transaction Corresponding block information;The first node updates first presetting database according to the Transaction Information of first transaction And/or the default memory headroom.
In above-mentioned technical proposal, the first presetting database and default memory are updated by using the block information of the first transaction Space can be used updated first presetting database and default memory headroom and carry out collision detection to next transaction, from And trading processing process is made to meet requirement of real-time, improve the accuracy of trading processing.
Optionally, after the corresponding block information of the first node generation first transaction, further includes: described first Node sends the corresponding block information of first transaction to the client device, and the block information is used for the client Equipment is modified first transaction.
In above-mentioned technical proposal, since clash handle instruction is client device setting, it is thus possible to can exist certain The transaction clashed is still processed, can be with by being modified using client device to transaction after having handled transaction Avoid trading processing process from biggish fault occur, improve block catenary system traffic handing capacity and business processing it is accurate Property.
Optionally, corresponding first verification of the multiple historical trading data is also stored in first presetting database Value, first check value are that the first node verifies the multiple historical trading data using default checking algorithm It obtains;The first node generates the corresponding block information of first transaction, comprising: the first node generates described the The corresponding original block information of one transaction, refined point hand over first check value and described first using the default checking algorithm Easy corresponding Transaction Information is verified, and the second check value is obtained;Further, the first node is by second check value It is added in the original block information, obtains the corresponding block information of first transaction.
In above-mentioned technical proposal, the first check value can be used for identifying the handled historical trading crossed of block catenary system, lead to It crosses after the transaction of processing first, updates the first check value using the first transaction and obtain the second check value, on the one hand, area can be made Multiple nodes in block catenary system are based on identical second check value and realize common recognition, to improve trading processing in block catenary system Accuracy;On the other hand, it can make block catenary system during handling transaction locating for real-time update block catenary system The historical trading managed, to improve the accuracy of subsequent processing transaction.
Optionally, the first node updates first presetting database according to the Transaction Information of first transaction And/or the default memory headroom, comprising: it is default that the mark that the first node is traded using described first updates described first Filtering model, obtains the second default filtering model, and will be described in default memory headroom and/or first presetting database First default filtering model is updated to the described second default filtering model;Further, the first node is handed over described first Easy corresponding Transaction Information and second check value are added in first presetting database, and verify using described second Value updates first check value in the default memory headroom.
In above-mentioned technical proposal, the first presetting database is successively updated by using the block information of the first transaction and is preset The check value of the first default filtering model, historical transactional information and historical trading in memory headroom, can be using based on default The collision detection method twice of memory headroom and based on the successively collision detection method of the first presetting database to next transaction Collision detection is carried out, so that trading using the above method to each carries out collision detection, improves trading processing Efficiency.
Second aspect, the embodiment of the present invention provide a kind of transaction processing method based on block catenary system, the method packet It includes:
First node of the client device into block catenary system sends transaction request, and the transaction request includes the first friendship Easy mark and clash handle instruction;Further, the client device receives the fault-tolerant contract that the first node is sent Address call fault-tolerant processing module to be modified first transaction and according to the address of the fault-tolerant contract.
Optionally, the method also includes: the client device receives that the first node sends described first to hand over Easy corresponding block information;Further, the client device obtains first transaction stored in the block information Mark, however, it is determined that in the second presetting database of the client device exist mark with it is described first trade mark match Historical trading, then first transaction is modified according to default processing rule using the fault-tolerant processing module;It is described Multiple historical tradings of the client device processing are stored in second presetting database.
Optionally, it is described it is default processing rule include output journal record, output the second presetting database transaction record, Invalid transaction cancels transaction, freezes any one or any multinomial in subsequent transaction.
The third aspect, the embodiment of the present invention provide a kind of traction processing apparatus based on block catenary system, described device packet It includes:
Receiving module, for receiving the transaction request of client device transmission, the transaction request includes the first transaction Mark and clash handle instruction;The clash handle instruction includes that first transaction exists when conflicting with historical trading to described The processing mode of first transaction, and/or, first transaction is not present when conflicting to the place of first transaction with historical trading Reason mode;
Collision detection module determines the consequences of hostilities of first transaction, institute for the mark according to first transaction The consequences of hostilities for stating the first transaction, which is used to indicate described first and trades to whether there is with historical trading, to conflict;
Processing module, for being instructed according to the consequences of hostilities and the clash handle of first transaction, to described first Transaction is handled.
Optionally, the collision detection module is used for: determining first transaction according to the mark of first transaction Key assignments;Further, the mark of target histories transaction is obtained from the first presetting database, and the target histories are traded The default memory headroom is arrived in mark storage;First presetting database includes the mark of the multiple historical trading and described The key assignments of multiple historical tradings, the target histories transaction are key assignments and first transaction in first presetting database The historical trading of key value match;If it is determined that there are the matched target histories of mark with first transaction in default memory headroom Transaction, it is determined that first transaction exists with historical trading to conflict.
Optionally, the collision detection module is also used to: if it is determined that there is no hand over described first in default memory headroom The mark of first transaction is then input to the first default filtering model by the matched target histories transaction of easy mark, and described first Default filtering model is to be obtained using the Transaction Information training of the multiple historical trading, the Transaction Information of each historical trading Mark, key assignments, transaction data, clash handle instruction, conflict number including each historical trading;Further, if institute Stating the result of the first default filtering model output, there is no conflict with historical trading for first transaction, it is determined that the first transaction There is no conflict with historical trading.
Optionally, the collision detection module is also used to: if the result of the first default filtering model output is described First transaction exists with historical trading to conflict, then the mark described first traded and one in first presetting database Or the mark of multiple historical tradings compares, however, it is determined that there is the mark with first transaction in first presetting database Know matched historical trading, it is determined that first transaction exists with historical trading to conflict;If it is determined that first preset data There is no the matched historical tradings of mark with first transaction in library, it is determined that first transaction is not deposited with historical trading Conflicting.
Optionally, clash handle instruction includes following any one or any multinomial: first transaction and history Refusal executes first transaction, first transaction and historical trading in the presence of executing described the when conflicting when transaction has conflict One transaction, first transaction, which exist that described first trades when conflicting with historical trading, is redirected to fault-tolerant contract, described the There is no first transaction is executed when conflicting with historical trading for one transaction;The processing module is used for: if first transaction It is not present and conflicts with historical trading, and clash handle instruction is that first transaction is held when being not present and conflict with historical trading Row first transaction, alternatively, conflicting if first transaction exists with historical trading, and clash handle instruction is described First transaction executes first transaction when existing and conflict with historical trading, then executes first transaction;If described first hands over Easily exist with historical trading and conflict, and clash handle instruction exists when conflicting for first transaction with historical trading by institute It states the first transaction and is redirected to fault-tolerant contract, then obtain the address for the fault-tolerant contract for including in clash handle instruction, and to The client device sends the address of the fault-tolerant contract;Conflict if first transaction exists with historical trading, and described Clash handle instruction executes described first in the presence of refusal when conflicting with historical trading for first transaction and trades, then to the visitor Family end equipment transmission conflict indicated value, the conflict indicated value are used to indicate first transaction and there is punching with the historical trading It is prominent.
Optionally, the processing module is used for: if it is determined that reaching common understanding in the block catenary system to first transaction The quantity of node be greater than or equal to preset threshold, then generate the corresponding block information of first transaction;Further, according to The Transaction Information of first transaction updates first presetting database and/or the default memory headroom.
Optionally, it after the processing module generates the corresponding block information of first transaction, is also used to: to the visitor Family end equipment sends the corresponding block information of first transaction, and the block information is for the client device to described the One transaction is modified.
Optionally, corresponding first verification of the multiple historical trading data is also stored in first presetting database Value, first check value are that the first node verifies the multiple historical trading data using default checking algorithm It obtains;The processing module is specifically used for: generating the corresponding original block information of first transaction;Further, it uses The default checking algorithm verifies first check value and the corresponding Transaction Information of first transaction, obtains second Check value, and second check value is added in the original block information, obtain the corresponding block of first transaction Information.
Optionally, the processing module is used for: the mark traded using described first updates the first default filter module Type obtains the second default filtering model, and described first in default memory headroom and/or first presetting database is pre- If filtering model is updated to the described second default filtering model;Further, by the first corresponding Transaction Information of transaction and Second check value is added in first presetting database, and updates the default memory using second check value First check value in space.
Fourth aspect, the embodiment of the present invention provide a kind of traction processing apparatus based on block catenary system, described device packet It includes:
Transceiver module sends transaction request for the first node into block catenary system, and the transaction request includes the The mark and clash handle instruction of one transaction;And receive the address for the fault-tolerant contract that the first node is sent;
Processing module, for the address according to the fault-tolerant contract, call fault-tolerant processing module to described first trade into Row amendment.
Optionally, the receiving module is also used to: receiving the corresponding area of first transaction that the first node is sent Block message;The processing module is also used to: obtaining the mark of first transaction stored in the block information, however, it is determined that visitor There is the matched historical trading of mark of mark with first transaction in second presetting database of family end equipment, then uses institute It states fault-tolerant processing module and first transaction is modified according to default processing rule;It is stored in second presetting database There are multiple historical tradings of the client device processing.
Optionally, it is described it is default processing rule include output journal record, output the second presetting database transaction record, Invalid transaction cancels transaction, freezes any one or any multinomial in subsequent transaction.
5th aspect, the embodiment of the present invention also provides a kind of computer readable storage medium, including instruction, when it is being calculated When being run on the processor of machine, so that the processor of computer is executed such as any one of above-mentioned first aspect and/or second aspect institute The method stated.
6th aspect, the embodiment of the present invention also provides a kind of computer program product, when it is on the processor of computer When operation, so that the processor of computer executes above-mentioned first aspect and/or the described in any item methods of second aspect.
These aspects or other aspects of the application can more straightforward in the following description.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of system architecture schematic diagram of block catenary system provided in an embodiment of the present invention;
Fig. 2 is a kind of corresponding process signal of transaction processing method based on block catenary system provided in an embodiment of the present invention Figure;
Fig. 3 is the structural schematic diagram of a kind of client device and first node that provide in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of the traction processing apparatus based on block catenary system provided in the embodiment of the present invention Figure;
Fig. 5 is a kind of structural representation of the traction processing apparatus based on block catenary system provided in the embodiment of the present invention Figure;
Fig. 6 is a kind of structural schematic diagram of the terminal device provided in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of the rear end equipment provided in the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
A large amount of transaction is generally involved in the field financial technology (Fintech), by using the realization pair of block chain technology The processing of transaction can make the transaction between different nodes smoothly execute.Therefore, it improves and guarantees in block catenary system at transaction The efficiency of reason, it is particularly important for the development of financial industry.
A kind of system architecture schematic diagram Fig. 1 applicable by the transaction processing method in the embodiment of the present invention, such as Fig. 1 institute Show, may include in the system architecture in block catenary system one or more nodes (than as schematically shown in Figure 1 go out node 101, Node 102, node 103 and node 104) and client device 200.Wherein, one or more nodes in block catenary system can To safeguard block catenary system jointly.Client device 200 can pass through access network and one or more in block catenary system A node is communicated.
In the embodiment of the present invention, block catenary system can be by multiple nodes form it is point-to-point (Peer To Peer, P2P) network.P2P be one kind operate in transmission control protocol (Transmission Control Protocol, TCP) agreement it On application layer protocol, node in block catenary system can be reciprocity each other, central node is not present in system, therefore each Node can randomly connect other nodes.
By taking the process of exchange between client device 200 and node 102 as an example, in specific implementation, client device 200 can To send transaction request to node 102, after node 102 receives transaction request, friendship can be got by parsing transaction request Easy data, and number of deals can be sent to other nodes (i.e. node 101, node 103 and node 104) in block catenary system According to.Further, 101~node of node 104 can be known together based on transaction data, if common recognition passes through, friendship can be generated Easy corresponding block information;If common recognition does not pass through, node 102 (or may be other nodes) can be to client device 200 send transaction response message, and transaction response message is used to indicate Fail Transaction.
In the embodiment of the present invention, the node in block catenary system can have multiple functions, for example, routing function, transaction Function, block chain function and common recognition function etc..Specifically, the node in block catenary system can send other nodes The information such as transaction data send more nodes to realize the communication between node;Alternatively, the node in block catenary system Can be used for that user is supported to trade;Alternatively, the node in block catenary system can be used for the All Activity on log history; Alternatively, the node in block catenary system can be by verifying and recording the new block in transaction generation block chain.In practical application, Routing function is the function that each node in block catenary system must have, and other functions can be by those skilled in the art's root It is configured according to actual needs.
It should be noted that a node in block catenary system can be on a physical machine (server), and one Node can specifically refer to a series of process or processes run in server.For example, the node in 1 network of block chain 101 can be the process run on a server, or may be the server referred to where node, not make specifically It limits.
Based on system architecture illustrated in Figure 1, Fig. 2 is a kind of friendship based on block catenary system provided in an embodiment of the present invention The corresponding flow diagram of easy to handle method, this method comprises:
Step 201, the mark and clash handle instruction of the first transaction of client device setting.
In the embodiment of the present invention, the first transaction is then can be set if it is determined that need to be implemented the first transaction in client device Mark.In one possible implementation, client device can be according to business scenario setting first belonging to the first transaction The mark of transaction, the affiliated business scenario of the first transaction may include business belonging to the first transaction and the first transaction in business Process (i.e. operation flow).For example, in one example, the execution process of order business may include creation order flow Journey, storage order process, inquiry order process etc. can be with if operation flow belonging to the first transaction is creation order process The mark that the order number for using the first transaction creation to obtain is traded as first.Wherein, the length of order number can be by this field Technical staff is rule of thumb configured, for example can be the data of the variable-length less than or equal to 256 bytes, or can also The data for thinking regular length, are specifically not construed as limiting.In another example, the execution process of interactive data service may include Both sides transmit data flow, direction other users transmitting data flow etc., if operation flow belonging to the first transaction is both sides Data flow is transmitted, then the mark of the first transaction may include the mark of data sender, the mark of data receiver and data Check value.For example, if the first transaction is user A1To user A2The transaction of data is transmitted, then the mark of the first transaction can wrap Include user A1Address, user A2Address and data hash value.Wherein, user A1And/or user A2Address can be account Number name perhaps or mail address or can also be user name is specifically not construed as limiting.
Further, the corresponding clash handle instruction of the first transaction, clash handle instruction can also be arranged in client device It may include processing mode when the first transaction conflicts with historical trading presence to the first transaction, and/or, the first transaction and history There is no the processing modes traded when conflict to first for transaction.In one example, the first transaction exists with historical trading conflicts When to first transaction processing mode may include execute first transaction, by first transaction be redirected to fault-tolerant contract, refusal hold Any one in the transaction of row first;The processing mode traded when conflicting to first is not present with historical trading for first transaction can be with Including executing the first transaction.
In one possible implementation, the clash handle instruction that client device is sent may include processing indicated value And additional data.Table 1 is the schematic table of several possible clash handle instructions provided in an embodiment of the present invention.
Table 1: the signal of several clash handle instructions
Clash handle instruction Meaning
1 Refusal executes
2 It executes
3:http: //address/0x289 It is redirected to fault-tolerant contract
4 Refusal executes and issues alarm
5 Execution and print log
0 It executes
As shown in table 1, it is defined in the embodiment of the present invention at 5 kinds of conflicts that the first transaction exists with historical trading when conflicting Reason instruction, respectively " 1 ", " 2 ", " 3:http: //address/0x289 ", " 4 ", " 5 ", also define the first transaction and history There is no a kind of clash handle instructions when conflict for transaction, i.e., " 0 ".Wherein, clash handle instructs " 0 ", " 1 ", " 2 ", " 4 ", " 5 " Additional data all can be empty, it can be 3 that clash handle, which instructs the processing indicated value of " 3:http: //address/0x289 ", Additional data can be http://address/0x289.Specifically, conflicting if the first transaction exists with historical trading, and rush Prominent process instruction is " 1 ", then first node can be refused to execute the first transaction;If the first transaction is with historical trading, there is no punchings It is prominent, and clash handle instructs to exist for " 0 " or the first transaction with historical trading and conflict, and clash handle instruction is " 2 ", then First node can execute the first transaction;Conflict if the first transaction exists with historical trading, and clash handle instruction is " 3 ", then First node can execute the first transaction, and the first transaction can be sent to contract address is http://address/0x289 Fault-tolerant processing device be modified;Conflict if the first transaction exists with historical trading, and clash handle instructs as " 4 ", then the One node can be refused to execute the first transaction, and can issue warning information;Conflict if the first transaction exists with historical trading, and Clash handle instruction is " 5 ", then first node can execute the first transaction, and can print the log note of the first transaction conflict Record, in order to subsequent misarrangement.
It should be noted that being generated in the specially same operation flow of conflict described in the embodiment of the present invention multiple The conflict of transaction, if the mark of the multiple transaction generated in the same operation flow is identical, multiple transaction can be conflict; If the mark of the multiple transaction generated in the same process of different business is identical or the different processes of same business in generate Multiple transaction mark it is identical, then it is multiple transaction do not conflict.For example, transaction B1For business a1Second procedure in The transaction of generation, trade B2For business a1Second procedure in the transaction that generates, trade B3For business a1First pass in generate Transaction, trade B4For business a2Second procedure in the transaction that generates, then due to the B that trades1With transaction B3Belong to same business Different processes, therefore even if transaction B1With transaction B3Mark it is identical, trade B1With transaction B3Also do not conflict;Accordingly, due to friendship Easy B1With transaction B4Belong to the same process of different business, therefore even if transaction B1With transaction B4Mark it is identical, trade B1With friendship Easy B4Also do not conflict;And it is directed to transaction B1With B2, due to the B that trades1With transaction B2Belong to the same process of same business, if therefore Trade B1With transaction B2Mark it is identical, then trade B1With transaction B2Conflict.
For transaction by the first transaction for creation order number, due to needing to guarantee the creation order process of the same business The order number that middle difference transaction creation obtains is different, therefore order number can be traded with unique identification one;If difference transaction is ordered Odd numbers is identical, then illustrates that different transaction are conflicts.In order to generate the order number not conflicted, can be set between adjacent transaction Order number is incremental, or the cryptographic Hash of random number sequence or transaction can also be added in different order numbers.
In the embodiment of the present invention, by the way that client device using business scenario as dimension, can be made to be same business scenario Transaction use same mark set-up mode so that transaction mark can characterize transaction in same business scenario Including multiple transaction in uniqueness;That is, mark of the embodiment of the present invention by client device setting transaction, it can Collision detection is carried out to transaction in a manner of using the mark of comparison transaction, without comparing specific transaction data, so as to So that the process for carrying out collision detection to transaction is more quick, the efficiency of trading processing in block catenary system is improved;And conflict Process instruction can be based on practical business scene by client device and be configured, so that trading processing process is more It corresponds to actual needs.
Step 202, first node of the client device into block catenary system sends transaction request.
Herein, client device can send transaction request to first node in several ways, such as can be by having Line mode sends transaction request to first node, or can also send transaction request, tool to first node wirelessly Body is not construed as limiting.
It in one example, may include the mark and clash handle instruction of the first transaction in transaction request.At another May include in example, in transaction request the first transaction mark, clash handle instruction and first transaction transaction data, first The transaction data of transaction may include key assignments, account, contract address of the first transaction etc..
Step 203, first node receives the transaction request that client device is sent, and according to the mark of the first transaction, really The consequences of hostilities of fixed first transaction.
In specific implementation, first node can parse transaction request, obtain the mark and clash handle instruction of the first transaction (or mark, transaction data and clash handle instruction of the first transaction).Further, first node can be according to the first transaction Mark, determine the first transaction and historical trading with the presence or absence of conflicting;Wherein, historical trading may include that first node is receiving The handled whole transaction crossed before to the transaction request of the first transaction.It should be noted that first node is asked in parsing transaction Before asking, the other nodes that transaction request can also be sent in block catenary system, so that other nodes execute the first transaction, In this way, multiple nodes in block catenary system can carry out block common recognition process after the transaction of execution first.Other nodes execute The process that the process of first transaction is referred to the first transaction of first node execution is realized that details are not described herein again.
In the embodiment of the present invention, historical trading be can store in the first presetting database of first node, be based on 1 institute of table The clash handle of signal instructs, and table 2 is the schematic table of the historical trading stored in the first presetting database of one kind.
Table 2: the signal of the historical trading stored in the first presetting database of one kind
Transaction ID Contract address Key assignments Transaction Account number Clash handle instruction Conflict number
a1x1 http://address/0x755 10.33 Y1 1 2
a2x2 http://address/0x733 14.24 Y1 0 0
a3x3 http://address/0x555 2.56 Y1 3 1
a4x4 http://address/0x755 10.33 Y1 4 3
a5x5 http://address/0x765 32.54 Y1 2 7
a6x6 http://address/0x755 10.33 Y1 0 0
a7x7 http://address/0x736 9.56 Y1 1 2
As shown in table 2, can store in the first presetting database the mark of each historical trading, contract address, key assignments, Transaction Account number, clash handle instruction and conflict number.For example, transaction is identified as a1x1Historical trading (for ease of description, letter Referred to as historical trading a1x1) contract address can be http://address/0x755, key assignments can be 10.33, Transaction Account number It can be Y1, clash handle instruction can for 1 (i.e. the historical trading conflicts with the historical trading presence before the historical trading, And refused to handle the historical trading), conflict number is 2 (i.e. existing to conflict twice).
It, can be with specifically, the contract address of transaction can be address of the contract on block chain of realizing service logic For the mark for the business that the data of one section of regular length, the contract address of transaction can belong to for exchange;As shown in table 2, history Trade a1x1, historical trading a4x4With historical trading a6x6Contract address it is identical, it can be said that bright historical trading a1x1, history hand over Easy a4x4With historical trading a6x6Affiliated business is identical.Correspondingly, the key assignments of transaction can be for the contract address of transaction and friendship Easy mark carries out what joint key assignments was calculated, and key assignments can be binary data of the length less than 255 bytes;Based on contract The key assignments that the mark of address and transaction obtains, can make collision detection process using operation flow as dimension.As shown in table 2, it goes through History transaction a1x1, historical trading a4x4With historical trading a6x6Key assignments it is identical, it may be said that bright historical trading a1x1, historical trading a4x4With historical trading a6x6It for the transaction in the same process of the same business, for example can be the process for creating order In transaction.With historical trading a1x1For, historical trading a1x1Transaction Account number can be by historical trading a1x1Cryptographic Hash table Show, first node can be according to historical trading a1x1Transaction Account number get historical trading a1x1Transaction Information, for example trade Initiator, transaction acceptance side, trading processing receipt, affiliated block of trading, the corresponding block information of transaction etc..Historical trading a1x1Clash handle instruction can refer to send historical trading a1x1The clash handle of client device configuration instructs, and conflicts Before number can refer to the transaction request for receiving the first transaction, historical trading a1x1With the history in the first presetting database There is the number of conflict, every determining historical trading a in transaction1x1Conflict is primary, then can be by historical trading a1x1Conflict number add 1。
In one possible implementation, in the mark and the first presetting database that first node can trade will first The marks of one or more historical tradings compare, however, it is determined that there is the mark with the first transaction in the first presetting database Matched historical trading can then determine that the first transaction exists with historical trading and conflict;If it is determined that in the first presetting database not In the presence of the matched historical trading of mark with the first transaction, then can determining the first transaction, there is no conflict with historical trading.With For the first presetting database that table 2 is illustrated, if the first transaction is identified as a1x1, then the first transaction and history can be determined There is conflict in transaction, if the first transaction is identified as a8x8, then can determining the first transaction, there is no conflict with historical trading.
In this implementation, by directly by the mark of the first transaction and the historical trading in the first presetting database Mark compares, and can determine that the first transaction whether there is with historical trading by a wheel collision detection process and conflicts, from And can simplify the process of collision detection, it is easy to implement.
In alternatively possible implementation, first node can successively execute first round collision detection to the first transaction A wheel collision detection or mostly wheel collision detection in the collision detection of~third round, wherein first round collision detection is rushed with the second wheel The process of prominent detection can be executed in default memory headroom, and the process of third round collision detection can be in the first preset data It is executed in library.First round collision detection~third round collision detection realization process is detailed below.
First round collision detection
In specific implementation, first node can obtain the contract address of the first transaction from the transaction data of the first transaction, And then can be carried out by joint key assignments and calculated for the mark of the first transaction and the contract address of the first transaction, obtain the key of the first transaction Value, and can obtain from the first presetting database and trade with the target histories of the key value match of the first transaction;For example, join According to the first presetting database that table 2 is illustrated, if the key assignments of the first transaction is 10.33, target histories transaction may include going through History transaction a1x1, historical trading a4x4With historical trading a6x6.Further, the mark that first node can trade target histories Store default memory headroom, or all information that the target histories stored in the first presetting database can also be traded Default memory headroom is arrived in (i.e. transaction ID, contract address, key assignments, Transaction Account number, clash handle instruction and conflict number) storage, Specifically it is not construed as limiting.When executing first round collision detection, first node can be empty by the mark of the first transaction and default memory Between the mark of target histories transaction of middle storage compare, however, it is determined that there is the mark with the first transaction in default memory headroom Matched target histories transaction can then determine that the first transaction exists with historical trading and conflict;If it is determined that in default memory headroom There is no the matched target histories of mark with the first transaction to trade, then can execute the second wheel collision detection.
In first round collision detection, due to the key assignments of target histories transaction and the key value match of the first transaction, mesh Marking historical trading and the first transaction can be the transaction in the same process of the same business.On the one hand, by based on the The identical target histories transaction of operation flow belonging to one transaction carries out first round collision detection to the first transaction, it is possible to reduce punching The number that transaction is compared in prominent detection process, improves the efficiency of collision detection.On the other hand, by the way that target histories are traded in advance Default memory headroom is stored, the process that comparison can be made to trade executes in default memory headroom, without pre- first If being executed in database, so as to improve the response speed of collision detection process.
In the embodiment of the present invention, first round collision detection can be adapted for the biggish scene of possibility that conflicts, if the first round The testing result of collision detection is conflict, then can determine that the first transaction exists with historical trading and conflict, by executing the first round Collision detection, the biggish transaction of the possibility that can will conflict detected, look into so as to be reduced in the first presetting database The number for asking historical trading improves the calculating speed of collision detection, saves overhead.
Second wheel collision detection
In the embodiment of the present invention, the first default filtering model is also provided in the first presetting database, if first segment Point receives the transaction request of the first transaction of client device transmission, then the stored in available first presetting database One default filtering model, and by the first default filtering model storage into default memory headroom.Correspondingly, if first round conflict inspection The testing result of survey does not conflict for the first transaction with historical trading, and (there is no the marks with the first transaction in i.e. default memory headroom The transaction of matched target histories), then the mark of the first transaction can be input to by first node stores in default memory headroom In first default filtering model.
Further, the first default filtering model can execute the second wheel collision detection to the first transaction, and can export The consequences of hostilities of first transaction;The consequences of hostilities of first transaction can be any one in the first result and the second result, the One result is used to indicate the first transaction with historical trading there is no conflicting, and the second result is used to indicate the first transaction and historical trading There may be conflicts.In this way, after the first transaction is inputted the first default filtering model by first node, if output result is the first knot Fruit, then can determining the first transaction, there is no conflict with historical trading;If output result be second as a result, if can execute third Take turns collision detection.
In specific implementation, the model structure of the first default filtering model can rule of thumb be carried out by those skilled in the art Setting, is specifically not construed as limiting.As an example, the first default filtering model can be the model obtained based on bit, than Such as Bloom filter;It is found according to experiment, if the memory of Bloom filter is smaller, will increase and output result is mistaken for the second knot The probability of fruit will cause the waste of system space if the memory of Bloom filter is larger.Therefore, the embodiment of the present invention is by real Test determination, by the memory setting of Bloom filter be 200M and based on the historical trading in nearest 3 years Transaction Information (including Mark, key assignments, transaction data, clash handle instruction, conflict number of historical trading etc.) when being trained to Bloom filter, The False Rate of output result of Bloom filter can be made less than 1%.By be arranged Bloom filter memory size and The historical trading of training Bloom filter, can not only save system space, but also can be improved the accuracy of output result.
It should be noted that above-mentioned is only a kind of illustrative simple declaration, those skilled in the art can also be according to reality Border needs to be arranged the memory of Bloom filter and/or the historical trading of training Bloom filter, above-mentioned setting are not constituted to this The restriction of scheme.In specific implementation, the memory of Bloom filter can be greater than 200M, or might be less that 200M, such as It can be 400M or 100M;Correspondingly, the historical trading of training Bloom filter can be the historical trading in nearest 2 years, or Person may be the historical trading in recent five years, specifically be not construed as limiting.
In the embodiment of the present invention, the second wheel collision detection can be adapted for the lesser scene of possibility that conflicts, if the second wheel The testing result of collision detection is not conflict, then can determine that the first transaction and historical trading there is no conflicting, pass through execution the Two wheel collision detection, the lesser transaction of the possibility that can will conflict detected.In the embodiment of the present invention, to the first present count Conflict is taken turns based on the first round collision detection and second in default memory headroom according to being first passed through before executing collision detection in library in advance Detection, the consequences of hostilities of available most of transaction are traded so as to be reduced to query history in the first presetting database Number, improve the calculating speed and efficiency of collision detection, save overhead.
Third round collision detection
If the output result of the second wheel collision detection is that the first transaction conflicts (the i.e. first default filtering model with historical trading The result of output, which exists for the first transaction with historical trading, to conflict), then first node can execute third round collision detection.Specifically Ground says that first node can compare the mark of the mark of the first transaction and the historical trading in the first presetting database, If it is determined that in the first presetting database exist with first transaction the matched historical trading of mark, then can determine the first transaction with There is conflict in historical trading;If it is determined that the matched historical trading of mark with the first transaction is not present in the first presetting database, Can then determining the first transaction, there is no conflict with historical trading.
In the embodiment of the present invention, it can be detected out by using first round collision detection and the second wheel collision detection most of Conflict transaction, due to first round collision detection and the second wheel collision detection be executed in default memory headroom, thus Response speed can be made very fast, improve the efficiency of collision detection.And third round collision detection can be adapted for any scene, If not obtaining the consequences of hostilities of the first transaction based on first round collision detection and the second wheel collision detection, third can be based on Wheel collision detection compares the first transaction with the historical trading in the first presetting database, so as to obtain the first transaction Consequences of hostilities.It, can be to avoid direct by using first round collision detection~third round collision detection in the embodiment of the present invention Into the first presetting database query history trade, so as to reduce overhead, improve collision detection efficiency while, Obtain accurate consequences of hostilities.
Step 204, first node is instructed according to the consequences of hostilities and clash handle of the first transaction, at the first transaction Reason, obtains the processing result of the first transaction.
The clash handle instruction illustrated according to table 1, table 3 are consequences of hostilities and conflict of the first node according to the first transaction The schematic table for several processing modes that process instruction executes the first transaction.
Table 3: the signal of the several ways of the first transaction of first node processing
As shown in table 1 and table 3, if the consequences of hostilities of the first transaction and clash handle instruction meet the first as follows Any condition in condition~four kind condition, then first node can execute the first transaction:
The first condition, consequences of hostilities be the first transaction with historical trading there is no conflict, and it is that clash handle, which instructs, There is no the first transaction (i.e. " 0 ") is executed when conflicting with historical trading for one transaction;
Second of condition, consequences of hostilities, which exists for the first transaction with historical trading, to conflict, and clash handle instruction is first Transaction exists with historical trading executes the first transaction (i.e. " 2 ") when conflicting;
The third condition, consequences of hostilities, which exists for the first transaction with historical trading, to conflict, and clash handle instruction is first Transaction exists with historical trading is redirected to fault-tolerant contract (i.e. " 3 ") for the first transaction when conflicting;
4th kind of condition, consequences of hostilities, which exists for the first transaction with historical trading, to conflict, and clash handle instruction is first Transaction exists with historical trading executes the first transaction and print log (i.e. " 5 ") when conflicting.
It should be noted that if the consequences of hostilities of the first transaction and clash handle instruction meet the third condition, then first Node can handled first transaction after, generate the first log, and processing first can be traded timestamp information, transaction Data and conflict indicated value are added in the first log, and then save the first log, in order to which operation maintenance personnel executes misarrangement work.
Correspondingly, if the consequences of hostilities of the first transaction and clash handle instruction meet as follows the 5th kind of condition or the Six kinds of conditions, then first node can be refused to execute the first transaction:
5th kind of condition, the first transaction exists with historical trading to conflict, and clash handle instruction is the first transaction and history Refusal executes the first transaction (" 1 ") when transaction has conflict;
6th kind of condition, the first transaction exists with historical trading to conflict, and clash handle instruction is the first transaction and history Refusal executes the first transaction when transaction has conflict, and alerts (i.e. " 3 ").
It should be noted that if the consequences of hostilities of the first transaction and clash handle instruction meet the 6th kind of condition, then first Node can generate warning information, and can send a warning message to client device while refusal the first transaction of processing, In order to which operation maintenance personnel executes misarrangement work.
The specific implementation process of the first transaction of first node processing is described from two kinds of situations separately below.
Situation one
In situation one, first node can execute the first transaction, i.e., the consequences of hostilities and clash handle of the first transaction refer to Order meets the first above-mentioned condition, perhaps meets second of condition and perhaps meets four kind article of the third condition or satisfaction Part.
In one example, first node, then can be first to including if it is determined that execute the first transaction in default memory headroom Target histories transaction be updated.In one example, if there is no the mark phases with the first transaction in default memory headroom Same historical trading, then the first transaction can be added in default memory headroom by first node, in this way, in default memory headroom Including target histories transaction in may include the first transaction, if first node execution first trade during receive with Identical second transaction of the mark of first transaction can determine the second transaction and the first transaction then by first round collision detection Conflict, so as to without executing and duplicate second transaction of the first transaction.In another example, if in default memory headroom It trades in the presence of target histories identical with the mark of the first transaction, then first node can update the mesh stored in presetting database Mark the information of historical trading, for example the conflict number of target histories transaction, clash handle instruction can be updated etc., in this way, can be with So that the default filtering model determined based on the historical trading in default memory headroom is more accurate.In the embodiment of the present invention, lead to It crosses and is determining that memory headroom is preset in update when executing the first transaction, can make the trading processing process of first node more efficient.
Further, first node can be communicated with other nodes in block catenary system, execute the first transaction Common recognition process, however, it is determined that the quantity for the node reached common understanding in block catenary system to the first transaction is greater than or equal to preset threshold, The corresponding block information of the first transaction then can be generated, and it is default that the corresponding block information update first of the first transaction can be used Database and/or default memory headroom, for example the first presetting database can be updated according to the block information of the first transaction, or Default memory headroom can also be updated according to the block information of the first transaction, or can also be according to the block information of the first transaction The first presetting database and default memory headroom are updated, is specifically not construed as limiting.Correspondingly, however, it is determined that first in block catenary system The quantity for the node that transaction is reached common understanding is less than preset threshold, then can send to client device and execute the first Fail Transaction Message.Wherein, preset threshold can be rule of thumb arranged with capable field technique personnel, such as can be for included by block catenary system Number of nodes 3/4, be specifically not construed as limiting.
In the embodiment of the present invention, generate the first corresponding block information of transaction mode can there are many, in a kind of possibility Implementation in, can store the first check value in the first presetting database, the first check value can make for first node Multiple historical tradings are verified with default checking algorithm, for example can be the cryptographic Hash of multiple historical tradings.Tool During body is implemented, before determining the first transaction of execution, first node can obtain the first check value from the first presetting database, And the first check value can be stored in default memory headroom;Further, during execution first is traded, first segment Point can pre-generate the corresponding original block information of the first transaction, and can be used default checking algorithm to the first check value and First transaction is verified, and the second check value is obtained;Further, the second check value can be added to original area by first node In block message, and it can know together with other nodes in block catenary system, if common recognition passes through, available first transaction Corresponding block information, and the second check value can be used and update the first check value stored in default memory headroom.
In one example, the second check value can be determined using circulation hash algorithm, program implement can be as Shown in lower:
According to the first row program, first node, which determines, executes transaction data [0], historical trading data [1] and historical trading data[2];According to second stroke sequence, the check value HASH_NEW that is stored in the available default memory headroom of first node;Root According to the third line~fourth line program, first node can take cryptographic Hash to transaction data [0], obtain the verification of transaction data [0] Value hash (Data [1]), and then can be to the check value hash (Data of the first check value HASH_NEW and transaction data [0] [1]) cryptographic Hash is taken, the check value of the historical trading including transaction data [0] is obtained;Correspondingly, first node can root Check value and transaction data [1] according to the historical trading including transaction data [0] obtain including trading data [0] and handing over The check value of historical trading including easy data [1], and then can be according to including transaction data [0] and transaction data [1] Historical trading check value and transaction data [2], obtain include transaction data [0], transaction data [1] with trade data [2] The check value of historical trading inside;According to fifth line program, it can be used including transaction data [0], transaction data [1] and hand over The check value of historical trading including easy data [2] updates the check value of the historical trading stored in default memory headroom.
It should be noted that above-mentioned is only a kind of illustrative simple declaration, cited by using circulation hash algorithm It determines that the mode of the second check value is merely for convenience and purposes of illustration of scheme, does not constitute the restriction to scheme.In specific implementation, really The mode of fixed second check value can be rule of thumb configured by those skilled in the art, for example can use merkle Root algorithm determines the second check value, or can determine the second check value using acyclic hash algorithm, is specifically not construed as limiting.
In the embodiment of the present invention, the first check value can be used for identifying the handled historical trading crossed of block catenary system, lead to It crosses after the transaction of execution first, updates the first check value using the first transaction and obtain the second check value, on the one hand, area can be made Multiple nodes in block catenary system are based on identical second check value and realize common recognition, to improve trading processing in block catenary system Accuracy;On the other hand, it can make block catenary system during handling transaction locating for real-time update block catenary system The historical trading managed, to improve the accuracy of subsequent processing transaction.
If first node successful execution first is traded, the corresponding block information of the first transaction can be stored in block chain In system, in this way, the processing result of the first transaction may include the corresponding block information of the first transaction.Further, first segment Point, which can be used, updates the first presetting database and/or default memory headroom according to the block information of the first transaction.In a kind of possibility Implementation in, mark the first default filtering model of training of the first transaction can be used in first node, and it is default to obtain second Filtering model, and the store in the first presetting database first default filtering model can be updated to the second default filter module Type;And the corresponding Transaction Information of the first transaction can be added in the first presetting database by first node, and can be used It states and determines that the second obtained check value updates the first check value stored in the first presetting database;Further, first node The second default filtering model and the second check value can be used and update the default filtering of first stored in default memory headroom respectively Model and the first check value.
Correspondingly, if first node executes the first transaction (for example node common recognition does not pass through) not successfully, the first transaction Processing result may include the first instruction information, and the first instruction information is used to indicate the failure of the first trading processing.In an example In, since first node is when determining that executing first trades, i.e., the first transaction is added in default memory headroom, therefore, If executing the first transaction not successfully, first node can be deleted the store in default memory headroom first transaction, so as to It can not guarantee subsequent friendship by first round collision detection to avoid subsequent transaction identical with the mark of the first transaction getting Tractable accuracy.
In the embodiment of the present invention, the first presetting database is successively updated by using the block information of the first transaction and is preset The check value of the first default filtering model, historical transactional information and historical trading in memory headroom, can be using based on update Default memory headroom and the first presetting database afterwards carries out collision detection to next transaction, so as to improve collision detection Accuracy.
It should be noted that if the consequences of hostilities of the first transaction and clash handle instruction meet above-mentioned 4th kind of condition, then First node can also obtain the address for the fault-tolerant contract for including in transaction request, and can basis after the transaction of execution first The call by location fault-tolerant processing module of fault-tolerant contract is modified the first transaction.In this way, in the processing result of the first transaction also It may include the address of fault-tolerant contract, the address of fault-tolerant contract is for calling the fault-tolerant processing module in client device to first Transaction is modified.
Situation two
In situation two, first node can refuse execution first and trade, i.e., at the consequences of hostilities of the first transaction and conflict Reason instruction can satisfy above-mentioned 5th kind of condition or above-mentioned 6th kind of condition.
In specific implementation, if first node refusal executes the first transaction, conflict indication code is can be generated in first node, is rushed Prominent indication code is used to indicate the first transaction and conflicts with historical trading presence, and first node is not carried out the first transaction.Therefore, first It may include conflict indication code in the processing result of transaction.
Step 205, first node sends the first information or the second information to client device.
In specific implementation, first transaction processing result may include the block information of the first transaction, first instruction information, Any one or any multinomial to conflict in the address of indication code, fault-tolerant contract.If the processing result of the first transaction includes first The address of the block information of transaction and/or fault-tolerant contract, illustrate the first transaction by first node successful execution, then first node The first information can be sent to client device;If the processing result of the first transaction includes the first instruction information or conflict instruction Code illustrates the first transaction not by first node successful execution, then first node can send the second information to client device.
In the embodiment of the present invention, there is " first node and historical trading in the clash handle instruction of client device setting The first transaction of execution when in the presence of conflict ", " first node is redirected to fault-tolerant module when existing and conflict with historical trading " and " first Node exists with historical trading executes the first transaction and print log when conflicting " these three situations, i.e., the first transaction and history are handed over The first transaction may also be by first node successful execution when easily there is conflict.Therefore, in order to avoid there are biggish for the first transaction Business fault, first node can send the first information to client device after the transaction of successful execution first.In an example In, it may include block information and/or the address of fault-tolerant contract of the first transaction in the first information, in this way, client device connects After the first information, the first transaction can be modified according to the first information.
Correspondingly, if the processing result of the first transaction includes the first instruction information, illustrate that the first transaction has passed through conflict Detection, but not by first node successful execution;If the processing result of the first transaction includes conflict indicated value, illustrate the first transaction It is not instructed by clash handle, and not by first node successful execution.Since the first transaction is not successfully executed, will not deposit It makes mistakes in biggish business, therefore, first node can send the second information to client device, and the second information can be used for referring to Show that the first transaction is not successfully executed.
Step 206, client device receives the first information or the second information that first node is sent, and calls fault-tolerant processing Module is modified the first transaction.
It can be set the second presetting database in specific implementation, in client device, it can be in the second presetting database It is stored with the processed whole historical tradings of client device.In one possible implementation, if client device receives The first information sent to first node then illustrates the first transaction by first node successful execution, in this way, client device can To carry out collision detection to the first transaction based on the second presetting database, determines the first transaction and client device is processed goes through History transaction is with the presence or absence of conflict.In one example, client device can directly preset the mark that first trades with second The mark of the historical trading stored in database compares, and determines the first transaction and the processed historical trading of client device With the presence or absence of conflict;In another example, client device can to first transaction successively execute first round collision detection~ Third round collision detection conflicts so that it is determined that the first transaction whether there is with the processed historical trading of client device.Herein, Above-mentioned two example is referred to determine the first transaction with the processed historical trading of first node with the presence or absence of punching in step 203 Prominent process is realized, is specifically repeated no more.
Further, if the matched historical trading of mark of mark with the first transaction is not present in the second presetting database, Untreated transaction identical with the mark of the first transaction before then illustrating client device;In this way, client device can incite somebody to action First transaction is added in the second presetting database.Correspondingly, if there is mark and the first transaction in the second presetting database Matched historical trading is identified, then processed transaction identical with the mark of the first transaction before illustrating client device;Such as This, client device can be used fault-tolerant processing module and be modified according to default processing rule to the first transaction.Wherein, it presets Processing rule may include output journal record, the transaction record of the second presetting database of output, invalid transaction, revocation trade, Freeze any one or any multinomial in subsequent transaction.
In specific implementation, fault-tolerant processing module can prejudge operation flow belonging to the first transaction, however, it is determined that first Transaction is the transaction in non-key type operation flow, then fault-tolerant processing module can repair the first transaction using various ways Just.In one example, the log information and/or database information of available first transaction of fault-tolerant processing module, and can be with The log information of first transaction and/or database information are sent to operation maintenance personnel and safeguarded;In another example, fault-tolerant Processing module can carry out the first transaction according to the default processing rule being arranged in fault-tolerant contract according to the address of fault-tolerant contract Subsequent processing.Influence due to the transaction in nonessential operation flow to business is smaller, using aforesaid way to non-pass Transaction in keyness operation flow is modified, and the treatment effeciency of system can be improved.
Correspondingly, however, it is determined that the first transaction is the transaction in crucial type operation flow, then fault-tolerant processing module can basis Operation flow belonging to first transaction is modified the first transaction.For example, if the first transaction is held to create new order X Wrong processing module can set invalid state for the state of order X;If the first transaction is in account Q1Middle addition income L1, then Fault-tolerant processing module can be from account Q1On subtract income L1;If the first transaction is account Q1To account Q2Money transfer L2, then hold Wrong processing module can be by account Q2Fund L in upper retracts account Q1;If the first transaction is to repeat from account Q3In abnormally Assets N is marked, then fault-tolerant processing module can be by account Q3Freeze.
It should be noted that above-mentioned is only a kind of illustrative simple declaration, cited by the first transaction is repaired Positive mode is merely for convenience and purposes of illustration of scheme, does not constitute the restriction to scheme.In specific implementation, the first transaction is carried out Modified mode can be rule of thumb configured by those skilled in the art, or can be set according to actual business requirement It sets, is specifically not construed as limiting.
In the embodiment of the present invention, since clash handle instruction is client device setting, it is thus possible to can exist certain The transaction clashed is still processed, by sending block information to client device after having handled transaction, can make Client device is modified transaction, so as to avoid trading processing process from biggish fault occur, improves block linkwork The traffic handing capacity of system and the accuracy of business processing.
In alternatively possible implementation, if client device receives the second information of first node transmission, Fault-tolerant processing module can be called to obtain the relevant information of the first transaction, such as timestamp, the transaction data, conflict of the first transaction As a result instructed with clash handle etc.;Further, fault-tolerant processing module can be by the relevant information storage of the first transaction to log In the information of information or data library, so that operation maintenance personnel carries out misarrangement according to log information or database information.
In the above embodiment of the present invention, the first node in block catenary system receives the transaction that client device is sent and asks It asks, transaction request includes the mark and clash handle instruction of the first transaction, and clash handle instruction includes that the first transaction is handed over history Easily there is the processing mode traded when conflict to first, and/or, there is no hand over when conflicting first with historical trading for the first transaction Easy processing mode;Further, first node determines the consequences of hostilities of the first transaction, and root according to the mark of the first transaction Consequences of hostilities and clash handle instruction according to the first transaction, handle the first transaction;Wherein, the consequences of hostilities of the first transaction The first transaction and historical trading are used to indicate with the presence or absence of conflicting.It, can be with by the mark of setting transaction in the embodiment of the present invention Using comparison transaction mark by the way of to first transaction carry out collision detection, without compare transaction data, so as to so that Obtain, in the raising block catenary system efficiency of trading processing more quick to the process of transaction progress collision detection;And due to conflict Process instruction is configured by client device, therefore can be arranged based on the requirement of different business scenario and client device Different clash handle instruction, that is to say, that the transaction processing method in above-mentioned technical proposal is more in line with actual conditions.
Based on system architecture illustrated in Figure 1 and transaction processing method illustrated in Figure 2, Fig. 3 mentions for the embodiment of the present invention The structural schematic diagram of a kind of client device and first node that supply.As shown in figure 3, conflict inspection can be set in first node Unit, transaction execution unit and updating unit are surveyed, it can be successively between collision detection unit, transaction execution unit and updating unit Connection.And default memory headroom, the first default filtering model and the first presetting database are also provided in first node; Correspondingly, the second presetting database can be set in client device.
It can be as following to the first process for being handled of transaction based on client device and first node illustrated in Figure 3 Shown in step 1~step 6:
Step 1, client device is arranged into first node collision detection unit sends transaction request, in transaction request The clash handle of mark and the first transaction including the first transaction instructs.
Step 2, after collision detection unit receives the transaction request that client device is sent, the mark of the first transaction is obtained, And based on any one or any number of in default memory headroom, the first default filtering model and the first presetting database One transaction carries out collision detection.For example, in one example, collision detection unit can be based only upon default memory headroom to first Transaction carries out collision detection, is perhaps based only upon the first default filtering model and carries out collision detection to the first transaction or be based only upon First presetting database carries out collision detection to the first transaction;In another example, collision detection unit can be based on default Memory headroom and the first default filtering model carry out collision detection to the first transaction, or pre- based on default memory headroom and first If database carries out collision detection to the first transaction, or based on the first default filtering model and the first presetting database to first Transaction carries out collision detection;In yet another example, collision detection unit can be based on default memory headroom, the first default filtering Model and the first presetting database carry out collision detection to the first transaction.
In one possible implementation, collision detection unit can execute the first transaction based on default memory headroom First round collision detection.If first round collision detection is determined in default memory headroom and is gone through in the presence of the mark traded with first is matched History transaction, then collision detection unit can determine that the first transaction exists with historical trading and conflict;If first round collision detection determines There is no the matched historical tradings of mark with the first transaction in default memory headroom, then collision detection unit can be based on first Default filtering model executes the second wheel collision detection to the first transaction.If the second wheel collision detection determines that the first transaction and history are handed over Easily there is no conflicts, then collision detection unit can determine that the first transaction is not present with historical trading and conflict;If the second wheel conflict Detection determines that the first transaction exists with historical trading and conflicts that then collision detection unit can be based on the first presetting database to first Transaction executes third round collision detection.If third round collision detection determines the mark existed in the first presetting database with the first transaction Know matched historical trading, then collision detection unit can determine that the first transaction exists with historical trading and conflict;If the first round rushes The matched historical trading of mark traded with first is not present in prominent detect in determining first presetting database, then collision detection unit Can determining the first transaction, there is no conflict with historical trading.
Conflict if it is determined that the first transaction exists with historical trading, and clash handle instruction is " the first transaction and historical trading Refusal executes the first transaction when in the presence of conflict ", then first node and client device can execute following steps 3.1 and step 4.1:
Step 3.1, collision detection unit (or first node) sends conflict indication code to client device.
Step 4.1, client device receives the conflict indication code that collision detection unit is sent, and calls fault-tolerant processing module Clash handle is carried out to the first transaction.In one example, the timestamp of available first transaction of fault-tolerant processing module, transaction Data and conflict indication code, and log information can be recorded in the timestamp of the first transaction, transaction data and conflict indication code Or in database.
Correspondingly, however, it is determined that the first transaction with historical trading there is no conflict, and clash handle instruction for " first trade and There is no the first transaction is executed when conflict for historical trading " or the first transaction with historical trading in the presence of conflicting, and clash handle refers to It enables existing for " the first transaction executes the first transaction when existing with historical trading and conflicting " or the first transaction with historical trading and rush It is prominent, and clash handle instruction is " the first transaction is redirected to fault-tolerant processing module in the presence of when conflicting with historical trading ", then first Node and client device can execute following steps 3.2, step 4.2~step 6, step 4.1:
Step 3.2, the first transaction is sent to transaction execution unit by collision detection unit, so that transaction execution unit executes First transaction.
In specific implementation, transaction execution unit can be used intelligent contract and execute the first transaction, and can by network with Other nodes in block catenary system are known together.If the quantity for the node reached common understanding is greater than or equal to preset threshold, hand over The corresponding block information of the first transaction can be generated in easy execution unit, and the corresponding block information storage of the first transaction can be arrived In the block chain of bottom;If the quantity for the node reached common understanding is less than preset threshold, execution unit of trading (or first node) The information that the first transaction executes failure can be sent to client device, so that client device calls fault-tolerant processing resume module First transaction (process is not shown in FIG. 3).
Step 4.2, it after transaction execution unit determines that successful execution first is traded, is sent to updating unit and updates request, more It include the corresponding block information of the first transaction in new request.
Step 5, after updating unit receives the update request that transaction execution unit is sent, the corresponding area of the first transaction is used Block message updates default memory headroom, the first default filtering model and the first presetting database.Specifically, updating unit can be with First transaction is added in default memory headroom and the first presetting database, and can be based on including in the first presetting database Historical trading and first transaction update the first default filtering model.
Step 6, first node is if it is determined that default memory headroom, the first default filtering model and the first presetting database update It completes, then sends transaction response message to client device, include the corresponding block information of first node in response message of trading.
As shown in figure 3, the second presetting database can be set in client device, if client device receives first The corresponding block information of node can then obtain the mark of first node, Jin Erke from the corresponding block information of first node The mark of first node to be matched with the multiple historical tradings stored in the second presetting database.If it is determined that second is default There is no historical tradings identical with the mark of the first transaction in database, then the first transaction can be added to by client device In second presetting database;If it is determined that there is historical trading identical with the mark of the first transaction in the second presetting database, then Client device can call fault-tolerant processing module to be modified the first transaction, and specific implementation process is referred to step 206 It is realized, details are not described herein again.
In the embodiment of the present invention, by the way that collision detection unit is arranged in first node, rushing for the first transaction can be made The transaction implementation procedure that prominent detection process is traded with first executes in two processes respectively, so as to realize collision detection, It is calculated with contract, the decoupling of block common recognition, improves the efficiency of trading processing.
For method flow illustrated in Figure 2, the embodiment of the present invention is also provided at a kind of transaction based on block catenary system Device is managed, the particular content of the device is referred to above method implementation.
Fig. 4 is a kind of structural schematic diagram of the traction processing apparatus based on block catenary system provided in an embodiment of the present invention, Include:
Transceiver module 401, for receiving the transaction request of client device transmission, the transaction request includes the first transaction Mark and clash handle instruction;The clash handle instruction includes that first transaction exists when conflicting with historical trading to institute The processing mode of the first transaction is stated, and/or, first transaction is not present when conflicting to first transaction with historical trading Processing mode;
Collision detection module 402 determines the conflict knot of first transaction for the mark according to first transaction Fruit, the consequences of hostilities of first transaction, which is used to indicate described first and trades to whether there is with historical trading, to conflict;
Processing module 403, for being instructed according to the consequences of hostilities and the clash handle of first transaction, to described the One transaction is handled.
Optionally, the transaction request further includes the contract address of the first transaction;The collision detection module 402 is used for:
According to the contract address of the mark of first transaction and first transaction, the key of first transaction is determined Value;
The mark of target histories transaction is obtained from the first presetting database, and the mark that the target histories are traded is deposited Store up default memory headroom;First presetting database includes identifying and the multiple historical trading for multiple historical tradings Key assignments, the target histories transaction are the history of key assignments and the key value match of first transaction in first presetting database Transaction;
It trades if it is determined that existing in the default memory headroom with the matched target histories of mark of first transaction, then It determines that first transaction exists with historical trading to conflict.
Optionally, the collision detection module 402 is also used to:
If it is determined that trading in default memory headroom there is no the matched target histories of mark with first transaction, then will The mark of first transaction is input to the first default filtering model;The first default filtering model is to be gone through using the multiple The Transaction Information training of history transaction obtains, the Transaction Information of each historical trading include each historical trading mark, Key assignments, transaction data, clash handle instruction and conflict number;
Conflict if the output result of the first default filtering model is not present for first transaction with historical trading, Determining first transaction, there is no conflict with historical trading.
Optionally, the collision detection module 402 is also used to:
Conflict if the output result of the first default filtering model exists for first transaction with historical trading, it will The mark of first transaction and the mark of multiple historical tradings in first presetting database compare, however, it is determined that institute State in the first presetting database exist with it is described first transaction the matched historical trading of mark, it is determined that it is described first transaction with There is conflict in historical trading;If it is determined that being not present in first presetting database, the mark traded with described first is matched to be gone through History transaction, it is determined that there is no conflict with historical trading for first transaction.
Optionally, first transaction is not present clash handle instruction when conflict with historical trading and includes execution described the One transaction;It includes following any one that first transaction, which has clash handle instruction when conflicting with historical trading: refusal is held Row first transaction executes first transaction, first transaction is redirected to fault-tolerant contract;
The processing module 403 is used for:
If first transaction with historical trading there is no conflict, and clash handle instruction be described first trade and Historical trading is traded there is no executing described first when conflict, alternatively, conflict if first transaction exists with historical trading, and It is that first transaction executes first transaction when existing and conflict with historical trading that the clash handle, which instructs, then described in execution First transaction;If it is described first transaction with historical trading exist conflict, and the clash handle instruction be it is described first trade and First transaction is redirected to fault-tolerant contract when historical trading has conflict, then executes first transaction, and obtain institute The address for the fault-tolerant contract for including in clash handle instruction is stated, Xiang Suoshu client device sends the address of the fault-tolerant contract; Conflict if first transaction exists with historical trading, and clash handle instruction is that first transaction is deposited with historical trading In conflict, refusal executes first transaction, then sends conflict indicated value, the conflict indicated value to the client device It is used to indicate described first and trades to exist with the historical trading and conflict.
Optionally, the processing module 403 is used for:
If it is determined that the quantity for the node reached common understanding in the block catenary system to first transaction is greater than or equal in advance If threshold value, then the corresponding block information of first transaction is generated;
First presetting database is updated according to the block information of first transaction and/or the default memory is empty Between.
Optionally, it after the processing module 403 generates the corresponding block information of first transaction, is also used to:
The corresponding block information of first transaction is sent to the client device, the corresponding block of first transaction Information is modified first transaction for the client device.
Optionally, the first check value is stored in first presetting database, first check value is described first Node is verified to obtain using default checking algorithm to the multiple historical trading stored in first presetting database 's;
The processing module 403 is specifically used for:
Generate the corresponding original block information of first transaction;
First check value and first transaction are verified using the default checking algorithm, obtain the second school Test value;
Second check value is added in the original block information, the corresponding block letter of first transaction is obtained Breath.
Optionally, the processing module 403 is used for:
The mark training first default filtering model traded using described first, obtains the second default filtering model, And the described first default filtering model in default memory headroom and/or first presetting database is updated to described second Default filtering model;
First transaction is added in first presetting database, and using described in second check value update First check value in default memory headroom and/or first presetting database.
Fig. 5 is a kind of structural schematic diagram of the traction processing apparatus based on block catenary system provided in an embodiment of the present invention, Include:
Configuration module 501, for configuring the mark and clash handle instruction of the first transaction;
Transceiver module 502 sends transaction request for the first node into block catenary system, and the transaction request includes The mark and clash handle instruction of first transaction;And receive the ground for the fault-tolerant contract that the first node is sent Location;
Correction module 503, for the call by location fault-tolerant processing module according to the fault-tolerant contract to first transaction It is modified.
Optionally, the transceiver module 502 is also used to: it is corresponding to receive first transaction that the first node is sent Block information;
The correction module 503 is also used to: the corresponding block information of parsing first transaction obtains first transaction Mark;It is matched if it is determined that there is mark in the second presetting database of the client device with the mark of first transaction Historical trading, then first transaction is modified according to default processing rule using the fault-tolerant processing module;It is described Multiple historical tradings of the client device processing are stored in second presetting database.
Optionally, it is described it is default processing rule include output journal record, output the second presetting database transaction record, Invalid transaction cancels transaction, freezes any one or any multinomial in subsequent transaction.
It can be seen from the above: in the above embodiment of the present invention, the first node in block catenary system receives visitor The transaction request that family end equipment is sent, transaction request include the mark and clash handle instruction of the first transaction, clash handle instruction There is processing mode when conflicting to the first transaction with historical trading including the first transaction, and/or, the first transaction and historical trading There is no the processing modes traded when conflict to first;Further, first node determines first according to the mark of the first transaction The consequences of hostilities of transaction, and instructed according to the consequences of hostilities and clash handle of the first transaction, the first transaction is handled;Its In, the consequences of hostilities of the first transaction, which is used to indicate the first transaction and historical trading and whether there is, to conflict.In the embodiment of the present invention, lead to The mark of setting transaction is crossed, collision detection can be carried out to the first transaction by the way of the mark of comparison transaction, without right Than transaction data, so that the process for carrying out collision detection to transaction is more quick, improves and trade in block catenary system The efficiency of processing;And be configured since clash handle is instructed by client device, it can be based on different business scenarios Different clash handle instructions is arranged in requirement with client device, that is to say, that the trading processing side in above-mentioned technical proposal Method is more in line with actual conditions.
Based on the same technical idea, the embodiment of the invention provides a kind of terminal devices, as shown in fig. 6, including at least One processor 1101, and the memory 1102 connecting at least one processor do not limit processing in the embodiment of the present invention Specific connection medium between device 1101 and memory 1102 passes through bus between processor 1101 and memory 1102 in Fig. 6 For connection.Bus can be divided into address bus, data/address bus, control bus etc..
In embodiments of the present invention, memory 1102 is stored with the instruction that can be executed by least one processor 1101, until The instruction that a few processor 1101 is stored by executing memory 1102, can execute the friendship above-mentioned based on block catenary system Included step in easy to handle method.
Wherein, processor 1101 is the control centre of terminal device, can use various interfaces and connection terminal is set Standby various pieces are stored in memory 1102 by running or executing the instruction being stored in memory 1102 and calling Data, to realize data processing.Optionally, processor 1101 may include one or more processing units, processor 1101 Application processor and modem processor can be integrated, wherein the main processing operation system of application processor, user interface and answer With program etc., modem processor mainly handles the instruction that operation maintenance personnel issues.It is understood that above-mentioned modulatedemodulate is mediated Reason device can not also be integrated into processor 1101.In some embodiments, processor 1101 and memory 1102 can be same It is realized on one chip, in some embodiments, they can also be realized respectively on independent chip.
Processor 1101 can be general processor, such as central processing unit (CPU), digital signal processor, dedicated collection At circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other Perhaps transistor logic, discrete hardware components may be implemented or execute the present invention in fact for programmable logic device, discrete gate Apply each method, step disclosed in example and logic diagram.General processor can be microprocessor or any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the transaction processing method based on block catenary system, can be embodied directly in Hardware processor executes completion, or in processor hardware and software module combination execute completion.
Memory 1102 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module.Memory 1102 may include the storage medium of at least one type, It such as may include flash memory, hard disk, multimedia card, card-type memory, random access storage device (Random Access Memory, RAM), static random-access memory (Static Random Access Memory, SRAM), may be programmed read-only deposit Reservoir (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), band Electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage, disk, CD etc..Memory 1102 can be used for carrying or storing have instruction or data The desired program code of structure type and can by any other medium of computer access, but not limited to this.The present invention is real Applying the memory 1102 in example can also be circuit or other devices that arbitrarily can be realized store function, for storing program Instruction and/or data.
Based on the same technical idea, the embodiment of the invention provides a kind of rear end equipments, as shown in fig. 7, comprises at least One processor 1201, and the memory 1202 connecting at least one processor do not limit processing in the embodiment of the present invention Specific connection medium between device 1201 and memory 1202 passes through bus between processor 1201 and memory 1202 in Fig. 7 For connection.Bus can be divided into address bus, data/address bus, control bus etc..
In embodiments of the present invention, memory 1202 is stored with the instruction that can be executed by least one processor 1201, until The instruction that a few processor 1201 is stored by executing memory 1202, can execute the friendship above-mentioned based on block catenary system Included step in easy to handle method.
Wherein, processor 1201 is the control centre of rear end equipment, can use various interfaces and connection rear end is set Standby various pieces are stored in memory 1202 by running or executing the instruction being stored in memory 1202 and calling Data, to realize data processing.Optionally, processor 1201 may include one or more processing units, processor 1201 Application processor and modem processor can be integrated, wherein the main processing operation system of application processor, application program etc., Modem processor mainly parse and parse the result received to the instruction received.It is understood that It is that above-mentioned modem processor can not also be integrated into processor 1201.In some embodiments, it processor 1201 and deposits Reservoir 1202 can realize that in some embodiments, they can also be realized respectively on independent chip on the same chip.
Processor 1201 can be general processor, such as central processing unit (CPU), digital signal processor, dedicated collection At circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other Perhaps transistor logic, discrete hardware components may be implemented or execute the present invention in fact for programmable logic device, discrete gate Apply each method, step disclosed in example and logic diagram.General processor can be microprocessor or any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the transaction processing method based on block catenary system, can be embodied directly in Hardware processor executes completion, or in processor hardware and software module combination execute completion.
Memory 1202 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module.Memory 1202 may include the storage medium of at least one type, It such as may include flash memory, hard disk, multimedia card, card-type memory, random access storage device (Random Access Memory, RAM), static random-access memory (Static Random Access Memory, SRAM), may be programmed read-only deposit Reservoir (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), band Electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage, disk, CD etc..Memory 1202 can be used for carrying or storing have instruction or data The desired program code of structure type and can by any other medium of computer access, but not limited to this.The present invention is real Applying the memory 1202 in example can also be circuit or other devices that arbitrarily can be realized store function, for storing program Instruction and/or data.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (26)

1. a kind of transaction processing method based on block catenary system, which is characterized in that the described method includes:
First node in block catenary system receives the transaction request that client device is sent, and the transaction request includes the first friendship Easy mark and clash handle instruction;The clash handle instruction is including first transaction with historical trading in the presence of when conflicting pairs The processing mode of first transaction, and/or, there is no trade when conflicting to described first with historical trading for first transaction Processing mode;
The first node determines the consequences of hostilities of first transaction, described first hands over according to the mark of first transaction Easy consequences of hostilities, which is used to indicate described first and trades to whether there is with historical trading, to conflict;
The first node according to it is described first transaction consequences of hostilities and the clash handle instruct, to described first trade into Row processing.
2. the method according to claim 1, wherein the transaction request further includes the contract of the first transaction Location;The first node determines the consequences of hostilities of first transaction according to the mark of first transaction, comprising:
Mark and the contract address of first transaction of the first node according to first transaction, determine that described first hands over Easy key assignments;
The first node obtains the mark of target histories transaction from the first presetting database, and the target histories are traded Mark storage to default memory headroom;First presetting database includes the mark of multiple historical tradings and the multiple goes through The key assignments of history transaction, the target histories transaction are the key assignments of key assignments and first transaction in first presetting database The historical trading matched;
The first node is gone through if it is determined that existing in the default memory headroom with the matched target of mark of first transaction History transaction, it is determined that first transaction exists with historical trading to conflict.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The first node is if it is determined that there is no the matched target histories of mark with first transaction in default memory headroom Transaction, then be input to the first default filtering model for the mark that described first trades;The first default filtering model is to use What the Transaction Information training of the multiple historical trading obtained, the Transaction Information of each historical trading includes that each history is handed over Easy mark, key assignments, transaction data, clash handle instruction and conflict number;
Conflict if the output result of the first default filtering model is not present for first transaction with historical trading, it is described First node determines first transaction, and there is no conflict with historical trading.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the output result of the first default filtering model is that first transaction conflicts with historical trading presence, described the One node compares the mark of mark and multiple historical tradings in first presetting database that described first trades, If it is determined that there is the matched historical trading of mark with first transaction in first presetting database, it is determined that described the One transaction exists with historical trading to conflict;If it is determined that there is no the marks with first transaction in first presetting database Matched historical trading, it is determined that there is no conflict with historical trading for first transaction.
5. method according to claim 1 to 4, which is characterized in that first transaction and historical trading are not Clash handle instruction when in the presence of conflict includes executing first transaction;When first transaction conflicts with historical trading presence Clash handle instruction include following any one: refusal executes first transaction, executes first transaction, by described the One transaction is redirected to fault-tolerant contract;
The first node according to it is described first transaction consequences of hostilities and the clash handle instruct, to described first trade into Row processing, comprising:
Conflict if first transaction is not present with historical trading, and clash handle instruction is first transaction and history Transaction is there is no first transaction is executed when conflict, alternatively, conflicting if first transaction exists with historical trading, and described Clash handle instruction is that first transaction executes first transaction when existing and conflict with historical trading, then the first node Execute first transaction;Conflict if first transaction exists with historical trading, and it is described that the clash handle, which instructs, One transaction exists with historical trading is redirected to fault-tolerant contract for first transaction when conflicting, then the first node executes institute The first transaction is stated, and obtains the address for the fault-tolerant contract for including in the clash handle instruction, Xiang Suoshu client device is sent The address of the fault-tolerant contract;Conflict if first transaction exists with historical trading, and clash handle instruction is described There is refusal when conflicting with historical trading and execute first transaction in the first transaction, then the first node is set to the client Preparation send conflict indicated value, and the conflict indicated value, which is used to indicate described first and trades to exist with the historical trading, to conflict.
6. according to the method described in claim 5, it is characterized in that, the first node executes first transaction, comprising:
The first node is if it is determined that the quantity for the node reached common understanding in the block catenary system to first transaction is greater than Or be equal to preset threshold, then generate the corresponding block information of first transaction;
The first node updates first presetting database and/or described default according to the block information of first transaction Memory headroom.
7. according to the method described in claim 6, it is characterized in that, the first node generates the corresponding area of first transaction After block message, further includes:
The first node sends the corresponding block information of first transaction, first transaction pair to the client device The block information answered is modified first transaction for the client device.
8. method according to claim 6 or 7, which is characterized in that be stored with the first school in first presetting database Test value, the first check value first node is using default checking algorithm to storing in first presetting database What the multiple historical trading was verified;
The first node generates the corresponding block information of first transaction, comprising:
The first node generates the corresponding original block information of first transaction;
The first node verifies first check value and first transaction using the default checking algorithm, obtains To the second check value;
Second check value is added in the original block information by the first node, obtains first transaction and corresponds to Block information.
9. according to the method described in claim 8, it is characterized in that, the first node is believed according to the transaction of first transaction Breath updates first presetting database and/or the default memory headroom, comprising:
The mark training first default filtering model that the first node is traded using described first, obtains second and preset Model is filtered, and the described first default filtering model in default memory headroom and/or first presetting database is updated to The second default filtering model;
First transaction is added in first presetting database by the first node, and uses second check value Update first check value in the default memory headroom and/or first presetting database.
10. a kind of transaction processing method based on block catenary system, which is characterized in that the described method includes:
Mark and the clash handle instruction that client device configuration first is traded;
First node of the client device into block catenary system sends transaction request, and the transaction request includes described the The mark and clash handle instruction of one transaction;
The client device receives the address for the fault-tolerant contract that the first node is sent, and according to the ground of the fault-tolerant contract Fault-tolerant processing module is called to be modified first transaction in location.
11. according to the method described in claim 10, it is characterized in that, the method also includes:
The client device receives the corresponding block information of first transaction that the first node is sent;
The client device parses the corresponding block information of first transaction, obtains the mark of first transaction;
The client device is handed over if it is determined that there is mark in the second presetting database of the client device with described first The matched historical trading of easy mark, then using the fault-tolerant processing module according to default processing rule to described first trade into Row amendment;Multiple historical tradings of the client device processing are stored in second presetting database.
12. according to the method for claim 11, which is characterized in that the default processing rule include output journal record, The transaction record of the second presetting database is exported, invalid transaction, transaction is cancelled, freezes any one or any in subsequent transaction It is multinomial.
13. a kind of traction processing apparatus based on block catenary system, which is characterized in that described device includes:
Transceiver module, for receiving the transaction request of client device transmission, the transaction request includes the mark of the first transaction It is instructed with clash handle;The clash handle instruction includes that first transaction exists when conflicting with historical trading to described first The processing mode of transaction, and/or, first transaction is not present when conflicting to the processing side of first transaction with historical trading Formula;
Collision detection module determines the consequences of hostilities of first transaction for the mark according to first transaction, described the The consequences of hostilities of one transaction, which is used to indicate described first and trades to whether there is with historical trading, to conflict;
Processing module, for being instructed according to the consequences of hostilities and the clash handle of first transaction, to first transaction It is handled.
14. device according to claim 13, which is characterized in that the transaction request further includes the contract of the first transaction Location;The collision detection module is used for:
According to the contract address of the mark of first transaction and first transaction, the key assignments of first transaction is determined;
The mark of target histories transaction is obtained from the first presetting database, and the mark storage that the target histories are traded is arrived Default memory headroom;First presetting database includes the mark of multiple historical tradings and the key of the multiple historical trading Value, the target histories transaction are that the history of key assignments and the key value match of first transaction is handed in first presetting database Easily;
It trades if it is determined that existing in the default memory headroom with the matched target histories of mark of first transaction, it is determined that First transaction exists with historical trading to conflict.
15. device according to claim 13, which is characterized in that the collision detection module is also used to:
If it is determined that trade in default memory headroom there is no the matched target histories of mark with first transaction, then it will be described The mark of first transaction is input to the first default filtering model;The first default filtering model is to be handed over using the multiple history What easy Transaction Information training obtained, the Transaction Information of each historical trading include the mark of each historical trading, key assignments, Transaction data, clash handle instruction and conflict number;
If the output result of the first default filtering model is first transaction, there is no conflict with historical trading, it is determined that There is no conflict with historical trading for first transaction.
16. device according to claim 15, which is characterized in that the collision detection module is also used to:
Conflict if the output result of the first default filtering model exists for first transaction with historical trading, it will be described The mark and the marks of multiple historical tradings in first presetting database of first transaction compare, however, it is determined that described the There is the matched historical trading of mark with first transaction in one presetting database, it is determined that first transaction and history There is conflict in transaction;If it is determined that being handed in first presetting database there is no the matched history of mark with first transaction Easily, it is determined that there is no conflict with historical trading for first transaction.
17. device described in any one of 3 to 16 according to claim 1, which is characterized in that first transaction and historical trading It include executing first transaction there is no clash handle instruction when conflict;First transaction exists with historical trading to conflict When clash handle instruction include following any one: refusal execute first transaction, execute first transaction, will be described First transaction is redirected to fault-tolerant contract;
The processing module is used for:
Conflict if first transaction is not present with historical trading, and clash handle instruction is first transaction and history Transaction is there is no first transaction is executed when conflict, alternatively, conflicting if first transaction exists with historical trading, and described Clash handle instruction is that first transaction executes first transaction when existing and conflict with historical trading, then executes described first Transaction;Conflict if first transaction exists with historical trading, and clash handle instruction is first transaction and history First transaction is redirected to fault-tolerant contract when transaction has conflict, then executes first transaction, and obtain the punching The address for the fault-tolerant contract for including in prominent process instruction, Xiang Suoshu client device send the address of the fault-tolerant contract;If institute It states the first transaction and historical trading and exists and conflict, and clash handle instruction is that first transaction with historical trading has punching Refusal executes first transaction when prominent, then sends conflict indicated value to the client device, and the conflict indicated value is used for It indicates that first transaction exists with the historical trading to conflict.
18. device according to claim 17, which is characterized in that the processing module is used for:
If it is determined that the quantity for the node reached common understanding in the block catenary system to first transaction is greater than or equal to default threshold Value then generates the corresponding block information of first transaction;
First presetting database and/or the default memory headroom are updated according to the block information of first transaction.
19. device according to claim 18, which is characterized in that it is corresponding that the processing module generates first transaction After block information, it is also used to:
The corresponding block information of first transaction is sent to the client device, the corresponding block information of first transaction First transaction is modified for the client device.
20. device described in 8 or 19 according to claim 1, which is characterized in that be stored with first in first presetting database Check value, first check value be the first node using default checking algorithm to being stored in first presetting database The multiple historical trading verified;
The processing module is specifically used for:
Generate the corresponding original block information of first transaction;
First check value and first transaction are verified using the default checking algorithm, obtain the second verification Value;
Second check value is added in the original block information, the corresponding block information of first transaction is obtained.
21. device according to claim 20, which is characterized in that the processing module is used for:
The mark training first default filtering model traded using described first, obtains the second default filtering model, and will It is default that the described first default filtering model in default memory headroom and/or first presetting database is updated to described second Filtering model;
First transaction is added in first presetting database, and updates described preset using second check value First check value in memory headroom and/or first presetting database.
22. a kind of traction processing apparatus based on block catenary system, which is characterized in that described device includes:
Configuration module, for configuring the mark and clash handle instruction of the first transaction;
Transceiver module sends transaction request for the first node into block catenary system, and the transaction request includes described the The mark and clash handle instruction of one transaction;And receive the address for the fault-tolerant contract that the first node is sent;
Correction module, for being repaired according to the call by location fault-tolerant processing module of the fault-tolerant contract to first transaction Just.
23. device according to claim 22, which is characterized in that
The transceiver module is also used to: receiving the corresponding block information of first transaction that the first node is sent;
The correction module is also used to: the corresponding block information of parsing first transaction obtains the mark of first transaction; If it is determined that there is the matched history of mark of mark with first transaction in the second presetting database of the client device Transaction is then modified first transaction according to default processing rule using the fault-tolerant processing module;Described second is pre- If being stored with multiple historical tradings of the client device processing in database.
24. device according to claim 23, which is characterized in that the default processing rule include output journal record, The transaction record of the second presetting database is exported, invalid transaction, transaction is cancelled, freezes any one or any in subsequent transaction It is multinomial.
25. a kind of computer readable storage medium, which is characterized in that including instruction, when it runs on the processor of computer When, so that the processor of computer executes such as the described in any item methods of claim 1 to 12.
26. a kind of computer program product, which is characterized in that when it runs on the processor of computer, so that computer Processor execute such as the described in any item methods of claim 1 to 12.
CN201910350093.3A 2019-04-28 2019-04-28 Transaction processing method and device based on blockchain system Active CN110070445B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910350093.3A CN110070445B (en) 2019-04-28 2019-04-28 Transaction processing method and device based on blockchain system
PCT/CN2020/080520 WO2020220860A1 (en) 2019-04-28 2020-03-20 Blockchain system-based transaction processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910350093.3A CN110070445B (en) 2019-04-28 2019-04-28 Transaction processing method and device based on blockchain system

Publications (2)

Publication Number Publication Date
CN110070445A true CN110070445A (en) 2019-07-30
CN110070445B CN110070445B (en) 2024-03-01

Family

ID=67369298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910350093.3A Active CN110070445B (en) 2019-04-28 2019-04-28 Transaction processing method and device based on blockchain system

Country Status (2)

Country Link
CN (1) CN110070445B (en)
WO (1) WO2020220860A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489234A (en) * 2019-08-16 2019-11-22 中国银行股份有限公司 Message processing method, device, equipment and the readable storage medium storing program for executing of block link layer
WO2020220860A1 (en) * 2019-04-28 2020-11-05 深圳前海微众银行股份有限公司 Blockchain system-based transaction processing method and apparatus
CN112258184A (en) * 2020-10-28 2021-01-22 成都质数斯达克科技有限公司 Method and device for freezing area block chain network, electronic equipment and readable storage medium
WO2021027504A1 (en) * 2019-08-15 2021-02-18 深圳壹账通智能科技有限公司 Consensus protocol-based information processing method, and related device
CN113051622A (en) * 2021-03-11 2021-06-29 杭州趣链科技有限公司 Index construction method, device, equipment and storage medium
CN114338455A (en) * 2022-03-16 2022-04-12 北京微芯感知科技有限公司 Multi-mechanism distributed collision detection system and method
CN114900311A (en) * 2022-04-06 2022-08-12 平安国际智慧城市科技股份有限公司 Monitoring data management method, device, equipment and storage medium
CN115309515A (en) * 2022-10-10 2022-11-08 北京理工大学 Cross-chain transaction processing method, device and equipment based on block chain
CN115796874A (en) * 2023-01-09 2023-03-14 杭州安节科技有限公司 Operation-level block chain transaction concurrent execution method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block
WO2018090331A1 (en) * 2016-11-18 2018-05-24 深圳前海达闼云端智能科技有限公司 Blockchain network, article transaction method and apparatus, and node device
CN108694657A (en) * 2018-07-13 2018-10-23 平安科技(深圳)有限公司 Client's identification device, method and computer readable storage medium
CN108711085A (en) * 2018-05-09 2018-10-26 平安普惠企业管理有限公司 A kind of response method and its equipment of transaction request
CN108846753A (en) * 2018-06-06 2018-11-20 北京京东尚科信息技术有限公司 Method and apparatus for handling data
CN109508337A (en) * 2018-11-12 2019-03-22 杭州秘猿科技有限公司 A kind of transaction is parallel to execute method, apparatus, electronic equipment and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4250344B2 (en) * 2001-01-29 2009-04-08 インターナショナル・ビジネス・マシーンズ・コーポレーション Workflow system, workflow server, and storage medium
CN109598504B (en) * 2018-10-25 2020-09-01 阿里巴巴集团控股有限公司 Transaction processing method and device based on block chain and electronic equipment
CN110070445B (en) * 2019-04-28 2024-03-01 深圳前海微众银行股份有限公司 Transaction processing method and device based on blockchain system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090331A1 (en) * 2016-11-18 2018-05-24 深圳前海达闼云端智能科技有限公司 Blockchain network, article transaction method and apparatus, and node device
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block
CN108711085A (en) * 2018-05-09 2018-10-26 平安普惠企业管理有限公司 A kind of response method and its equipment of transaction request
CN108846753A (en) * 2018-06-06 2018-11-20 北京京东尚科信息技术有限公司 Method and apparatus for handling data
CN108694657A (en) * 2018-07-13 2018-10-23 平安科技(深圳)有限公司 Client's identification device, method and computer readable storage medium
CN109508337A (en) * 2018-11-12 2019-03-22 杭州秘猿科技有限公司 A kind of transaction is parallel to execute method, apparatus, electronic equipment and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020220860A1 (en) * 2019-04-28 2020-11-05 深圳前海微众银行股份有限公司 Blockchain system-based transaction processing method and apparatus
WO2021027504A1 (en) * 2019-08-15 2021-02-18 深圳壹账通智能科技有限公司 Consensus protocol-based information processing method, and related device
CN110489234A (en) * 2019-08-16 2019-11-22 中国银行股份有限公司 Message processing method, device, equipment and the readable storage medium storing program for executing of block link layer
CN112258184A (en) * 2020-10-28 2021-01-22 成都质数斯达克科技有限公司 Method and device for freezing area block chain network, electronic equipment and readable storage medium
CN113051622A (en) * 2021-03-11 2021-06-29 杭州趣链科技有限公司 Index construction method, device, equipment and storage medium
CN114338455A (en) * 2022-03-16 2022-04-12 北京微芯感知科技有限公司 Multi-mechanism distributed collision detection system and method
CN114338455B (en) * 2022-03-16 2022-06-17 北京微芯感知科技有限公司 Multi-mechanism distributed collision detection system and method
CN114900311A (en) * 2022-04-06 2022-08-12 平安国际智慧城市科技股份有限公司 Monitoring data management method, device, equipment and storage medium
CN115309515A (en) * 2022-10-10 2022-11-08 北京理工大学 Cross-chain transaction processing method, device and equipment based on block chain
CN115309515B (en) * 2022-10-10 2023-01-31 北京理工大学 Cross-chain transaction processing method, device and equipment based on block chain
CN115796874A (en) * 2023-01-09 2023-03-14 杭州安节科技有限公司 Operation-level block chain transaction concurrent execution method

Also Published As

Publication number Publication date
WO2020220860A1 (en) 2020-11-05
CN110070445B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN110070445A (en) A kind of transaction processing method and device based on block catenary system
WO2021114929A1 (en) Blockchain-based model combination training method and device
CN108062629B (en) Transaction event processing method, terminal device and medium
CN109391645B (en) Block chain lightweight processing method, block chain node and storage medium
CN106682984A (en) Block chain-based transaction business processing method and system
CN110474986A (en) A kind of common recognition method, apparatus and system based on block catenary system
CN106097101A (en) A kind of block chain realizes the management method of financial transaction
US20220343330A1 (en) Cryptocurrency transaction analysis method and apparatus
CN110599174B (en) Block chain information processing method and related equipment
CN110287205A (en) A kind of across the fragment transaction data processing method of block chain and device
CN110430066A (en) For reducing method, equipment and the storage medium of block chain transaction repeated broadcast
CN110336676A (en) A kind of block chain transaction broadcasting method and system, equipment and storage medium
CN108600315A (en) Block chain route processing method, device and storage medium
CN112597240B (en) Federal learning data processing method and system based on alliance chain
CN107194008A (en) A kind of distributed system quickly updates verification method
JP2019121358A (en) Logistics data transmitting system and method thereof
CN109166040A (en) Transaction auditing method, device, equipment and storage medium based on block chain
CN109886712A (en) Data processing method and device based on block chain
CN113645278B (en) Cross-chain message transmission method, device and storage medium of block chain
CN110955919A (en) Data processing method based on block chain network, related device and storage medium
CN108038692A (en) Role recognition method, device and server
CN110910106A (en) Cash management message processing method and system
CN106874371A (en) A kind of data processing method and device
US20190296961A1 (en) Network self-diagnosis control device based on block chain
CN111260421B (en) Electronic invoice management and control method and device based on block chain

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