Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State a kind of transaction processing method and device of problem.
A kind of transaction processing method, it is described applied to the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account
Method includes:
Receive the transaction request initiated by client;
The side's of being transferred to account is obtained from the transaction request;
The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
According to the corresponding sub-block chain point of the side's of being transferred to account described in the determination of the relevant information of each sub-block chain subregion
Area;
The corresponding sub-block chain subregion of the account of the side of being transferred to described in judgement sub-block chain point corresponding with the side's of producing account
Whether area is identical;
If the corresponding sub-block chain subregion of the side's of being transferred to account sub-block chain point corresponding with the side's of producing account
Area is different, according to account corresponding sub-block chain subregion in the side's of being transferred to described in the determination of the relevant information of each sub-block chain subregion
Interior accounting nodes;
Accounting nodes in the corresponding sub-block chain subregion of the side's of producing account handle the transaction request
Later, the transaction request is forwarded to the accounting nodes in the corresponding sub-block chain subregion of the side of being transferred to account, by institute
The accounting nodes stated in the corresponding sub-block chain subregion of the side's of being transferred to account handle the transaction request.
Optionally, the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account carry out the transaction request
Processing, comprising:
Determine the corresponding assets number of transaction request;
The assets number is deducted from the corresponding assets of the side's of producing account;
After deducting the assets number in the corresponding assets of the side's of producing account, across subregion synchronizing information is remembered
It records in the merkle tree in the corresponding sub-block chain subregion of the side's of producing account.
Optionally, the note transaction request being forwarded in the corresponding sub-block chain subregion of the side of being transferred to account
Account node, comprising:
The transaction request and across the subregion synchronizing information are forwarded to the corresponding sub-block chain of the side of being transferred to account
Accounting nodes in subregion, with by the accounting nodes in the corresponding sub-block chain subregion of the side's of being transferred to account according to it is described across point
After synchronizing information confirmation in area's deducts the assets number in the corresponding assets of the side's of producing account, in the side's of being transferred to account
Increase the assets number in number corresponding assets.
Optionally, the side's of being transferred to account described in being forwarded to the transaction request and across the subregion synchronizing information is corresponding
After accounting nodes in sub-block chain subregion, the method also includes:
Receipt letter is completed in the transaction that accounting nodes in the corresponding sub-block chain subregion of the account of the side of being transferred to described in reception are sent
Breath;
Across the subregion synchronization is deleted from the merkle tree in the corresponding sub-block chain subregion of the side's of producing account
Information.
Optionally, the method also includes:
If the corresponding sub-block chain subregion of the side's of being transferred to account sub-block chain point corresponding with the side's of producing account
Area is different, is handled by the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account the transaction request.
A kind of transaction processing method is applied to client, which comprises
Generate transaction request;
The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
Determine that the side's of producing account in the transaction request is corresponding according to the relevant information of each sub-block chain subregion
Sub-block chain subregion;
The transaction request is sent in the corresponding sub-block chain subregion of the side of producing account, so that the side of producing
Accounting nodes in the corresponding sub-block chain subregion of account handle the transaction request.
A kind of traction processing apparatus, it is described applied to the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account
Device includes:
Receiving unit, for receiving the transaction request initiated by client;
Acquiring unit, for obtaining the side's of being transferred to account from the transaction request;
The acquiring unit is also used to obtain the relevant information of each sub-block chain subregion from main block chain subregion;
Determination unit, it is corresponding for the side's of being transferred to account according to the determination of the relevant information of each sub-block chain subregion
Sub-block chain subregion;
Judging unit, for judging that account corresponding sub-block chain subregion in the side of being transferred to is corresponding with the side's of producing account
Sub-block chain subregion it is whether identical;
If the corresponding sub-block chain subregion of the side's of being transferred to account sub-block chain point corresponding with the side's of producing account
Area is different, the determination unit, is also used to the side's of being transferred to account according to the determination of the relevant information of each sub-block chain subregion
Accounting nodes in number corresponding sub-block chain subregion;
Transmission unit, in processing unit to the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account
After handling the transaction request, the transaction request is forwarded to the corresponding sub-block chain point of the side of being transferred to account
Accounting nodes in area, with by the accounting nodes in the corresponding sub-block chain subregion of the side's of being transferred to account to the transaction request
It is handled.
A kind of traction processing apparatus, is applied to client, and described device includes:
Generation unit, for generating transaction request;
The acquiring unit is also used to obtain the relevant information of each sub-block chain subregion from main block chain subregion;
Determination unit turns for being determined in the transaction request according to the relevant information of each sub-block chain subregion
The corresponding sub-block chain subregion of square account out;
Transmission unit, for the transaction request to be sent in the corresponding sub-block chain subregion of the side of producing account.
A kind of storage medium, is stored thereon with program, which realizes when being executed by processor at transaction as described above
Reason method.
A kind of electronic equipment, the electronic equipment include memory and processor, and the memory is for storing program, institute
Processor is stated for running program, wherein described program executes transaction processing method as described above when running.
A kind of block catenary system, the system comprises main block chain subregion and at least two sub-block chain subregions, wherein institute
It states at least two sub-block chain subregions and includes the first sub-block chain subregion and the second main block chain subregion,
Accounting nodes in the first sub-block chain subregion are used to receive the transaction request initiated by client;From described
The side's of being transferred to account is obtained in transaction request;The relevant information of each sub-block chain subregion is obtained from main block chain subregion;According to
Account corresponding sub-block chain subregion in the side's of being transferred to described in the relevant information of each sub-block chain subregion is determining;Judgement is described to be turned
Whether the corresponding sub-block chain subregion of the side's of entering account sub-block chain subregion corresponding with the side's of producing account is identical;If described
The corresponding sub-block chain subregion of the side's of being transferred to account sub-block chain subregion corresponding from the side's of producing account is different, according to described each
Accounting nodes in account corresponding sub-block chain subregion in the side's of being transferred to described in the relevant information of a sub-block chain subregion is determining;Institute
It states after the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account handle the transaction request, by the friendship
Easily request is forwarded to the accounting nodes in the corresponding second sub-block chain subregion of the side of being transferred to account;
Accounting nodes in the second sub-block chain subregion are used to receive the book keeping operation in the first sub-block chain subregion
The transaction request that node is sent, and the transaction request is handled.
By above-mentioned technical proposal, transaction processing method, device and block catenary system provided by the invention, the side's of producing account
Accounting nodes in corresponding sub-block chain subregion receive the transaction request initiated by client, obtain from main block chain subregion
The relevant information of each sub-block chain subregion;The side's of being transferred to account pair is determined according to the relevant information of each sub-block chain subregion
The sub-block chain subregion answered;If the corresponding sub-block chain subregion of the side's of being transferred to account son corresponding with the side's of producing account
Block chain subregion is different, according to account corresponding sub-district in the side's of being transferred to described in the determination of the relevant information of each sub-block chain subregion
Accounting nodes in block chain subregion;Accounting nodes in the corresponding sub-block chain subregion of the side's of producing account are to the transaction
After request is handled, the transaction request is forwarded to the book keeping operation in the corresponding sub-block chain subregion of the side of being transferred to account
Node, to be handled by the accounting nodes in the corresponding sub-block chain subregion of the side's of being transferred to account the transaction request.
Across subregion transaction is realized on the basis of block chain subregion, each sub-block chain subregion need to only handle corresponding account phase
The transaction of pass, multiple sub-block chain subregions can the relevant transaction of the multiple accounts of parallel processing, improve transaction processing efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Transaction processing method provided by the invention is suitable for including a main block chain subregion and at least two sub-block chains
The block catenary system (as shown in Figure 1) of subregion, wherein main block chain subregion is used to record the related letter of all sub-block chain subregions
Breath, relevant information includes but is not limited to the book keeping operation section in the division information of each sub-block chain subregion, each sub-block chain subregion
Point information, specifically, the division information of each sub-block chain subregion may include, the serial number of each sub-block chain subregion with it is each
The corresponding relationship of account number classification;Accounting nodes information in each sub-block chain subregion may include each sub-block chain subregion sequence
Corresponding relationship and each sub-block chain subregion serial number and each height number with book keeping operation people's public key in each sub-block chain subregion
The corresponding relationship of accounting nodes address in block chain subregion.Accounting nodes in each sub-block chain subregion can be from main block chain
The relevant information of all sub-block chain subregions is obtained in subregion.
In one embodiment, above-mentioned at least two sub-block chain subregions include that the first sub-block chain subregion and second are main
Block chain subregion, the accounting nodes in above-mentioned first sub-block chain subregion are used to receive by the transaction request of client initiation;From
The side's of being transferred to account is obtained in above-mentioned transaction request;The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
The corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account is determined according to the relevant information of above-mentioned each sub-block chain subregion;In judgement
Whether identical state the corresponding sub-block chain subregion of the side's of being transferred to account sub-block chain subregion corresponding with the above-mentioned side's of producing account;If
The corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain subregion corresponding from the above-mentioned side's of producing account is different, according to upper
The relevant information for stating each sub-block chain subregion determines accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account;
It, will be upper after the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account handle above-mentioned transaction request
State the accounting nodes that transaction request is forwarded in the corresponding second sub-block chain subregion of the above-mentioned side's of being transferred to account;Above-mentioned second sub-district
Accounting nodes in block chain subregion are used to receive the above-mentioned transaction that the accounting nodes in above-mentioned first sub-block chain subregion are sent and ask
It asks, and above-mentioned transaction request is handled.
It should be noted that the first sub-block chain subregion and the second sub-block chain subregion not refer in particular to certain two sub-block chain
Subregion can be any two sub-block chain subregion at least two sub-block chain subregions.
Attached drawing 2 is please referred to, Fig. 2 is a kind of flow diagram of transaction processing method disclosed by the embodiments of the present invention, the party
Method is applied to client, and the above method includes:
S100: transaction request is generated;
Transaction request can be by client generation, and a transaction may include the side of producing and the side of being transferred to, and use
The assets of certain number need to be produced to the side of being transferred in the instruction side of producing, that is, include the side of producing of the transaction in transaction request
Account and the side's of being transferred to account, and the number of transaction assets.
For example, client can be mobile phone, computer ... electronic equipment in the present embodiment, and client can be installed
There is relevant application software (such as wallet APP), to generate corresponding transaction request;
S110: the relevant information of each sub-block chain subregion is obtained from main block chain subregion;
Client needs to obtain the relevant information of each sub-block chain subregion from main block chain subregion.
S120: the side's of producing account in above-mentioned transaction request is determined according to the relevant information of above-mentioned each sub-block chain subregion
Corresponding sub-block chain subregion;
Client is after the relevant information for obtaining each sub-block chain subregion, according to the phase of above-mentioned each sub-block chain subregion
It closes information and determines the corresponding sub-block chain subregion of the above-mentioned side's of producing account;In one embodiment, client first determines above-mentioned
Account number classification belonging to the side's of producing account, then according to each sub-block chain in the relevant information of each sub-block chain subregion point
The serial number in area with the corresponding relationship of each account number classification determine the above-mentioned side's of producing account belonging to the corresponding sub-block of account number classification
Chain subregion serial number, so that it is determined that the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
S130: above-mentioned transaction request is sent in the corresponding sub-block chain subregion of the above-mentioned side's of producing account, so that above-mentioned
Accounting nodes in the corresponding sub-block chain subregion of the side's of producing account handle the transaction request.
After client determines the corresponding sub-block chain subregion of the above-mentioned side's of producing account, then transaction request is sent to
It states in the corresponding sub-block chain subregion of the side's of producing account, by the book keeping operation in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
Node receives the transaction request that above-mentioned client is sent and processing.
In the present embodiment, client can obtain the relevant information of each sub-block chain subregion from main block chain subregion,
And account corresponding sub-block chain subregion in the side's of producing in transaction request is obtained accordingly, transaction request is sent to the above-mentioned side's of producing account
In number corresponding sub-block chain subregion, by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account to the transaction
Request is handled.Accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account handle the transaction request
Detailed process will be illustrated in detail by way of the following examples.
Attached drawing 3 is please referred to, Fig. 3 is a kind of flow diagram of transaction processing method disclosed by the embodiments of the present invention, the party
Method is applied to the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account, and the above method includes:
S200: the transaction request initiated by client is received;
Accounting nodes reception in the corresponding sub-block chain subregion of the above-mentioned side's of producing account is asked by the transaction that client is initiated
Ask, in one embodiment, the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account can directly receive by
The transaction request that client is sent, in another embodiment, the transaction request that client is initiated can be first sent to except above-mentioned
Other nodes except accounting nodes in the corresponding sub-block chain subregion of the side's of producing account, the corresponding son of the above-mentioned side's of producing account
Accounting nodes in block chain subregion receive above-mentioned transaction request from other nodes again.
S210: the side's of being transferred to account is obtained from above-mentioned transaction request;
Accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account are in the transaction for receiving client initiation
After request, need to obtain the side's of being transferred to account from above-mentioned transaction request.
S220: the relevant information of each sub-block chain subregion is obtained from main block chain subregion;
Accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account, can be from master after the acquisition side of being transferred to account
The relevant information of each sub-block chain subregion is obtained in block chain subregion.
S230: the corresponding sub-block of the above-mentioned side's of being transferred to account is determined according to the relevant information of above-mentioned each sub-block chain subregion
Chain subregion;
Accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account are obtaining each sub-block chain subregion
After relevant information, the corresponding sub-block of the above-mentioned side's of being transferred to account is determined according to the relevant information of above-mentioned each sub-block chain subregion
Chain subregion, in one embodiment, the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account determine above-mentioned
Account number classification belonging to the side's of being transferred to account, then according to each sub-block chain in the relevant information of each sub-block chain subregion point
The serial number in area with the corresponding relationship of each account number classification determine the above-mentioned side's of being transferred to account belonging to the corresponding sub-block of account number classification
Chain subregion serial number, so that it is determined that the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account.
S240: judge the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block corresponding with the above-mentioned side's of producing account
Whether chain subregion is identical, executes S270 if identical if it is different, then executing S250 and S260;
In one embodiment, if the serial number of the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account is produced with above-mentioned
The serial number of the corresponding sub-block chain subregion of square account is identical, then determine the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account with it is upper
State that account corresponding sub-block chain subregion in the side's of producing is identical, if the serial number of the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account
The serial number of sub-block chain subregion corresponding from the above-mentioned side's of producing account is different, then determines the corresponding sub-block of the above-mentioned side's of being transferred to account
Chain subregion sub-block chain subregion corresponding from the above-mentioned side's of producing account is different.
S250: the corresponding sub-block of the above-mentioned side's of being transferred to account is determined according to the relevant information of above-mentioned each sub-block chain subregion
Accounting nodes in chain subregion;
It in one embodiment, can be according to above-mentioned each sub-block chain in the relevant information of each sub-block chain subregion
Subregion serial number determines that the above-mentioned side's of being transferred to account is corresponding with the corresponding relationship of the accounting nodes address in each sub-block chain subregion
Accounting nodes in sub-block chain subregion.
S260: the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account carry out above-mentioned transaction request
After processing, above-mentioned transaction request is forwarded to the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account, with
Above-mentioned transaction request is handled by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account.
S270: above-mentioned transaction request is carried out by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
Processing.
Transaction processing method disclosed in the present embodiment realizes across subregion transaction on the basis of block chain subregion, each
Sub-block chain subregion need to only handle the relevant transaction of corresponding account, and multiple sub-block chain subregions can the multiple accounts of parallel processing
Number relevant transaction, improves transaction processing efficiency.
After the transaction has been completed, the corresponding block chain subregion of the side's of producing account block chain subregion corresponding with the side's of being transferred to account
Transaction Information, is recorded in the area saved on each node in subregion by the broadcast that Transaction Information is all also carried out in subregion
On block chain;Moreover, only storage Transaction Information relevant to the node on the block chain saved on each node in different subregions,
And do not have to the Transaction Information for storing all nodes, to reduce the size of the block chain data of node storage.
For example, the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account to above-mentioned transaction request into
Row processing, it may include:
Determine the corresponding assets number of transaction request;
Above-mentioned assets number is deducted from the corresponding assets of the above-mentioned side's of producing account;
After deducting above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, across subregion synchronizing information is remembered
It records in the merkle tree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
Then, the above-mentioned book keeping operation section being forwarded to above-mentioned transaction request in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account
Point, comprising: above-mentioned transaction request and above-mentioned across subregion synchronizing information are forwarded to the corresponding sub-block chain of the above-mentioned side's of being transferred to account
Accounting nodes in subregion, with by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account according to it is above-mentioned across point
After synchronizing information confirmation in area's deducts above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, in the above-mentioned side's of being transferred to account
Increase above-mentioned assets number in number corresponding assets.
Above-mentioned transaction request and above-mentioned across subregion synchronizing information are then being forwarded to the corresponding sub-district of the above-mentioned side's of being transferred to account
After accounting nodes in block chain subregion, the above method further include: receive the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account
Acknowledgement information is completed in the transaction that interior accounting nodes are sent;Out of the above-mentioned side's of producing account corresponding sub-block chain subregion
Above-mentioned across subregion synchronizing information is deleted in merkle tree.
In the present embodiment, the trading processing of the side's of being transferred to account and the side's of producing account is able to verify that by across subregion synchronizing information
Authenticity can guarantee trading processing accuracy.
Attached drawing 4 is please referred to, Fig. 4 is a kind of concrete structure schematic diagram of traction processing apparatus disclosed by the embodiments of the present invention,
The device is applied to client, and above-mentioned apparatus includes:
Generation unit 10, for generating transaction request;
Acquiring unit 11 is also used to obtain the relevant information of each sub-block chain subregion from main block chain subregion;
Determination unit 12, for being determined in above-mentioned transaction request according to the relevant information of above-mentioned each sub-block chain subregion
The corresponding sub-block chain subregion of the side's of producing account;
Transmission unit 13, for above-mentioned transaction request to be sent to the corresponding sub-block chain subregion of the above-mentioned side's of producing account
It is interior.
Above-mentioned traction processing apparatus includes processor and memory, above-mentioned generation unit, acquiring unit, determination unit and
Transmission unit etc. stores in memory as program unit, executes above procedure list stored in memory by processor
Member realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, transaction processing efficiency is improved by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
Existing above-mentioned transaction processing method.
The embodiment of the invention provides a kind of processor, above-mentioned processor is for running program, wherein above procedure operation
The above-mentioned transaction processing method of Shi Zhihang.
The embodiment of the invention provides a kind of electronic equipment, electronic equipment includes processor, memory and is stored in storage
On device and the program that can run on a processor, processor perform the steps of when executing program
Generate transaction request;
The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
Determine that the side's of producing account in above-mentioned transaction request is corresponding according to the relevant information of above-mentioned each sub-block chain subregion
Sub-block chain subregion;
Above-mentioned transaction request is sent in the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
Electronic equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step:
Generate transaction request;
The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
Determine that the side's of producing account in above-mentioned transaction request is corresponding according to the relevant information of above-mentioned each sub-block chain subregion
Sub-block chain subregion;
Above-mentioned transaction request is sent in the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
Attached drawing 5 is please referred to, Fig. 5 is a kind of concrete structure schematic diagram of traction processing apparatus disclosed by the embodiments of the present invention,
The device is applied to the accounting nodes in the corresponding sub-block chain subregion of the side's of producing account, and above-mentioned apparatus includes:
Receiving unit 20, for receiving the transaction request initiated by client;
Acquiring unit 21, for obtaining the side's of being transferred to account from above-mentioned transaction request;
Above-mentioned acquiring unit 21 is also used to obtain the relevant information of each sub-block chain subregion from main block chain subregion;
Determination unit 22, for determining the above-mentioned side's of being transferred to account pair according to the relevant information of above-mentioned each sub-block chain subregion
The sub-block chain subregion answered;
Judging unit 23, for judging the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account and the above-mentioned side's of producing account pair
Whether the sub-block chain subregion answered is identical;
If the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Area is different, and above-mentioned determination unit 22 is also used to determine the above-mentioned side of being transferred to according to the relevant information of above-mentioned each sub-block chain subregion
Accounting nodes in the corresponding sub-block chain subregion of account;
Transmission unit 24, in processing unit 25 to the book keeping operation in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
After node handles above-mentioned transaction request, above-mentioned transaction request is forwarded to the corresponding sub-block of the above-mentioned side's of being transferred to account
Accounting nodes in chain subregion, with by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account to above-mentioned transaction
Request is handled.
Optionally, above-mentioned processing unit, is specifically used for:
Determine the corresponding assets number of transaction request;
Above-mentioned assets number is deducted from the corresponding assets of the above-mentioned side's of producing account;
After deducting above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, across subregion synchronizing information is remembered
It records in the merkle tree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
Optionally, above-mentioned transmission unit is specifically used for:
Above-mentioned transaction request and above-mentioned across subregion synchronizing information are forwarded to the corresponding sub-block chain of the above-mentioned side's of being transferred to account
Accounting nodes in subregion, with by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account according to it is above-mentioned across point
After synchronizing information confirmation in area's deducts above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, in the above-mentioned side's of being transferred to account
Increase above-mentioned assets number in number corresponding assets.
Optionally, above-mentioned receiving unit is also used to be forwarded to by above-mentioned transaction request and above-mentioned across subregion synchronizing information
After accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account, the corresponding sub-district of the above-mentioned side's of being transferred to account is received
Acknowledgement information is completed in the transaction that accounting nodes in block chain subregion are sent;
Above-mentioned processing unit is also used to from the merkletree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
Delete above-mentioned across subregion synchronizing information.
Optionally, above-mentioned processing unit, if be also used to the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account with it is above-mentioned
Account corresponding sub-block chain subregion in the side's of producing is different, by the book keeping operation section in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
Point handles above-mentioned transaction request.
Above-mentioned traction processing apparatus includes processor and memory, and above-mentioned receiving unit, determination unit, is sentenced acquiring unit
Disconnected unit, processing unit and transmission unit etc. store in memory as program unit, are stored in by processor execution
Above procedure unit in reservoir realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, transaction processing efficiency is improved by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
Existing above-mentioned transaction processing method.
The embodiment of the invention provides a kind of processor, above-mentioned processor is for running program, wherein above procedure operation
The above-mentioned transaction processing method of Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of when executing program
Receive the transaction request initiated by client;
The side's of being transferred to account is obtained from above-mentioned transaction request;
The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
The corresponding sub-block chain point of the above-mentioned side's of being transferred to account is determined according to the relevant information of above-mentioned each sub-block chain subregion
Area;
Judge the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Whether area is identical;
If the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Area is different, determines the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account according to the relevant information of above-mentioned each sub-block chain subregion
Interior accounting nodes;
Accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account handle above-mentioned transaction request
Later, above-mentioned transaction request is forwarded to the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account, by upper
The accounting nodes stated in the corresponding sub-block chain subregion of the side's of being transferred to account handle above-mentioned transaction request.
Optionally, the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account carry out above-mentioned transaction request
Processing, comprising:
Determine the corresponding assets number of transaction request;
Above-mentioned assets number is deducted from the corresponding assets of the above-mentioned side's of producing account;
After deducting above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, across subregion synchronizing information is remembered
It records in the merkle tree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
Optionally, the above-mentioned note being forwarded to above-mentioned transaction request in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account
Account node, comprising:
Above-mentioned transaction request and above-mentioned across subregion synchronizing information are forwarded to the corresponding sub-block chain of the above-mentioned side's of being transferred to account
Accounting nodes in subregion, with by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account according to it is above-mentioned across point
After synchronizing information confirmation in area's deducts above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, in the above-mentioned side's of being transferred to account
Increase above-mentioned assets number in number corresponding assets.
Optionally, that above-mentioned transaction request and above-mentioned across subregion synchronizing information are forwarded to the above-mentioned side's of being transferred to account is corresponding
After accounting nodes in sub-block chain subregion, the above method further include:
It receives the transaction that the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account are sent and completes receipt letter
Breath;
Above-mentioned across subregion synchronization is deleted from the merkle tree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
Information.
Optionally, the above method further include:
If the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Area is different, is handled by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account above-mentioned transaction request.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step:
Receive the transaction request initiated by client;
The side's of being transferred to account is obtained from above-mentioned transaction request;
The relevant information of each sub-block chain subregion is obtained from main block chain subregion;
The corresponding sub-block chain point of the above-mentioned side's of being transferred to account is determined according to the relevant information of above-mentioned each sub-block chain subregion
Area;
Judge the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Whether area is identical;
If the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Area is different, determines the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account according to the relevant information of above-mentioned each sub-block chain subregion
Interior accounting nodes;
Accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account handle above-mentioned transaction request
Later, above-mentioned transaction request is forwarded to the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account, by upper
The accounting nodes stated in the corresponding sub-block chain subregion of the side's of being transferred to account handle above-mentioned transaction request.
Optionally, the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account carry out above-mentioned transaction request
Processing, comprising:
Determine the corresponding assets number of transaction request;
Above-mentioned assets number is deducted from the corresponding assets of the above-mentioned side's of producing account;
After deducting above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, across subregion synchronizing information is remembered
It records in the merkle tree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account.
Optionally, the above-mentioned note being forwarded to above-mentioned transaction request in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account
Account node, comprising:
Above-mentioned transaction request and above-mentioned across subregion synchronizing information are forwarded to the corresponding sub-block chain of the above-mentioned side's of being transferred to account
Accounting nodes in subregion, with by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account according to it is above-mentioned across point
After synchronizing information confirmation in area's deducts above-mentioned assets number in the corresponding assets of the above-mentioned side's of producing account, in the above-mentioned side's of being transferred to account
Increase above-mentioned assets number in number corresponding assets.
Optionally, that above-mentioned transaction request and above-mentioned across subregion synchronizing information are forwarded to the above-mentioned side's of being transferred to account is corresponding
After accounting nodes in sub-block chain subregion, the above method further include:
It receives the transaction that the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account are sent and completes receipt letter
Breath;
Above-mentioned across subregion synchronization is deleted from the merkle tree in the corresponding sub-block chain subregion of the above-mentioned side's of producing account
Information.
Optionally, the above method further include:
If the corresponding sub-block chain subregion of the above-mentioned side's of being transferred to account sub-block chain point corresponding with the above-mentioned side's of producing account
Area is different, is handled by the accounting nodes in the corresponding sub-block chain subregion of the above-mentioned side's of producing account above-mentioned transaction request.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
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.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.