CN108765142A - Electronic device, multi-tiling chain integral traffic control method and computer readable storage medium - Google Patents
Electronic device, multi-tiling chain integral traffic control method and computer readable storage medium Download PDFInfo
- Publication number
- CN108765142A CN108765142A CN201810272288.6A CN201810272288A CN108765142A CN 108765142 A CN108765142 A CN 108765142A CN 201810272288 A CN201810272288 A CN 201810272288A CN 108765142 A CN108765142 A CN 108765142A
- Authority
- CN
- China
- Prior art keywords
- block
- chain
- block chain
- new
- identified
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The present invention discloses a kind of electronic device, multi-tiling chain integral traffic control method and computer readable storage medium.The present invention forms new full dose block when each block chain generates new block, further according to the block that all block chains are newly inserted into, and the new full dose block of generation is inserted into full dose chain, and full dose chain realizes the extending transversely of a plurality of block chain, and storage is facilitated to back up and manage.
Description
Technical field
The present invention relates to more particularly to a kind of electronic device, multi-tiling chain integral traffic control method and computer-readable storages
Medium.
Background technology
Block chain technology have decentralization, information can not tamper the features such as, can be realized in many ways with block chain technology
The transaction event (for example, money transfer transactions, payment transaction etc.) of participation, for example, bank A and bank B is traded on block chain,
So every other node can all know this transaction on the block chain, other participants can participate in confirming that transaction is accurate together
Property, prevent distorting for information.Further, block chain is substantially a distributed database based on intelligent contract, area
Information above block chain will be gone on P2P (Peer-to-peer, equity) network sharing to all nodes.
Industry carries out scene usually using single block chain and answers in the scene applied to block chain technology at present
With, and using single block chain performance of transaction is difficult to improve by machine limit.Although industry also occurs using a plurality of area
Block chain carries out the scheme of scene application, and transaction hash is executed transaction to different block chains, to improve performance of transaction, and can be expanded
Malleability.
But in the existing scheme for carrying out scene application using a plurality of block chain, memory block is usually dispersed in a plurality of
Block chain, it is difficult to it manages, meanwhile, block chain is once generated and can not be changed, also complex when needing extending transversely.
Invention content
The main object of the present invention is solved in a plurality of block chain scene, and storage data are difficult to manage, and block chain is lateral
Extend difficult problem.
To achieve the above object, a kind of multi-tiling chain integral traffic control method proposed by the present invention, the multi-tiling chain
Integral traffic control method includes:
First query steps:When being inserted into a block on a block chain of a plurality of block chain, received from the block chain
It is inserted into the notice of the block, alternatively, inquiring whether a plurality of block chain has new block to generate in real time or periodically;
Second query steps:When there is new block to generate, periodically or receiving the block that user sends out merge instruction
Afterwards, according to the block-identified mapping relations data of each block chain to prestore and the first preset kind, a plurality of block is inquired
Second preset kind of the new block that chain generates within a preset period of time is block-identified, and it is each to inquire a plurality of block chain respectively
The block-identified preset kind block information of corresponding second preset kind on chain;
Sequence step:According to all preset kind block informations inquired, by all the second of a plurality of block chain
The transaction in the block of the block-identified area of preset kind is sorted according to chronological order;
Transaction executes step:It is executed in the block block-identified with the second preset kind according to the ranking results
Transaction, and generate new full dose block;
Inserting step:The new full dose block of generation is inserted into full dose chain, and stores a plurality of block chain respectively and exists
Described first during second preset kind of the corresponding new block is block-identified in the new full dose block generating process
Preset kind is block-identified.
Preferably, it is block ID that the preset kind is block-identified, and first preset kind is block-identified for maximum area
Block ID, block-identified second preset kind is new block ID.
Preferably, wherein second query steps include:
Periodically or after receiving the block that user sends out and merging instruction, according to the block chain to prestore and maximum block
The mapping relations data of ID are produced out of each block chain query the corresponding maximum block ID to the preset time period respectively
The new block ID of the raw new block;
The preset kind block letter of the corresponding new block ID on described each chain of a plurality of block chain is inquired respectively
Breath.
Preferably, this method further includes:
The transaction request achievement data of each block chain in preset time period described in real-time or timing acquisition;
Go out block number evidence according to the block of each block chain, calculates the real trade processing index number of each block chain
According to;
Index number is handled according to the real trade of the transaction request achievement data of each block chain and each block chain
According to calculating the total number of the block chain of needs;
If the total number calculated is more than the currently running block chain number, calculates the total number and subtract
The difference quantities of the currently running block chain number, and it is directly based upon the block data of the full dose chain, it increases newly and enables institute
State the block chain of the not enabled of difference quantities;
If the total number calculated is less than the currently running block chain number, calculate currently running described
Block chain number subtracts the difference quantities of the total number, and is directly based upon the block data of the full dose chain, from enabled
Stop enabling the enabled block chain of the difference quantities in the block chain.
Preferably, this method further includes:
If receiving the point spread request for the preset kind nodal information with node to be increased that user sends out, respond
The point spread is asked, and the data for being directly based upon the full dose chain start new node.
In addition, to achieve the above object, the present invention provides a kind of electronic device, which is suitable for full dose chain, should
Electronic device includes memory and processor, and it is whole that the multi-tiling chain that can be run on the processor is stored on the memory
Control program is closed, the multi-tiling chain integral traffic control program realizes following steps when being executed by the processor:
First query steps:When being inserted into a block on a block chain of a plurality of block chain, received from the block chain
It is inserted into the notice of the block, alternatively, inquiring whether a plurality of block chain has new block to generate in real time or periodically;
Second query steps:When there is new block to generate, periodically or receiving the block that user sends out merge instruction
Afterwards, according to the block-identified mapping relations data of each block chain to prestore and the first preset kind, a plurality of block is inquired
Second preset kind of the new block that chain generates within a preset period of time is block-identified, and it is each to inquire a plurality of block chain respectively
The block-identified preset kind block information of corresponding second preset kind on chain;
Sequence step:According to all preset kind block informations inquired, by all the second of a plurality of block chain
The transaction in the block of the block-identified area of preset kind is sorted according to chronological order;
Transaction executes step:It is executed in the block block-identified with the second preset kind according to the ranking results
Transaction, and generate new full dose block;
Inserting step:The new full dose block of generation is inserted into full dose chain, and stores a plurality of block chain respectively and exists
Described first during second preset kind of the corresponding new block is block-identified in the new full dose block generating process
Preset kind is block-identified.
Preferably, it is block ID that the preset kind is block-identified, and first preset kind is block-identified for maximum area
Block ID, block-identified second preset kind is new block ID.
Preferably, second query steps include:
Periodically or after receiving the block that user sends out and merging instruction, according to the block chain to prestore and maximum block
The mapping relations data of ID are produced out of each block chain query the corresponding maximum block ID to the preset time period respectively
The new block ID of the raw new block;
The preset kind area for inquiring the corresponding new block ID on described each chain of a plurality of block chain respectively
Block message.
Preferably, it when the multi-tiling chain integral traffic control program is executed by the processor, is additionally operable to execute following steps:
The transaction request achievement data of each block chain in preset time period described in real-time or timing acquisition;
Go out block number evidence according to the block of each block chain, calculates the real trade processing index number of each block chain
According to;
Index number is handled according to the real trade of the transaction request achievement data of each block chain and each block chain
According to calculating the total number of the block chain of needs;
If the total number calculated is more than the currently running block chain number, calculates the total number and subtract
The difference quantities of the currently running block chain number, and it is directly based upon the block data of the full dose chain, it increases newly and enables institute
State the block chain of the not enabled of difference quantities;
If the total number calculated is less than the currently running block chain number, calculate currently running described
Block chain number subtracts the difference quantities of the total number, and is directly based upon the block data of the full dose chain, from enabled
Stop enabling the enabled block chain of the difference quantities in the block chain.
Preferably, it when the multi-tiling chain integral traffic control program is executed by the processor, is additionally operable to execute following steps:
If receiving the point spread request for the preset kind nodal information with node to be increased that user sends out, respond
The point spread is asked, and the data for being directly based upon the full dose chain start new node.
In addition, to achieve the above object, the present invention provides a kind of computer readable storage medium, described computer-readable to deposit
Storage media is stored with multi-tiling chain integral traffic control program, and the program of the multi-tiling chain integral traffic control module can be by least one place
It manages device to execute, so that at least one processor executes multi-tiling chain integral traffic control method described in any one of the above embodiments.
The present invention is formed new complete when each block chain generates new block further according to the block that all block chains are newly inserted into
Block is measured, the new full dose block of generation is inserted into full dose chain, full dose chain realizes the extending transversely of a plurality of block chain, facilitates storage
Backup and management.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the flow diagram of multi-tiling chain integral traffic control method first embodiment of the present invention;
Fig. 2 is the running environment schematic diagram of the program first embodiment of multi-tiling chain integral traffic control module of the present invention;
Fig. 3 is the Program modual graph of the program second embodiment of multi-tiling chain integral traffic control module of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
As shown in FIG. 1, FIG. 1 is the flow diagrams of multi-tiling chain integral traffic control method first embodiment of the present invention.
In the present embodiment, this method includes:
Step S10 is received to be inserted into from the block chain and be somebody's turn to do when being inserted into a block on a block chain of a plurality of block chain
The notice of block, alternatively, inquiring whether a plurality of block chain has new block to generate in real time or periodically;
The multi-tiling chain integral traffic control module of full dose chain is in real time or whether timing has new block to each block chain query
It generates, if there is new block to generate, thens follow the steps S20, if not new block generates, return continues to inquire.
In addition, whether the multi-tiling chain integral traffic control module of above-mentioned full dose chain has to each block chain query in real time or periodically
The step of new block generates can be replaced by following steps:If being inserted on the chain of a block chain of a plurality of block chain (abbreviation subregion)
When entering a block, the multi-tiling chain integral traffic control module of full dose chain, multi-tiling chain integral traffic control module are notified by the block chain
After the notice for receiving the block, step S20 is executed.
Step S20, when there is new block to generate, periodically or after receiving the block that user sends out and merging instruction, root
According to the block-identified mapping relations data of each block chain to prestore and the first preset kind, a plurality of block chain is inquired pre-
If the second preset kind of the new block generated in the period is block-identified, and inquires respectively on described each chain of a plurality of block chain
The block-identified preset kind block information of corresponding second preset kind;
Above-mentioned first preset kind is block-identified to be exemplified as maximum block ID, and the second preset kind is block-identified to illustrate
For new block ID.
Above-mentioned each block chain and the block-identified mapping relations data of the first preset kind pre-set and store,
The mapping relations data can be mapping table.
If there is new block to generate in block chain, the timing of multi-tiling chain integral traffic control module or sent out receiving user
Block merge instruction after, according to the block-identified mapping relations data of each block chain to prestore and the first preset kind, from
Second preset kind block mark of the new block that (for example, in nearest 48 hours) generate in each block chain query preset time period
Know, and preset kind block letter block-identified from corresponding second preset kind in each block chain query respectively chain respectively
Breath, for example, the time that the preset kind block information, which includes block, to be generated, unique cryptographic Hash of block, block included
Transaction Information, block signature etc., every Transaction Information includes exchange hour, produces account address, is transferred to account address, gold of transferring accounts
Volume, service charge, trading signature etc..
Step S30, it is pre- by all the second of a plurality of block chain according to all preset kind block informations inquired
If the transaction in the block of the block-identified area of type is sorted according to chronological order;
Above-mentioned preset kind block information includes exchange hour, therefore, can be block-identified to all second preset kinds
Area it is in the block transaction sort according to chronological order.
Step S40 executes the area in the block friendship block-identified with the second preset kind according to the ranking results
Easily, and new full dose block is generated;
The new full dose block of generation is inserted into full dose chain, and stores a plurality of block chain respectively at this by step S50
Described first during second preset kind of the corresponding new block is block-identified in new full dose block generating process is pre-
If type is block-identified.
A plurality of block chain is merged into a block chain (referred to as full dose chain), the full dose sequence of the full dose chain by the present embodiment
Root tuber is generated according to the new block that a plurality of block chain generates, including in a plurality of block chain block data, therefore full dose chain is real
The extending transversely of a plurality of block chain is showed, storage is facilitated to back up and manage.
Further, in the present embodiment, the block-identified preset kind is block ID (identification), described
Block-identified first preset kind is maximum block ID, and block-identified second preset kind is new block ID, above-mentioned steps
S20 includes:
Periodically or after receiving the block that user sends out and merging instruction, according to the block chain to prestore and maximum block
The mapping relations data of ID, respectively out of each block chain query the corresponding maximum block ID to the preset time period
The new block ID for the new block that (for example, nearest 48 hours) generate;
The preset kind area for inquiring the corresponding new block ID on described each chain of a plurality of block chain respectively
Block message.
Further, in the present embodiment, which further includes:
If receiving the point spread request for the preset kind nodal information with node to be increased that user sends out, respond
The point spread is asked, and the data for being directly based upon the full dose chain start new node.
In multi-tiling chain integral traffic control method second embodiment of the present invention, the present embodiment on the basis of first embodiment,
This method further includes:
In real time or timing acquisition preset time period in (for example, in nearest 24 hours) each block chain transaction request index
Data;
Above-mentioned transaction request achievement data can obtain there are 100000 Ru per second from the transaction request log statistic of front end
Transaction request, then transaction request achievement data is 100000/second.
Go out block number evidence according to the block of each block chain, calculates the real trade processing achievement data of each block chain;
For example, it is above-mentioned go out block number according to including block duration and area number of transaction in the block, above-mentioned real trade processing refers to
Mark data can be calculated according to block duration and area number of transaction in the block is gone out, and such as goes out within 10 seconds a block, is wrapped in block
10000 transactions are contained, then real trade processing achievement data is 10000/10=1000/second.
Achievement data is handled according to the real trade of the transaction request achievement data of each block chain and each block chain, is calculated
The total number of the block chain needed;
For example, it is assumed that it is 100000/second, real trade processing that current system, which only has 1 chain, transaction request achievement data,
Achievement data is 1000/second, then the total number of the block chain needed is 100000/1000=10, and the total number is 10.
If the total number calculated is more than currently running block chain number, calculates the total number and subtract current operation
Block chain number difference quantities, and be directly based upon the block data of full dose chain, it is newly-increased to enable not opening for the difference quantities
Block chain;
If the total number calculated is less than currently running block chain number, calculates currently running block chain number and subtract
The difference quantities of the total number are removed, and are directly based upon the block data of full dose chain, stop enabling from enabled block chain
The enabled block chain of the difference quantities.
In addition, the present invention also proposes a kind of multi-tiling chain integral traffic control program.
Referring to Fig. 2, being the running environment schematic diagram of 10 first embodiment of multi-tiling chain integral traffic control program of the present invention.
In the present embodiment, multi-tiling chain integral traffic control program 10 is installed and is run in electronic device 1.The electronic device
1 is suitable for full dose chain, which may include, but be not limited only to, memory 11, processor 12 and display 13.Fig. 2 is only
Show the electronic device 1 with component 11-13, it, can be with it should be understood that be not required for implementing all components shown
The implementation of replacement is more or less component.
Memory 11 can be the internal storage unit of electronic device 1 in some embodiments, such as the electronic device 1
Hard disk or memory.Memory 11 can also be the External memory equipment of electronic device 1, such as electronics dress in further embodiments
Set the plug-in type hard disk being equipped on 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include the interior of electronic device 1
Portion's storage unit also includes External memory equipment.Memory 11 is for storing the application software for being installed on electronic device 1 and all kinds of
Data, for example, multi-tiling chain integral traffic control program 10 program code etc..Memory 11 can be also used for temporarily storing
Output or the data that will be exported.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), microprocessor or other data processing chips, the program code for being stored in run memory 11 or processing data, example
Such as execute multi-tiling chain integral traffic control program 10.
Display 13 can be in some embodiments light-emitting diode display, liquid crystal display, touch-control liquid crystal display and
OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Display 13 is for being shown in
The information that is handled in electronic device 1 and for showing visual user interface.The component 11-13 of electronic device 1, which passes through, is
System bus is in communication with each other.
Referring to Fig. 3, Fig. 3 is the Program modual graph of 10 first embodiment of multi-tiling chain integral traffic control program of the present invention.
In the present embodiment, multi-tiling chain integral traffic control program 10 can be divided into one or more modules, one or
The multiple modules of person are stored in memory 11, and performed by one or more processors (the present embodiment is processor 12),
To complete the present invention.For example, in figure 3, multi-tiling chain integral traffic control program 10 can be divided into the first query unit 101,
Second query unit 102, transaction sequencing unit 103, transaction execution unit 104 and updating unit 105.The so-called module of the present invention
It is the series of computation machine program instruction section for referring to complete specific function, control is integrated more suitable for description multi-tiling chain than program
The implementation procedure of processing procedure sequence 10 in the electronic apparatus 1, wherein:
First query unit 101 is used for when being inserted into a block on a block chain of a plurality of block chain, from the block
Chain receives the notice for being inserted into the block, alternatively, inquiring whether a plurality of block chain has new block to generate in real time or periodically;
Second query unit 102, for when there is new block to generate, periodically or receiving the block that user sends out closing
And after instructing, according to the block-identified mapping relations data of each block chain to prestore and the first preset kind, inquiry is described more
Second preset kind of the new block that block chain generates within a preset period of time is block-identified, and inquires a plurality of area respectively
The block-identified preset kind block information of corresponding second preset kind on each chain of block chain;
Transaction sequencing unit 103, for all preset kind block informations that basis inquires, by a plurality of block chain
All second preset kinds it is block-identified area it is in the block transaction sort according to chronological order;
Transaction execution unit 104, area's transaction in the block for having the second preset kind block-identified, and generate new complete
Measure block;
Updating unit 105, the new full dose block for that will generate is inserted into full dose chain, and stores a plurality of area respectively
Institute during second preset kind of block chain corresponding new block in the new full dose block generating process is block-identified
It is block-identified to state the first preset kind.
First query unit 101 is in real time or whether timing has new block to generate to each block chain query, if having new
Block generates, then calls the second query unit 102, if not new block generates, return continues to inquire.
In addition, above-mentioned first query unit 101 can also carry out following steps:If one of a plurality of block chain (abbreviation subregion)
When being inserted into a block on the chain of block chain, the first query unit 101, the first query unit 101 is notified to receive by the block chain
To after the notice of the block, the second query unit 102 is called.
Above-mentioned first preset kind is block-identified to be exemplified as maximum block ID, and the second preset kind is block-identified to illustrate
For new block ID.
Above-mentioned each block chain and the block-identified mapping relations data of the first preset kind pre-set and store,
The mapping relations data can be mapping table.
If there is new block to generate in block chain, 102 timing of the second query unit or in the area for receiving user and sending out
After merged block instruction, according to the block-identified mapping relations data of each block chain to prestore and the first preset kind, from each item
Second preset kind of the new block that (for example, in nearest 48 hours) generate in block chain query preset time period is block-identified,
And the preset kind block information block-identified from corresponding second preset kind in each block chain query respectively chain respectively, example
Such as, the preset kind block information includes the transaction letter that time for generating of block, unique cryptographic Hash of block, block are included
Breath, block signature etc., every Transaction Information includes exchange hour, produces account address, is transferred to account address, transfer amounts, hand
It continues to pay dues, trading signature etc..Sequencing unit 103 merchandise according to all preset kind block informations of inquiry, by all block chains
The transaction in the block of the block-identified area of all second preset kinds is arranged according to chronological order;Merchandising execution unit 104 will
Area's transaction in the block that all second preset kinds of all block chains are block-identified executes transaction by clooating sequence and generates new
Full dose block;The new full dose block of generation is inserted into full dose chain by updating unit 105, and it is new complete at this to store each block chain respectively
The first preset kind block mark during the second preset kind of corresponding all new blocks is block-identified in amount block generating process
Know.
When each block chain generates new block, the block being newly inserted into according to all block chains is formed newly full the present embodiment
Block is measured, the new full dose block of generation is inserted into full dose chain, full dose chain realizes the extending transversely of a plurality of block chain, facilitates storage
Backup and management.
Further, in the present embodiment, the block-identified preset kind is block ID, the first preset kind block
It is identified as maximum block ID, block-identified second preset kind is new block ID, and above-mentioned second query unit 102 is also used
In:
Periodically or after receiving the block that user sends out and merging instruction, according to the block chain to prestore with maximum block ID's
Mapping relations data, respectively (for example, nearest 48 is small out of each block chain query corresponding maximum block ID to preset time period
When it is interior) generate new block new block ID;
Respectively from the preset kind block information of corresponding new block ID in each block chain query respectively chain.
Further, in the present embodiment, the updating unit 105 is additionally operable to:
It is described if receiving the point spread request for the preset kind nodal information with node to be increased that user sends out
Point spread request is responded, the data for being directly based upon the full dose chain start new node.
In 10 second embodiment of multi-tiling chain integral traffic control program of the present invention, the present embodiment is on the basis of first embodiment
On, which is additionally operable to:
(for example, in nearest 24 hours), the transaction request of each block chain refers in real time or in timing acquisition preset time period
Mark data;
Go out block number evidence according to the block of each block chain, calculates the real trade processing achievement data of each block chain;
Achievement data, meter are handled according to the real trade of the transaction request achievement data of each block chain and each block chain
Calculate the total number of the block chain needed;
If the total number calculated is more than currently running block chain number, calculates the total number and subtract current operation
Block chain number difference quantities, and be directly based upon the block data of full dose chain, it is newly-increased to enable not opening for the difference quantities
Block chain;
If the total number calculated is less than currently running block chain number, calculates currently running block chain number and subtract
The difference quantities of the total number are removed, and are directly based upon the block data of full dose chain, stop enabling from enabled block chain
The enabled block chain of the difference quantities.
Above-mentioned transaction request achievement data can obtain there are 100000 Ru per second from the transaction request log statistic of front end
Transaction request, then transaction request achievement data is 100000/second.
It is above-mentioned go out block number according to including block duration and area number of transaction in the block, above-mentioned real trade handles achievement data
It can be calculated according to block duration and area number of transaction in the block is gone out, such as go out within 10 seconds a block, contained in block
10000 transactions, then real trade processing achievement data is 10000/10=1000/second.
Above-mentioned second computing unit is according to the practical friendship of the transaction request achievement data and each block chain of each block chain
The step of disposable achievement data, the total number for calculating the block chain of needs can be specially:Assuming that current system only has 1
Chain, transaction request achievement data is 100000/second, real trade processing achievement data is 1000/second, the then block needed
The total number of chain is 100000/1000=10, and the total number is 10.
Further, the present invention also proposes that a kind of computer readable storage medium, the computer readable storage medium are deposited
Multi-tiling chain integral traffic control program is contained, the multi-tiling chain integral traffic control program can be executed by least one processor, so that
At least one processor executes the multi-tiling chain integral traffic control method in any of the above-described embodiment.
The foregoing is merely the preferred embodiment of the present invention, are not intended to limit the scope of the invention, every at this
Under the inventive concept of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/use indirectly
In the scope of patent protection that other related technical areas are included in the present invention.
Claims (11)
1. a kind of multi-tiling chain integral traffic control method, which is characterized in that the multi-tiling chain integral traffic control method includes:
First query steps:When being inserted into a block on a block chain of a plurality of block chain, receives and be inserted into from the block chain
The notice of the block, alternatively, inquiring whether a plurality of block chain has new block to generate in real time or periodically;
Second query steps:When there is new block to generate, periodically or after receiving the block that user sends out and merging instruction, root
According to the block-identified mapping relations data of each block chain to prestore and the first preset kind, a plurality of block chain is inquired pre-
If the second preset kind of the new block generated in the period is block-identified, and inquires respectively on described each chain of a plurality of block chain
The block-identified preset kind block information of corresponding second preset kind;
Sequence step:According to all preset kind block informations inquired, all the second of a plurality of block chain are preset
The transaction in the block of the block-identified area of type is sorted according to chronological order;
Transaction executes step:The area in the block friendship block-identified with the second preset kind is executed according to the ranking results
Easily, and new full dose block is generated;
Inserting step:The new full dose block of generation is inserted into full dose chain, and it is new at this to store a plurality of block chain respectively
Described first during second preset kind of the corresponding new block is block-identified in full dose block generating process is default
Type is block-identified.
2. multi-tiling chain integral traffic control method as described in claim 1, which is characterized in that the preset kind is block-identified to be
Block ID, block-identified first preset kind is maximum block ID, and block-identified second preset kind is new block
ID。
3. multi-tiling chain integral traffic control method as claimed in claim 2, which is characterized in that wherein, second query steps
Including:
Periodically or after receiving the block that user sends out and merging instruction, according to the block chain to prestore with maximum block ID's
Mapping relations data are generated out of each block chain query the corresponding maximum block ID to the preset time period respectively
The new block ID of the new block;
The preset kind block information of the corresponding new block ID on described each chain of a plurality of block chain is inquired respectively.
4. multi-tiling chain integral traffic control method as claimed any one in claims 1 to 3, which is characterized in that this method is also wrapped
It includes:
The transaction request achievement data of each block chain in preset time period described in real-time or timing acquisition;
Go out block number evidence according to the block of each block chain, calculates the real trade processing achievement data of each block chain;
Achievement data, meter are handled according to the real trade of the transaction request achievement data of each block chain and each block chain
Calculate the total number of the block chain needed;
If the total number calculated is more than the currently running block chain number, calculates the total number and subtract currently
The difference quantities of the block chain number of operation, and it is directly based upon the block data of the full dose chain, it increases newly and enables the difference
It is worth the block chain of the not enabled of quantity;
If the total number calculated is less than the currently running block chain number, the currently running block is calculated
Chain number subtracts the difference quantities of the total number, and is directly based upon the block data of the full dose chain, from enabled described
Stop enabling the enabled block chain of the difference quantities in block chain.
5. multi-tiling chain integral traffic control method as claimed any one in claims 1 to 3, which is characterized in that this method is also wrapped
It includes:
If receiving the point spread request for the preset kind nodal information with node to be increased that user sends out, the section is responded
Point extended requests, the data for being directly based upon the full dose chain start new node.
6. a kind of electronic device, which is suitable for full dose chain, which is characterized in that the electronic device includes memory and place
Device is managed, the multi-tiling chain integral traffic control program that can be run on the processor, the multi-tiling are stored on the memory
Chain integral traffic control program realizes following steps when being executed by the processor:
First query steps:When being inserted into a block on a block chain of a plurality of block chain, receives and be inserted into from the block chain
The notice of the block, alternatively, inquiring whether a plurality of block chain has new block to generate in real time or periodically;
Second query steps:When there is new block to generate, periodically or after receiving the block that user sends out and merging instruction, root
According to the block-identified mapping relations data of each block chain to prestore and the first preset kind, a plurality of block chain is inquired pre-
If the second preset kind of the new block generated in the period is block-identified, and inquires respectively on described each chain of a plurality of block chain
The block-identified preset kind block information of corresponding second preset kind;
Sequence step:According to all preset kind block informations inquired, all the second of a plurality of block chain are preset
The transaction in the block of the block-identified area of type is sorted according to chronological order;
Transaction executes step:The area in the block friendship block-identified with the second preset kind is executed according to the ranking results
Easily, and new full dose block is generated;
Inserting step:The new full dose block of generation is inserted into full dose chain, and it is new at this to store a plurality of block chain respectively
Described first during second preset kind of the corresponding new block is block-identified in full dose block generating process is default
Type is block-identified.
7. electronic device as claimed in claim 6, which is characterized in that the block-identified preset kind is block ID, described
Block-identified first preset kind is maximum block ID, and block-identified second preset kind is new block ID.
8. electronic device as claimed in claim 7, which is characterized in that second query steps include:
Periodically or after receiving the block that user sends out and merging instruction, according to the block chain to prestore with maximum block ID's
Mapping relations data are generated out of each block chain query the corresponding maximum block ID to the preset time period respectively
The new block ID of the new block;
The preset kind block letter for inquiring the corresponding new block ID on described each chain of a plurality of block chain respectively
Breath.
9. the electronic device as described in any one of claim 6 to 7, which is characterized in that the multi-tiling chain integral traffic control journey
When sequence is executed by the processor, it is additionally operable to execute following steps:
The transaction request achievement data of each block chain in preset time period described in real-time or timing acquisition;
Go out block number evidence according to the block of each block chain, calculates the real trade processing achievement data of each block chain;
Achievement data, meter are handled according to the real trade of the transaction request achievement data of each block chain and each block chain
Calculate the total number of the block chain needed;
If the total number calculated is more than the currently running block chain number, calculates the total number and subtract currently
The difference quantities of the block chain number of operation, and it is directly based upon the block data of the full dose chain, it increases newly and enables the difference
It is worth the block chain of the not enabled of quantity;
If the total number calculated is less than the currently running block chain number, the currently running block is calculated
Chain number subtracts the difference quantities of the total number, and is directly based upon the block data of the full dose chain, from enabled described
Stop enabling the enabled block chain of the difference quantities in block chain.
10. the electronic device as described in any one of claim 6 to 7, which is characterized in that the multi-tiling chain integral traffic control journey
When sequence is executed by the processor, it is additionally operable to execute following steps:
If receiving the point spread request for the preset kind nodal information with node to be increased that user sends out, the section is responded
Point extended requests, the data for being directly based upon the full dose chain start new node.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has multi-tiling chain
Integral traffic control program, the multi-tiling chain integral traffic control program can be executed by least one processor, so that described at least one
Processor executes multi-tiling chain integral traffic control method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810272288.6A CN108765142B (en) | 2018-03-29 | 2018-03-29 | Electronic device, multi-blockchain integration control method, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810272288.6A CN108765142B (en) | 2018-03-29 | 2018-03-29 | Electronic device, multi-blockchain integration control method, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108765142A true CN108765142A (en) | 2018-11-06 |
CN108765142B CN108765142B (en) | 2020-07-31 |
Family
ID=63980749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810272288.6A Active CN108765142B (en) | 2018-03-29 | 2018-03-29 | Electronic device, multi-blockchain integration control method, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108765142B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109687953A (en) * | 2018-12-24 | 2019-04-26 | 杭州复杂美科技有限公司 | Classification of business transaction method, equipment and storage medium |
CN111031100A (en) * | 2019-11-21 | 2020-04-17 | 上海交通大学 | Extended block chain storage method, system and medium |
CN111159283A (en) * | 2019-11-25 | 2020-05-15 | 东软集团股份有限公司 | Method, device and equipment for combining blocks in block chain |
CN112487094A (en) * | 2020-12-08 | 2021-03-12 | 深圳供电局有限公司 | Method and device for synchronizing energy block data, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160125403A1 (en) * | 2014-04-28 | 2016-05-05 | Chin-hao Hu | Offline virtual currency transaction |
CN107239940A (en) * | 2017-05-11 | 2017-10-10 | 北京博晨技术有限公司 | Network trading method and device based on block catenary system |
CN107368259A (en) * | 2017-05-25 | 2017-11-21 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that business datum is write in the catenary system to block |
CN107391649A (en) * | 2017-07-14 | 2017-11-24 | 浙商银行股份有限公司 | A kind of system and method for lifting block chain query efficiency |
CN107688945A (en) * | 2017-08-11 | 2018-02-13 | 杭州秘猿科技有限公司 | A kind of efficient license chain based on delaying state common recognition |
CN107807953A (en) * | 2017-09-28 | 2018-03-16 | 合肥博力生产力促进中心有限公司 | A kind of information cloud platform management system based on block chain |
-
2018
- 2018-03-29 CN CN201810272288.6A patent/CN108765142B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160125403A1 (en) * | 2014-04-28 | 2016-05-05 | Chin-hao Hu | Offline virtual currency transaction |
CN107239940A (en) * | 2017-05-11 | 2017-10-10 | 北京博晨技术有限公司 | Network trading method and device based on block catenary system |
CN107368259A (en) * | 2017-05-25 | 2017-11-21 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that business datum is write in the catenary system to block |
CN107391649A (en) * | 2017-07-14 | 2017-11-24 | 浙商银行股份有限公司 | A kind of system and method for lifting block chain query efficiency |
CN107688945A (en) * | 2017-08-11 | 2018-02-13 | 杭州秘猿科技有限公司 | A kind of efficient license chain based on delaying state common recognition |
CN107807953A (en) * | 2017-09-28 | 2018-03-16 | 合肥博力生产力促进中心有限公司 | A kind of information cloud platform management system based on block chain |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109687953A (en) * | 2018-12-24 | 2019-04-26 | 杭州复杂美科技有限公司 | Classification of business transaction method, equipment and storage medium |
CN111031100A (en) * | 2019-11-21 | 2020-04-17 | 上海交通大学 | Extended block chain storage method, system and medium |
CN111159283A (en) * | 2019-11-25 | 2020-05-15 | 东软集团股份有限公司 | Method, device and equipment for combining blocks in block chain |
CN111159283B (en) * | 2019-11-25 | 2023-08-22 | 东软集团股份有限公司 | Method, device and equipment for merging blocks in block chain |
CN112487094A (en) * | 2020-12-08 | 2021-03-12 | 深圳供电局有限公司 | Method and device for synchronizing energy block data, computer equipment and storage medium |
CN112487094B (en) * | 2020-12-08 | 2024-01-19 | 深圳供电局有限公司 | Method, device, computer equipment and storage medium for synchronizing energy block data |
Also Published As
Publication number | Publication date |
---|---|
CN108765142B (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108681963A (en) | Multi-tiling chain integral traffic control method, system, electronic device and storage medium | |
CN108765142A (en) | Electronic device, multi-tiling chain integral traffic control method and computer readable storage medium | |
CN107798057B (en) | Transaction data processing method, device, storage medium and computer equipment | |
CN106453146B (en) | Method, system, device and readable storage medium for allocating private cloud computing resources | |
CN110910230A (en) | Accounting method, accounting system and storage medium | |
CN109643415A (en) | Trade management technology | |
CN108734561A (en) | Electronic device, order data processing method and computer readable storage medium | |
CN110659110B (en) | Block chain based distributed computing method and system | |
WO2020238250A1 (en) | Capital chain information tracing method and system, and server and readable storage medium | |
CN109034823A (en) | risk identification method, device and server | |
CN112488702A (en) | Settlement method and device based on block chain and electronic equipment | |
CN110163634A (en) | Withdrawing method and device, electronic equipment based on block chain | |
AU2018215471B2 (en) | System and method of creating different relationships between various entities using a graph database | |
CN116579788A (en) | Supply chain management method, system, equipment and storage medium based on block chain | |
CN111585798A (en) | Network resource parameter configuration method, device and computer readable storage medium | |
CN111125786A (en) | Bond distribution data storage method, device and system based on block chain | |
CN107786627A (en) | Resource processing system and method | |
CN108256816A (en) | A kind of commission data processing method, device and equipment | |
CN116797345A (en) | Task processing method, device, computer equipment and storage medium | |
KR20230038689A (en) | Tax processing service system for gather selling and buying information by scraping | |
CN116501610A (en) | Method, device, equipment and medium for testing market transaction system | |
RU2656720C2 (en) | Asset inventory system | |
CN114219247A (en) | Processing method and device of equipment consumables, computer equipment and storage medium | |
CN110910104A (en) | Block chain virtual currency taking Internet of things equipment data items as mining method | |
CN111311207A (en) | Block chain virtual currency taking Internet of things equipment connection times as ore excavation method |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211009 Address after: 518000 floors 21-23, block B, building 12, Shenzhen Bay science and technology ecological park, No. 18, community science and technology south road, high tech Zone, Yuehai street, Shenzhen, Guangdong Patentee after: Xunlei Networking Technologies, Ltd. Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong Patentee before: SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd. |