CN108712491A - Block chain node, exchange information processing method, terminal device and medium - Google Patents
Block chain node, exchange information processing method, terminal device and medium Download PDFInfo
- Publication number
- CN108712491A CN108712491A CN201810475609.2A CN201810475609A CN108712491A CN 108712491 A CN108712491 A CN 108712491A CN 201810475609 A CN201810475609 A CN 201810475609A CN 108712491 A CN108712491 A CN 108712491A
- Authority
- CN
- China
- Prior art keywords
- block
- subchain
- information
- unit
- transaction information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Abstract
The invention discloses block chain node, exchange information processing method, terminal device and media.The block chain node includes:Main chain module and subchain module, subchain module include a plurality of subchain unit arranged side by side, are connect with main chain module per strip chain element;Subchain unit sends new block and generates information to main chain module for generating new block;Main chain module is used to receive the network information from Peer-to-Peer Network P2P, and monitors and generate information by the new block that every strip chain element is sent;Based on pre-set priority rule, determine that new block generates the priority orders of information;In the new block that Transaction Information is accordingly stored to every strip chain element according to priority orders.Technical solution disclosed by the invention, main chain module and a plurality of subchain unit are set in block chain node, and the internet message that the distribution of main chain module receives gives subchain unit so that block chain node can be when mass data be merchandised, by Transaction Information while cochain, cochain speed is improved.
Description
Technical field
The invention belongs to block chain technical field more particularly to a kind of block chain node, exchange information processing method, terminals
Equipment and computer readable storage medium.
Background technology
Current block chain network is made of relevant node, and each node safeguards a block chain jointly.User is data
It is stored on the block of block chain, abbreviation cochain.Each block connects into a chain with link mode, in each block chain link only
There is an independent process, remote procedure call protocol (the Remote Procedure Call being responsible on processing network
Protocol, RPC) interface data and peer-to-peer network (Peer to Peer, P2P) network data.
Current block chain is single-stranded structure, and the size of each block is restricted, and each transaction has certain size, therefore limits
The Transaction Information that can be stored in block is made.When a large amount of Transaction Informations generate, current block, which can only store to meet, works as proparea
The Transaction Information of block size, remaining Transaction Information needs store in subsequent block, slow so as to cause Transaction Information cochain,
It cannot be satisfied the demand of transaction rapid chain loading.
Invention content
An embodiment of the present invention provides a kind of block chain nodes, can be when mass data is merchandised, simultaneously by Transaction Information
Cochain improves cochain speed.
In a first aspect, providing a kind of block chain node, the block chain node includes:Main chain module and subchain module;
The subchain module includes a plurality of subchain unit arranged side by side, and every subchain unit connects with the main chain module
It connects;
The subchain unit for generating new block, and sends new block and generates information to the main chain module;
The main chain module, for receiving the network information from Peer-to-Peer Network P2P, and monitoring by subchain described in every
The new block that unit is sent generates information;
Based on pre-set priority rule, determine that the new block generates the priority orders of information;
In the new block that Transaction Information is accordingly stored to every subchain unit according to the priority orders,
Described in Transaction Information include:The Transaction Information that Transaction Information and/or the block chain node in the network information generate.
Second aspect, provides a kind of exchange information processing method of block chain, and the exchange information processing method includes:
Main chain receives the network information from Peer-to-Peer Network P2P, and monitors and generate letter by the new block that every subchain is sent
Breath;
Based on preset priority rule, determine that the new block generates the priority orders of information;
Transaction Information is stored into the new block of subchain described in every according to the priority orders, wherein the transaction
Information includes:The Transaction Information that Transaction Information and/or the block chain node in the network information generate.
The third aspect provides a kind of terminal device, including:Memory, processor, communication interface and bus;
The memory, the processor are connected by the bus with the communication interface and complete mutual lead to
Letter;
The memory is for storing program code;
The processor can perform to run with described by reading the executable program code stored in the memory
The corresponding program of program code, for executing the exchange information processing method described in second aspect.
Fourth aspect provides a kind of computer storage media, including instruction, when described instruction is run on computers
When, so that the computer is executed the exchange information processing method according to second aspect.
Compared with prior art, main chain mould is arranged in block chain node provided by the embodiments of the present application in block chain node
Block and a plurality of subchain unit by a shared P2P network port, and allow the internet message that the distribution of main chain module receives to son
Chain element so that block chain node, by Transaction Information while cochain, can improve cochain speed when mass data is merchandised.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention
Attached drawing is briefly described, it should be apparent that, drawings described below is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is a kind of schematic block diagram of block chain node of the embodiment of the present invention;
Fig. 2 is the schematic block diagram of information exchange between two block chain nodes of the embodiment of the present invention;
Fig. 3 is the schematic block diagram that main chain module of the embodiment of the present invention is circumscribed with the P2P network ports;
Fig. 4 is the schematic block diagram that subchain unit of the embodiment of the present invention is circumscribed with the RPC network ports;
Fig. 5 is the schematic block diagram that main chain module of the embodiment of the present invention is circumscribed with the RPC network ports;
Fig. 6 is the schematic block diagram of the block chain node of another embodiment of the present invention;
Fig. 7 is the schematic block diagram that main chain module is circumscribed with the RPC network ports in another embodiment of the present invention;
Fig. 8 is a kind of schematic flow chart of the exchange information processing method of block chain of another embodiment of the present invention;
Fig. 9 is another embodiment of the present invention according to priority orders by the new block of Transaction Information storage to every subchain
Schematic diagram;
Figure 10 is the schematic block diagram of the terminal device of the embodiment of the present invention.
Specific implementation mode
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order to make the mesh of the present invention
, technical solution and advantage be more clearly understood, with reference to the accompanying drawings and embodiments, the present invention is further retouched in detail
It states.It should be understood that specific embodiment described herein is only configured to explain the present invention, it is not configured as limiting the present invention.
To those skilled in the art, the present invention can be real in the case of some details in not needing these details
It applies.Below to the description of embodiment just for the sake of by showing that the example of the present invention is better understood from the present invention to provide.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including
There is also other identical elements in the process, method, article or equipment of the element.
In order to better understand the present invention, below in conjunction with attached drawing, block chain according to the ... of the embodiment of the present invention is described in detail
Node, exchange information processing method, terminal device and medium, it should be noted that these embodiments are not for limiting public affairs of the invention
The range opened.
Fig. 1 shows a kind of schematic block diagram of block chain node 100 of the embodiment of the present invention.Party's block chain node
100 include:Main chain module 110 and subchain module 120.
Subchain module 120 includes a plurality of subchain unit arranged side by side, is connect with main chain module 110 per strip chain element.
Subchain unit for generating new block, and sends new block and generates information to main chain module 110.
Main chain module 110, for receiving the network information from P2P, and monitoring sent by every strip chain element it is new
Block generates information.
Based on pre-set priority rule, determine that new block generates the priority orders of information.
In the new block that Transaction Information is accordingly stored to every strip chain element according to priority orders, wherein transaction letter
Breath includes:The Transaction Information that Transaction Information and/or block chain node in the network information generate.
It is understood that as shown in Figure 1, main chain module 110 has the work(sended and received in embodiments of the present invention
Can, subchain module 120 has a plurality of subchain unit 121 arranged side by side, subchain unit 122 and subchain unit 123 etc., subchain unit
Quantity is configured according to user.It should also be noted that, per strip chain element and in addition to the block chain node
Corresponding subchain unit is related in other block chain nodes, uncorrelated to other not corresponding subchain units.
Fig. 2 is the schematic block diagram of the information exchange between two block chain nodes of the embodiment of the present invention.
As shown in Fig. 2, when there are two block chain node, such as:Block chain node A is that structure is identical with block chain node B
Two nodes, the subchain unit 121 of block chain node A is related to the subchain unit 121 of block chain node B.
Main chain module 110 receives the network information that other block chain nodes in addition to block chain node A are sent, and
It is distributed in corresponding subchain unit.Each subchain unit and main chain module 110 are a process in systems.It is given birth in subchain unit
After new block, new block generation information is sent to main chain module 110 by subchain unit, such as:The every life in 10 minutes of subchain unit
At a new block, after subchain unit generates new block, this new block generation information is sent to main chain module 110, it should
New block generates information:The generated time of new block and storage value etc..
As an example:Subchain unit 121 generates new block in 30 seconds 08 minute on 11 points of Monday on April 2nd, 2018
A;Subchain unit 122 generates new block B in 30 seconds 15 minutes on 11 points of Monday on April 2nd, 2018;Subchain unit 123 is 2018
11 points of Monday of on April 2, generates new block C in 30 seconds 20 minutes.Can new block A be generated to information, new block B generates information
Information, which is generated, with new block C is all sent to main chain module 110.
Main chain module 110 is based on pre-set priority rule, determines that new block generates the priority orders of information.It is default preferential
Grade rule refers to generating the chronological order of new block.Such as:It is new that new block A generates information > new blocks B generation information >
Block C generates information.In the new block that Transaction Information is accordingly stored to every strip chain element according to priority orders, wherein
Transaction Information includes:The Transaction Information that Transaction Information and/or block chain node in the network information generate.
Therefore, a kind of block chain node according to the ... of the embodiment of the present invention, by the way that main chain module is arranged in block chain node
With a plurality of subchain unit, a P2P network port is then shared, and allows the internet message that the distribution of main chain module receives to subchain
Unit so that block chain node, by Transaction Information while cochain, can improve cochain speed when mass data is merchandised.
As an alternative embodiment, here is two kinds of different situations for 110 store transaction information of main chain module.
The first, is when the new district storage value in the block of the subchain unit of highest priority is more than the numerical value of Transaction Information,
Transaction Information is stored entirely in the new block of subchain unit of highest priority.
In embodiments of the present invention, such as:Storage value in new block A is 1G, and needs the stored Transaction Information to be
0.8G, then this 0.8G Transaction Information can be stored entirely in new block A.
Second, when the new district storage value in the block of the subchain unit of highest priority is less than the numerical value of Transaction Information,
Then after the new block of the subchain unit of highest priority stores full Transaction Information, the transaction that will not stored according to priority orders
In information storage to the new block of other subchain units.
In embodiments of the present invention, such as:Storage value in new block A is 1G, and needs the stored Transaction Information to be
1.8G, then 1G Transaction Informations are stored entirely in new block A, it will be in the storage to new block B of remaining 0.8G Transaction Informations.
If the storage value of new block B is 0.5G, then the 0.5G Transaction Informations in remaining 0.8G Transaction Informations are stored entirely in new district
In block B, finally remaining 0.3G Transaction Informations are stored entirely in new block C.According to priority orders, until
All Transaction Informations are all stored.
Fig. 3 is the schematic block diagram that main chain module of the embodiment of the present invention is circumscribed with the P2P network ports.
Optionally, as another embodiment, main chain module 110 is circumscribed with the P2P network ports 130, and main chain module 110 is specific
For receiving the network information by the P2P network ports 130.
Present invention embodiment shown in Fig. 3 is to increase the P2P network ports 130 on the basis of embodiment shown in Fig. 2, main
Chain module 110 is circumscribed with the P2P network ports 130, it is therefore an objective to which main chain module 110 is connect by the P2P network ports 130
The network information that other block chain nodes are sent is received, and the network information of the receiving is distributed in corresponding subchain unit,
Or allow multiple subchain units that can share a P2P network port 130.Such as:If the main chain module in block chain node A
110 network informations received are the subchain units 122 in block chain node B, then the main chain module in block chain node A
110 can be distributed to the network information subchain unit 122 in block chain node A.
In addition, main chain module 110 is also by the P2P network ports 130 to other block chains in addition to itself block chain node
Node sends block fresh information, and wherein block fresh information includes:The block information of new block and with store in new block
Transaction Information.
In embodiments of the present invention, such as:The main chain module into block chain node B of main chain module 110 in block chain node A
110 send block fresh information, in order to make block chain node B synchronous with block chain node A.If block chain node A
Neutron chain element 121 generates new block A, and new block A stores Transaction Information, then block chain node A needs pass through
The P2P network ports 130 send block fresh information to block chain node B, so as to the subchain unit 121 in block chain node B
New block A is similarly generated according to block fresh information.
Optionally, in another embodiment, the network information further includes:By other block chains in addition to itself block chain node
The block fresh information that node is sent.When the network information includes block fresh information, then main chain module 110 is according to block
Fresh information determines subchain unit to be updated, and block is carried out more so that subchain unit to be updated is based on block fresh information
Newly.
If block chain node A receives block fresh information in embodiments of the present invention, and the block fresh information shows
Subchain unit 121 in block chain node B generates new block A, and new block A stores Transaction Information, then block chain link
Subchain unit 121 in point A similarly generates new block A according to block fresh information, so as to block chain Node B sync.
Fig. 4 is the schematic block diagram that subchain unit of the embodiment of the present invention is circumscribed with the RPC network ports 140.
Optionally, as another embodiment, subchain unit is circumscribed with the RPC network ports 140.Subchain unit is specifically used for logical
It crosses the RPC network ports 140 and receives the inquiry request from RPC networks, to inquire stored Transaction Information in subchain unit.
It is understood that present invention embodiment shown in Fig. 4 is increased on the basis of above-mentioned embodiment shown in Fig. 3
The RPC network ports 140.
Fig. 5 is the schematic block diagram that main chain module 110 is circumscribed with the RPC network ports 140 in another embodiment of the present invention.
Optionally, as another embodiment, main chain module 110 is also circumscribed with the RPC network ports 140.Main chain module 110 has
Body is used to receive the inquiry request from RPC networks by the RPC network ports 140, and is based on inquiry request, determines to be checked
Subchain unit.Inquiry request is sent to subchain unit to be checked simultaneously, is believed with inquiring stored transaction in subchain unit
Breath.
It is understood that when group chain element does not have the RPC network ports 140 in embodiments of the present invention, and main chain mould
Block 110 is circumscribed with the RPC network ports 140, then when inquiring, main chain module 110 will be received by the RPC network ports 140 come
From the inquiry request of RPC networks, and it is based on inquiry request, determines subchain unit to be checked, while inquiry request being sent to
The subchain unit to be checked, to inquire stored Transaction Information in subchain unit to be checked.
Fig. 6 shows the block chain node of another embodiment of the present invention, which includes:Multiple main chains arranged side by side
Module.
Main chain module, for generating new block, and the network information of the reception from P2P.
By in Transaction Information storage to new block, wherein Transaction Information includes:Transaction Information in the network information and/or area
The Transaction Information that block chain node generates.
As shown in fig. 6, when having 3 main chain modules 210, main chain module 220 and main chain module 230 in block chain node, and
When block chain node A and block chain node B structures having the same, block chain node A passes through P2P networks and block chain node B
It is related.When any main chain module generates new block in block chain node A, and stores Transaction Information in the new block,
Such as:Main chain module 210 in block chain node A generates new block D, and Transaction Information is stored in new block D, then block
Block fresh information is sent to the main chain module 210 in block chain node B by chain node A by P2P networks, so as to block chain link
Main chain module 210 in point B generates the Transaction Information stored in new block D and new block D according to block fresh information so that
Block chain node B is synchronous with block chain node A.
Fig. 7 is the schematic block diagram that main chain module is circumscribed with the RPC network ports 240 in another embodiment of the present invention.
Optionally, as another embodiment, as shown in fig. 7, main chain module is circumscribed with the RPC network ports 240, main chain mould
Block is specifically used for receiving the inquiry request from RPC networks by the RPC network ports 240, to inquire in the main chain module
The Transaction Information of storage.
Above in conjunction with Fig. 1 and Fig. 7, block chain node according to the ... of the embodiment of the present invention is described in detail, below in conjunction with
Exchange information processing method according to the ... of the embodiment of the present invention is described in detail in Fig. 8 and Fig. 9.
Fig. 8 is a kind of schematic flow chart of the exchange information processing method 300 of block chain of another embodiment of the present invention.
As shown in figure 8, this method 300 includes the following steps:
S310, main chain receive the network information from P2P, and monitor and generate information by the new block that every subchain is sent.
S320 is based on preset priority rule, determines that new block generates the priority orders of information.
S330 stores Transaction Information into the new block of every subchain according to priority orders, wherein Transaction Information packet
It includes:The Transaction Information that Transaction Information and/or block chain node in the network information generate.
It is understood that the method implemented in embodiments of the present invention is the side executed on above-mentioned block chain node
Method, and main chain can by but be not limited only to the P2P network ports and receive other block chain nodes in addition to the block chain node
The network information sent, and be distributed in corresponding subchain;Each subchain and main chain are a process in systems.Subchain generates
New block generation information is sent to main chain by new block, such as subchain generates a new block in every 10 minutes, by this new block
It generates information and is sent to main chain, which generates information and include:Generated time of new block, storage value etc..
Such as:First subchain generates new block A in 30 seconds 08 minute on 11 points of Monday on April 2nd, 2018;Second subchain exists
11 points of Monday on April 2nd, 2018 generates new block B in 30 seconds 15 minutes;Third subchain is on 11 points of Monday on April 2nd, 2018
20 points generate new block C in 30 seconds.These new blocks A generates information, new block B generates information and new block C generates information
Main chain can be sent to.
In addition, main chain is based on pre-set priority rule, determine that new block generates the priority orders of information.Pre-set priority
Rule refers to generating the chronological order of new block.Such as:New block A generates information > new blocks B and generates the new districts information >
Block C generates information.In the new block that Transaction Information is accordingly stored to every strip chain element according to priority orders, wherein handing over
Easy information includes:The Transaction Information that Transaction Information and/or block chain node in the network information generate.
Therefore, a kind of block chain node according to the ... of the embodiment of the present invention, by the way that main chain and more is arranged in block chain node
Then subchain shares a P2P network port, and allow the internet message that main chain distribution receives to subchain so that block chain
Node, by Transaction Information while cochain, can improve cochain speed when mass data is merchandised.
Fig. 9 is that Transaction Information is stored showing to the new block of every subchain according to priority orders in the embodiment of the present invention
It is intended to.
It is two kinds of different situations for main chain store transaction information as shown in Figure 9.
The first 910, when the new district of the subchain of highest priority storage value in the block be more than Transaction Information numerical value when, will
Transaction Information is stored entirely in the new block of the subchain of highest priority.
The storage value for example in new block A is 1G in embodiments of the present invention, and needs the stored Transaction Information to be
0.8G, then this 0.8G Transaction Information can be stored entirely in new block A.
Second 920, when the new district of the subchain of highest priority storage value in the block is less than the numerical value of Transaction Information, then
After the full Transaction Information of new block storage of the subchain of highest priority, the Transaction Information not stored is deposited according to priority orders
In the new block for storing up other subchains.
The storage value for example in new block A is 1G in embodiments of the present invention, and needs the stored Transaction Information to be
1.8G, then 1G Transaction Informations are stored entirely in new block A, it will be in the storage to new block B of remaining 0.8G Transaction Informations.
If the storage value of new block B is 0.5G, then the 0.5G Transaction Informations in remaining 0.8G Transaction Informations are stored entirely in new district
In block B, finally remaining 0.3G Transaction Informations are stored entirely in new block C.
Optionally, in another embodiment, after full Transaction Information is stored in new block, main chain passes through P2P network-sides
Mouth sends block fresh information to other block chain nodes in addition to itself block chain node, and wherein block fresh information includes:
The Transaction Information stored in the block information and/or new block of new block.
It is understood that in the embodiment of the present invention, such as:Main chain main chain into block chain node B in block chain node A
Send block fresh information, in order to make block chain node B synchronous with block chain node A.If raw in block chain node A
At new block A, and new block A stores Transaction Information, then block chain node A need by the P2P network ports 130 to
Block chain node B sends block fresh information, so that the first subchain in block chain node B is also the same according to block fresh information
Generate new block A.
Optionally, in another embodiment, the network information further includes:By other block chains in addition to itself block chain node
The block fresh information that node is sent;
When the network information includes block fresh information, then exchange information processing method, further includes:
Main chain determines subchain to be updated according to block fresh information, so that subchain to be updated is based on block update letter
Breath carries out block update.
Optionally, in another embodiment, exchange information processing method further includes:
Subchain receives the inquiry request from RPC networks by the RPC network ports, to inquire stored transaction in subchain
Information.
Optionally, as another embodiment, the exchange information processing method further includes:
Main chain receives the inquiry request from RPC networks by the RPC network ports, and is based on inquiry request, determines to be checked
The subchain ask, while inquiry request being sent to subchain to be checked, to inquire stored Transaction Information in subchain.
It is understood that in embodiments of the present invention when subchain does not have the RPC network ports 140, and main chain is also external
There are the RPC network ports 140, then main chain will be asked by inquiry of the reception of the RPC network ports 140 from RPC networks when inquiry
It asks, and is based on inquiry request, determine subchain to be checked, while inquiry request is sent to the subchain to be checked, with inquiry
Stored Transaction Information in subchain to be checked.
The block chain node and exchange information processing method according to the ... of the embodiment of the present invention described in conjunction with Fig. 1 to Fig. 9 can be with
It is realized by computing device.Figure 10 is to show to realize block chain node according to the ... of the embodiment of the present invention and Transaction Information processing side
The structure chart of the exemplary hardware architecture of the computing device of method.
As shown in Figure 10, computing device 1000 include input equipment 1001, input interface 1002, central processing unit 1003,
Memory 1004, output interface 1005 and output equipment 1006.Wherein, input interface 1002, central processing unit 1003, deposit
Reservoir 1004 and output interface 1005 are connected with each other by bus 1010, and input equipment 1001 and output equipment 1006 are distinguished
It is connect with bus 1010 by input interface 1002 and output interface 1005, and then connected with the other assemblies of computing device 1000
It connects.Specifically, input equipment 1001 is received from external input information, and is transmitted input information by input interface 1002
To central processing unit 1003;Central processing unit 1003 believes input based on the computer executable instructions stored in memory 1004
Breath is handled to generate output information, and output information is temporarily or permanently stored in memory 1004, is then passed through
Output information is transmitted to output equipment 1006 by output interface 1005;Output information is output to computing device by output equipment 1006
1000 outside is for users to use.
That is, computing device shown in Fig. 10 can also be implemented as include:It is stored with computer executable instructions
Memory;And processor, the processor may be implemented that Fig. 1 to Fig. 9 is combined to describe when executing computer executable instructions
Block chain node and exchange information processing method.
It should be clear that the invention is not limited in specific configuration described above and shown in figure and processing.
For brevity, it is omitted here the detailed description to known method.In the above-described embodiments, several tools have been described and illustrated
The step of body, is as example.But procedure of the invention is not limited to described and illustrated specific steps, this field
Technical staff can be variously modified, modification and addition after the spirit for understanding the present invention, or suitable between changing the step
Sequence.
Functional block shown in structures described above block diagram can be implemented as hardware, software, firmware or their group
It closes.When realizing in hardware, it may, for example, be electronic circuit, application-specific integrated circuit (ASIC), firmware appropriate, insert
Part, function card etc..When being realized with software mode, element of the invention is used to execute program or the generation of required task
Code section.Either code segment can be stored in machine readable media program or the data-signal by being carried in carrier wave is passing
Defeated medium or communication links are sent." machine readable media " may include any medium for capableing of storage or transmission information.
The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), soft
Disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can be via such as internet, inline
The computer network of net etc. is downloaded.
It should also be noted that, the exemplary embodiment referred in the present invention, is retouched based on a series of step or device
State certain methods or system.But the present invention is not limited to the sequence of above-mentioned steps, that is to say, that can be according in embodiment
The sequence referred to executes step, may also be distinct from that the sequence in embodiment or several steps are performed simultaneously.
The above description is merely a specific embodiment, it is apparent to those skilled in the art that,
For convenience of description and succinctly, the system, module of foregoing description and the specific work process of unit can refer to preceding method
Corresponding process in embodiment, details are not described herein.It should be understood that scope of protection of the present invention is not limited thereto, it is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions,
These modifications or substitutions should be covered by the protection scope of the present invention.
Claims (16)
1. a kind of block chain node, which is characterized in that the block chain node includes:Main chain module and subchain module;
The subchain module includes a plurality of subchain unit arranged side by side, and every subchain unit is connect with the main chain module;
The subchain unit for generating new block, and sends new block and generates information to the main chain module;
The main chain module, for receiving the network information from Peer-to-Peer Network P2P, and monitoring by subchain unit described in every
The new block sent generates information;
Based on pre-set priority rule, determine that the new block generates the priority orders of information;
In the new block that Transaction Information is accordingly stored to every subchain unit according to the priority orders, wherein institute
Stating Transaction Information includes:The Transaction Information that Transaction Information and/or the block chain node in the network information generate.
2. block chain node according to claim 1, which is characterized in that the main chain module,
It is more than the number of the Transaction Information specifically for the new district storage value in the block of the subchain unit when highest priority
When value, the Transaction Information is stored entirely in the new block of the subchain unit of highest priority;
Alternatively,
For when the new district storage value in the block of the subchain unit of highest priority be less than the Transaction Information numerical value when,
It, will according to the priority orders then after the new block of the subchain unit of highest priority stores the full Transaction Information
In the Transaction Information storage not stored to the new block of other subchain units.
3. block chain node according to claim 1 or 2, which is characterized in that the main chain module is circumscribed with P2P network-sides
Mouthful,
The main chain module is specifically used for receiving the network information by the P2P network ports.
4. block chain node according to claim 3, which is characterized in that the main chain module is additionally operable to through the P2P
The network port sends block fresh information to other block chain nodes in addition to itself block chain node, wherein the block updates
Information includes:The Transaction Information stored in the block information of the new block and/or the new block.
5. block chain node according to claim 4, which is characterized in that the network information further includes:By removing itself area
The block fresh information that other block chain nodes outside block chain node are sent;
The main chain module, for according to the block fresh information, subchain unit to be updated being determined, so as to described to be updated
Subchain unit be based on the block fresh information carry out block update.
6. block chain node according to claim 1 or 2, which is characterized in that the subchain unit is circumscribed with remote process
The invocation protocol RPC network ports,
The subchain unit is specifically used for receiving the inquiry request from RPC networks by the RPC network ports, with inquiry
Stored Transaction Information in the subchain unit.
7. block chain node according to claim 1 or 2, which is characterized in that the main chain module is also circumscribed with RPC networks
Port,
The subchain unit is specifically used for receiving the inquiry request from RPC networks by the RPC network ports, and is based on
The inquiry request determines the subchain unit to be checked, while the inquiry request is sent to the institute to be checked
Subchain unit is stated, to inquire stored Transaction Information in the subchain unit.
8. a kind of exchange information processing method of block chain, which is characterized in that the exchange information processing method includes:
Main chain receives the network information from Peer-to-Peer Network P2P, and monitors and generate information by the new block that every subchain is sent;
Based on preset priority rule, determine that the new block generates the priority orders of information;
Transaction Information is stored into the new block of subchain described in every according to the priority orders, wherein the Transaction Information
Including:The Transaction Information that Transaction Information and/or the block chain node in the network information generate.
9. exchange information processing method according to claim 8, which is characterized in that described to be incited somebody to action according to the priority orders
In the Transaction Information storage to the new block of subchain described in every, including:
When the new district storage value in the block of the subchain of highest priority is more than the numerical value of the Transaction Information, by the friendship
Easy information is stored entirely in the new block of the subchain unit of highest priority;
Alternatively,
When the new district storage value in the block of the subchain of highest priority is less than the numerical value of the Transaction Information, then preferential
After the full Transaction Information of new block storage of the highest subchain of grade, will not store according to the priority orders described in
In Transaction Information storage to the new block of other subchains.
10. exchange information processing method according to claim 8 or claim 9, which is characterized in that the main chain is received from equity
The network information of network P 2 P, including:
The main chain receives the network information by the P2P network ports.
11. exchange information processing method according to claim 8 or claim 9, which is characterized in that stored in the new block full
After the Transaction Information, further include:
Main chain sends block update letter by the P2P network ports to other block chain nodes in addition to itself block chain node
Breath, wherein the block fresh information includes:The transaction letter stored in the block information of the new block and/or the new block
Breath.
12. exchange information processing method according to claim 11, which is characterized in that the network information further includes:By
The block fresh information that other block chain nodes in addition to itself block chain node are sent;
The exchange information processing method further includes:
The main chain determines subchain to be updated according to the block fresh information, so that the subchain to be updated is based on institute
It states block fresh information and carries out block update.
13. exchange information processing method according to claim 8 or claim 9, which is characterized in that the Transaction Information processing side
Method further includes:
The subchain receives the inquiry request from RPC networks by the RPC network ports, stored in the subchain to inquire
Transaction Information.
14. exchange information processing method according to claim 8 or claim 9, which is characterized in that the Transaction Information processing side
Method further includes:
The main chain receives the inquiry request from RPC networks by the RPC network ports, and is based on the inquiry request, determines
The subchain to be checked, while the inquiry request is sent to the subchain to be checked, to inquire the subchain
In stored Transaction Information.
15. a kind of terminal device, wherein including:
Memory, processor, communication interface and bus;
The memory, the processor are connected by the bus with the communication interface and complete mutual communication;
The memory is for storing program code;
The processor is run and the executable program by reading the executable program code stored in the memory
The corresponding program of code, for executing such as claim 8 to 14 any one of them exchange information processing method.
16. a kind of computer storage media, including instruction, when described instruction is run on computers, make the computer hold
Row is according to claim 8 to 14 any one of them exchange information processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810475609.2A CN108712491A (en) | 2018-05-17 | 2018-05-17 | Block chain node, exchange information processing method, terminal device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810475609.2A CN108712491A (en) | 2018-05-17 | 2018-05-17 | Block chain node, exchange information processing method, terminal device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108712491A true CN108712491A (en) | 2018-10-26 |
Family
ID=63868319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810475609.2A Pending CN108712491A (en) | 2018-05-17 | 2018-05-17 | Block chain node, exchange information processing method, terminal device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108712491A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063183A (en) * | 2018-08-27 | 2018-12-21 | 众安信息技术服务有限公司 | The method and device of information processing is carried out at block chain node |
CN109471744A (en) * | 2018-11-21 | 2019-03-15 | 北京蓝石环球区块链科技有限公司 | The more subchain system architectures of main chain adduction row based on block chain |
CN109493051A (en) * | 2018-11-21 | 2019-03-19 | 北京蓝石环球区块链科技有限公司 | The more subchain system architectures of main chain adduction row of account distribution and migration can dynamically be carried out |
CN110059136A (en) * | 2019-04-17 | 2019-07-26 | 江苏全链通信息科技有限公司 | Information storage means, equipment and storage medium based on domain name block chain |
CN110557280A (en) * | 2019-08-07 | 2019-12-10 | 中国联合网络通信集团有限公司 | network acceleration method and block chain platform |
CN110689471A (en) * | 2019-09-30 | 2020-01-14 | 浙江水利水电学院 | Water resource monitoring system and method based on block chain |
CN111339086A (en) * | 2020-02-18 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Block processing method, and data query method and device based on block chain |
CN111367930A (en) * | 2020-03-03 | 2020-07-03 | 深圳大学 | Method, device, equipment and medium for synchronizing block chain transaction pool information |
CN111612615A (en) * | 2019-02-26 | 2020-09-01 | 傲为信息技术(江苏)有限公司 | Block chain sub-chain creation method and system based on public chain |
CN112907367A (en) * | 2019-12-03 | 2021-06-04 | 微观(天津)科技发展有限公司 | Cross-border trade data management method and device based on block chain and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
CN107360206A (en) * | 2017-03-29 | 2017-11-17 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method, equipment and system |
CN107391526A (en) * | 2017-03-28 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
-
2018
- 2018-05-17 CN CN201810475609.2A patent/CN108712491A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391526A (en) * | 2017-03-28 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107360206A (en) * | 2017-03-29 | 2017-11-17 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method, equipment and system |
CN107231299A (en) * | 2017-06-07 | 2017-10-03 | 众安信息技术服务有限公司 | A kind of chain route and realized the system that block chain communicates across chain |
Non-Patent Citations (1)
Title |
---|
链道学社: "干货:一文带你读懂区块链五大分类", 《HTTPS://XW.QQ.COM/AMPHTML/20180505A17QAH00》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063183A (en) * | 2018-08-27 | 2018-12-21 | 众安信息技术服务有限公司 | The method and device of information processing is carried out at block chain node |
CN109471744A (en) * | 2018-11-21 | 2019-03-15 | 北京蓝石环球区块链科技有限公司 | The more subchain system architectures of main chain adduction row based on block chain |
CN109493051A (en) * | 2018-11-21 | 2019-03-19 | 北京蓝石环球区块链科技有限公司 | The more subchain system architectures of main chain adduction row of account distribution and migration can dynamically be carried out |
CN109471744B (en) * | 2018-11-21 | 2021-08-17 | 北京蓝石环球区块链科技有限公司 | Main chain and parallel multi-sub-chain system architecture based on block chain |
CN109493051B (en) * | 2018-11-21 | 2020-10-16 | 北京蓝石环球区块链科技有限公司 | Main chain and parallel multi-subchain system architecture capable of dynamically allocating and migrating accounts |
CN111612615A (en) * | 2019-02-26 | 2020-09-01 | 傲为信息技术(江苏)有限公司 | Block chain sub-chain creation method and system based on public chain |
CN110059136A (en) * | 2019-04-17 | 2019-07-26 | 江苏全链通信息科技有限公司 | Information storage means, equipment and storage medium based on domain name block chain |
CN110557280A (en) * | 2019-08-07 | 2019-12-10 | 中国联合网络通信集团有限公司 | network acceleration method and block chain platform |
CN110557280B (en) * | 2019-08-07 | 2022-03-15 | 中国联合网络通信集团有限公司 | Network acceleration method and block chain platform |
CN110689471A (en) * | 2019-09-30 | 2020-01-14 | 浙江水利水电学院 | Water resource monitoring system and method based on block chain |
CN112907367A (en) * | 2019-12-03 | 2021-06-04 | 微观(天津)科技发展有限公司 | Cross-border trade data management method and device based on block chain and storage medium |
CN111339086A (en) * | 2020-02-18 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Block processing method, and data query method and device based on block chain |
WO2021164321A1 (en) * | 2020-02-18 | 2021-08-26 | 腾讯科技(深圳)有限公司 | Block processing method and apparatus, and data query method and apparatus based on blockchain |
CN111367930A (en) * | 2020-03-03 | 2020-07-03 | 深圳大学 | Method, device, equipment and medium for synchronizing block chain transaction pool information |
CN111367930B (en) * | 2020-03-03 | 2023-03-17 | 深圳大学 | Method, device, equipment and medium for synchronizing block chain transaction pool information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108712491A (en) | Block chain node, exchange information processing method, terminal device and medium | |
CN107332876B (en) | Method and device for synchronizing block chain state | |
US11657036B2 (en) | Methods and apparatus for a distributed database that enables deletion of events | |
JPH0241054A (en) | Method of selecting route with minimum weight in communication network | |
CN109600441A (en) | Alliance's chain information distribution control method and terminal device | |
JP2023544422A (en) | Method and apparatus for distributed database in a network | |
CN111654399B (en) | Networking method, device, equipment and storage medium based on SD-WAN | |
CN112968969B (en) | Block chain system, message transmission method and device | |
CN108737105A (en) | Method for retrieving, device, private key equipment and the medium of private key | |
CN110290168A (en) | Data transmission method for uplink, device, server and storage medium | |
CN109348434A (en) | A kind of sending method of scene information, sending device and terminal device | |
CN111262724A (en) | Method and device for confirming trust relationship between domains | |
CN113079139B (en) | Block chain-based consensus group master node determination method, device and system | |
CN112699136B (en) | Cross-link certificate storage method and related device | |
CN110851275B (en) | Load transfer method and device of routing node | |
CN108111630A (en) | A kind of Zookeeper group systems and attaching method thereof and system | |
CN113553206B (en) | Data event execution method and device, electronic equipment and computer readable medium | |
CN115473842A (en) | Computing network information notification and routing decision method, device and medium | |
JP3844215B2 (en) | Network configuration management system, node device, network configuration management method, node device control method, and node device control program | |
CN107846429A (en) | A kind of file backup method, device and system | |
CN114826932B (en) | Data migration method, device, electronic equipment and computer readable medium | |
CN112422305B (en) | Upgrading method and device of communication equipment | |
US20210227027A1 (en) | System and a method implementing a directed acyclic graph (dag) consensus algorithm via a gossip protocol | |
CN113873023B (en) | Leader node election method, leader node election device, leader node election equipment and storage medium | |
RU2776826C2 (en) | Methods and device for a distributed database that makes it possible to delete events |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181026 |