[go: up one dir, main page]

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 PDF

Info

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
chain
transaction information
sub
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
Application number
CN201810475609.2A
Other languages
Chinese (zh)
Inventor
赖友才
周圣贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Easy Chain Technology (shenzhen) Co Ltd
Original Assignee
Easy Chain Technology (shenzhen) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Easy Chain Technology (shenzhen) Co Ltd filed Critical Easy Chain Technology (shenzhen) Co Ltd
Priority to CN201810475609.2A priority Critical patent/CN108712491A/en
Publication of CN108712491A publication Critical patent/CN108712491A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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

Block chain node, transaction information processing method, terminal device, and medium
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a block chain link point, a transaction information processing method, a terminal device and a computer-readable storage medium.
Background
The current blockchain network consists of related nodes, each of which maintains a blockchain together. The user stores data on blocks of a block chain, referred to as the uplink. Each block is connected into a chain in a link mode, and only one process is arranged in each block chain link and is responsible for processing Remote Procedure call protocol (RPC) interface data on the network and network data of a Peer-to-Peer network (Peer-to-Peer, P2P).
When the front block chain is a single chain structure, the size of each block is limited, and each transaction has a certain size, so that the transaction information which can be stored in the block is limited. When a large amount of transaction information is generated, the current block can only store the transaction information which meets the size of the current block, and the rest transaction information needs to be stored in the subsequent block, so that the transaction information is linked slowly, and the requirement of rapid transaction linking cannot be met.
Disclosure of Invention
The embodiment of the invention provides a block link point which can link transaction information simultaneously when a large amount of data are transacted, so that the link speed is improved.
In a first aspect, there is provided a block link point comprising: a backbone module and a daughter chain module;
the subchain module comprises a plurality of parallel subchain units, and each subchain unit is connected with the main chain module;
the sub-chain unit is used for generating a new block and sending new block generation information to the main chain module;
the main chain module is used for receiving network information from a peer-to-peer network P2P and monitoring the new block generation information sent by each sub-chain unit;
determining the priority order of the new block generation information based on a preset priority rule;
correspondingly storing transaction information into a new block of each sub-chain unit according to the priority order, wherein the transaction information comprises: transaction information in the network information and/or transaction information generated by the block link node.
In a second aspect, a method for processing transaction information of a blockchain is provided, where the method includes:
the main chain receives network information from the peer-to-peer network P2P and monitors new block generation information sent by each sub-chain;
determining the priority order of the new block generation information based on a preset priority rule;
storing transaction information into a new block of each of the child chains in the priority order, wherein the transaction information includes: transaction information in the network information and/or transaction information generated by the block link node.
In a third aspect, a terminal device is provided, which includes: a memory, a processor, a communication interface, and a bus;
the memory, the processor and the communication interface are connected through the bus and complete mutual communication;
the memory is used for storing program codes;
the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the transaction information processing method of the second aspect.
In a fourth aspect, there is provided a computer storage medium comprising instructions which, when run on a computer, cause the computer to perform the transaction information processing method according to the second aspect.
Compared with the prior art, the block chain node provided by the embodiment of the application has the advantages that the main chain module and the sub-chain units are arranged in the block chain node, and the main chain module distributes the received network messages to the sub-chain units by sharing one P2P network port, so that the block chain node can simultaneously uplink the transaction information when a large amount of data is transacted, and the uplink speed is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic block diagram of a block link point of an embodiment of the present invention;
FIG. 2 is a schematic block diagram of information interaction between two blockchain nodes according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a main chain module with a P2P network port external thereto according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a link cell with an RPC network port attached externally to the link cell in an example embodiment of the present invention;
FIG. 5 is a schematic block diagram of a main chain module externally connected with an RPC network port according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a blockchain node of another embodiment of the present invention;
FIG. 7 is a schematic block diagram of a main chain module with an external RPC network port according to another embodiment of the present invention;
FIG. 8 is a schematic flow chart diagram of a transaction information processing method of a blockchain according to another embodiment of the present invention;
FIG. 9 is a diagram illustrating another embodiment of the present invention storing transaction information to a new chunk of each child chain in a priority order;
fig. 10 is a schematic block diagram of a terminal device of an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For a better understanding of the present invention, a blockchain node, a transaction information processing method, a terminal device, and a medium according to embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be noted that these embodiments are not intended to limit the scope of the present disclosure.
Fig. 1 shows a schematic block diagram of a block link point 100 of an embodiment of the present invention. The square block link point 100 includes: a backbone module 110 and a daughter chain module 120.
The daughter chain module 120 includes a plurality of parallel daughter chain units, each of which is connected to the main chain module 110.
The sub-chain unit is used to generate a new block and send new block generation information to the main chain module 110.
The main chain module 110 is configured to receive network information from P2P and listen to new block generation information sent by each sub-chain unit.
And determining the priority order of the new block generation information based on a preset priority rule.
Correspondingly storing the transaction information into a new block of each sub-chain unit according to the priority order, wherein the transaction information comprises: transaction information in the network information and/or transaction information generated by the block link nodes.
It can be understood that, as shown in fig. 1, in the embodiment of the present invention, the main chain module 110 has a receiving and sending function, the sub-chain module 120 has a plurality of sub-chain units 121, 122, 123, and the like, which are arranged in parallel, and the number of the sub-chain units is configured according to the user requirement. It should be further noted that each sub-chain unit is associated with a corresponding sub-chain unit in other block link nodes except for the block link point, and is not associated with other sub-chain units that do not correspond to the sub-chain unit.
Fig. 2 is a schematic block diagram of information interaction between two blockchain nodes according to an embodiment of the present invention.
As shown in fig. 2, when there are two blockchain nodes, such as: the block chain node a and the block link point B are two nodes having the same structure, and the sub-chain unit 121 of the block link point a is related to the sub-chain unit 121 of the block link point B.
The main chain module 110 receives the network information from other block link points except the block link point a, and distributes the network information to the corresponding sub-chain unit. Each child chain unit and the main chain module 110 is a process in the system. After the sub-chain unit generates a new block, the sub-chain unit sends new block generation information to the main chain module 110, for example: the sub-chain unit generates a new block every 10 minutes, and after the sub-chain unit generates a new block, the new block generation information is sent to the main chain module 110, where the new block generation information includes: the time of generation and stored value of the new block, etc.
As an example: the sub-chain unit 121 generates a new block a at 11 o' clock 08 min 30 sec on monday on 4/2/2018; the sub-chain unit 122 generates a new block B at 11 o' clock 15 min 30 sec on monday on 4/2/2018; the sub-chain unit 123 generates a new block C at 11 o' clock 20 min 30 sec on 2 nd monday 4/2018. The new block a generation information, the new block B generation information, and the new block C generation information may all be sent to the main chain module 110.
The main chain module 110 determines the priority order of the new block generation information based on the preset priority rule. The preset priority rule refers to the time sequence of generating the new blocks. For example: new block a generation information > new block B generation information > new block C generation information. Correspondingly storing the transaction information into a new block of each sub-chain unit according to the priority order, wherein the transaction information comprises: transaction information in the network information and/or transaction information generated by the block link nodes.
Therefore, according to a block link point of an embodiment of the present invention, a main chain module and a plurality of sub-chain units are disposed in a block link node, and then share a P2P network port, and the main chain module distributes received network messages to the sub-chain units, so that the block link node can simultaneously uplink transaction information during mass data transactions, thereby increasing uplink speed.
As an alternative embodiment, the following are two different scenarios for the main chain module 110 to store transaction information.
First, when the stored value in the new block of the sub-chain unit with the highest priority is greater than the value of the transaction information, the transaction information is stored in the new block of the sub-chain unit with the highest priority.
In the embodiment of the present invention, for example: the stored value in the new block a is 1G and the transaction information that needs to be stored is 0.8G, then the 0.8G transaction information can be stored in its entirety in the new block a.
Secondly, when the stored value in the new block of the sub-chain unit with the highest priority is smaller than the numerical value of the transaction information, after the new block of the sub-chain unit with the highest priority stores the transaction information fully, the transaction information which is not stored is stored in the new blocks of other sub-chain units according to the priority order.
In the embodiment of the present invention, for example: the stored value in new block a is 1G and the transaction information that needs to be stored is 1.8G, then the 1G transaction information is stored entirely in new block a and the remaining 0.8G transaction information is stored in new block B. If the stored value of the new block B is 0.5G, all the 0.5G transaction information in the remaining 0.8G transaction information is stored in the new block B, and finally all the remaining 0.3G transaction information is stored in the new block C. And analogize according to the priority order until all the transaction information is stored.
Fig. 3 is a schematic block diagram of a main-chain module externally connected with a P2P network port according to an embodiment of the present invention.
Optionally, as another embodiment, the main chain module 110 is externally connected with a P2P network port 130, and the main chain module 110 is specifically configured to receive network information through the P2P network port 130.
The embodiment shown in fig. 3 of the present invention is to add a P2P network port 130 to the embodiment shown in fig. 2, and the main chain module 110 is externally connected with the P2P network port 130, so that the main chain module 110 can receive network information from other blockchain nodes through the P2P network port 130 and distribute the received network information to corresponding sub-chain units, or a plurality of sub-chain units can share one P2P network port 130. For example: if the network information received by the main chain module 110 in blockchain node a is from a sub-chain unit 122 in blockchain node B, the main chain module 110 in blockchain node a distributes the network information to the sub-chain unit 122 in blockchain node a.
In addition, the main chain module 110 further sends block update information to other block link nodes except its own block link node through the P2P network port 130, where the block update information includes: block information of the new block and transaction information stored in the new block.
In the embodiment of the present invention, for example: the main chain module 110 in the block chain node a sends block update information to the main chain module 110 in the block chain node B in order to synchronize the block chain node B with the block chain node a. If a sub-chain unit 121 in a block chain node a generates a new block a and the new block a stores transaction information, the block chain node a needs to send block update information to a block-linked point B through a P2P network port 130, so that the sub-chain unit 121 in the block-linked point B also generates a new block a according to the block update information.
Optionally, in another embodiment, the network information further includes: and block updating information sent by other block chain nodes except the self block chain node. When the network information includes block update information, the main chain module 110 determines the sub-chain unit to be updated according to the block update information, so that the sub-chain unit to be updated performs block update based on the block update information.
In the embodiment of the present invention, if the blockchain node a receives the block update information, and the block update information indicates that the sub-chain unit 121 in the blockchain node B generates a new block a and the new block a stores the transaction information, the sub-chain unit 121 in the blockchain node a also generates a new block a according to the block update information, so as to synchronize with the blockchain node B.
FIG. 4 is a schematic block diagram of an example embodiment of the present invention with an RPC network port 140 external to the link cell.
Optionally, as another embodiment, the sub-chain unit is externally connected with an RPC network port 140. The sub-chain unit is specifically configured to receive a query request from the RPC network through the RPC network port 140 to query the transaction information stored in the sub-chain unit.
It is understood that the embodiment of the present invention shown in fig. 4 is added with the RPC network port 140 on the basis of the embodiment shown in fig. 3.
FIG. 5 is a schematic block diagram of the main chain module 110 externally connected with the RPC network port 140 according to another embodiment of the present invention.
Optionally, as another embodiment, the main chain module 110 is further externally connected with an RPC network port 140. The main chain module 110 is specifically configured to receive a query request from the RPC network through the RPC network port 140, and determine a sub-chain unit to be queried based on the query request. Meanwhile, the inquiry request is sent to the sub-chain unit to be inquired so as to inquire the transaction information stored in the sub-chain unit.
It can be understood that, in the embodiment of the present invention, when the sub-chain unit does not have the RPC network port 140, and the main chain module 110 is externally connected with the RPC network port 140, during the query, the main chain module 110 receives a query request from the RPC network through the RPC network port 140, determines the sub-chain unit to be queried based on the query request, and sends the query request to the sub-chain unit to be queried to query the transaction information stored in the sub-chain unit to be queried.
Fig. 6 shows a block link node according to another embodiment of the present invention, which includes: a plurality of side-by-side backbone modules.
The main chain module is used for generating a new block and receiving network information from P2P.
Storing transaction information into the new block, wherein the transaction information includes: transaction information in the network information and/or transaction information generated by the block link nodes.
As shown in fig. 6, when there are 3 main chain modules 210, main chain modules 220, and main chain modules 230 in a block chain node, and block link point a and block link point B have the same structure, block chain node a is related to block link point B through a P2P network. When a new block is generated by any main chain module in the block chain node a and transaction information is stored in the new block, for example: the main chain module 210 in the block chain node a generates a new block D, and the new block D stores transaction information, the block link point a sends block update information to the main chain module 210 in the block chain node B through the P2P network, so that the main chain module 210 in the block link point B generates a new block D and transaction information stored in the new block D according to the block update information, and the block chain node B and the block link point a are synchronized.
FIG. 7 is a schematic block diagram of a main chain module with an RPC network port 240 external thereto according to another embodiment of the present invention.
Optionally, as another embodiment, as shown in fig. 7, the main chain module is externally connected with an RPC network port 240, and the main chain module is specifically configured to receive a query request from an RPC network through the RPC network port 240 to query the transaction information stored in the main chain module.
The above describes the blockchain node according to the embodiment of the present invention in detail with reference to fig. 1 and 7, and the following describes the transaction information processing method according to the embodiment of the present invention in detail with reference to fig. 8 and 9.
Fig. 8 is a schematic flow chart of a transaction information processing method 300 of a blockchain according to another embodiment of the present invention.
As shown in fig. 8, the method 300 includes the steps of:
s310, the main chain receives the network information from P2P and listens for new block generation information sent by each child chain.
S320, determining a priority order of the new block generation information based on a preset priority rule.
S330, storing the transaction information into a new block of each sub-chain according to the priority sequence, wherein the transaction information comprises: transaction information in the network information and/or transaction information generated by the block link nodes.
It is understood that the method implemented in the embodiment of the present invention is a method executed on the above-mentioned blockchain node, and the main chain may receive network information from other blockchain nodes except the blockchain node through, but not limited to, the P2P network port, and distribute the network information to the corresponding sub-chains; each child chain and backbone is a process in the system. The sub-chain generates a new block, sends new block generation information to the main chain, for example, the sub-chain generates a new block every 10 minutes, and sends the new block generation information to the main chain, where the new block generation information includes: time of generation of new blocks, stored values, etc.
Such as: the first subchain generates a new block a at 11 o' clock 08 min 30 sec on monday on 4/2/2018; the second subchain generates a new block B at 11 o' clock 15 min 30 sec on monday on 4/2/2018; the third subchain generates a new block C at 11 o' clock 20 min 30 sec on 2 nd monday 4/2018. These new block a generation information, new block B generation information, and new block C generation information are sent to the main chain.
In addition, the main chain determines the priority order of the new block generation information based on a preset priority rule. The preset priority rule refers to the time sequence of generating the new blocks. For example: new block a generation information > new block B generation information > new block C generation information. Correspondingly storing the transaction information into a new block of each sub-chain unit according to the priority order, wherein the transaction information comprises: transaction information in the network information and/or transaction information generated by the block link nodes.
Therefore, according to the block link point of the embodiment of the invention, by arranging the main chain and the plurality of sub-chains in the block link point, then sharing one P2P network port, and letting the main chain distribute the received network messages to the sub-chains, the block link node can simultaneously uplink transaction information during mass data transaction, thereby increasing the uplink speed.
Fig. 9 is a schematic diagram of storing transaction information to a new block of each child chain in a priority order according to the embodiment of the present invention.
Two different cases for the main chain to store transaction information are shown in fig. 9.
First 910, when the stored value in the new block of the sub-chain with the highest priority is greater than the value of the transaction information, the transaction information is stored in its entirety in the new block of the sub-chain with the highest priority.
In an embodiment of the present invention, for example, the stored value in the new block a is 1G, and the transaction information to be stored is 0.8G, then the transaction information of 0.8G can be stored in the new block a.
Second 920, when the stored value in the new block of the sub-chain with the highest priority is smaller than the value of the transaction information, after the new block of the sub-chain with the highest priority stores the transaction information, the transaction information that is not stored is stored in the new blocks of other sub-chains according to the priority order.
In the embodiment of the present invention, for example, the stored value in the new block a is 1G, and the transaction information to be stored is 1.8G, then the 1G transaction information is stored in the new block a, and the remaining 0.8G transaction information is stored in the new block B. If the stored value of the new block B is 0.5G, all the 0.5G transaction information in the remaining 0.8G transaction information is stored in the new block B, and finally all the remaining 0.3G transaction information is stored in the new block C.
Optionally, in another embodiment, after storing full transaction information in the new block, the main chain sends block update information to other block link nodes except its own block link node through the P2P network port, where the block update information includes: block information of the new block and/or transaction information stored in the new block.
It is understood that, in the embodiments of the present invention, for example: the main chain in the block chain node a sends block update information to the main chain in the block chain node B in order to synchronize the block chain node B with the block chain node a. If a new block a is generated in the blockchain node a and the new block a stores transaction information, the blockchain node a needs to send block update information to the blockchain node B through the P2P network port 130, so that the first sub-chain in the blockchain node B also generates a new block a according to the block update information.
Optionally, in another embodiment, the network information further includes: block update information sent by other block chain nodes except the own block chain node;
when the network information includes the block update information, the transaction information processing method further includes:
the main chain determines the sub-chain to be updated according to the block updating information, so that the sub-chain to be updated can be updated according to the block updating information.
Optionally, in another embodiment, the transaction information processing method further includes:
the sub-chain receives a query request from the RPC network through the RPC network port so as to query the transaction information stored in the sub-chain.
Optionally, as another embodiment, the transaction information processing method further includes:
the main chain receives a query request from an RPC network through an RPC network port, determines the sub-chain to be queried based on the query request, and sends the query request to the sub-chain to be queried so as to query the transaction information stored in the sub-chain.
It can be understood that, in the embodiment of the present invention, when the sub-chain has no RPC network port 140, and the main chain is further externally connected with an RPC network port 140, the main chain receives a query request from the RPC network through the RPC network port 140 during query, determines the sub-chain to be queried based on the query request, and sends the query request to the sub-chain to be queried to query the transaction information stored in the sub-chain to be queried.
The blockchain node and the transaction information processing method according to the embodiment of the present invention described in conjunction with fig. 1 to 9 may be implemented by a computing device. Fig. 10 is a block diagram illustrating an exemplary hardware architecture of a computing device capable of implementing a blockchain node and a transaction information processing method according to an embodiment of the present invention.
As shown in fig. 10, computing device 1000 includes an input device 1001, an input interface 1002, a central processor 1003, a memory 1004, an output interface 1005, and an output device 1006. The input interface 1002, the central processing unit 1003, the memory 1004, and the output interface 1005 are connected to each other through a bus 1010, and the input device 1001 and the output device 1006 are connected to the bus 1010 through the input interface 1002 and the output interface 1005, respectively, and further connected to other components of the computing device 1000. Specifically, the input device 1001 receives input information from the outside, and transmits the input information to the central processor 1003 via the input interface 1002; the central processor 1003 processes input information based on computer-executable instructions stored in the memory 1004 to generate output information, stores the output information temporarily or permanently in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005; output device 1006 outputs the output information external to computing device 1000 for use by a user.
That is, the computing device shown in fig. 10 may also be implemented to include: a memory storing computer-executable instructions; and a processor which, when executing computer executable instructions, may implement the blockchain node and transaction information processing method described in connection with fig. 1 to 9.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (16)

1. A block link node, comprising: a backbone module and a daughter chain module;
the subchain module comprises a plurality of parallel subchain units, and each subchain unit is connected with the main chain module;
the sub-chain unit is used for generating a new block and sending new block generation information to the main chain module;
the main chain module is used for receiving network information from a peer-to-peer network P2P and monitoring the new block generation information sent by each sub-chain unit;
determining the priority order of the new block generation information based on a preset priority rule;
correspondingly storing transaction information into a new block of each sub-chain unit according to the priority order, wherein the transaction information comprises: transaction information in the network information and/or transaction information generated by the block link node.
2. A block link point according to claim 1, wherein the backbone module,
the sub-chain unit is used for storing the transaction information into the new block of the sub-chain unit with the highest priority;
or,
and when the stored value in the new block of the sub-chain unit with the highest priority is smaller than the numerical value of the transaction information, the transaction information which is not stored is stored in the new blocks of other sub-chain units according to the priority order after the new block of the sub-chain unit with the highest priority is full of the transaction information.
3. A block link point as in claim 1 or 2, wherein the main chain module is circumscribed with a P2P network port,
the main chain module is specifically configured to receive the network information through the P2P network port.
4. The blockchain node of claim 3, wherein the main chain module is further configured to send block update information to other blockchain nodes except for the own blockchain node through the P2P network port, wherein the block update information includes: block information of the new block and/or transaction information stored in the new block.
5. The blockchain node of claim 4, wherein the network information further comprises: the block updating information is sent by other block chain nodes except the self block chain node;
the main chain module is used for determining the sub-chain unit to be updated according to the block update information, so that the sub-chain unit to be updated can perform block update based on the block update information.
6. A block link point as in claim 1 or 2, wherein the child chain units are externally connected with a remote procedure call protocol (RPC) network port,
the sub-chain unit is specifically configured to receive a query request from an RPC network through the RPC network port to query the transaction information stored in the sub-chain unit.
7. A block link point as claimed in claim 1 or 2, wherein the backbone module further has an RPC network port external thereto,
the sub-chain unit is specifically used for receiving a query request from an RPC network through the RPC network port, determining the sub-chain unit to be queried based on the query request, and sending the query request to the sub-chain unit to be queried so as to query the transaction information stored in the sub-chain unit.
8. A block chain transaction information processing method is characterized by comprising the following steps:
the main chain receives network information from the peer-to-peer network P2P and monitors new block generation information sent by each sub-chain;
determining the priority order of the new block generation information based on a preset priority rule;
storing transaction information into a new block of each of the child chains in the priority order, wherein the transaction information includes: transaction information in the network information and/or transaction information generated by the block link node.
9. The transaction information processing method of claim 8, wherein storing the transaction information into a new block of each of the child chains in the priority order comprises:
when the stored value in the new block of the sub-chain with the highest priority is larger than the numerical value of the transaction information, the transaction information is stored in the new block of the sub-chain unit with the highest priority;
or,
when the stored value in the new block of the sub-chain with the highest priority is smaller than the numerical value of the transaction information, the transaction information which is not stored is stored in the new blocks of other sub-chains according to the priority sequence after the new block of the sub-chain with the highest priority stores the transaction information fully.
10. The transaction information processing method according to claim 8 or 9, wherein the main chain receives network information from a peer-to-peer network P2P, including:
the backbone receives the network information through a P2P network port.
11. The transaction information processing method according to claim 8 or 9, further comprising, after the transaction information is fully stored in the new block:
the main chain sends block update information to other block link nodes except the self block link node through the P2P network port, wherein the block update information comprises: block information of the new block and/or transaction information stored in the new block.
12. The transaction information processing method according to claim 11, wherein the network information further includes: the block updating information is sent by other block chain nodes except the self block chain node;
the transaction information processing method further comprises the following steps:
and the main chain determines the sub-chain to be updated according to the block updating information, so that the sub-chain to be updated carries out block updating based on the block updating information.
13. The transaction information processing method according to claim 8 or 9, further comprising:
the sub-chain receives a query request from an RPC network through an RPC network port so as to query the transaction information stored in the sub-chain.
14. The transaction information processing method according to claim 8 or 9, further comprising:
the main chain receives a query request from an RPC network through an RPC network port, determines the sub-chain to be queried based on the query request, and simultaneously sends the query request to the sub-chain to be queried so as to query the transaction information stored in the sub-chain.
15. A terminal device, comprising:
a memory, a processor, a communication interface, and a bus;
the memory, the processor and the communication interface are connected through the bus and complete mutual communication;
the memory is used for storing program codes;
the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for executing the transaction information processing method according to any one of claims 8 to 14.
16. A computer storage medium comprising instructions that, when executed on a computer, cause the computer to perform the transaction information processing method according to any one of claims 8 to 14.
CN201810475609.2A 2018-05-17 2018-05-17 Block chain node, exchange information processing method, terminal device and medium Pending CN108712491A (en)

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)

* Cited by examiner, † Cited by third party
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 深圳大学 Synchronization method, device, equipment and medium for blockchain 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)

* Cited by examiner, † Cited by third party
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 blockchain-based data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391526A (en) * 2017-03-28 2017-11-24 阿里巴巴集团控股有限公司 A blockchain-based data processing method and device
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)

* Cited by examiner, † Cited by third party
Title
链道学社: "干货:一文带你读懂区块链五大分类", 《HTTPS://XW.QQ.COM/AMPHTML/20180505A17QAH00》 *

Cited By (16)

* Cited by examiner, † Cited by third party
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
US12170737B2 (en) 2020-02-18 2024-12-17 Tencent Technology (Shenzhen) Company Limited Block processing method and apparatus, and blockchain-based data query method and apparatus
CN111367930A (en) * 2020-03-03 2020-07-03 深圳大学 Synchronization method, device, equipment and medium for blockchain 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
CN110557416B (en) Multi-node collaborative blocking method and system
CN113194146B (en) Leader node determination method, computer device, and storage medium
CN114202425B (en) Oracle multi-main chain cross-chain method, device and storage medium
CN114266665B (en) Contract multi-main chain crossing method, equipment and storage medium
EP3660679A1 (en) Data backup method, device and system
CN111158637A (en) Block chain-based random number generation method, equipment and storage medium
US11172018B2 (en) Method and apparatus for controlling traffic
CN111510327A (en) Network connection method and device for training participants of co-training model
CN112688870B (en) Routing method, routing device and node equipment
CN114283010A (en) Multi-main-chain cross-chain method based on multi-main-chain two-layer network state tree
CN116108042A (en) Data processing method, device, electronic equipment, storage medium and program product
CN111008249A (en) Parallel chain block synchronization method, device and storage medium
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
CN117130719A (en) Data source switching method, device, electronic equipment and computer readable medium
CN111161072A (en) Block chain-based random number generation method, equipment and storage medium
CN112994251B (en) Electric quantity early warning method and device, electronic equipment and computer readable medium
CN113052596B (en) Blockchain-based block generation method, device, equipment and medium
CN113993012A (en) Data transmission control method and system, device, electronic device, storage medium
US20230198648A1 (en) Time synchronization method, device and apparatus, and storage medium
WO2024066374A1 (en) Service degradation method and apparatus, device, computer-readable medium and program product
CN116932641A (en) Block chain data processing method, system and storage medium
CN114980296B (en) Method, device and equipment for sending and receiving time information
CN114138903B (en) Multi-main-chain cross-chain method, computer device and storage medium
EP4201022A1 (en) Operation of a distributed deterministic network

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