Information broadcasting method and device, and storage medium
A technology of equipment and path information, applied in the field of blockchain, it can solve the problems of slowing down the blockchain transaction speed, flooding load, and inability to confirm whether it is received, so as to reduce redundant propagation and speed up convergence.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] A method of broadcasting information, comprising:
[0027] S101. Receive first information and second information from at least one sending node within a set time;
[0028] S102. Combine the second information sent by all sending nodes within the set time, add the information of this node as the second information of this node, and send it together with the first information to other nodes except those recorded in the second information;
[0029] Wherein, the first information is block information or transaction information; the second information includes path node information through which the first information is forwarded. The path information includes node information that can uniquely identify the node through which the first information propagates, and refers to the identification of the node to which the first information has been broadcast. The identification is sufficient to uniquely identify the node, which may be the name of the node, the number of the node,...
Embodiment 2
[0037] In the existing broadcasting method, transactions or blocks are broadcast repeatedly, which is redundant and takes up bandwidth resources, seriously affecting the speed at which transactions or blocks are broadcast to the entire network. In a blockchain application scenario of a parallel chain and the main chain, a transaction is broadcast between the nodes of the main chain. The chain nodes include N00, N01, N02, N03, N04, N05, N06, and N07, and all nodes are interconnected (in practice, some nodes are generally interconnected), such as figure 2 As shown, the ellipse represents the node, the arrow line represents the propagation path and direction, and the label on the line represents the information arrival order and merged path information. For example, the label T2_NO1_N03 on the N03->N04 line represents that node N04 received the same block at time T2 or Transaction broadcast information, this information is transmitted through N01, N03; different receiving nodes ...
Embodiment 3
[0047] An apparatus comprising: one or more processors; memory for storing one or more programs which, when executed by the one or more processors, cause the One or more processors execute the method as described above.
[0048] A storage medium storing a computer program, when the program is executed by a processor, implements the method described in Embodiment 1 above.
[0049] image 3 It is a schematic structural diagram of a device provided by an embodiment of the present invention.
[0050] Such as image 3 As shown, as another aspect, the present application also provides a device 500, including one or more central processing units (CPU) 501, which can be 508 programs loaded into random access memory (RAM) 503 to execute various appropriate actions and processes. In the RAM 503, various programs and data necessary for the operation of the device 500 are also stored. The CPU 501 , ROM 502 , and RAM 503 are connected to each other via a bus 504 . An input / output (I / ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


