CN113157472A - Service information processing method, device, equipment and computer storage medium - Google Patents
Service information processing method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN113157472A CN113157472A CN202110276143.5A CN202110276143A CN113157472A CN 113157472 A CN113157472 A CN 113157472A CN 202110276143 A CN202110276143 A CN 202110276143A CN 113157472 A CN113157472 A CN 113157472A
- Authority
- CN
- China
- Prior art keywords
- information
- node
- service information
- target service
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 42
- 238000003672 processing method Methods 0.000 title claims abstract description 31
- 230000002159 abnormal effect Effects 0.000 claims abstract description 73
- 238000000034 method Methods 0.000 claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 15
- 230000008569 process Effects 0.000 abstract description 20
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0709—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
Abstract
The application discloses a service information processing method, a device, equipment and a computer readable storage medium, which are applied to processing nodes in a block chain, wherein the block chain also comprises a supervision node and a service node; acquiring target service information stored in a block; judging whether the target service information is abnormal or not; and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information. In the application, the target service information is stored in the block of the block chain, so that the target service information cannot be changed at will after the service node uploads the target service information to the block chain, the accuracy and the stability of the target service information are ensured, the target service information can be traced based on the block chain subsequently, in addition, after the processing node judges that the target service information is abnormal, the processing node can prompt the supervision node to supervise the service node, the accurate supervision of a service process is realized, and the service process is ensured to be accurately carried out according to the target service information.
Description
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for processing service information.
Background
With the advent of the big data era, information publishing and acquiring modes are more diversified and easier, for example, a service party can publish service information on line through a webpage, publish the service information through a propaganda poster line, agree with a consumer party for service information and the like, however, ownership of the service information is owned by the service party, for example, the service party has all interpretation rights of the service information and the like, so that the service information is easily maliciously controlled by the service party and is not beneficial to monitoring of a service process.
In summary, how to accurately supervise the service process is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a service information processing method which can solve the technical problem of accurately supervising a service process to a certain extent. The application also provides a service information processing device, equipment and a computer readable storage medium.
In a first aspect, the present application discloses a service information processing method, which is applied to a processing node in a block chain, where the block chain further includes: the method comprises the following steps:
acquiring target service information stored in a block;
judging whether the target service information is abnormal or not;
and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information.
Optionally, the determining whether the target service information is abnormal includes:
judging whether feedback information representing that the target service information is abnormal is acquired;
if the feedback information is acquired, judging that the target service information is abnormal;
generating state information representing the target service information abnormity;
and uplink the feedback information and the state information.
Optionally, the determining whether the target service information is abnormal includes:
acquiring target consumption information which is stored in a block and corresponds to the target service information;
and judging whether the target service information is abnormal or not based on the target consumption information.
Optionally, the determining whether the target service information is abnormal based on the target consumption information includes:
determining consumption scale information corresponding to the target consumption information;
judging whether the consumption scale information is abnormal or not;
and if the consumption scale information is abnormal, judging that the target service information is abnormal.
Optionally, before obtaining the target service information stored in the block, the method further includes:
receiving application information which is sent by the service node and applies for accessing the block chain;
sending the application information to the supervision node so that the supervision node judges whether to allow the service node to access or not based on the application information;
judging whether judging information which is sent by the supervision node and represents that the service node is allowed to access is received;
if the judgment information is received, allowing the service node to access the block chain;
receiving the target service information sent by the service node and uplink;
before the obtaining of the target consumption information corresponding to the target service information stored in the block, the method further includes:
pushing the target service information to a consumption node;
receiving consumption information determined by the consumption node based on the target service information;
and generating the target consumption information based on the consumption information and uplink.
Optionally, after prompting the supervision node to supervise the service node corresponding to the target service information, the method further includes:
acquiring identity information of the service node stored in the block;
and sending the identity information of the service node to the supervision node.
Optionally, after prompting the supervision node to supervise the service node corresponding to the target service information, the method further includes:
determining the identity information of a preset number of consumption nodes corresponding to the target service information;
determining a total consumption value corresponding to the target service information of the consumption node;
and sending the identity information of the consumption node and the total consumption value to the supervision node.
In a second aspect, the present application discloses a service information processing apparatus, which is applied to a processing node in a blockchain, where the blockchain further includes: supervision node, service node, the device includes:
the first acquisition module is used for acquiring the target service information stored in the block;
the first judgment module is used for judging whether the target service information is abnormal or not; and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the service information processing method as described above when executing the computer program.
In a fourth aspect, the present application discloses a computer-readable storage medium having a computer program stored therein, which when executed by a processor implements the steps of the service information processing method as described in any one of the above.
The application provides a service information processing method, which is applied to processing nodes in a block chain, wherein the block chain further comprises a supervision node and a service node, and the method comprises the following steps: acquiring target service information stored in a block; judging whether the target service information is abnormal or not; and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information. In the application, the target service information is stored in the block of the block chain, so that the target service information cannot be changed at will after the service node uploads the target service information to the block chain, the accuracy and the stability of the target service information are ensured, the target service information can be traced based on the block chain subsequently, in addition, after the processing node judges that the target service information is abnormal, the processing node can prompt the supervision node to supervise the service node, the accurate supervision of a service process is realized, and the service process is ensured to be accurately carried out according to the target service information. The service information processing device, the equipment and the computer readable storage medium provided by the application also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a data sharing system;
FIG. 2 is a schematic diagram of the composition of a blockchain;
FIG. 3 is a block generation diagram;
fig. 4 is a flowchart of a service information processing method provided in an embodiment of the present application;
fig. 5 is a flowchart of a specific service information processing method according to an embodiment of the present application;
fig. 6 is a flowchart of a specific service information processing method according to an embodiment of the present application;
fig. 7 is a flow chart of information uplink in a specific method for processing service information according to an embodiment of the present application;
fig. 8 is a flowchart of a specific service information processing method according to an embodiment of the present application;
fig. 9 is a flowchart of a specific service information processing method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a service information processing apparatus according to an embodiment of the present application;
FIG. 11 is a block diagram illustrating electronic device 20, according to an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the advent of the big data era, information publishing and acquiring modes are more diversified and easier, for example, a service party can publish service information on line through a webpage, publish the service information through a propaganda poster line, agree with a consumer party for service information and the like, however, ownership of the service information is owned by the service party, for example, the service party has all interpretation rights of the service information and the like, so that the service information is easily maliciously controlled by the service party and is not beneficial to monitoring of a service process. In order to overcome the technical problem, the application provides a service information processing method which can accurately monitor service information.
For ease of understanding, the blockchain to which the present application relates will be described first. In essence, the block chain is a shared database, and the data or information stored in the database has the characteristics of ' unforgeability ', ' full-course trace ', traceability ', ' public transparency ', ' collective maintenance ', and the like.
Referring to the data sharing system shown in fig. 1, the data sharing system 100 refers to a system for performing data sharing between nodes, the data sharing system may include a plurality of nodes 101, and the plurality of nodes 101 may refer to respective clients in the data sharing system. Each node 101 may receive input information while operating normally and maintain shared data within the data sharing system based on the received input information. In order to ensure information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and information transmission can be carried out between the nodes through the information connection. For example, when an arbitrary node in the data sharing system receives input information, other nodes in the data sharing system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all the nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding thereto, and each node in the data sharing system may store a node identifier of another node in the data sharing system, so that the generated block is broadcast to the other node in the data sharing system according to the node identifier of the other node in the following. Each node may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example.
Node name | Node identification |
Node 1 | 117.114.151.174 |
Node 2 | 117.116.189.145 |
… | … |
Node N | 119.123.789.258 |
Each node in the data sharing system stores one identical blockchain. The block chain is composed of a plurality of blocks, referring to fig. 2, the block chain is composed of a plurality of blocks, the starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When each block in the block chain is generated, referring to fig. 3, when the node where the block chain is located receives the input information, the input information is verified, after the verification is completed, the input information is stored in the memory pool, and the hash tree for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET;
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain;prev _ hash as the current blockThe block header characteristic value of the parent block of (1); merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the data sharing system where the newly generated blocks are located according to the node identifications of the other nodes in the data sharing system, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.
The service information processing scheme provided by the present application is described below. Fig. 4 is a flowchart of a service information processing method according to an embodiment of the present application. Referring to fig. 4, the service information processing method is applied to processing nodes in a blockchain, where the blockchain further includes a policing node and a service node, and the method includes:
step S101: target service information stored in the block is obtained.
In this embodiment, the target service information refers to service information already stored in a corresponding block of the block chain, and a triggering manner for the processing node to obtain the target service information may be determined according to actual needs, for example, the processing node may obtain the target service information according to a preset intelligent contract at a fixed time interval, or obtain the target service information from time to time according to a preset intelligent contract, or obtain the target service information under the triggering of a user, and the like.
It should be noted that the type and specific content of the target service information may be determined according to actual needs, for example, the target service information may be the distribution time and route of the information, the sale time and place of the product, and the like. In addition, the block chain has the characteristics of being incapable of being forged and leaving marks in the whole process, so that the target service information is difficult to be maliciously changed by the service node, for example, the content of the target service information cannot be changed by the service node after the target service information is published by the service node, and further, the target service information before and after the change is found by the consumption node is different.
Step S102: judging whether the target service information is abnormal or not; if the target service information is abnormal, step S103 is executed.
Step S103: and prompting the supervision node to supervise the service node corresponding to the target service information.
It can be understood that if the service node is malicious through the target service information, the target service information may be abnormal, for example, the target service information is abnormal due to malicious modification of the service node, so that the processing node may monitor the service node by means of the target service information after acquiring the target service information, specifically, the processing node may determine whether the target service information is abnormal, and if the target service information is abnormal, the processing node may prompt the monitoring node to accurately monitor the service node corresponding to the target service information, so as to avoid malicious operation of the service node through monitoring of the service node by the monitoring node, and ensure accurate performance of the service process.
It should be noted that the specific types of the service node, the consumption node and the supervision node may be determined according to actual needs, and the present application is not limited in particular herein. And after the target service information is judged to be normal, the method can wait for obtaining the target service information stored in the block again. In addition, in a specific application scenario, after the processing node determines that the target service information is abnormal, the processing node can also send reminding information and the like to the corresponding consuming node; after receiving the prompt message for supervising the service node, the supervising node can actively prompt the service node to provide service according to the appointed target service, and the like.
The application provides a service information processing method, which is applied to processing nodes in a block chain, wherein the block chain further comprises a supervision node and a service node, and the method comprises the following steps: acquiring target service information stored in a block; judging whether the target service information is abnormal or not; and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information. In the application, the target service information is stored in the block of the block chain, so that the target service information cannot be changed at will after the service node uploads the target service information to the block chain, the accuracy and the stability of the target service information are ensured, the target service information can be traced based on the block chain subsequently, in addition, after the processing node judges that the target service information is abnormal, the processing node can prompt the supervision node to supervise the service node, the accurate supervision of a service process is realized, and the service process is ensured to be accurately carried out according to the target service information.
Fig. 5 is a flowchart of a specific service information processing method according to an embodiment of the present application. Referring to fig. 5, the service information processing method is applied to a processing node in a block chain, and includes:
step S201: target service information stored in the block is obtained.
Step S202: judging whether feedback information representing that the target service information is abnormal is acquired; if the feedback information is acquired, step S203 is executed.
Step S203: generating the status information indicating the abnormality of the target service information, linking the feedback information and the status information, and executing step S204.
In this embodiment, because the attention degree of the consumption node and the like to the target service information is high, for example, the frequency of the consumption node to pay attention to the target service information is high, the perception degree of the consumption node and the like to the target service information is high, for example, the consumption node can find that the target service information is maliciously modified at the first time, and after finding that the target service information is abnormal, the consumption node and the like can have a requirement of automatically feeding back the target service information that the target service information is abnormal, so that in practical application, whether the target service information is abnormal or not can be judged by means of the consumption node and the like, and specifically, the processing node can judge whether to obtain feedback information representing that the target service information is abnormal or not; if the feedback information is acquired, judging that the target service information is abnormal; in addition, in order to facilitate the follow-up tracing of the corresponding state of the target service information so as to evaluate and process the service node, the processing node can also generate state information representing the abnormality of the target service information; the feedback information and the status information are uplinked.
Step S204: and prompting the supervision node to supervise the service node corresponding to the target service information.
Fig. 6 is a flowchart of a specific service information processing method according to an embodiment of the present application. Referring to fig. 6, the service information processing method is applied to a processing node in a block chain, and includes:
step S301: target service information stored in the block is obtained.
Step S302: and acquiring target consumption information corresponding to the target service information and stored in the block.
Step S303: judging whether the target service information is abnormal or not based on the target consumption information; if the target service information is abnormal, step S304 is executed.
In this embodiment, after the service node issues the target service information, the consuming node generally consumes the target service information, such as making an answer, a response, a payment, and the like, and then consumption information corresponding to the target service information is generated, such as the target service information is the publishing time and way of the information, the corresponding target consumption information may be obtained by what way and when, and the target service information is also stored in the blockchain, the service capability of one target service information is limited, that is, the target consumption information corresponding to the target service information is limited, if the target consumption information exceeds the limit, the target service information can be considered to be abnormal, therefore, in the process of judging whether the target service information is abnormal or not, the processing node can acquire the target consumption information which is stored in the block and corresponds to the target service information; and judging whether the target service information is abnormal or not based on the target consumption information.
In practical application, the target consumption information is limited by the field of the service node, the number of audiences of the target service information and the like, and the scale of the target consumption information has a certain limit, so that the consumption scale information corresponding to the target consumption information can be determined in the process of judging whether the target service information is abnormal or not based on the target consumption information; judging whether the consumption scale information is abnormal or not; if the consumption scale information is abnormal, the target service information can be judged to be abnormal. For example, the consumption scale information corresponding to the target service information may be estimated in advance based on the target service information, and if the difference between the actually determined consumption scale information and the estimated consumption rule information is large, the consumption scale information may be considered to be abnormal.
Specifically, the processing node may further determine whether the target service information is abnormal by determining a growth rate of the target consumption information and determining whether the growth rate is greater than a preset value, for example, if the growth rate is greater than the preset value, it may be determined that the target service information is abnormal, and if the growth rate is less than or equal to the preset value, it may be determined that the target service information is normal.
Step S304: and prompting the supervision node to supervise the service node corresponding to the target service information.
In this embodiment, please refer to fig. 7, which is a flow chart of uplink information in a specific service information processing method according to an embodiment of the present application. In this process, the processing node may perform the following steps:
step S401: and receiving application information of applying for accessing the block chain sent by the service node.
In practical applications, the service node may actively apply for the access block chain so as to publish the target service information through the block chain, and correspondingly, the processing node may receive the application information for applying for the access block chain sent by the service node, and the type of the application information and the data content included in the application information may be determined according to actual needs, for example, the application information may include the identity information of the service node, the type of the published service information, and the like.
Step S402: and sending the application information to the supervision node so that the supervision node judges whether to allow the service node to access or not based on the application information.
In practical applications, because the types of the service nodes are many and the supervisory node generally has corresponding information of a valid service node, the processing node can decide whether to allow the service node to access the block chain by means of the supervisory node, and specifically, can send the application information to the supervisory node, so that the supervisory node can determine whether to allow the service node to access based on the application information. Of course, the processing node may also determine whether to allow the service node to access the block chain by itself, which is not specifically limited herein.
Step S403: judging whether judging information which is sent by a supervision node and represents that a service node is allowed to be accessed is received; if the determination information is received, step S404 is executed.
Step S404: the serving node is allowed to access the blockchain.
In practical application, after sending the application information to the supervisory node, the processing node can judge whether receiving the judgment information which is sent by the supervisory node and represents that the service node is allowed to access; and if the judgment information is received, allowing the service node to access the block chain.
Step S405: and receiving the target service information sent by the service node and uplink.
In practical applications, after the processing node allows the service node to access the block chain, the service node may upload the target service information to the block chain, and accordingly, the processing node may receive and uplink the target service information sent by the service node.
Step S406: and pushing the target service information to the consumer.
Step S407: and receiving consumption information determined by the consumer based on the target service information.
Step S408: and generating target consumption information based on the consumption information and uplink.
In practical application, in order to ensure the accuracy of target service information received by a consumer and avoid malicious modification of the target service information when the service node transmits the target service information offline, the processing node can push the target service information to the consumption node online, receive consumption information determined by the consumption node based on the target service information, and finally generate the target consumption information based on the consumption information and link the target consumption information to record a service process by means of a block chain.
It should be noted that the present application is not limited to specific uplink timing of the target service information and the target consumption information, for example, the processing node may perform uplink operation of the target service information before acquiring the target service information stored in the block, perform uplink operation of the target consumption information before acquiring the target consumption information corresponding to the target service information stored in the block, and the like.
Fig. 8 is a flowchart of a specific service information processing method according to an embodiment of the present application. Referring to fig. 8, the service information processing method is applied to a processing node in a block chain, and includes:
step S501: target service information stored in the block is obtained.
Step S502: judging whether the target service information is abnormal or not; if the target service information is abnormal, step S503 is executed.
Step S503: and prompting the supervision node to supervise the service node corresponding to the target service information.
Step S504: and acquiring the identity information of the service node stored in the block.
Step S505: and sending the identity information of the service node to the supervision node.
In this embodiment, in order to facilitate the supervisory node to quickly supervise the service node, the identity information of the service node may be stored in the block chain in advance, and correspondingly, after the processing node prompts the supervisory node to supervise the service node corresponding to the target service information, the processing node may further obtain the identity information of the service node stored in the block; and sending the identity information of the service node to the supervision node.
Fig. 9 is a flowchart of a specific service information processing method according to an embodiment of the present application. Referring to fig. 9, the service information processing method is applied to a processing node in a block chain, and includes:
step S601: target service information stored in the block is obtained.
Step S602: judging whether the target service information is abnormal or not; if the target service information is abnormal, step S603 is executed.
Step S603: and prompting the supervision node to supervise the service node corresponding to the target service information.
Step S604: and determining the identity information of a preset number of consumption nodes corresponding to the target service information.
Step S605: and determining a total consumption value corresponding to the target service information of the consumption node.
Step S606: and sending the identity information and the total consumption value of the consumption node to the supervision node.
In this embodiment, when a service node is abnormal, and a supervision node supervises the service node, it may need to determine responsibility for the service node according to the number of consumers and a consumption value, so that in order to facilitate responsibility determination for the service node by the supervision node, after prompting the supervision node to supervise the service node corresponding to target service information, the processing node may further determine identity information of a preset number of consumption nodes corresponding to the target service information; determining a total consumption value corresponding to the consumption node and the target service information; and sending the identity information and the total consumption value of the consumption node to the supervision node.
Referring to fig. 10, an embodiment of the present application further discloses a service information processing apparatus, which is applied to a processing node in a blockchain, where the blockchain further includes a policing node and a service node, and the apparatus includes:
a first obtaining module 11, configured to obtain target service information stored in a block;
a first judging module 12, configured to judge whether the target service information is abnormal; and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information.
In some embodiments, the first determining module may include:
the first judging unit is used for judging whether feedback information representing that the target service information is abnormal is acquired; if the feedback information is acquired, judging that the target service information is abnormal;
the first generating unit is used for generating state information representing the abnormity of the target service information;
a first uplink unit for uplink of the feedback information and the status information.
In some embodiments, the first determining module may include:
the first acquisition submodule is used for acquiring target consumption information which is stored in the block and corresponds to the target service information;
and the first judgment submodule is used for judging whether the target service information is abnormal or not based on the target consumption information.
In some embodiments, the first determining sub-module may include:
the first determining unit is used for determining consumption scale information corresponding to the target consumption information;
the second judging unit is used for judging whether the consumption scale information is abnormal or not; and if the consumption scale information is abnormal, judging that the target service information is abnormal.
In some specific embodiments, the service information processing apparatus may further include:
a first receiving module, configured to receive, before the first obtaining module obtains the target service information stored in the block, application information for applying for accessing the block chain sent by the service node;
the first sending module is used for sending the application information to the supervision node so that the supervision node judges whether to allow the service node to access or not based on the application information;
the second judgment module is used for judging whether judgment information which is sent by the supervision node and represents that the service node is allowed to be accessed is received; if the judgment information is received, allowing the service node to access the block chain;
a first uplink module, configured to receive target service information sent by a service node and uplink the target service information;
the first pushing module is used for pushing the target service information to the consumer before the first obtaining sub-module obtains the target consumption information which is stored in the block and corresponds to the target service information;
the third receiving module is used for receiving the consumption information determined by the consumer based on the target service information;
and the second uplink module is used for generating target consumption information based on the consumption information and uplink.
In some specific embodiments, the service information processing apparatus may further include:
the second acquisition module is used for acquiring the identity information of the service node stored in the block after the first judgment module prompts the supervision node to supervise the service node corresponding to the target service information;
and the second sending module is used for sending the identity information of the service node to the supervision node.
In some specific embodiments, the service information processing apparatus may further include:
the first determining module is used for determining the identity information of the consumption nodes with the preset number corresponding to the target service information after the first judging module prompts the supervision node to supervise the service nodes corresponding to the target service information;
the second determining module is used for determining a total consumption value corresponding to the consumption node and the target service information;
and the third sending module is used for sending the identity information and the total consumption value of the consumption node to the monitoring node.
Further, the embodiment of the application also provides electronic equipment. FIG. 11 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and nothing in the figure should be taken as a limitation on the scope of use of the present application.
Fig. 11 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the service information processing method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically a server.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, video data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the processor 21 on the mass video data 223 in the memory 22, and may be Windows Server, Netware, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the service information processing method performed by the electronic device 20 disclosed in any of the foregoing embodiments. Data 223 may include various video data collected by electronic device 20.
Further, an embodiment of the present application further discloses a storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the steps of the service information processing method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for processing service information, the method being applied to a processing node in a blockchain, the blockchain further comprising: the method comprises the following steps:
acquiring target service information stored in a block;
judging whether the target service information is abnormal or not;
and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information.
2. The method of claim 1, wherein the determining whether the target service information is abnormal comprises:
judging whether feedback information representing that the target service information is abnormal is acquired;
if the feedback information is acquired, judging that the target service information is abnormal;
generating state information representing the target service information abnormity;
and uplink the feedback information and the state information.
3. The method of claim 1, wherein the determining whether the target service information is abnormal comprises:
acquiring target consumption information which is stored in a block and corresponds to the target service information;
and judging whether the target service information is abnormal or not based on the target consumption information.
4. The method of claim 3, wherein the determining whether the target service information is abnormal based on the target consumption information comprises:
determining consumption scale information corresponding to the target consumption information;
judging whether the consumption scale information is abnormal or not;
and if the consumption scale information is abnormal, judging that the target service information is abnormal.
5. The method of claim 3, wherein before the obtaining the target service information stored in the block, further comprising:
receiving application information which is sent by the service node and applies for accessing the block chain;
sending the application information to the supervision node so that the supervision node judges whether to allow the service node to access or not based on the application information;
judging whether judging information which is sent by the supervision node and represents that the service node is allowed to access is received;
if the judgment information is received, allowing the service node to access the block chain;
receiving the target service information sent by the service node and uplink;
before the obtaining of the target consumption information corresponding to the target service information stored in the block, the method further includes:
pushing the target service information to a consumption node;
receiving consumption information determined by the consumption node based on the target service information;
and generating the target consumption information based on the consumption information and uplink.
6. The method according to any one of claims 1 to 5, wherein after prompting the supervision node to supervise the service node corresponding to the target service information, the method further comprises:
acquiring identity information of the service node stored in the block;
and sending the identity information of the service node to the supervision node.
7. The method of claim 6, wherein after prompting the supervision node to supervise the service node corresponding to the target service information, the method further comprises:
determining the identity information of a preset number of consumption nodes corresponding to the target service information;
determining a total consumption value corresponding to the target service information of the consumption node;
and sending the identity information of the consumption node and the total consumption value to the supervision node.
8. A service information processing apparatus, applied to a processing node in a blockchain, the blockchain further comprising: supervision node, service node, the device includes:
the first acquisition module is used for acquiring the target service information stored in the block;
the first judgment module is used for judging whether the target service information is abnormal or not; and if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information.
9. An electronic device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the service information processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the service information processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110276143.5A CN113157472A (en) | 2021-03-15 | 2021-03-15 | Service information processing method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110276143.5A CN113157472A (en) | 2021-03-15 | 2021-03-15 | Service information processing method, device, equipment and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113157472A true CN113157472A (en) | 2021-07-23 |
Family
ID=76887091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110276143.5A Pending CN113157472A (en) | 2021-03-15 | 2021-03-15 | Service information processing method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113157472A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114116733A (en) * | 2022-01-26 | 2022-03-01 | 国网区块链科技(北京)有限公司 | Data abnormal operation detection and tracing system and method for distribution automation system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110598446A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Block chain based test method and device, storage medium and computer equipment |
CN110602215A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Resource processing method based on alliance block chain and alliance block chain system |
CN110597917A (en) * | 2019-09-20 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Tourism data management method, device, terminal and medium |
-
2021
- 2021-03-15 CN CN202110276143.5A patent/CN113157472A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110598446A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Block chain based test method and device, storage medium and computer equipment |
CN110602215A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Resource processing method based on alliance block chain and alliance block chain system |
CN110597917A (en) * | 2019-09-20 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Tourism data management method, device, terminal and medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114116733A (en) * | 2022-01-26 | 2022-03-01 | 国网区块链科技(北京)有限公司 | Data abnormal operation detection and tracing system and method for distribution automation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150280968A1 (en) | Identifying alarms for a root cause of a problem in a data processing system | |
CN107169094B (en) | Information aggregation method and device | |
US20150280969A1 (en) | Multi-hop root cause analysis | |
US20150281011A1 (en) | Graph database with links to underlying data | |
TW201401218A (en) | Querying for business service processing status information | |
CN107748790B (en) | Online service system, data loading method, device and equipment | |
CN110659109A (en) | Openstack cluster virtual machine monitoring system and method | |
CN112905323B (en) | Data processing method, device, electronic equipment and storage medium | |
US20180242177A1 (en) | Monitoring management method and apparatus | |
CN113433882A (en) | Station room intelligent assistance and artificial intelligence visual gateway control method and system | |
CN113157472A (en) | Service information processing method, device, equipment and computer storage medium | |
CN113067802B (en) | User identification method, device, equipment and computer readable storage medium | |
CN110737655A (en) | Method and device for reporting data | |
US11734057B2 (en) | Method and apparatus for processing a service of an abnormal server | |
CN110188081B (en) | Log data storage method and device based on cassandra database and computer equipment | |
WO2014196982A1 (en) | Identifying log messages | |
EP4092961A1 (en) | Group updating method, message sending method, and apparatuses | |
CN116562954A (en) | User channel attribution identification method, device, storage medium and program product | |
Choi et al. | Distributed energy resources monitoring and control based on IoT protocol | |
WO2016095472A1 (en) | Method and apparatus for processing resource operation request | |
CN111190788B (en) | Data monitoring method and device, electronic equipment and readable medium | |
US10838950B2 (en) | Dynamic review cadence for intellectual capital | |
CN113157048B (en) | Behavior data analysis method based on multi-terminal time axis and related components | |
CN113114612B (en) | Determination method and device for distributed system call chain | |
CN110971954B (en) | Method, device, equipment and medium for displaying icons at different positions |
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 | ||
CB02 | Change of applicant information |
Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176 Applicant after: Jingdong Technology Information Technology Co.,Ltd. Applicant after: Jingdong Technology Holding Co., Ltd Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176 Applicant before: Jingdong Shuke Haiyi Information Technology Co., Ltd Applicant before: Jingdong Digital Technology Holding Co., Ltd |
|
CB02 | Change of applicant information |