CN110300171A - Information collecting method, system, computer readable storage medium and electronic equipment - Google Patents
Information collecting method, system, computer readable storage medium and electronic equipment Download PDFInfo
- Publication number
- CN110300171A CN110300171A CN201910577601.1A CN201910577601A CN110300171A CN 110300171 A CN110300171 A CN 110300171A CN 201910577601 A CN201910577601 A CN 201910577601A CN 110300171 A CN110300171 A CN 110300171A
- Authority
- CN
- China
- Prior art keywords
- block chain
- information
- target
- group
- chain node
- 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
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000001360 synchronised effect Effects 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006855 networking Effects 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000003993 interaction Effects 0.000 description 21
- 230000008569 process Effects 0.000 description 14
- 235000013399 edible fruits Nutrition 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- 230000003111 delayed effect Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application discloses a kind of information collecting methods, applied to target block chain node, including receiving target information and broadcasting the target information to other block chain nodes in target block chain node group, so that all block chain nodes records in the target block chain node group have Information Statistics result in identical group;It is synchronous with other nodes progress data in the block chain network when the target block chain node access area block chain network, so that other nodes records in the block chain node group and the block chain network have Information Statistics result in identical net.This method can be avoided information collection result and be tampered, and improve the reliability of information collection result.Disclosed herein as well is a kind of information acquisition system, a kind of computer readable storage medium and a kind of electronic equipment, have the above beneficial effect.
Description
Technical field
This application involves block chain technical field, in particular to a kind of information collecting method, system, one kind are computer-readable
Storage medium and a kind of electronic equipment.
Background technique
When being acquired for significant information, there may be the safety problems such as information leakage for online information acquisition, therefore can
To be acquired by offline mode, information leakage in collection process is avoided.For example, being respectively at Beijing, Shanghai and Guangzhou
Several electors when conducting an election jointly, in order to avoid there is cheating row in election process in the elector in different regions
To can use after the respective centralization cache server in three areas acquires the vote information in each area and concentrate upload again.
But in above-mentioned traditional information off-line acquisition mode, information off-line collection result is protected in the form of plaintext
There are centralization cache server, voting results are easy to be tampered.
Therefore, information collection result how is avoided to be tampered, the reliability for improving information collection result is art technology
The current technical issues that need to address of personnel.
Summary of the invention
The purpose of the application is to provide a kind of information collecting method, system, a kind of computer readable storage medium and one kind
Electronic equipment can be avoided information collection result and be tampered, and improve the reliability of information collection result.
In order to solve the above technical problems, the application provides a kind of information collecting method, it is applied to target block chain node, it should
Information collecting method includes:
It receives target information and broadcasts the target information to other block chain nodes in target block chain node group,
So that all block chain nodes records in the target block chain node group have Information Statistics result in identical group;
When the target block chain node access area block chain network, carried out with other nodes in the block chain network
Data are synchronous, so that other nodes records in the block chain node group and the block chain network have information in identical net
Statistical result.
Optionally, further includes:
Judge whether Information Statistics parameter meets preset condition;
If so, generating the request that networks to access block chain network.
Optionally, judge whether Information Statistics parameter meets preset condition and include:
Judge whether the information content in described group in Information Statistics result is greater than or equal to preset value;
If so, determining that the Information Statistics parameter meets the preset condition.
Optionally, judge whether Information Statistics parameter meets preset condition and include:
Judge whether current time is that acquisition terminates the time;
If so, determining that the Information Statistics parameter meets the preset condition.
Optionally, the target information is being broadcasted to before other block chain nodes in target block chain node group,
Further include:
To the target information execution information signature operation.
Optionally, in the block chain network other nodes carry out data synchronize include:
Information Statistics result in described group is broadcasted into other nodes into the block chain network;
The Information Statistics of other nodes records in the block chain network are received as a result, and will be in the block chain network
The Information Statistics results of other nodes records broadcast to all block chain nodes in the target block chain node group.
Present invention also provides a kind of information acquisition systems, are applied to target block chain node, the information acquisition system packet
It includes:
Synchronization module in group, for receiving target information and broadcasting the target information to target block chain node group
Other block chain nodes so that all block chain nodes records in the target block chain node group have letter in identical group
Cease statistical result;
The outer synchronization module of group, is used for when the target block chain node access area block chain network, with the block link network
Other nodes in network carry out data and synchronize, so that other nodes in the block chain node group and the block chain network are remembered
Record has Information Statistics result in identical net.
Optionally, further includes:
Judgment module, for judging whether Information Statistics parameter meets preset condition;
Networking module, for when Information Statistics parameter meets preset condition, then generating the request that networks to access block
Chain network.
Optionally, judgment module includes:
Information content judging unit, for judging it is pre- whether the information content in described group in Information Statistics result is greater than or equal to
If value;
First result generation unit, for being greater than or equal to preset value when the information content in described group in Information Statistics result
When, determine that the Information Statistics parameter meets the preset condition.
Optionally, judgment module includes:
Time judging unit, for judging whether current time is that acquisition terminates the time;
If second result generation unit determines the Information Statistics parameter be that acquisition terminates the time for current time
Meet the preset condition.
Optionally, further includes:
Signature blocks, for the target information execution information signature operation.
Further, outer synchronization module is organized to be used for when the target block chain node access area block chain network, it will be described
Information Statistics result broadcasts other nodes into the block chain network in group, receives other sections in the block chain network
The Information Statistics of point record are as a result, and broadcast the Information Statistics result of other nodes records in the block chain network to institute
All block chain nodes in target block chain node group are stated, so that in the block chain node group and the block chain network
Other nodes records have Information Statistics result in identical net.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer
The step of above- mentioned information acquisition method executes is realized when program executes.
Present invention also provides a kind of electronic equipment, including memory and processor, calculating is stored in the memory
Machine program, the processor realize the step that above- mentioned information acquisition method executes when calling the computer program in the memory
Suddenly.
This application provides a kind of information collecting methods, including receive target information and broadcast the target information to mesh
Other block chain nodes in block chain node group are marked, so that all block chain nodes in the target block chain node group are remembered
Record has Information Statistics result in identical group;When the target block chain node access area block chain network, with the block chain
Other nodes in network carry out data and synchronize, so that other nodes in the block chain node group and the block chain network
Record has Information Statistics result in identical net.
In the application when target block chain node receives target information, by the target information in target block chain node
It is broadcasted in the target block chain node group at place, so that all block chain nodes records have phase in target block chain node group
Information Statistics result in same group.After target block chain node access area block chain network, target block chain node is by record
Synchronizing information is to block chain network in group, and by each block chain link in the synchronizing information to group recorded in block chain network
Point, so that other nodes records in the block chain node group and the block chain network have Information Statistics knot in identical net
Fruit.Since block chain technology has uniqueness, it can not be tampered by the information of block chained record, can be avoided information and adopt
Collection result is tampered, and improves the reliability of information collection result.The application additionally provides a kind of information acquisition system, one kind simultaneously
Computer readable storage medium and a kind of electronic equipment have above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In ord to more clearly illustrate embodiments of the present application, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, the drawings in the following description are only some examples of the present application, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of information collecting method provided by the embodiment of the present application;
Fig. 2 is the method schematic diagram of information collection in organizing in a kind of practical application provided by the embodiment of the present application;
Fig. 3 is the method schematic diagram that group external information acquires in a kind of practical application provided by the embodiment of the present application;
Fig. 4 is the flow chart of another kind information collecting method provided by the embodiment of the present application;
Fig. 5 is the flow chart of another information collecting method provided by the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram of information acquisition system provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Below referring to Figure 1, Fig. 1 is a kind of flow chart of information collecting method provided by the embodiment of the present application.
Specific steps may include:
S101: it receives target information and broadcasts the target information to other block chains in target block chain node group
Node, so that all block chain nodes records in the target block chain node group have Information Statistics result in identical group;
Wherein, the executing subject of the present embodiment can be the single block chain node in target block chain node group,
May exist multiple block chain nodes in target block chain node group, and the block chain node in target block chain node group can be with
Mutual broadcast message.It should be noted that can determine the preset range that each block chain node is belonged to using various ways.
For example, for 5 block chain nodes that region A is set and 3 block chain nodes that region B is set, it can basis
5 block chain nodes of region A are set the block chain node in the first block chain node group by region where node, by area
3 block chain nodes of domain B are set as the block chain node in the second block chain node group.It is, of course, also possible to according to block chain
The generation time of node, related hardware model divide the corresponding block chain node group of block chain link point.
It is understood that the target information that block chain node receives in the present embodiment can be the letter of user's input
Breath, or the information of other block chain node broadcasts in target block chain node group, herein without limiting.As one kind
Feasible embodiment can sign to target information execution information after target block chain node receives target information and grasp
Make.
The present embodiment may exist the operation that information exchange is carried out between the block chain node in target block chain node group,
So that all block chain nodes records in target block chain node group have Information Statistics result in identical group.In order to improve letter
The safety of acquisition is ceased, it can be disconnected during all block chain links in target block chain node group click through row information exchange
Open linking for block chain node and the block chain node in other block chain node groups.It can make same block through the above way
Block chain nodes records in chain node group have Information Statistics in identical group as a result, and the block in different blocks chain node group
Information Statistics result can be different in the group of chain nodes records.
S102: when the target block chain node access area block chain network, with other sections in the block chain network
It clicks through row data to synchronize, so that other nodes records in the block chain node group and the block chain network have identical net
Interior Information Statistics result.
Wherein, when target block chain node access area block chain network, target block chain node can be with block chain network
In other nodes to carry out data synchronous.There may be the block chain links that others carry out Information Statistics in group in the present embodiment
Point group, when other block chain node groups a certain block chain node and target block chain node access block chain network, then
It can be realized all in the presence of access block by the transmission of Information Statistics result in the group between the synchronous realization group of data and group
The block chain node group of chain network all has Information Statistics result in identical net.
There may be the block chain nodes and other block chain node groups in target block chain node group in the present embodiment
The operation that block chain node establishes the link.As a kind of feasible embodiment, it can be determined that the information of target block chain node
Whether statistical parameter meets preset condition, and block chain network is accessed if meeting preset condition, so as to other block chain nodes
Block chain node in group establishes connection.
Specifically, target block chain node in the block chain network other nodes carry out data synchronize may include
It operates below: Information Statistics result in described group is broadcasted into other nodes into the block chain network;Receive the block
The Information Statistics of other nodes records in chain network are as a result, and by the information of other nodes records in the block chain network
Statistical result is broadcasted to all block chain nodes in the target block chain node group.
In the present embodiment when target block chain node receives target information, by the target information in target block chain link
It is broadcasted in target block chain node group where point, so that there is all block chain nodes records in target block chain node group
Information Statistics result in identical group.After target block chain node access area block chain network, target block chain node will be recorded
Group in synchronizing information to block chain network, and by each block chain link in the synchronizing information to group recorded in block chain network
Point, so that other nodes records in the block chain node group and the block chain network have Information Statistics knot in identical net
Fruit.Since block chain technology has uniqueness, it can not be tampered by the information of block chained record, can be avoided information and adopt
Collection result is tampered, and improves the reliability of information collection result.
As the further supplement for Fig. 1 corresponding embodiment, above-described embodiment can also further include following operation: judgement
Whether Information Statistics parameter meets preset condition;If so, generating the request that networks to access block chain network.On specifically,
State the information content that information parameter can be Information Statistics result, or current time can also be Information Statistics result
Information content and current time.Illustration judges whether Information Statistics parameter meets the detailed process of preset condition:
Example 1 judges whether the information content in described group in Information Statistics result is greater than or equal to preset value;If so, sentencing
The fixed Information Statistics parameter meets the preset condition.
Example 2 judges whether current time is that acquisition terminates the time;If so, determining that the Information Statistics parameter meets institute
State preset condition.
When the information content of Information Statistics result in the group of destination node record is greater than or equal to preset value, illustrate target area
The information acquired in block chain node group has reached preset requirement, can be counted with the block chain node group of other on network
According to interaction.Due to information acquisition there are the information gathering process such as time restriction, such as ballot, Hands-On test need defined
It completes, therefore can stop new in target block chain node group in time when current time reaches and terminates the time in acquisition
Information collection operation simultaneously carries out data interaction with other block chain node groups on network.
Fig. 2 and Fig. 3 are referred to, Fig. 2 is information collection in group in a kind of practical application provided by the embodiment of the present application
Method schematic diagram, Fig. 3 are the method schematic diagram that group external information acquires in a kind of practical application provided by the embodiment of the present application.The
One block chain node group includes A1, A2 and A3, and after block chain node A3 receives information 3, more new block chain link point A3 is corresponding
Group in Information Statistics as a result, and by information 3 broadcast to block chain node A1 block chain node A2 so that the first block chain node
Information Statistics result in having the same group of all nodes in group.When the A3 node and the second block chain of the first block chain node group
After the B2 node of node group accesses block chain network, A3 node and B2 node establish connection, and A3 node and B2 node respectively will
Information Statistics result is broadcasted to Correspondent Node in each self-recording group, so that the first block chain node group includes A1, A2 and A3 equal
Record has information 1, information 2, information 3, information 4 and information 5, and the second block chain node group includes that also record has information by B1 and B2
1, information 2, information 3, information 4 and information 5.
Fig. 4 is referred to below, and Fig. 4 is the flow chart of another kind information collecting method provided by the embodiment of the present application.
Specific steps may include:
S201: when detect target block chain node receive information when, control target block chain node by information broadcast to
Other block chain nodes in target block chain node group, so that all block chain nodes records in target block chain node group
There is identical Information Statistics result;
Wherein, each block chain node may be incorporated for receiving information in the present embodiment, which can exist for user
The information inputted on the corresponding terminal device of block chain node.It is understood that may include multiple areas in block chain network
Multiple block chain link points can be divided by block chain node, the present embodiment according to the regional or corresponding terminal device model of ownership
Several block chain node groups.Block chain node in same block chain node group is in intercommunication state.In information collection
In the process between the block chain node of data different blocks chain node group, the state of not intercommunication may be at.Target block chain link
The received information of point can be vote information, answer of questionnaire etc., herein without limiting.
Aforesaid operations are illustrated, when carrying out strange land election, in order to guarantee that it is logical that safety needs to limit 15 electors
The terminal device input vote information connecting with particular router is crossed, and the router does not access network in voting process.It should
The corresponding block chain node group of router includes block chain node A, B, C, and block chain node A receives the electoral of number 1~5
Vote information, the electoral vote information of block chain Node-B receiver number 6~10, block chain node C receive number 11~15
Electoral vote information.Block chain node group in any block chain node after receiving vote information all into group its
The vote information of his block chain node broadcast reception, record has 15 electors all in final block chain node A, B, C
Vote information.Certainly, above-mentioned example can also be applied in the information gathering process such as Hands-On test, questionnaire survey.
S202: judge in target block chain node group with the presence or absence of the interaction node of access block chain network;If so, into
Enter S203;If it is not, entering S202 after the preset duration that is then delayed;
Wherein, may exist multiple block chain node groups in block chain network, every group may include 2 or 2 or more
Block chain node, different block chain node groups corresponds to different information input terminals.When user inputs information in order to keep away
Exempt from leakage of information, block chain node group can be set to off-line state, such as certain Hands-On test respectively in A, B in the present embodiment
Two areas open up examination hall, in order to avoid examination content and answer are leaked in examination process, in the area A in the test period and B
The answer that regional examinee inputs on computers can store in the router of the non-accessing external network in each department, need to summarize A,
When the paper answer of the two places B examinee, answered in the paper that the paper answer for acquiring A zone controller is acquired with B zone controller
Case is uploaded.
It is understood that by the way that the received information of either block chain node in block chain node group is carried out broadcast in group
It can guarantee that each block chain nodes records in block chain node group have identical Information Statistics as a result, avoiding information individual
Block chain nodal terminal is distorted.It is useful in order to obtain due to the information that the information recorded in organizing is certain customers' input
The information of family input, the present embodiment can be finished in the Information Statistics of target block chain node group or Information Statistics quantity reaches pre-
If when value, by the Partial Block chain node or all block chain node access areas block chain network in target block chain group, with block
Other block chain links in chain network click through row information interaction.Therefore, there is access block when middle in target block chain node group
When the interaction node of chain network, the relevant operation of S203 can be executed.Certainly, the process of the information collections such as examination, ballot, election
It is generally necessary to be completed in specific time, such as examinee can only be within the examination time started to examination this period of time of end time
Input paper answer, if therefore current time reach preset information collection and terminate the time, no matter disconnecting is collected mail the block chain of breath
Whether number of nodes is greater than or equal to preset value can be by the Partial Block chain node or all blocks in target block chain group
Chain node access area block chain network clicks through row information with other block chain links in block chain network and interacts.Continue to take an examination
Example is illustrated, and the time of certain Hands-On test is 8:00-9:00, and 10 examinees take an exam in Beijing examination hall, if in 8:30
When 10 examinees answer all submit and can then upload the answer information that the examination hall router in Beijing examination hall acquires, when
It can also so be uploaded in 9:00 to guarantee that information is not revealed;If there are also 2 examinees when 9:00 without submitting answer completely, at this time
The answer having been filed on can then be uploaded, submit whole answers without waiting for all examinees.
It should be noted that the interaction node that this step is mentioned is the block chain node in target block chain node group,
That is embodiment will access the block chain node of block chain network as interaction node in target block chain node group.Herein not
The quantity for limiting interaction node, the Information Statistics result recorded in interaction node when the quantity of interaction node is greater than 1 is identical, because
This is not in the situation of information collection mistake.
When interaction node is not present in block chain node group the phase of S202 can be executed again after the preset duration that is delayed
Operation is closed, until detecting the interaction node of access block chain network.If repeatedly delay preset duration all can't detect interactive section
Point illustrates that there may be network problems, and the judgement that can terminate S202 at this time operates and generate warning information, to inform local
Staff overhaul.That is, the present embodiment may determine that whether current time reaches the time-out alarm moment, if
It is that warning information then can be generated.
S203: it is synchronous with other nodes progress data in block chain network using interaction node, so that block chain node
Group has identical Information Statistics result with other nodes records in block chain network.
Wherein, data are carried out in this step to synchronize and can carry out the Information Statistics result in target block chain node group
It passes, the information of other block chain node groups record in block chain network other than target block chain node group can also be received
Statistical result realizes summarizing for Information Statistics result.Specifically, interaction node is counted with other nodes in block chain network
It may include: to be broadcasted using the vote information statistical result that interaction node records target block chain node group according to synchronous process
Other nodes into block chain network;The vote information of other nodes records in block chain network is received using interaction node
Statistical result, and the vote information statistical result of other nodes records in block chain network is broadcasted to target block chain node
All block chain nodes in group.
As a kind of feasible embodiment, other nodes mentioned in S203 can be to be connect in other block chain node groups
Enter the interaction node of block chain network.Due to the Information Statistics knot of target block chain node group and other block chain node groups record
Fruit respectively corresponds the input information of different user group, thus before executing S103 interaction node and other nodes records information
Statistical result can not be identical.Relevant operation by executing S103 can make its in block chain node group and block chain network
His nodes records have identical Information Statistics result.Illustrate aforesaid operations, in the treasure evaluation expert first, second of Pekinese three,
Third inputs the treasure evaluation for target item as a result, block chain node terminal device A by two block chains node terminal device A, B
The result of acquisition is that first thinks that target item is genuine piece, is abbreviated as first-genuine piece, the result of block chain node terminal device B acquisition
For second-fakement, propyl- fakement;Block chain node terminal device A and block chain node terminal device B carries out information broadcast, so that area
Block chain node terminal device A and block chain node terminal device B, which is recorded, following information: first-genuine piece, second-fakement, propyl- are counterfeit
Product.Similarly two treasure evaluation experts penta in Shanghai are inputted by two block chains node terminal device C, D for target with oneself
The treasure evaluation of article is as a result, the result of block chain node terminal device C acquisition is amyl- fakement, block chain node terminal device D acquisition
Result be hex- fakement, block chain node terminal device C and block chain node terminal device D carry out information broadcast, so that block
Chain node terminal device C and block chain node terminal device D, which is recorded, following information: amyl- fakement, hex- fakement.When block chain
When nodal terminal equipment A and block chain node terminal device C access block chain network, block chain node terminal device A and area
The Information Statistics result that block chain node terminal device C can be recorded is broadcasted, and does not access block chain network into group
Block chain link point broadcasted so that block chain node terminal device A, B, C, D, which are recorded, following Information Statistics result:
First-genuine piece, second-fakement, propyl- fakement, amyl- fakement, hex- fakement.
It is identical that the present embodiment based on block chain technology has each block chain nodes records in target block chain node group
Vote information, the vote information that records will be synchronized in group again when target block chain node group can access block chain network
Block chain network, and the vote information recorded in block chain network is synchronized to each block chain node in group.Due to block
Chain technology has uniqueness, therefore can not be tampered by the vote information of block chained record, can be avoided information collection result
It is tampered, improves the reliability of information collection result.
Fig. 5 is referred to below, and Fig. 5 is the flow chart of another information collecting method provided by the embodiment of the present application;
Specific steps may include:
S301: when detecting that target block chain node receives information, letter is executed to information using target block chain node
Cease signature operation.
Wherein, the information that can be inputted in the received information of block chain node for user, the block chain after receiving information
Node can sign to information execution information, so as to Information Statistics knot of the broadcast by Information Signature operation in subsequent operation
Fruit.
S302: control target block chain node broadcasts vote information to other block chains in target block chain node group
Node, so that all block chain nodes records in target block chain node group have identical vote information statistical result;
S303: judge in target block chain node group with the presence or absence of the interaction node of access block chain network;If so, into
Enter S304;
S304: the vote information statistical result that target block chain node group records is broadcasted to block chain using interaction node
Other nodes in network;
S305: receiving the vote information statistical result of other nodes records in block chain network using interaction node, and
The vote information statistical result of other nodes records in block chain network is broadcasted all to target block chain node group
Block chain node.
S306: judge whether the block chain number of nodes for receiving information is greater than or equal to preset value;If so, into
S308;
It wherein, can be after being delayed certain time length again if the block chain number of nodes for receiving information is less than preset value
Whether the block chain number of nodes that judgement receives information is greater than or equal to preset value.It, can be with as a kind of feasible embodiment
Setting information statistics terminates time point in the present embodiment, if current time can be directly entered when being equal to the termination time point
The report flow of S308 can be uploaded by the above method to avoid since particular block chain node failure influences Information Statistics result
The case where.
S307: judge whether current time is that information collection terminates the time;If so, into S308;
Wherein, since the time of information collection has certain limitations, no matter connect when reaching information collection and terminating the time
Whether the block chain number of nodes ceased of collecting mail is greater than or equal to preset value, can carry out the operation stream that Information Statistics result reports
Journey.
S308: current information statistical result is reported.
Illustrate the process of above-described embodiment description below by embodiment in practical applications.
Such as in ten thousand people's treasure evaluation platforms, more people, strange land ballot resolution can be realized through the foregoing embodiment, that is, participate in throwing
The people of voting adopted view votes in off-line case, and row is packaged and uploads data again when in subsequent network connection, specific real
It is existing that steps are as follows:
It receives and is requested based on the ballot of block chain node, be intercommunication state between two or more block chain nodes, pass through
The Information Signature and Information Authentication mode of block chain can record voting results between the node of intercommunication.It such as needs to identify one
Whether vase A is Ming Dynasty's latter stage authentic work, needs that more people is asked to identify in block chain node upslide ticket, if the block chain public affairs chain now voted
Node has 100 (numbers are as follows: 01-0100), is intercommunication between number 01-010 in the current ballot period, but this
10 nodes be it is offline, this 10 nodes any one node ballot after, voting results information can sign and
The synchronous storage of this 10 nodes.Similarly: number are as follows: second group of 011-021, number are as follows: the third group ... of 021-024 is with this
Analogize.Owner vote resolution after, record have the block chain node of voting results broadcast mutually can connection other blocks
Chain network node, to synchronize the voting results record that respective node saves.Such as: above-mentioned number 01-010, number 011-
This three groups of 021, number 021-024 has recorded the node of polled data.During mutual broadcast, wherein if number is 06
When node has been connected to other block chain nodes 016, the voting results recording synchronism that present node will be reported to save is to can join
Logical 016,016 node of node can continue data to be broadcast to can be with other nodes of connection, and the characteristic based on block chain can be with
Each block chain nodes records in block chain network are made to have identical Information Statistics result.
When checking that the Information Statistics result recorded on all block chain nodes on block chain is identical, illustrate that data have synchronized
Finish, voting results can be counted at this time.Relative to traditional offline ballot mode, the present embodiment uses area on block chain node
The Information Signature and verification mode of block chain are voted, it is ensured that Information Statistics are the result is that encryption and can not distort.
Fig. 6 is referred to, Fig. 6 is a kind of structural schematic diagram of information acquisition system provided by the embodiment of the present application;
The system may include:
Synchronization module 100 in group, for receiving target information and broadcasting the target information to target block chain node
Other block chain nodes in group, so that all block chain nodes records in the target block chain node group have identical group
Interior Information Statistics result;
The outer synchronization module 200 of group, is used for when the target block chain node access area block chain network, with the block chain
Other nodes in network carry out data and synchronize, so that other nodes in the block chain node group and the block chain network
Record has Information Statistics result in identical net.
In the present embodiment when target block chain node receives target information, by the target information in target block chain link
It is broadcasted in target block chain node group where point, so that there is all block chain nodes records in target block chain node group
Information Statistics result in identical group.After target block chain node access area block chain network, target block chain node will be recorded
Group in synchronizing information to block chain network, and by each block chain link in the synchronizing information to group recorded in block chain network
Point, so that other nodes records in the block chain node group and the block chain network have Information Statistics knot in identical net
Fruit.Since block chain technology has uniqueness, it can not be tampered by the information of block chained record, can be avoided information and adopt
Collection result is tampered, and improves the reliability of information collection result.
Optionally, further includes:
Judgment module, for judging whether Information Statistics parameter meets preset condition;
Networking module, for when Information Statistics parameter meets preset condition, then generating the request that networks to access block
Chain network.
Optionally, judgment module includes:
Information content judging unit, for judging it is pre- whether the information content in described group in Information Statistics result is greater than or equal to
If value;
First result generation unit, for being greater than or equal to preset value when the information content in described group in Information Statistics result
When, determine that the Information Statistics parameter meets the preset condition.
Optionally, judgment module includes:
Time judging unit, for judging whether current time is that acquisition terminates the time;
If second result generation unit determines the Information Statistics parameter be that acquisition terminates the time for current time
Meet the preset condition.
Optionally, further includes:
Signature blocks, for the target information execution information signature operation.
Further, outer synchronization module is organized to be used for when the target block chain node access area block chain network, it will be described
Information Statistics result broadcasts other nodes into the block chain network in group, receives other sections in the block chain network
The Information Statistics of point record are as a result, and broadcast the Information Statistics result of other nodes records in the block chain network to institute
All block chain nodes in target block chain node group are stated, so that in the block chain node group and the block chain network
Other nodes records have Information Statistics result in identical net.
Since the embodiment of components of system as directed is corresponded to each other with the embodiment of method part, the embodiment of components of system as directed is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program
It is performed and step provided by above-described embodiment may be implemented.The storage medium may include: USB flash disk, mobile hard disk, read-only deposit
Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or
The various media that can store program code such as CD.Computer program is stored on the storage medium, computer program is located
Reason device performs the steps of when executing to be received target information and broadcasts the target information to target block chain node group
Other block chain nodes, so that all block chain nodes records in the target block chain node group have information in identical group
Statistical result;When the target block chain node access area block chain network, with other nodes in the block chain network into
Row data are synchronous, so that other nodes records in the block chain node group and the block chain network have letter in identical net
Cease statistical result.
In the present embodiment when target block chain node receives target information, by the target information in target block chain link
It is broadcasted in target block chain node group where point, so that there is all block chain nodes records in target block chain node group
Information Statistics result in identical group.After target block chain node access area block chain network, target block chain node will be recorded
Group in synchronizing information to block chain network, and by each block chain link in the synchronizing information to group recorded in block chain network
Point, so that other nodes records in the block chain node group and the block chain network have Information Statistics knot in identical net
Fruit.Since block chain technology has uniqueness, it can not be tampered by the information of block chained record, can be avoided information and adopt
Collection result is tampered, and improves the reliability of information collection result.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of and judges whether Information Statistics parameter meets preset condition;If so, generating the request that networks to access block
Chain network.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of and judges whether the information content in described group in Information Statistics result is greater than or equal to preset value;If so, sentencing
The fixed Information Statistics parameter meets the preset condition.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of and judges whether current time is that acquisition terminates the time;If so, determining that the Information Statistics parameter meets institute
State preset condition.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of to the target information execution information signature operation.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
Perform the steps of other nodes Information Statistics result in described group broadcasted into the block chain network;Described in reception
The Information Statistics of other nodes records in block chain network are as a result, and by other nodes records in the block chain network
Information Statistics result is broadcasted to all block chain nodes in the target block chain node group.
Present invention also provides a kind of electronic equipment, may include memory and processor, specifically, memory includes non-
Volatile storage medium, built-in storage.The non-volatile memory medium is stored with operating system and computer-readable instruction, this is interior
Memory provides environment for the operation of operating system and computer-readable instruction in non-volatile memory medium.Processor is electricity
Sub- equipment provides calculating and control ability, and when executing the computer program saved in memory, following steps may be implemented: receiving
Target information simultaneously broadcasts the target information to other block chain nodes in target block chain node group, so that the target
All block chain nodes records in block chain node group have Information Statistics result in identical group;When the target block chain link
It is synchronous with other nodes progress data in the block chain network when point access block chain network, so that the block chain link
Point group has Information Statistics result in identical net with other nodes records in the block chain network.
In the present embodiment when target block chain node receives target information, by the target information in target block chain link
It is broadcasted in target block chain node group where point, so that there is all block chain nodes records in target block chain node group
Information Statistics result in identical group.After target block chain node access area block chain network, target block chain node will be recorded
Group in synchronizing information to block chain network, and by each block chain link in the synchronizing information to group recorded in block chain network
Point, so that other nodes records in the block chain node group and the block chain network have Information Statistics knot in identical net
Fruit.Since block chain technology has uniqueness, it can not be tampered by the information of block chained record, can be avoided information and adopt
Collection result is tampered, and improves the reliability of information collection result.
Preferably, when processor executes the computer subprogram saved in memory, following steps may be implemented: judgement letter
Whether breath statistical parameter meets preset condition;If so, generating the request that networks to access block chain network.
Preferably, when processor executes the computer subprogram saved in memory, following steps may be implemented: judging institute
State whether the information content in group in Information Statistics result is greater than or equal to preset value;If so, determining the Information Statistics parameter
Meet the preset condition.
Preferably, when processor executes the computer subprogram saved in memory, following steps may be implemented: judgement is worked as
Whether the preceding time is that acquisition terminates the time;If so, determining that the Information Statistics parameter meets the preset condition.
Preferably, when processor executes the computer subprogram saved in memory, following steps may be implemented: to described
Target information execution information signature operation.
Preferably, when processor executes the computer subprogram saved in memory, following steps may be implemented: will be described
Information Statistics result broadcasts other nodes into the block chain network in group;Receive other sections in the block chain network
The Information Statistics of point record are as a result, and broadcast the Information Statistics result of other nodes records in the block chain network to institute
State all block chain nodes in target block chain node group.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also
Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.Under the situation not limited more, the element limited by sentence "including a ..." is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of information collecting method is applied to target block chain node characterized by comprising
It receives target information and broadcasts the target information to other block chain nodes in target block chain node group, so that
All block chain nodes records in the target block chain node group have Information Statistics result in identical group;
When the target block chain node access area block chain network, data are carried out with other nodes in the block chain network
It is synchronous, so that other nodes records in the block chain node group and the block chain network have Information Statistics in identical net
As a result.
2. information collecting method according to claim 1, which is characterized in that further include:
Judge whether Information Statistics parameter meets preset condition;
If so, generating the request that networks to access block chain network.
3. information collecting method according to claim 2, which is characterized in that described to judge whether Information Statistics parameter meets pre-
If condition includes:
Judge whether the information content in described group in Information Statistics result is greater than or equal to preset value;
If so, determining that the Information Statistics parameter meets the preset condition.
4. information collecting method according to claim 2, which is characterized in that described to judge whether Information Statistics parameter meets pre-
If condition includes:
Judge whether current time is that acquisition terminates the time;
If so, determining that the Information Statistics parameter meets the preset condition.
5. information collecting method according to claim 1, which is characterized in that broadcast by the target information to target block
Before other block chain nodes in chain node group, further includes:
To the target information execution information signature operation.
6. according to claim 1 to any one of 5 information collecting methods, which is characterized in that in the block chain network
Other nodes progress data, which synchronize, includes:
Information Statistics result in described group is broadcasted into other nodes into the block chain network;
The Information Statistics of other nodes records in the block chain network are received as a result, and by its in the block chain network
The Information Statistics result of his nodes records is broadcasted to all block chain nodes in the target block chain node group.
7. a kind of information acquisition system is applied to target block chain node characterized by comprising
Synchronization module in group, for receiving target information and broadcasting the target information to its in target block chain node group
His block chain node, so that all block chain nodes records in the target block chain node group have information in identical group to unite
Count result;
The outer synchronization module of group, is used for when the target block chain node access area block chain network, in the block chain network
Other nodes to carry out data synchronous so that the block chain node group has with other nodes records in the block chain network
Information Statistics result in identical net.
8. information acquisition system according to claim 7, which is characterized in that further include:
Judgment module, for judging whether Information Statistics parameter meets preset condition;
Networking module, for when Information Statistics parameter meets preset condition, then generating the request that networks to access block link network
Network.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the step of the information collecting method as described in any one of claim 1 to 6 when the computer program is executed by processor
Suddenly.
10. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor, realizing the information collecting method as described in any one of claim 1 to 6 when for executing the computer program
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910577601.1A CN110300171B (en) | 2019-06-28 | 2019-06-28 | Information acquisition method, system, computer readable storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910577601.1A CN110300171B (en) | 2019-06-28 | 2019-06-28 | Information acquisition method, system, computer readable storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110300171A true CN110300171A (en) | 2019-10-01 |
CN110300171B CN110300171B (en) | 2022-04-15 |
Family
ID=68029437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910577601.1A Active CN110300171B (en) | 2019-06-28 | 2019-06-28 | Information acquisition method, system, computer readable storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110300171B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110855791A (en) * | 2019-11-18 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Block link point deployment method and related equipment |
CN111444271A (en) * | 2020-03-05 | 2020-07-24 | 链农(深圳)信息科技有限公司 | Information collection and judgment method and system based on block chain |
CN112101961A (en) * | 2020-09-08 | 2020-12-18 | 中国联合网络通信集团有限公司 | Block chain based license generation method, block chain node, equipment and medium |
CN112529752A (en) * | 2020-12-10 | 2021-03-19 | 清研灵智信息咨询(北京)有限公司 | Trusty investigation platform based on block chain |
CN113193992A (en) * | 2021-04-16 | 2021-07-30 | 宁波图灵奇点智能科技有限公司 | Block chain platform, method and device, computer equipment and storage medium |
WO2023279971A1 (en) * | 2021-07-05 | 2023-01-12 | 支付宝(杭州)信息技术有限公司 | Block synchronization method, and method for making node join blockchain network |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6748381B1 (en) * | 1999-03-31 | 2004-06-08 | International Business Machines Corporation | Apparatus and method for maintaining consistency of shared data resources in a cluster environment |
CN105227683A (en) * | 2015-11-11 | 2016-01-06 | 中国建设银行股份有限公司 | A kind of LDAP company-data synchronous method and system |
WO2017115395A1 (en) * | 2015-12-28 | 2017-07-06 | Nec Corporation | Method and system for inter-group communication in a wireless p2p network |
CN107295080A (en) * | 2017-06-19 | 2017-10-24 | 北京百度网讯科技有限公司 | Date storage method and server applied to distributed server cluster |
CN108134706A (en) * | 2018-01-02 | 2018-06-08 | 中国工商银行股份有限公司 | Block chain high-availability system mostly living, computer equipment and method |
CN108259622A (en) * | 2018-02-07 | 2018-07-06 | 福建南威软件有限公司 | A kind of trans-regional sharing method of electronics license data |
CN108881231A (en) * | 2018-06-21 | 2018-11-23 | 郑州云海信息技术有限公司 | The method, apparatus and storage medium of synchronous account information in a kind of group system |
CN108959911A (en) * | 2018-06-14 | 2018-12-07 | 联动优势科技有限公司 | A kind of key chain generates, verification method and its device |
CN108984662A (en) * | 2018-06-28 | 2018-12-11 | 杭州复杂美科技有限公司 | A kind of block chain method of data synchronization |
CN109299955A (en) * | 2018-09-14 | 2019-02-01 | 北京京东金融科技控股有限公司 | Recording method, device, equipment and the computer readable storage medium of information |
CN109543075A (en) * | 2018-11-14 | 2019-03-29 | 全链通有限公司 | Block generation method and system |
CN109660545A (en) * | 2018-12-27 | 2019-04-19 | 北京新唐思创教育科技有限公司 | A Consortium Chain Consensus Method and Computer Storage Medium |
-
2019
- 2019-06-28 CN CN201910577601.1A patent/CN110300171B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6748381B1 (en) * | 1999-03-31 | 2004-06-08 | International Business Machines Corporation | Apparatus and method for maintaining consistency of shared data resources in a cluster environment |
CN105227683A (en) * | 2015-11-11 | 2016-01-06 | 中国建设银行股份有限公司 | A kind of LDAP company-data synchronous method and system |
WO2017115395A1 (en) * | 2015-12-28 | 2017-07-06 | Nec Corporation | Method and system for inter-group communication in a wireless p2p network |
CN107295080A (en) * | 2017-06-19 | 2017-10-24 | 北京百度网讯科技有限公司 | Date storage method and server applied to distributed server cluster |
CN108134706A (en) * | 2018-01-02 | 2018-06-08 | 中国工商银行股份有限公司 | Block chain high-availability system mostly living, computer equipment and method |
CN108259622A (en) * | 2018-02-07 | 2018-07-06 | 福建南威软件有限公司 | A kind of trans-regional sharing method of electronics license data |
CN108959911A (en) * | 2018-06-14 | 2018-12-07 | 联动优势科技有限公司 | A kind of key chain generates, verification method and its device |
CN108881231A (en) * | 2018-06-21 | 2018-11-23 | 郑州云海信息技术有限公司 | The method, apparatus and storage medium of synchronous account information in a kind of group system |
CN108984662A (en) * | 2018-06-28 | 2018-12-11 | 杭州复杂美科技有限公司 | A kind of block chain method of data synchronization |
CN109299955A (en) * | 2018-09-14 | 2019-02-01 | 北京京东金融科技控股有限公司 | Recording method, device, equipment and the computer readable storage medium of information |
CN109543075A (en) * | 2018-11-14 | 2019-03-29 | 全链通有限公司 | Block generation method and system |
CN109660545A (en) * | 2018-12-27 | 2019-04-19 | 北京新唐思创教育科技有限公司 | A Consortium Chain Consensus Method and Computer Storage Medium |
Non-Patent Citations (3)
Title |
---|
木禾: "C++从零开始区块链:P2P模块之节点广播", 《HTTPS://BLOG.CSDN.NET/MUMUFAN05/ARTICLE/DETAILS/82492631》 * |
李博文: "基于区块链技术的医疗数据存储", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
陈孝莲: "基于 Hyperledger 的电力物联网分布式认证研究", 《通信与网络》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110855791A (en) * | 2019-11-18 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Block link point deployment method and related equipment |
CN111444271A (en) * | 2020-03-05 | 2020-07-24 | 链农(深圳)信息科技有限公司 | Information collection and judgment method and system based on block chain |
CN112101961A (en) * | 2020-09-08 | 2020-12-18 | 中国联合网络通信集团有限公司 | Block chain based license generation method, block chain node, equipment and medium |
CN112101961B (en) * | 2020-09-08 | 2023-08-25 | 中国联合网络通信集团有限公司 | License generation method based on blockchain, blockchain node, equipment and medium |
CN112529752A (en) * | 2020-12-10 | 2021-03-19 | 清研灵智信息咨询(北京)有限公司 | Trusty investigation platform based on block chain |
CN113193992A (en) * | 2021-04-16 | 2021-07-30 | 宁波图灵奇点智能科技有限公司 | Block chain platform, method and device, computer equipment and storage medium |
CN113193992B (en) * | 2021-04-16 | 2022-08-23 | 宁波图灵奇点智能科技有限公司 | Block chain platform, method and device, computer equipment and storage medium |
WO2023279971A1 (en) * | 2021-07-05 | 2023-01-12 | 支付宝(杭州)信息技术有限公司 | Block synchronization method, and method for making node join blockchain network |
Also Published As
Publication number | Publication date |
---|---|
CN110300171B (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110300171A (en) | Information collecting method, system, computer readable storage medium and electronic equipment | |
CN109543075A (en) | Block generation method and system | |
CN106445929A (en) | Activeness based user ranking method and system | |
CN105868612A (en) | Mobile learning system based on fingerprint mobile phone | |
CN106375279A (en) | Attendance checking method, device and system based on mobile equipment | |
CN107424284A (en) | A kind of electronic voting method | |
CN109086594A (en) | A kind of method, apparatus and system for realizing the verifying of sliding-type identifying code | |
CN104282049A (en) | Facial recognition attendance checking terminal, attendance checking process authentication system and authentication method | |
CN108898728A (en) | Intelligent interaction equipment and voting method, device and system thereof | |
CN109949038A (en) | Block chain administers method, apparatus, equipment and the readable storage medium storing program for executing of ballot | |
CN107948596A (en) | A kind of villages and towns management system | |
CN110033399A (en) | A kind of information publication, extracting method and the system of the wisdom class board based on recognition of face | |
CN106296506A (en) | Examination anti-cheating method based on RSSI locating and tracking technology and system and application | |
CN106780782A (en) | The ticket checking scheme recommended based on server carries out method, system and the equipment of ticket checking | |
CN109784857A (en) | Data processing method, device and system based on block chain | |
CN113190617A (en) | Concealed engineering quality acceptance method and system based on block chain | |
CN108615141A (en) | A kind of intelligent curriculum management method for giving lessons under line | |
CN108460633A (en) | A kind of method for building up and application thereof of advertisement audio collection identifying system | |
CN107644556A (en) | Internet education method and system based on school | |
CN106846201A (en) | A kind of class hour management method based on Web education | |
CN108629514A (en) | A kind of engineering information technical management system | |
CN106846198A (en) | A kind of computer application examination system | |
CN205680097U (en) | A kind of mobile learning system based on finger print mobile phones | |
CN109492694A (en) | A kind of user property analysis method, system and relevant device | |
CN106131052A (en) | A kind of multi-source information identity identifying method towards actual mechanical process recruitment evaluation |
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 |