CN109165304A - Building method, medium and the system of block chain - Google Patents
Building method, medium and the system of block chain Download PDFInfo
- Publication number
- CN109165304A CN109165304A CN201810713792.5A CN201810713792A CN109165304A CN 109165304 A CN109165304 A CN 109165304A CN 201810713792 A CN201810713792 A CN 201810713792A CN 109165304 A CN109165304 A CN 109165304A
- Authority
- CN
- China
- Prior art keywords
- node
- main chain
- network
- functional
- function
- 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 invention discloses a kind of building methods of block chain, including configuration initial connection file;After the starting of initial main chain node, creation wound generation block establishes the connection between initial main chain node and Elementary Function node according to initial connection file, and configure functional network title corresponding to the Elementary Function node;Main chain node address collection to be connected into is configured, by local node to construct backbone network;Main chain node address collection corresponding to functional node address set to be connected into and functional node to be connected into is configured by local node, functional node to be connected into is connected to corresponding functional network, and functional node to be connected into is connected to corresponding main chain node;The invention also discloses the construction systems of a kind of computer readable storage medium and block chain, and the division to nodal function may be implemented, and reduce the data volume that entire block chain network needs to transmit, mitigate the burden of block chain network, meanwhile nodal function is specified, mitigate each node burden.
Description
Technical field
The present invention relates to block chain technical field, in particular to a kind of building method, medium and the system of block chain.
Background technique
Block chain is the P2P distributed data base system participated in by node, and its feature is can not to distort written block
The data of chain.In existing block chain constructing technology, the record, broadcast and the block that mostly use single-stranded form to be operated
Generation, link;That is, operation file is broadcasted, in entire block chain network when node generates operation
Operation file is synchronized, and generates block after reaching condition, and block file is broadcasted, by block file
It is synchronized in entire block chain network.
The block chain network constructed in this way, the data volume that entire block chain network needs to transmit is big, and network is negative
Load is high, leads to the high load capacity of each node, also, the synchronous efficiency of block chained file is low.
Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, of the invention
One purpose is to propose a kind of building method of block chain, can be realized the division to nodal function, reduce entire block chain
Network needs the data volume transmitted, thus mitigate the burden of block chain network, meanwhile, nodal function is specified, it is negative to mitigate each node
Load.
Second object of the present invention is to propose a kind of computer readable storage medium.
Third object of the present invention is to propose a kind of construction system of block chain.
In order to achieve the above objectives, first aspect present invention embodiment proposes a kind of building method of block chain, including with
Lower step: initial connection file is configured by local node, wherein the initial connection file includes that at least one is to be connected into
Functional information corresponding to Elementary Function node and Elementary Function node address;After the starting of initial main chain node, pass through local
Node creation wound generation block, and after at least one Elementary Function node starting wait be connected into, according to the initial connection file
In should at least one Elementary Function node be connected into Elementary Function node address establish the initial main chain node with should be to
The connection between at least one Elementary Function node being connected into, and it is to be connected at least according to this in the initial connection file
The functional information of one Elementary Function node configures functional network corresponding at least one Elementary Function node to be connected into
Title;Main chain node address collection to be connected into, and the main chain corresponding to main chain node to be connected into are configured by local node
After client terminal start-up, main chain node to be connected into is connected to by corresponding master link according to main chain node address collection to be connected into
Point, to construct backbone network;Functional node address set to be connected into and functional node institute to be connected into are configured by local node
Corresponding main chain node address collection, and after the function client terminal start-up corresponding to the functional node wait be connected into, according to wait be connected into
Functional node address set functional node to be connected into is connected to corresponding functional network, and according to function section to be connected into
Functional node to be connected into is connected to corresponding main chain node by the corresponding main chain node address collection of point.
The building method of block chain according to an embodiment of the present invention, firstly, initial connection file is configured by local node,
Wherein, initial connection file includes functional information and Elementary Function section corresponding at least one Elementary Function node to be connected into
Dot address;Then, after the starting of initial main chain node, wound generation block is created by local node, and to be connected at least one
After a Elementary Function node starting, according to the initial power of at least one Elementary Function node that should be to be connected into initial connection file
The connection that energy node address is established initial main chain node and is somebody's turn to do between at least one Elementary Function node to be connected into, and according to
The functional information of at least one Elementary Function node that should be to be connected into initial connection file configures at least one to be connected into
Functional network title corresponding to Elementary Function node;Then, main chain node address collection to be connected into is configured by local node,
It, will be to even according to main chain node address collection to be connected into and after the main chain client terminal start-up corresponding to the main chain node wait be connected into
The main chain node entered is connected to corresponding main chain node, to construct backbone network;Then, it is configured by local node to be connected into
Main chain node address collection corresponding to functional node address set and functional node to be connected into, and in functional node institute to be connected into
After corresponding function client terminal start-up, functional node to be connected into is connected to accordingly according to functional node address set to be connected into
Functional network, and the main chain node address collection according to corresponding to functional node to be connected into connects functional node to be connected into
It is connected to corresponding main chain node;To realize the division to nodal function, the data that entire block chain network needs to transmit are reduced
Amount mitigates the burden of block chain network, meanwhile, nodal function is specified, each node burden is mitigated.
In addition, the building method of the block chain proposed according to that above embodiment of the present invention can also have following additional skill
Art feature:
Optionally, when any one functional node in the functional network is operated, which traverses itself and has connected
The node connect, wherein when traversing the node having connected is master link point, skip main chain node;It is had connected when traversing
When node is functional node, operation information is transmitted to the functional node having connected, so that each functional node is received in functional network
It to operation information and records, until being uploaded to operation information packing by the uploading nodes in functional network when timeline reaches
Backbone network.
Optionally, the uploading nodes in the functional network are determined by dpos common recognition mechanism, and are randomly dispersed in function
In network.
Optionally, any one main chain node in the backbone network obtains in corresponding functional network in uploading nodes
The stages operating set packet of biography, and the stages operating set packet is broadcasted in the backbone network, and default
After time, by main chain know together mechanism determine main chain produce node by the backbone network stages operating set packet and institute
The operation for stating the main chain node in backbone network is packaged as block, and the block chain is become owner of chain block chain.
Optionally, any one main chain node in the backbone network initiates the operation to a specific function network
When, the node of the main chain node traverses itself connection, wherein when the node for traversing itself connection is other main chain nodes,
Other main chain nodes are carried the information to, so as to the node that the node of other main chain node traverses itself connection is specific function network
When the information received be issued in specific function network broadcast;When the node for traversing itself connection is specific function
When the node of network, the node of the specific function network is directly carried the information to, so that the node of the specific function network will connect
The information received is broadcasted in specific function network;When the node that the node for traversing itself connection is other function network
When, forbid the node for transmitting message to other function network.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon
It is stored with the constructor of block chain, the structure such as above-mentioned block chain is realized when the constructor of the block chain is executed by processor
Make method.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of construction system of block chain, including matches
Set module, the first constructing module, the second constructing module and third constructing module, wherein the configuration module is for passing through local
Node configures initial connection file, wherein the initial connection file includes at least one Elementary Function node institute to be connected into
Corresponding functional information and Elementary Function node address;First constructing module is used for after the starting of initial main chain node, is led to
Local node creation wound generation block is crossed, and after at least one Elementary Function node starting wait be connected into, is initially connected according to described
The Elementary Function node address for connecing at least one Elementary Function node that should be to be connected into file establishes the initial main chain node
Connection with this between at least one Elementary Function node to be connected into, and be somebody's turn to do according in the initial connection file wait be connected into
The functional information of at least one Elementary Function node configure function corresponding at least one Elementary Function node to be connected into
It can network name;The configuration module is also used to configure main chain node address collection to be connected by local node;Described second
After constructing module is used for the main chain client terminal start-up corresponding to the main chain node wait be connected into, according to main chain node to be connected into
Main chain node to be connected into is connected to corresponding main chain node by location collection, to construct backbone network;The configuration module is also used to
Main chain node address corresponding to functional node address set to be connected into and functional node to be connected into is configured by local node
Collection;After the third constructing module is used for the function client terminal start-up corresponding to the functional node wait be connected into, according to wait be connected into
Functional node address set functional node to be connected into is connected to corresponding functional network, and according to function section to be connected into
Functional node to be connected into is connected to corresponding main chain node by the corresponding main chain node address collection of point.
The construction system of block chain according to an embodiment of the present invention, including configuration module, the first constructing module, the second construction
Module and third constructing module, firstly, configuration module configures initial connection file by local node, wherein initial connection text
Part includes functional information and Elementary Function node address corresponding at least one Elementary Function node to be connected into;Then,
One constructing module creates wound generation block after the starting of initial main chain node, through local node, and at least one to be connected into
After the starting of Elementary Function node, according to the Elementary Function of at least one Elementary Function node that should be to be connected into initial connection file
The connection that node address is established initial main chain node and is somebody's turn to do between at least one Elementary Function node to be connected into, and according to first
At the beginning of the functional information of at least one Elementary Function node that should be to be connected into beginning threaded file configures at least one to be connected into
Functional network title corresponding to beginning functional node;Then, configuration module also passes through local node and configures master link to be connected into
Dot address collection;Then, after the second constructing module main chain client terminal start-up corresponding to the main chain node wait be connected into, according to even
Main chain node to be connected into is connected to corresponding main chain node by the main chain node address collection entered, to construct backbone network;Then,
Configuration module also passes through local node and configures master corresponding to functional node address set to be connected into and functional node to be connected into
Chain node address collection;Then, after third constructing module function client terminal start-up corresponding to the functional node wait be connected into, according to
Functional node to be connected into is connected to corresponding functional network by functional node address set to be connected into, and according to be connected into
Functional node to be connected into is connected to corresponding main chain node by main chain node address collection corresponding to functional node;To realize
Division to nodal function reduces the data volume that entire block chain network needs to transmit, and mitigates the burden of block chain network, together
When, nodal function is specified, each node burden is mitigated.
In addition, the construction system of the block chain proposed according to that above embodiment of the present invention can also have following additional skill
Art feature:
Optionally, when any one functional node in the functional network is operated, which traverses itself and has connected
The node connect, wherein when traversing the node having connected is master link point, skip main chain node;It is had connected when traversing
When node is functional node, operation information is transmitted to the functional node having connected, so that each functional node is received in functional network
It to operation information and records, until being uploaded to operation information packing by the uploading nodes in functional network when timeline reaches
Backbone network.
Optionally, any one main chain node in the backbone network obtains in corresponding functional network in uploading nodes
The stages operating set packet of biography, and the stages operating set packet is broadcasted in the backbone network, and default
After time, by main chain know together mechanism determine main chain produce node by the backbone network stages operating set packet and institute
The operation for stating the main chain node in backbone network is packaged as block, and the block chain is become owner of chain block chain.
Optionally, any one main chain node in the backbone network initiates the operation to a specific function network
When, the node of the main chain node traverses itself connection, wherein when the node for traversing itself connection is other main chain nodes,
Other main chain nodes are carried the information to, so as to the node that the node of other main chain node traverses itself connection is specific function network
When the information received be issued in specific function network broadcast;When the node for traversing itself connection is specific function
When the node of network, the node of the specific function network is directly carried the information to, so that the node of the specific function network will connect
The information received is broadcasted in specific function network;When the node that the node for traversing itself connection is other function network
When, forbid the node for transmitting message to other function network.
Detailed description of the invention
Fig. 1 is the flow diagram according to the building method of the block chain of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the functional network node upload operation information of the embodiment of the present invention;
Fig. 3 is the flow diagram operated according to the backbone network of the embodiment of the present invention to specific function network;
Fig. 4 is the block diagram according to the construction system of the block chain of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In existing block chain constructing technology, mostly uses single-stranded form to carry out the construction of block chain, pass through this structure
The block chain that the mode of making constructs, the data volume that block chain network needs to transmit is big, and network burden is high, and each node high load capacity,
Block chained file synchronous efficiency is low;The building method of block chain provided in an embodiment of the present invention, firstly, being matched by local node
Initial connection file is set, then, to lead by configuring in local node according to initial connection file configuration original block chain network
Chain node address collection, and backbone network is constructed according to main chain node address collection, then, in local node configuration feature node address
Collect main chain node address collection corresponding with functional node, and according to functional node address set and the corresponding main chain node of functional node
The connection of address set conformation function network and functional network and backbone network;To realize the division to nodal function, reduce
The data volume that entire block chain network needs to transmit mitigates the burden of block chain network, meanwhile, nodal function is specified, is mitigated each
Node burden.
In order to better understand the above technical scheme, the exemplary reality that the present invention will be described in more detail below with reference to accompanying drawings
Apply example.Although showing exemplary embodiment of the present invention in attached drawing, it being understood, however, that may be realized in various forms this hair
It is bright and should not be limited by the embodiments set forth herein.It is to be able to thoroughly understand this on the contrary, providing these embodiments
Invention, and the scope of the present invention can be fully disclosed to those skilled in the art.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Fig. 1 is the flow diagram of the building method for the middle block chain that the embodiment of the present invention proposes, as shown in Figure 1, the area
The building method of block chain the following steps are included:
S101 passes through local node and configures initial connection file, wherein initial connection file includes that at least one is to be connected into just
Functional information corresponding to beginning functional node and Elementary Function node address.
As an example, initial connection file is configured by local node, wherein initial connection file is with key-value pair
Form stores the file of functional information and Elementary Function node address corresponding to Elementary Function node to be connected into;Namely
It says, the functional information of Elementary Function node and the corresponding relationship of Elementary Function node address is established in the form of key-value pair.
S102 creates wound generation block by local node, and to be connected at least one after the starting of initial main chain node
After a Elementary Function node starting, according to the initial power of at least one Elementary Function node that should be to be connected into initial connection file
The connection that energy node address is established initial main chain node and is somebody's turn to do between at least one Elementary Function node to be connected into, and according to
The functional information of at least one Elementary Function node that should be to be connected into initial connection file configures at least one to be connected into
Functional network title corresponding to Elementary Function node.
That is, starting initial main chain node, and create by local node after initial connection file configuration is completed
Generation block is created, and after the Elementary Function node starting wait be connected into, according to the Elementary Function node in initial connection file
Elementary Function node address establishes the connection between initial main chain node and the Elementary Function node, then, according to initial connection
The functional information of the Elementary Function node configures functional network title corresponding to the Elementary Function node to be connected into file.
Wherein, functional node refers to starting the node of function client;For example, starting block chain community function
Client node is community's node;The client node for starting block chain game function is game node.
Wherein, the quantity of Elementary Function node can be one, be also possible to multiple;Quantity can be according to block chain to be constructed
Related function is determined;Therefore, the quantity of Elementary Function node is not limited herein.
S103 configures main chain node address collection to be connected by local node, and right in main chain node institute to be connected into
After the main chain client terminal start-up answered, main chain node to be connected into is connected to accordingly according to main chain node address collection to be connected into
Main chain node, to construct backbone network.
That is, then starting wait be connected into firstly, configuring main chain node address collection to be connected by local node
The corresponding main chain client of main chain node main chain client then will be started according to main chain node address collection to be connected into
Main chain node to be connected into be connected to corresponding main chain node, to construct backbone network.
Wherein, main chain node address collection to be connected into includes but is not limited to main chain node address to be connected into and its corresponding
Main chain node address.That is, with being somebody's turn to do the node that main chain node address collection to be connected into both had included the main chain node being newly added
Location, the also node address of the main chain node main chain node to be connected into including the new addition.
S104 is configured corresponding to functional node address set to be connected into and functional node to be connected by local node
Main chain node address collection, and after the function client terminal start-up corresponding to the functional node wait be connected into, according to function to be connected into
Functional node to be connected into is connected to corresponding functional network by node address collection, and right according to functional node institute to be connected into
Functional node to be connected into is connected to corresponding main chain node by the main chain node address collection answered.
That is, firstly, configuring master corresponding to functional node address set to be connected into and functional node to be connected into
Chain node address collection, then, startup function client, and added new functional node according to functional node address set to be connected into
Enter to corresponding functional network, and according to corresponding to functional node to be connected into main chain node address collection is established and is newly added
The connection of functional node and corresponding main chain node, so that backbone network is added in new functional node.
The building method of block chain according to an embodiment of the present invention, firstly, initial connection file is configured by local node,
Wherein, initial connection file includes functional information and Elementary Function section corresponding at least one Elementary Function node to be connected into
Dot address;Then, after the starting of initial main chain node, wound generation block is created by local node, and to be connected at least one
After a Elementary Function node starting, according to the initial power of at least one Elementary Function node that should be to be connected into initial connection file
The connection that energy node address is established initial main chain node and is somebody's turn to do between at least one Elementary Function node to be connected into, and according to
The functional information of at least one Elementary Function node that should be to be connected into initial connection file configures at least one to be connected into
Functional network title corresponding to Elementary Function node;Then, main chain node address collection to be connected into is configured by local node,
It, will be to even according to main chain node address collection to be connected into and after the main chain client terminal start-up corresponding to the main chain node wait be connected into
The main chain node entered is connected to corresponding main chain node, to construct backbone network;Then, it is configured by local node to be connected into
Main chain node address collection corresponding to functional node address set and functional node to be connected into, and in functional node institute to be connected into
After corresponding function client terminal start-up, functional node to be connected into is connected to accordingly according to functional node address set to be connected into
Functional network, and the main chain node address collection according to corresponding to functional node to be connected into connects functional node to be connected into
It is connected to corresponding main chain node;To realize the division to nodal function, the data that entire block chain network needs to transmit are reduced
Amount mitigates the burden of block chain network, meanwhile, nodal function is specified, each node burden is mitigated.
In order to further enhance the data-handling efficiency of block chain network, mitigate the node burden of block chain network;Such as Fig. 2
Shown, in some embodiments, the building method of block chain provided in an embodiment of the present invention is further comprising the steps of:
S201, when any one functional node in functional network is operated, which traverses the section itself having connected
Point;When traversing the node having connected is master link point, step S202 is executed;It is function section when traversing the node having connected
When point, step S203 is executed.
That is, by traversing the node itself having connected, judging the section having connected when functional node generates operation
Point is main chain node or functional node, to carry out different operations.
S202 skips main chain node, (that is, not transmitting the operation information.)
That is, not transmitting the operation information when traversing the node having connected is master link point, directly skipping master link
Point, in this way, broadcast operation information will not in backbone network.
S203 transmits operation information to the functional node having connected, so that each functional node receives behaviour in functional network
Make information and record, until operation information packing is uploaded to main chain by the uploading nodes in functional network when timeline reaches
Network.
That is, when traversing the node having connected is functional node, to the functional node transmitting operation having connected
Information, so that each functional node receives operation information and records in functional network;And pass through function network when timeline reaches
Operation information packing is uploaded to backbone network by the uploading nodes in network;In this way, by functional network to the behaviour generated in network
It is broadcasted and is recorded, and be packaged by the operation information in the period after the preset time reaches and be uploaded to master
Chain network can reduce the burden of the storage of main chain node and operation.
Wherein, there are many methods of determination of the uploading nodes of functional network, for example, being known together by POW common recognition mechanism, POS
Mechanism or PBFT common recognition mechanism carry out the determination of uploading nodes.
As an example, the determination that uploading nodes are carried out by dpos common recognition mechanism, specifically, i.e., in functional network
Each user is voted by its corresponding functional node, to elect the functional node as uploading nodes, and to election
Uploading nodes progress out is randomly ordered, and the arrangement of uploading nodes upload operation information is carried out with the sequence.
S204, any one main chain node in backbone network obtain the rank that uploading nodes upload in corresponding functional network
Section operational set packet, and stages operating set packet is broadcasted in backbone network.
S205 produces node for the rank in backbone network by the main chain that main chain common recognition mechanism determines after preset time
The operation of section operational set packet and the main chain node in backbone network is packaged as block, and block chain is become owner of chain block chain.
Wherein, operational set packet refers to the operation information in the preset time line of uploading nodes packing.
That is, when any one main chain node in backbone network gets what uploading nodes in functional network uploaded
After stages operating set packet, which is broadcasted in backbone network, so that the stages operating set
Packet synchronizes in backbone network, then, after a preset amount of time, produces node by the main chain that main chain common recognition mechanism determines
The operation of nodal operation set packet and main chain node in backbone network is packaged as block, and the block chain is become owner of into chain block
Chain.
In conclusion the building method of block chain provided in an embodiment of the present invention leads to after functional network generates operation
The node for traversing and itself having connected is crossed, and judges that the node having connected is main chain node or functional node;And it is tied in judgement
When fruit is master link point, the operation information is not transmitted, when judging result is functional node, transmits the operation information, so that
Operation information synchronizes in functional network;Then, after reaching preset timeline by the uploading nodes known together to behaviour
It is packaged as information and is uploaded to backbone network;Then, the main chain node in backbone network is getting functional node upload
Stages operating set packet after, broadcasted in backbone network, and after preset time reaches, to stages operating set packet with
And operation carries out being packed into block in main chain, and block chain is become owner of chain block chain;To realize point of each node function
Change, mitigates each node burden and redundancy.
In order to realize control of the backbone network to functional network, and during backbone network controls specific function network
The normal operation of other function network is not influenced;As shown in figure 3, in some embodiments, the structure of block chain provided by the invention
It is further comprising the steps of to make method:
S301, when any one main chain node in backbone network initiates the operation to a specific function network, the master link
The node of itself connection of point traversal;When the node for traversing itself connection is other main chain nodes, step S302 is executed;When time
Go through to itself connection node be specific function network node when, execute step S303;When the node for traversing itself connection
For other function network node when, execute step S304.
That is, when any one main chain node in backbone network initiates the operation to a specific function network,
Traverse first itself connection node, with distinguish itself connection node be specific function network node, main chain node either
The node of other function network, to carry out different operations.
Wherein, the determination of specific function network can there are many, for example, each functional network is numbered, and sending out
When playing the operation to specific function network, such as the corresponding number of specific function network is added in operation information.
As an example, when main chain initiates the operation to specific function network, in the operation information head of operation information
Two-value identifier is arranged to each functional network, use 1 indicates transmitting operation information, and use 0 indicates not transmit operation information, with true
Surely need to carry out the specific function network of operation information transmitting.
S302 carries the information to other main chain nodes, so that the node of other main chain node traverses itself connection is specific
The information received is issued in specific function network when the node of functional network and is broadcasted.
That is, transmit operation information when the node that itself traversed has connected is master link point, with
Just the information received is issued to spy when the node of other main chain node traverses itself connection is the node of specific function network
Determine to be broadcasted in functional network.
S303 directly carries the information to the node of the specific function network, so that the node of the specific function network will connect
The information received is broadcasted in specific function network.
That is, when the node that itself traversed has connected is the node of specific function network, by operation information
It is transmitted, so that the node of the specific function network broadcasts the information received in specific function network.
S304 forbids the node for transmitting message to other function network.
That is, when the node that itself traversed has connected is the node of other function network, without operation
The transmitting of information, to prevent operation information from impacting to the normal operation of other function network.
In conclusion the building method of block chain provided in an embodiment of the present invention, firstly, when main chain is initiated to specific function
When the operation of network, the node itself having connected is traversed;To judge the nodal community itself having connected;Then, in judging result
When for master link point, operation information is transmitted, so that other itself connected nodes of main chain node traverses carry out the hair of operation information
Cloth;When judging result is the node of specific function network, operation information is transmitted, so that the node pair of the specific function network
Operation information is broadcasted, and is synchronized in specific function network to operation information;When judging result is other function network
Node when, do not transmit the operation information, to avoid the operation information influence other function network normal operation;To realize
The function differentiation of each node, so that each nodal function unification, mitigates each node burden and data redundancy.
To realize above-described embodiment, the embodiment of the invention also provides a kind of computer readable storage mediums, store thereon
There is the constructor of block chain, the construction side such as above-mentioned block chain is realized when the constructor of the block chain is executed by processor
Method.
Fig. 4 is a kind of block diagram of the construction system of block chain provided in an embodiment of the present invention, as shown in figure 4, should
The construction system of block chain includes: configuration module 10, the first constructing module 20, the second constructing module 30 and third constructing module
40。
Wherein, configuration module 10, for configuring initial connection file by local node, wherein the initial connection text
Part includes functional information and Elementary Function node address corresponding at least one Elementary Function node to be connected into.
First constructing module 20, for being created by local node and creating generation block after initial main chain node starts, and
After at least one Elementary Function node starting wait be connected into, at the beginning of being somebody's turn to do at least one to be connected into the initial connection file
The Elementary Function node address of beginning functional node establishes the initial main chain node and is somebody's turn to do at least one Elementary Function to be connected into
Connection between node, and the function according at least one Elementary Function node that should be to be connected into the initial connection file
Information configuration is somebody's turn to do functional network title corresponding at least one Elementary Function node to be connected into.
Configuration module 10 is also used to configure main chain node address collection to be connected by local node.
Second constructing module 30, after the main chain client terminal start-up corresponding to the main chain node wait be connected into, according to
Main chain node to be connected into is connected to corresponding main chain node by the main chain node address collection being connected into, to construct backbone network.
Configuration module 10 is also used to configure functional node address set to be connected into and function to be connected by local node
Main chain node address collection corresponding to node.
Third constructing module 40, after the function client terminal start-up corresponding to the functional node wait be connected into, according to
Functional node to be connected into is connected to corresponding functional network by the functional node address set being connected into, and according to function to be connected into
Functional node to be connected into is connected to corresponding main chain node by main chain node address collection corresponding to energy node.
The construction system of block chain according to an embodiment of the present invention, including configuration module, the first constructing module, the second construction
Module and third constructing module, firstly, configuration module configures initial connection file by local node, wherein initial connection text
Part includes functional information and Elementary Function node address corresponding at least one Elementary Function node to be connected into;Then,
One constructing module creates wound generation block after the starting of initial main chain node, through local node, and at least one to be connected into
After the starting of Elementary Function node, according to the Elementary Function of at least one Elementary Function node that should be to be connected into initial connection file
The connection that node address is established initial main chain node and is somebody's turn to do between at least one Elementary Function node to be connected into, and according to first
At the beginning of the functional information of at least one Elementary Function node that should be to be connected into beginning threaded file configures at least one to be connected into
Functional network title corresponding to beginning functional node;Then, configuration module also passes through local node and configures master link to be connected into
Dot address collection;Then, after the second constructing module main chain client terminal start-up corresponding to the main chain node wait be connected into, according to even
Main chain node to be connected into is connected to corresponding main chain node by the main chain node address collection entered, to construct backbone network;Then,
Configuration module also passes through local node and configures master corresponding to functional node address set to be connected into and functional node to be connected into
Chain node address collection;Then, after third constructing module function client terminal start-up corresponding to the functional node wait be connected into, according to
Functional node to be connected into is connected to corresponding functional network by functional node address set to be connected into, and according to be connected into
Functional node to be connected into is connected to corresponding main chain node by main chain node address collection corresponding to functional node;To realize
Division to nodal function reduces the data volume that entire block chain network needs to transmit, and mitigates the burden of block chain network, together
When, nodal function is specified, each node burden is mitigated.
In some embodiments, when any one functional node in functional network is operated, functional node traversal
The node itself having connected, wherein when traversing the node having connected is master link point, skip main chain node;When traversing
When the node having connected is functional node, operation information is transmitted to the functional node having connected, so that each function in functional network
Energy node receives operation information and records, until timeline is beaten operation information by the uploading nodes in functional network when reaching
It wraps and reaches backbone network.
In some embodiments, any one main chain node in backbone network, which obtains, uploads section in corresponding functional network
The stages operating set packet that point uploads, and stages operating set packet is broadcasted in backbone network, and in preset time
Afterwards, knowing together the determining main chain production node of mechanism by main chain will be in the stages operating set packet and backbone network in backbone network
The operation of main chain node be packaged as block, and block chain is become owner of into chain block chain.
In some embodiments, any one main chain node in backbone network initiates the behaviour to a specific function network
When making, the node of the main chain node traverses itself connection, wherein when the node for traversing itself connection is other main chain nodes
When, other main chain nodes are carried the information to, so that the node of other main chain node traverses itself connection is specific function network
The information received is issued in specific function network when node and is broadcasted;When the node for traversing itself connection is specific
When the node of functional network, the node of the specific function network is directly carried the information to, so that the node of the specific function network
The information received is broadcasted in specific function network;When the node for traversing itself connection is other function network
When node, forbid the node for transmitting message to other function network.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power
The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component
Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components
It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled
Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not
Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include one or more of the features.In the description of the present invention,
The meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect
It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary
The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings
Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with
It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists
Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of
First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below "
One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It is interpreted as that identical embodiment or example must be directed to.Moreover, particular features, structures, materials, or characteristics described
It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this
The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples
Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (10)
1. a kind of building method of block chain, which comprises the following steps:
Pass through local node and configure initial connection file, wherein the initial connection file includes that at least one is to be connected into just
Functional information corresponding to beginning functional node and Elementary Function node address;
After the starting of initial main chain node, wound generation block is created by local node, and at least one initial power to be connected into
After energy node starting, according to the Elementary Function section of at least one Elementary Function node that should be to be connected into the initial connection file
The connection that dot address is established the initial main chain node and is somebody's turn to do between at least one Elementary Function node to be connected into, and according to
It is to be connected at least that the functional information of at least one Elementary Function node that should be to be connected into the initial connection file configures this
Functional network title corresponding to one Elementary Function node;
Main chain node address collection to be connected into, and the visitor of the main chain corresponding to main chain node to be connected into are configured by local node
After the starting of family end, main chain node to be connected into is connected to by corresponding main chain node according to main chain node address collection to be connected into,
To construct backbone network;
Main chain node corresponding to functional node address set to be connected into and functional node to be connected into is configured by local node
Address set, and after the function client terminal start-up corresponding to the functional node wait be connected into, according to functional node address to be connected into
Functional node to be connected into is connected to corresponding functional network, and the main chain according to corresponding to functional node to be connected by collection
Functional node to be connected into is connected to corresponding main chain node by node address collection.
2. the building method of block chain as described in claim 1, which is characterized in that any one function in the functional network
When energy node is operated, which traverses the node itself having connected, wherein
When traversing the node having connected is master link point, main chain node is skipped;
When traversing the node having connected is functional node, operation information is transmitted to the functional node having connected, so that function
Each functional node receives operation information and records in network, until by the uploading nodes in functional network when timeline reaches
Operation information packing is uploaded to backbone network.
3. the building method of block chain as claimed in claim 2, which is characterized in that the uploading nodes in the functional network are logical
It crosses dpos common recognition mechanism to determine, and is randomly dispersed in functional network.
4. the building method of block chain as claimed in any one of claims 1-3, which is characterized in that in the backbone network
Any one main chain node obtains the stages operating set packet that uploading nodes in corresponding functional network upload, and by the stage
Operational set packet is broadcasted in the backbone network, and after preset time, the master determined by main chain common recognition mechanism
Chain production node plays the operation of the main chain node in the stages operating set packet and the backbone network in the backbone network
Packet is block, and the block chain is become owner of chain block chain.
5. the building method of block chain as claimed in any one of claims 1-3, which is characterized in that in the backbone network
When any one main chain node initiates the operation to a specific function network, the node of the main chain node traverses itself connection,
Wherein,
When the node for traversing itself connection is other main chain nodes, other main chain nodes are carried the information to, so as to other masters
The information received is issued to specific function net when the node of chain node traverses itself connection is the node of specific function network
It is broadcasted in network;
When the node for traversing itself connection is the node of specific function network, the specific function network is directly carried the information to
Node so that the node of the specific function network broadcasts the information received in specific function network;
When the node for traversing itself connection is the node of other function network, forbid transmitting message to other function network
Node.
6. a kind of computer readable storage medium, which is characterized in that it is stored thereon with the constructor of block chain, the block chain
The building method of block chain according to any one of claims 1 to 5 is realized when constructor is executed by processor.
7. a kind of construction system of block chain, which is characterized in that including configuration module, the first constructing module, the second constructing module
With third constructing module, wherein
The configuration module is used to configure initial connection file by local node, wherein the initial connection file includes extremely
Functional information and Elementary Function node address corresponding to a few Elementary Function node to be connected into;
First constructing module be used for initial main chain node starting after, by local node create wound generation block, and to
It is initial according at least one to be connected into is somebody's turn to do in the initial connection file after at least one the Elementary Function node starting being connected into
The Elementary Function node address of functional node establishes the initial main chain node and is somebody's turn to do at least one Elementary Function section to be connected into
Connection between point, and believed according to the function of at least one Elementary Function node that should be to be connected into the initial connection file
Breath configures functional network title corresponding at least one Elementary Function node to be connected into;
The configuration module is also used to configure main chain node address collection to be connected by local node;
After second constructing module is used for the main chain client terminal start-up corresponding to the main chain node wait be connected into, according to wait be connected into
Main chain node address collection main chain node to be connected into is connected to corresponding main chain node, to construct backbone network;
The configuration module is also used to configure functional node address set to be connected into and function section to be connected by local node
The corresponding main chain node address collection of point;
After the third constructing module is used for the function client terminal start-up corresponding to the functional node wait be connected into, according to wait be connected into
Functional node address set functional node to be connected into is connected to corresponding functional network, and according to function section to be connected into
Functional node to be connected into is connected to corresponding main chain node by the corresponding main chain node address collection of point.
8. the construction system of block chain as claimed in claim 7, which is characterized in that any one function in the functional network
When energy node is operated, which traverses the node itself having connected, wherein
When traversing the node having connected is master link point, main chain node is skipped;
When traversing the node having connected is functional node, operation information is transmitted to the functional node having connected, so that function
Each functional node receives operation information and records in network, until by the uploading nodes in functional network when timeline reaches
Operation information packing is uploaded to backbone network.
9. the construction system of block chain as claimed in claim 8, which is characterized in that any one master in the backbone network
Chain node obtains the stages operating set packet that uploading nodes in corresponding functional network upload, and by the stages operating set packet
It is broadcasted in the backbone network, and after preset time, node is produced by the main chain that main chain common recognition mechanism determines
The operation of main chain node in stages operating set packet and the backbone network in the backbone network is packaged as block, and
The block chain is become owner of into chain block chain.
10. the construction system of block chain as claimed in any one of claims 7-9, which is characterized in that in the backbone network
Any one main chain node when initiating to the operation of a specific function network, the section of the main chain node traverses itself connection
Point, wherein
When the node for traversing itself connection is other main chain nodes, other main chain nodes are carried the information to, so as to other masters
The information received is issued to specific function net when the node of chain node traverses itself connection is the node of specific function network
It is broadcasted in network;
When the node for traversing itself connection is the node of specific function network, the specific function network is directly carried the information to
Node so that the node of the specific function network broadcasts the information received in specific function network;
When the node for traversing itself connection is the node of other function network, forbid transmitting message to other function network
Node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810713792.5A CN109165304B (en) | 2018-07-03 | 2018-07-03 | Block chain construction method, medium and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810713792.5A CN109165304B (en) | 2018-07-03 | 2018-07-03 | Block chain construction method, medium and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109165304A true CN109165304A (en) | 2019-01-08 |
CN109165304B CN109165304B (en) | 2020-08-14 |
Family
ID=64897244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810713792.5A Active CN109165304B (en) | 2018-07-03 | 2018-07-03 | Block chain construction method, medium and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109165304B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110308962A (en) * | 2019-07-04 | 2019-10-08 | 明链科技(深圳)有限公司 | Manage method, electronic equipment and the medium of block chain network |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN107079058A (en) * | 2016-12-23 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | The business of block chain node performs method, device and node device |
CN107682308A (en) * | 2017-08-16 | 2018-02-09 | 北京航空航天大学 | The electronic evidence preservation system for Channel Technology of being dived based on block chain |
CN107995120A (en) * | 2016-11-22 | 2018-05-04 | 南京银链信息科技有限公司 | Construct the method and multi-tiling catenary system of multi-tiling chain |
-
2018
- 2018-07-03 CN CN201810713792.5A patent/CN109165304B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN107995120A (en) * | 2016-11-22 | 2018-05-04 | 南京银链信息科技有限公司 | Construct the method and multi-tiling catenary system of multi-tiling chain |
CN107079058A (en) * | 2016-12-23 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | The business of block chain node performs method, device and node device |
CN107682308A (en) * | 2017-08-16 | 2018-02-09 | 北京航空航天大学 | The electronic evidence preservation system for Channel Technology of being dived based on block chain |
Non-Patent Citations (1)
Title |
---|
郭学沛等: "区块链技术应用", 《技术应用》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110308962A (en) * | 2019-07-04 | 2019-10-08 | 明链科技(深圳)有限公司 | Manage method, electronic equipment and the medium of block chain network |
CN110308962B (en) * | 2019-07-04 | 2022-08-23 | 明链科技(深圳)有限公司 | Method, electronic device, and medium for managing block chain network |
Also Published As
Publication number | Publication date |
---|---|
CN109165304B (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108510389A (en) | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain | |
CN107105351B (en) | Regenerating unit | |
CN106464951B (en) | A kind of method and apparatus for render video frame | |
JP6219800B2 (en) | Multi-track video content service method and system for providing multi-track video content | |
CN108924582A (en) | Video recording method, computer readable storage medium and recording and broadcasting system | |
CN109819262A (en) | Coding method, image encoder and image delivering system | |
CN106201846A (en) | Method for monitoring performance in automatic test and device | |
CN110427385A (en) | Block chain data-updating method, interdependent node and block chain | |
CN106297228A (en) | The control method of ZigBee-network and control system | |
WO2021164404A1 (en) | Inspection method and apparatus | |
CN109165304A (en) | Building method, medium and the system of block chain | |
CN104429087A (en) | Playback device, playback method, distribution device, distribution method, distribution program, playback program, recording medium, and metadata | |
TW201236413A (en) | Control apparatus, control system and communication method | |
CN109409857A (en) | Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system | |
CN105430570B (en) | Player method and playing device | |
CN101763877B (en) | Method and device for rapidly verifying chip by multimedia player | |
CN109448680A (en) | Interaction control method, medium, the apparatus and system of K song system | |
CN112256653A (en) | Data sampling method and device | |
JP2007065975A (en) | Content data delivery system, terminal device and connection management device in the same system, program of terminal device and program of connection management device | |
JP6333369B2 (en) | Deployment prediction apparatus, deployment prediction method, program, and recording medium | |
IT201900004823A1 (en) | System and method for instant concatenation of video content through performance. | |
CN108540828A (en) | The processing method and system of multi-medium data, storage medium, processor | |
JP4207981B2 (en) | Information processing apparatus, information processing method, program, and recording medium | |
KR101106802B1 (en) | Video processing device and recording medium | |
JP2017055203A (en) | Information apparatus |
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 | ||
CP03 | Change of name, title or address |
Address after: 361000 B1F-065, Zone A, Huaxun Building, Software Park, Xiamen Torch Hi-tech Zone, Huli District, Xiamen City, Fujian Province Patentee after: Ke'an (Xiamen) Technology Co.,Ltd. Address before: B1f-065, zone a, Huaxun building, software park, torch hi tech Zone, Xiamen City, Fujian Province, 361000 Patentee before: TAILIAN (XIAMEN) TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |