Information processing method, device, electronic device, medium and program product
By detecting and deleting expired information notification tasks in blockchain fork nodes, the problem of blockchain overload is solved and the blockchain is made lightweight.
Patent Information
- Application Number
- CN202210503284.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-05-10
AI Technical Summary
Existing technologies store massive amounts of data in blockchains, causing the blockchain to be overloaded.
By detecting whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client, and if it is determined that the target blockchain fork node stores an expired information notification task, it will be deleted and backed up.
It achieves the goal of keeping the blockchain lightweight and reducing the burden on the blockchain.
Smart Images

Figure CN117076432B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and specifically to an information processing method, device, electronic device, medium and program product. Background Art
[0002] With the advent of the big data era, how to store massive data is a key research issue today.
[0003] Storing massive amounts of data in the blockchain is currently a commonly used method for storing massive amounts of data, but this method can lead to the problem of overburdening the blockchain. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide an information processing method, device, electronic device, medium and program product to achieve the effect of reducing the burden on blockchain.
[0005] The technical solution of this application is as follows:
[0006] In a first aspect, an information processing method is provided, which is applied to a server and includes:
[0007] Detecting whether each blockchain fork node in a blockchain has an expired information notification task that has been responded to by a client; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block;
[0008] If it is determined that an expired information notification task is stored in the target blockchain fork node, deleting the expired information notification task in the target blockchain fork node;
[0009] The target blockchain fork node is any one of the blockchain fork nodes.
[0010] In a second aspect, an information processing method is provided, which is applied to a client and includes:
[0011] Monitoring information notification tasks in a blockchain; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block;
[0012] When it is determined that the information notification task in the blockchain is updated, based on the client identifier in each blockchain fork node, obtaining a notification message corresponding to the client from each blockchain fork node;
[0013] Based on the notification message, perform an operation corresponding to the notification message to obtain operation result information;
[0014] The operation result information is stored in the blockchain.
[0015] In a third aspect, an information processing device is provided, which is applied to a server and includes:
[0016] a detection module, configured to detect whether each blockchain fork node in a blockchain has an expired information notification task that has been responded to by a client; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block;
[0017] A deletion module is used to delete the expired information notification task in the target blockchain fork node when it is determined that the target blockchain fork node stores an expired information notification task; wherein the target blockchain fork node is any one of the blockchain fork nodes.
[0018] In a fourth aspect, an information processing device is provided, which is applied to a client and includes:
[0019] A monitoring module, configured to monitor information notification tasks in a blockchain; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block;
[0020] an acquisition module configured to, upon determining that an information notification task in the blockchain has been updated, acquire a notification message corresponding to the client from each blockchain fork node based on a client identifier in each blockchain fork node;
[0021] a determination module, configured to execute an operation corresponding to the notification message based on the notification message, and obtain operation result information;
[0022] A storage module is used to store the operation result information in the blockchain.
[0023] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and runnable on the processor, and when the program or instruction is executed by the processor, the steps of the information processing method described in any one of the embodiments of the present application are implemented.
[0024] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the information processing method described in any one of the embodiments of the present application are implemented.
[0025] In a seventh aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the steps of the information processing method described in any one of the embodiments of the present application.
[0026] The technical solutions provided by the embodiments of this application bring at least the following beneficial effects:
[0027] The information processing method provided in the embodiment of the present application detects whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client. When it is determined that the target blockchain fork node stores an expired information notification task, the expired information notification task is backed up and the expired information notification task in the target blockchain fork node is deleted, thereby maintaining the lightweight of the blockchain and reducing the burden on the blockchain.
[0028] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0030] Figure 1 is a structural diagram of an information processing system involved in an embodiment of the present application;
[0031] Figure 2 This is a flowchart of an information processing method involved in an embodiment of the present application;
[0032] Figure 3 This is one of the flow charts of an information processing method provided by an embodiment of the first aspect of the present application;
[0033] Figure 4 Schematic diagram of the structure of the blockchain involved in the embodiment of the first aspect of the present application;
[0034] Figure 5 This is a second flow chart of an information processing method provided by an embodiment of the first aspect of the present application;
[0035] Figure 6 This is a third flow chart of an information processing method provided by an embodiment of the first aspect of the present application;
[0036] Figure 7 This is a fourth flow chart of an information processing method provided by an embodiment of the first aspect of the present application;
[0037] Figure 8 This is one of the structural diagrams of the information processing device involved in the embodiment of the second aspect of the present application;
[0038] Figure 9 This is the second structural diagram of the information processing device involved in the embodiment of the second aspect of the present application;
[0039] Figure 10 This is a structural diagram of an electronic device provided in an embodiment of the third aspect of the present application. DETAILED DESCRIPTION
[0040] In order to make those of ordinary skill in the art better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.
[0041] It should be noted that the terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples consistent with certain aspects of the present application as detailed in the appended claims.
[0042] As described in the background technology section, there is a problem in the prior art that data is stored in the blockchain, resulting in an excessive burden on the blockchain. In order to solve the above problem, the embodiments of the present application provide an information processing method, device, electronic device, medium and program product. By detecting whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client, if it is determined that the target blockchain fork node stores an expired information notification task, the expired information notification task is backed up and the expired information notification task in the target blockchain fork node is deleted, thereby maintaining the lightweight of the blockchain and reducing the burden on the blockchain.
[0043] Before introducing the information processing method provided by the present application, the information processing system for implementing the information processing method provided by the present application is first introduced.
[0044] The information processing system provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0045] Figure 1 This is a schematic diagram of the structure of an information processing system provided by an embodiment of the present application. Figure 1 As shown, the information processing system may include a server 110 and a client 120 , and a network 130 connecting the server and the client.
[0046] In one example, server 110 may be a processor, etc. Client 120 may be, but is not limited to, a personal computer (PC), a smartphone, a tablet computer, a personal digital assistant (PDA), etc. A client may also be any smart home device. Network 130 may be a wired or wireless network.
[0047] It should be noted that Figure 1 This is just an example. The number of the above-mentioned clients 120 can be set according to needs and is not limited here.
[0048] It should be noted that the server 110 and the client 120 together constitute a blockchain network. The server 110 and the client 120 are multiple nodes in the blockchain network. Each node finds the one that stores the blockchain ledger data, that is, the initial block, and multiple blockchain forks connected to the initial block (the specific blockchain structure can be referred to Figure 4 structure shown).
[0049] In this application, the server obtains the information notification task to be sent to the client; based on the information notification task, it detects whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client. When it is determined that the target blockchain fork node stores an expired information notification task, the expired information notification task is backed up and the expired information notification task in the target blockchain fork node is deleted, thereby maintaining the lightweight of the blockchain and reducing the burden on the blockchain.
[0050] In order to understand the working principle of the information processing system in more detail, the embodiment of the present application provides an information processing method, the execution subject of the information processing method can be Figure 1 Information processing system in . Figure 2 As shown, the information processing method provided in the embodiment of the present application may include steps 210 to 280.
[0051] Step 210: When the server needs to send an information notification task to the client, it determines the proxy node.
[0052] The information notification task may be a task sent to the client, and may include: a client identifier sent to the client, and a notification message sent to the client.
[0053] In one example, taking the client as a smart home device, the information notification task may be to notify which smart home device to control and information on how to control the smart home device (for example, information on turning on a certain smart home device).
[0054] In some embodiments of the present application, when the server needs to send control information to the client, it can first elect a proxy node through a protocol similar to Delegated Proof of Stake (DPOS), and then the proxy nodes of the blockchain can confirm through a consensus protocol that one of the nodes writes a message to the blockchain block in a transaction manner or performs a blockchain cleanup operation.
[0055] In some embodiments of the present application, when an information notification task needs to be sent to a client, it is necessary to identify a proxy node, obtain the information notification task that the proxy node wants to send to the client, and then generate a blockchain fork node after the initial block of the blockchain based on the proxy node according to the information notification task.
[0056] In some embodiments of the present application, the proxy node may be a server.
[0057] Step 220: Based on the information notification task, the server generates a blockchain fork node after the initial block of the blockchain, and detects whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client.
[0058] Among them, the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block.
[0059] The expired information notification task may be an information notification task that has already been responded to by the client.
[0060] In one example, if the server has sent an information notification task to the client to open the client, and the client responds to the information notification task and opens the client, then the information notification task is an information notification task that has been responded to, that is, an expired information notification task.
[0061] In some embodiments of the present application, before writing an information notification task into the blockchain, it is possible to detect whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client.
[0062] In some embodiments of the present application, after the server writes the information notification task into the blockchain fork, each client will obtain the information notification task through the synchronization mechanism of the blockchain network. After the client responds to the information notification task, it will generate a response message, generate a new block for the response message, and connect the new block to the end of the corresponding blockchain fork. Through the synchronization mechanism of the blockchain network, the new block will be synchronized to the server. In this way, the server can determine whether the information notification task corresponding to the blockchain fork has been processed by the client by checking whether the response message is recorded in each block of the blockchain fork. If a response message is recorded in a block of a blockchain fork, it means that the information notification task has been processed by the client, and then it means that the information notification task has expired.
[0063] Step 230: When the server determines that an expired information notification task is stored in the target blockchain fork node, the server backs up the expired information notification task and deletes the expired information notification task in the target blockchain fork node.
[0064] The target blockchain fork node may be any one or any several of the blockchain fork nodes.
[0065] In some embodiments of the present application, when it is determined that each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client, the expired information notification task in the target blockchain fork node is deleted, thereby ensuring the lightweight of the blockchain.
[0066] Step 240: When the server determines that there is no expired information notification task in the blockchain, the server writes the information notification task into the established blockchain fork node.
[0067] Step 250: The server synchronizes the blockchain among all blockchain nodes through the blockchain network.
[0068] In some embodiments of the present application, after the information notification task is written into the blockchain fork node, the information notification task can be broadcast synchronously among all blockchain nodes so that all blockchain nodes can have the information notification task.
[0069] Step 260: The client monitors the information notification task in the blockchain. When it is determined that the information notification task in the blockchain is updated, the client obtains the notification message corresponding to the client from each blockchain fork node based on the client identifier in each blockchain fork node.
[0070] Step 270: Based on the notification message, the client performs an operation corresponding to the notification message and obtains operation result information.
[0071] Step 280: The client sends the operation result information to the blockchain for storage.
[0072] In an embodiment of the present application, the server obtains an information notification task to be sent to the client; based on the information notification task, it detects whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client. When it is determined that the target blockchain fork node stores an expired information notification task, the expired information notification task is backed up and the expired information notification task in the target blockchain fork node is deleted, thereby maintaining the lightweight of the blockchain and reducing the burden on the blockchain.
[0073] The information processing method provided in the embodiments of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0074] Figure 3 This is a flow chart of an information processing method provided by an embodiment of the present application. The execution subject of the information processing method can be Figure 1 Server in.
[0075] like Figure 3 As shown, the information processing method provided in the embodiment of the present application may include steps 310 to 320.
[0076] The information processing method provided in the embodiments of the present application is described in detail below.
[0077] Step 310: Check whether each blockchain fork node in the blockchain has an expiration information notification task that has been responded to by the client.
[0078] In some embodiments of the present application, this step is the same as the server detecting in step 220 above whether each blockchain fork node in the blockchain has an expiration information notification task that has been responded to by the client, and will not be repeated here.
[0079] In some embodiments of the present application, in order to accurately determine when to detect whether each blockchain fork node in the blockchain has an expiration information notification task that has been responded to by the client, before step 310, the above-mentioned information processing method may further include:
[0080] Acquire an information notification task, wherein the information notification task is a task for notifying a client of information;
[0081] Correspondingly, step 310 may specifically include:
[0082] Based on the information notification task, detect whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client.
[0083] In some embodiments of the present application, the task of obtaining information notification may be consistent with the task of the server obtaining notification information to the client in the above step 210, which will not be repeated here.
[0084] In some embodiments of the present application, when an information notification task is obtained, it can be determined whether each blockchain fork node in the blockchain needs to be checked for an expired information notification task that has been responded to by the client.
[0085] In an embodiment of the present application, when an information notification task is obtained, it is determined whether each blockchain fork node in the detection blockchain has an expired information notification task that has been responded to by the client. In this way, the detection time of the expired information notification task can be accurately determined. In this way, the user can intuitively view when to start detecting whether there is an expired information notification task in the blockchain fork node, thereby improving the user experience.
[0086] In some embodiments of the present application, before receiving the information notification task, it is necessary to identify a proxy node and obtain the information notification task to be sent to the client by the proxy node. Therefore, before step 310, the above-mentioned information processing method may further include:
[0087] Obtaining attribute information of at least one server and a preset weight of each server;
[0088] Determine the target server based on the attribute information and preset weights of each server;
[0089] Correspondingly, step 320 may specifically include:
[0090] Get the information notification task to be sent to the client based on the target server.
[0091] The attribute information may at least include: an Internet Protocol (IP) address of the server, identification information of the server, and memory information of the server.
[0092] In some embodiments of the present application, the identification information here may be information identifying a server, such as a code of the server.
[0093] The preset weight may be a pre-set weight of each server, which may be set according to user needs and is not limited here.
[0094] In some embodiments of the present application, based on a received information notification task, the voting block in the blockchain can include attribute information of each block and a preset weight of each server. Based on the attribute information and preset weight of each server written in the voting block, a target server can be determined. In this way, an information notification task to be sent to the client can be obtained based on the target server.
[0095] In some embodiments of the present application, the number of target servers may be one or more.
[0096] In some embodiments of the present application, after the target server is determined, the current timestamp can be recorded. When some target servers are unable to provide services or the time expires, the target server can initiate a new round of target server selection, and then select the target server based on the attribute information of the existing servers and the preset weights, and then write it into the voting block.
[0097] In an embodiment of the present application, by obtaining the attribute information of at least one server and the preset weight of each server; based on the attribute information and the preset weight of each server, the target server is determined, so that the information notification task to be sent to the client can be obtained based on the target server, rather than using all servers to obtain the information notification task to be sent to the client, thereby saving the number of servers.
[0098] In some embodiments of the present application, the information notification task may include: a client identifier sent to the client, and a notification message sent to the client.
[0099] The client identifier may be an identifier of the client, for example, a code of the client.
[0100] The notification information may be information sent to the client, for example, may be control information for controlling the client.
[0101] In some embodiments of the present application, after step 310, the above-mentioned information processing method may further include:
[0102] Constructing the first blockchain fork node corresponding to the information notification task;
[0103] The client identifier and the notification message are stored in the first blockchain fork node.
[0104] Among them, the first blockchain fork node can be a fork node generated after the initial block of the blockchain based on the received information notification task.
[0105] In some embodiments of the present application, a blockchain may include an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block.
[0106] To facilitate understanding of blockchain, some relevant information about the blockchain in the embodiments of this application is introduced below:
[0107] The structure of the blockchain in the embodiment of this application is as follows Figure 4 As shown, the blockchain 400 has multiple blocks. They can be the initial block 410, the voting block 420, and other blocks 430 (i.e. Figure 4 Each block consists of a block header and a block body.
[0108] In some embodiments of the present application, the blockchain structure is shown in Table 1 below:
[0109] Table 1
[0110]
[0111] In some embodiments of the present application, the structure of the block header in the blockchain is shown in Table 2 below:
[0112] Table 2
[0113]
[0114] In some embodiments of the present application, the structure of the block body of the voting block is shown in Table 3 below:
[0115] Table 3
[0116]
[0117] In some embodiments of the present application, the structure of the block body of a common block is shown in Table 4 below:
[0118] Table 4
[0119]
[0120] In some embodiments of the present application, the numbers in the middle columns of Tables 1-4 above represent the bytes corresponding to the row. For example, the number "4" corresponding to the block number in Table 1 means that the block number occupies 4 bytes.
[0121] In an embodiment of the present application, by constructing a first blockchain fork node corresponding to the information notification task, the client identifier and the notification message are stored in the first blockchain fork node, thereby improving the original structure of the blockchain, generating a blockchain fork node after the initial block, and making one blockchain fork node correspond to one information notification task, so that expired information notification tasks can be effectively cleaned up later.
[0122] In some embodiments of the present application, since the memory for the notification information sent to the client is too large, this may result in an excessive amount of notification information being stored in the blockchain fork node, causing an oversaturation problem in the blockchain fork node. To avoid excessive load on a blockchain fork node, before constructing the first blockchain fork node corresponding to the information notification task, the information processing method may further include:
[0123] Get the memory information of the information notification task;
[0124] Based on the memory information, the information notification task is split into at least two sub-information notification tasks;
[0125] The step of constructing a first blockchain fork node corresponding to the information notification task includes:
[0126] Constructing a number of first blockchain fork nodes corresponding to the number of sub-information notification tasks;
[0127] The storing of the client identifier and the notification message in the first blockchain fork node includes:
[0128] For each sub-information notification task, the sub-information notification task and the client identifier are stored in the target first blockchain fork node.
[0129] The memory information may be the memory occupied by the information notification task.
[0130] The sub-information notification task may be formed by splitting the information notification task.
[0131] The target first blockchain fork node may be any one of multiple first blockchain fork nodes.
[0132] In an example, if the memory information of the information notification task B sent to client A is 400 bits, then according to the memory information, the information notification task B can be split into two sub-information notification tasks (the specific number of sub-information notification tasks for splitting the information notification task B can be set according to user needs and is not limited here), for example, sub-information notification task B1 and sub-information notification task B2 respectively, and then a number of first blockchain fork nodes corresponding to the number of sub-information notification tasks B1 and sub-information notification tasks B2 can be constructed, that is, two first blockchain fork nodes can be constructed, namely the first blockchain fork node C1 and the first blockchain fork node C2, and then the identifier of the client A and the sub-information notification task B1 are stored in the first blockchain fork node C1 (that is, the target first blockchain fork node), and the identifier of the client A and the sub-information notification task B2 are stored in the first blockchain fork node C2 (that is, the target first blockchain fork node).
[0133] In an embodiment of the present application, memory information of an information notification task is obtained; then, based on the memory information, the information notification task is split into at least two sub-information notification tasks, and a number of first blockchain fork nodes corresponding to the number of sub-information notification tasks is constructed. For each sub-information notification task, the sub-information notification task and the client identifier are stored in the target first blockchain fork node. In this way, information notification tasks with too much memory can be stored separately to avoid the problem of excessive load on a certain blockchain fork node.
[0134] In some embodiments of the present application, in order to maintain the security of the information notification task stored in the blockchain fork node, storing the client identifier and the notification message in the first blockchain fork node may specifically include:
[0135] Encrypt the notification message based on the client's public key to obtain an encrypted notification message;
[0136] The client identifier and the encrypted notification message are stored in the first blockchain fork node.
[0137] In some embodiments of the present application, if the notification message is from a single client, the client's public key and the public and private keys of the proxy node may be used to encrypt the notification message, and the encrypted notification message and the client's identifier may be stored in the first blockchain fork node. If the notification message is from multiple clients, the public key of each client and the public and private keys of the proxy node may be used to encrypt the notification message corresponding to each client, and the encrypted notification message and the identifier of each client may be stored in the first blockchain fork node. That is, the identifiers of multiple clients and the encrypted notification messages of multiple clients are stored in the first blockchain fork node.
[0138] In an embodiment of the present application, the notification message is encrypted based on the public key of the client to obtain an encrypted notification message, and the client identifier and the encrypted notification message are stored in the first blockchain fork node. In this way, batch security authentication is performed in each client through the public key encrypted notification message contained in the blockchain structure, thereby improving the security authentication efficiency between the server and each client.
[0139] In some embodiments of the present application, in order to improve the computing resources of the server, after storing the client identifier and the notification message in the first blockchain fork node, the above-mentioned information processing method may further include:
[0140] Based on the blockchain protocol, the information notification task is broadcast to each client connected to the blockchain.
[0141] In an embodiment of the present application, the information notification task is broadcast to each client connected to the blockchain based on the blockchain protocol, that is, the information notification task is broadcast to each client through the blockchain network, rather than the server pushing it to each client one by one. This saves computing resources on the server side, improves the efficiency of information push, and realizes the decentralization of the system through the network result characteristics of the blockchain.
[0142] Step 320: When it is determined that an expired information notification task is stored in the target blockchain fork node, the expired information notification task in the target blockchain fork node is deleted.
[0143] The target blockchain fork node may be any one of the blockchain fork nodes.
[0144] In some embodiments of the present application, when it is determined that an expired information notification task is stored in the target blockchain fork node, the expired information notification task in the target blockchain fork node can be deleted, thereby ensuring that the amount of blockchain data remains lightweight during the notification process.
[0145] In some embodiments of the present application, when it is determined that an expired information notification task is stored in the target blockchain fork node, the expired information notification task can be backed up and deleted from the target blockchain fork node. This allows the expired information notification task to be retrieved later if desired, improving the user experience.
[0146] In some embodiments of the present application, in order to understand the workflow of the server in more detail, the present application provides another implementation of an information processing method, such as Figure 5 As shown, the information processing method may include steps 510 to 560.
[0147] Step 510: elect a proxy node based on the voting block.
[0148] In some embodiments of the present application, step 510 is consistent with the above embodiment in which the voting block selects the target server based on the attribute information of each block and the preset weight of each block, and will not be repeated here.
[0149] Step 520: Based on the received information notification task, check whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client. If not, execute step 530; if so, execute step 560.
[0150] In some embodiments of the present application, step 520 is consistent with step 310 in the above embodiment and will not be repeated here.
[0151] Step 530: Based on the type of the information notification task, the information notification task is encrypted using the public and private keys of the server and the public key of the client, and the encrypted information notification task is written into the blockchain fork node.
[0152] In some embodiments of the present application, the type of an information notification task may be whether the information notification task is a single-client information notification task or a multi-client information notification task. If the information notification task is a single-client information notification task, the information notification task may be encrypted using the client's public key and the public and private keys of the proxy node, and the encrypted information notification task may be stored in the blockchain fork node. If the information notification task is a multi-client information notification task, the information notification task corresponding to each client may be encrypted using the public key of each client and the public and private keys of the proxy node, and the encrypted information notification task may be stored in the blockchain fork node.
[0153] Step 540: broadcast the information notification task to each client.
[0154] In some embodiments of the present application, step 540 is consistent with broadcasting the information notification task to each client connected to the blockchain based on the blockchain protocol in the above embodiment, and will not be repeated here.
[0155] Step 550: Determine whether there are any information notification tasks that need to be written into the blockchain. If yes, return to step 520; if no, end.
[0156] Step 560: Back up the expired information notification task and delete the expired information notification task in the blockchain fork node.
[0157] In some embodiments of the present application, step 560 is consistent with step 320 in the above embodiment and is not described here in detail.
[0158] The above embodiment describes the new processing method of the present application with the server as the execution subject. The following describes the information processing method of the present application with the client as the execution subject. For the sake of brevity, the nouns in the embodiments of the present application that are consistent with those in the above embodiment will not be repeated here.
[0159] Figure 6 is a flowchart of another information processing method according to an exemplary embodiment. The execution subject of the information processing method may be Figure 1 The client in .
[0160] like Figure 6 As shown, the information processing method may include the following steps 610 to 640.
[0161] Step 610: Monitor the information notification task in the blockchain.
[0162] Among them, the blockchain may include an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block.
[0163] Step 620: When it is determined that the information notification task in the blockchain is updated, based on the client identifier in each blockchain fork node, a notification message corresponding to the client is obtained from each blockchain fork node.
[0164] In some embodiments of the present application, determining that an information notification task in the blockchain has been updated may be determining that there is a new information notification task in the blockchain, and then obtaining a notification message corresponding to the client from each blockchain fork node based on the client identifier in each blockchain fork node.
[0165] Step 630: Based on the notification message, perform the operation corresponding to the notification message and obtain operation result information.
[0166] The operation result information may be the result information obtained after the client performs the operation corresponding to the notification message according to the notification message, that is, whether the client performs the operation corresponding to the notification message and the result after the operation.
[0167] In one example, if the notification message is to open the client, the client may open the client according to the notification message, and the client is opened at this time (ie, operation result information).
[0168] In some embodiments of the present application, based on the notification message, the client may perform an operation corresponding to the notification message, and thereby obtain operation result information.
[0169] In some embodiments of the present application, in order to ensure that the client can perform the operation corresponding to the notification message, before step 630, the above-mentioned information processing method may further include:
[0170] Decrypt the notification message based on the client's private key;
[0171] Correspondingly, step 630 may specifically include:
[0172] Based on the decrypted notification message, an operation corresponding to the decrypted notification message is performed to obtain operation result information.
[0173] In an embodiment of the present application, after obtaining the notification message, the notification message is decrypted using the client's private key, and then the operation corresponding to the decrypted notification message is performed to obtain the operation result information. This ensures that the client can perform the corresponding operation and ensures the security of the notification message.
[0174] Step 640: Store the operation result information in the blockchain.
[0175] In an embodiment of the present application, the client monitors the information notification tasks in the blockchain. When the information notification tasks in the blockchain are updated, the client can obtain the notification message corresponding to the client from each blockchain fork node based on the client identifier in each blockchain fork node, and then perform the operation corresponding to the notification message to obtain the operation result information, and store the operation result information in the blockchain, thereby improving the efficiency of the client in receiving information notification tasks.
[0176] In some embodiments of the present application, determining that the information notification task in the blockchain is updated may also mean that the information notification task in the blockchain is deleted. In the case where the information notification task in the blockchain is updated and the information notification task in the blockchain is deleted, the above-mentioned information processing method may further include:
[0177] When it is determined that the expired information notification task in the target blockchain fork node in the blockchain is deleted, the file corresponding to the expired information notification task in the client is deleted.
[0178] In an embodiment of the present application, if it is determined that the expired information notification task in the target blockchain fork node in the blockchain is deleted, the file corresponding to the expired information notification task in the client is deleted, thereby reducing the resources of the client and ensuring the lightweight nature of the client.
[0179] In some embodiments of the present application, since the server and client constitute a blockchain network, the server and client are connected via a network, i.e., a communication protocol exists between the server and client. Thus, when a server node deletes an expired information notification task in a blockchain fork, the message "the server node has deleted the expired information notification task in the blockchain fork" can be broadcast to the client based on the communication protocol between the server and client. The client can then promptly check that the server node has deleted the expired information notification task in the blockchain fork, and can then delete the file corresponding to the expired information notification task based on the received broadcast information.
[0180] Specifically, when a server broadcasts the message "The server node deleted the expiration notification task in a blockchain fork" to a client, it can also broadcast the specific expiration notification task that the server node deleted. That is, the specific blockchain fork that the server deleted can be sent to the client via the broadcast message. Furthermore, the broadcast message can include identification information of the deleted blockchain fork, so that the client can delete the file corresponding to the expiration notification task based on the received broadcast message.
[0181] In some embodiments of the present application, in order to understand the workflow of the client in more detail, the present application provides another implementation of an information processing method, such as Figure 7 As shown, the information processing method may include steps 710 to 750.
[0182] Step 710: Monitor the information notification task in the blockchain.
[0183] In some embodiments of the present application, step 710 is consistent with step 610 in the above embodiment and will not be repeated here.
[0184] Step 720: Determine whether the information notification task in the blockchain has been updated. If so, execute step 730; if not, return to step 710.
[0185] Step 730: Determine whether the update is a deletion of the expired information notification task in the blockchain. If so, execute step 740; if not, execute step 750.
[0186] Step 740: Delete the file corresponding to the expiration information notification task in the client.
[0187] Step 750: Obtain the notification message from the blockchain, decrypt the notification message according to the type of the notification message, execute the decrypted notification message on the client, obtain the operation result information, and send the operation result information to the blockchain for storage.
[0188] In some embodiments of the present application, the type of notification message may be whether the notification message is for a single client or for multiple clients. If the notification message corresponds to a single client, the notification message is decrypted using the client's private key or the proxy node's public key, and then the single client executes the decrypted notification message and sends the operation result information to the blockchain for storage. If the notification message corresponds to multiple clients, the notification message is decrypted using the private keys of the multiple clients or the public keys of the proxy node, and then the multiple clients respectively execute their corresponding notification messages, obtain their corresponding operation result information, and then store their corresponding operation result information in the blockchain.
[0189] The information processing method of the embodiment of the present application can be widely applied to Internet of Things scenarios, such as smart homes, electricity meter reading, and municipal facility management.
[0190] In an embodiment of the present application, the blockchain data cleaning function of the server can keep the overall data scale of the blockchain small, so the block design no longer saves the check tree of the conventional blockchain for verifying the entire block, thereby ensuring that all blocks maintain the full amount of blockchain data and that data is efficiently synchronized in the blockchain network through broadcasting; and the block format specially designed for batch information notification tasks and the parallel support capabilities of blockchain fork nodes achieve the effect of improving the interaction efficiency of information notification tasks.
[0191] In the embodiments of the present application, the technical characteristics of security and information sharing between nodes of the blockchain are utilized to realize batch security authentication between client nodes; through the blockchain data cleaning function, the data volume of the blockchain is maintained at a small scale, and the data consistency capability of the blockchain is utilized to realize the rapid delivery of information notification tasks to the Internet of Things devices (i.e., each client) through the blockchain network broadcast, which solves the problem that the conventional message sending method must use the server to push one by one, and when the system devices (i.e., clients) increase infinitely, the centralized server cannot support it. At the same time, it also solves the problem of security authentication and information interaction efficiency of communication between each Internet of Things terminal (i.e., each client) in the traditional Internet of Things system, and realizes decentralization, solving the bottleneck and resource problems of centralization.
[0192] It should be noted that the information processing method provided in the embodiments of the present application can be executed by an information processing device, or a control module in the information processing device for executing the information processing method.
[0193] Based on the same inventive concept as the above-mentioned information processing method in which the execution subject is a server, the present application also provides an information processing device. Figure 8 The information processing device provided in the embodiments of the present application is described in detail.
[0194] Figure 8 The figure is a schematic structural diagram of an information processing device according to an exemplary embodiment.
[0195] like Figure 8 As shown, the information processing device 800 may include:
[0196] A detection module 810 is configured to detect whether each blockchain fork node in a blockchain has an expired information notification task that has been responded to by a client; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block;
[0197] The deletion module 820 is used to delete the expired information notification task in the target blockchain fork node when it is determined that the target blockchain fork node stores an expired information notification task; wherein the target blockchain fork node is any one of the blockchain fork nodes.
[0198] In an embodiment of the present application, an information notification task to be sent to the client is obtained through an acquisition module; then, based on the information notification task, a detection module detects whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client; based on the deletion module, if it is determined that an expired information notification task is stored in the target blockchain fork node, the expired information notification task is backed up and the expired information notification task in the target blockchain fork node is deleted, thereby maintaining the lightweight of the blockchain and reducing the burden on the blockchain.
[0199] In some embodiments of the present application, in order to improve user experience, the information processing device mentioned above may further include:
[0200] An acquisition module is used to acquire an information notification task, wherein the information notification task is a task for notifying a client of information;
[0201] Correspondingly, the detection module 810 may be specifically configured to:
[0202] Based on the information notification task, it is detected whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client.
[0203] In some embodiments of the present application, the information notification task includes: a client identifier sent to the client, and a notification message sent to the client.
[0204] In some embodiments of the present application, the information processing device mentioned above may further include:
[0205] A construction module, configured to construct a first blockchain fork node corresponding to the information notification task;
[0206] A storage module is used to store the client identifier and the notification message in the first blockchain fork node.
[0207] In some embodiments of the present application, the information processing device mentioned above may further include:
[0208] The second acquisition module is used for the user to acquire the memory information of the information notification task;
[0209] a splitting module, configured to split the information notification task into at least two sub-information notification tasks based on the memory information;
[0210] The construction module can be specifically used to: construct a number of first blockchain fork nodes corresponding to the number of sub-information notification tasks;
[0211] The storage module can be specifically used to: for each of the sub-information notification tasks, store the sub-information notification task and the client identifier in the target first blockchain fork node; wherein the target first blockchain fork node is any one of multiple first blockchain fork nodes.
[0212] In some embodiments of the present application, the storage module may further be used to: encrypt the notification message based on the public key of the client to obtain an encrypted notification message; and store the client identifier and the encrypted notification message in the first blockchain fork node.
[0213] In some embodiments of the present application, the information processing device mentioned above may further include:
[0214] A broadcast module is used to broadcast the information notification task to each client connected to the blockchain based on the blockchain protocol.
[0215] In some embodiments of the present application, the information processing device mentioned above may further include:
[0216] a third acquisition module, configured to acquire attribute information of at least one server and a preset weight of each server; the attribute information including at least: an Internet Protocol address of the server, identification information of the server, and memory information of the server;
[0217] A determination module, configured to determine a target server based on the attribute information of each server and the preset weight;
[0218] The acquisition module can be specifically used to: acquire the information notification task to be sent to the client based on the target server.
[0219] The information processing device provided in the embodiment of the present application can be used to execute the information processing methods provided in the above-mentioned method embodiments with the server as the execution body. Its implementation principles and technical effects are similar, and for the sake of simplicity, they will not be repeated here.
[0220] Based on the same inventive concept as the above-mentioned information processing method with the execution subject being the client, the present application also provides an information processing device. Figure 9 The information processing device provided in the embodiments of the present application is described in detail.
[0221] Figure 9 The figure is a schematic structural diagram of an information processing device according to an exemplary embodiment.
[0222] like Figure 9 As shown, the information processing device 900 may include:
[0223] A monitoring module 910 is configured to monitor information notification tasks in a blockchain; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block;
[0224] An acquisition module 920 is configured to, upon determining that an information notification task in the blockchain has been updated, acquire a notification message corresponding to the client from each blockchain fork node based on the client identifier in each blockchain fork node;
[0225] A determination module 930 is configured to perform an operation corresponding to the notification message based on the notification message and obtain operation result information;
[0226] The storage module 940 is used to store the operation result information in the blockchain.
[0227] In an embodiment of the present application, the information notification task in the blockchain is monitored by the monitoring module. Based on the update of the acquisition module after determining the information notification task in the blockchain, the notification message corresponding to the client can be obtained from each blockchain fork node based on the client identifier in each blockchain fork node. Then, based on the determination module, the operation corresponding to the notification message is executed to obtain the operation result information, and the operation result information is stored in the blockchain based on the storage module, thereby improving the efficiency of the client in receiving the information notification task.
[0228] In some embodiments of the present application, the information processing device mentioned above may further include:
[0229] A decryption module, configured to decrypt the notification message based on a private key of the client;
[0230] The determination module 930 may be specifically configured to: based on the decrypted notification message, execute an operation corresponding to the decrypted notification message to obtain operation result information.
[0231] In some embodiments of the present application, the information processing device mentioned above may further include:
[0232] A deletion module is used to delete the file corresponding to the expiration information notification task in the client when it is determined that the expiration information notification task in the target blockchain fork node in the blockchain is deleted.
[0233] The information processing device provided in the embodiment of the present application can be used to execute the information processing methods provided in the above-mentioned method embodiments with the client as the execution subject. Its implementation principles and technical effects are similar, and for the sake of simplicity, they will not be repeated here.
[0234] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0235] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 10 As shown, the electronic device may include a processor 1001 and a memory 1002 storing computer programs or instructions.
[0236] Specifically, the processor 1001 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0237] The memory 1002 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1002 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 1002 may include removable or non-removable (or fixed) media. Where appropriate, the memory 1002 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1002 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random-access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the information processing methods provided in the above-described embodiments.
[0238] The processor 1001 implements any one of the information processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 1002 .
[0239] In one example, the electronic device may further include a communication interface 1003 and a bus 1010. Figure 10 As shown, the processor 1001, the memory 1002, and the communication interface 1003 are connected via a bus 1010 and communicate with each other.
[0240] The communication interface 1003 is mainly used to implement communication between various modules, devices, units and / or devices in the embodiment of the present invention.
[0241] Bus 1010 comprises hardware, software or both, couples the parts of electronic equipment to each other.For example, and not limitation, bus can comprise accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus 1010 can comprise one or more buses.Although the embodiment of the present invention describes and shows specific bus, the present invention considers any suitable bus or interconnection.
[0242] The electronic device can execute the information processing method in the embodiment of the present invention, thereby realizing the Figure 3 ,as well as Figure 5-Figure 7 An information processing method of any description.
[0243] In addition, in conjunction with the information processing method in the above embodiments, the present invention can provide a readable storage medium for implementation. The readable storage medium stores program instructions; when the program instructions are executed by a processor, any one of the information processing methods in the above embodiments is implemented.
[0244] It should be understood that the present invention is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted. In the above embodiments, several specific steps are described and illustrated as examples. However, the method of the present invention is not limited to the specific steps described and illustrated. Those skilled in the art may make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present invention.
[0245] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in unit, a function card or the like. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0246] It should also be noted that the exemplary embodiments described herein describe methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the steps described above. In other words, the steps may be performed in the order described in the embodiments, or in a different order, or several steps may be performed simultaneously.
[0247] Aspects of the present application have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed via the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. This processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or the flowchart and the combination of the boxes in the block diagram and / or the flowchart can also be implemented by the dedicated hardware that performs the specified function or action, or can be implemented by the combination of dedicated hardware and computer instructions.
[0248] The above description is only a specific embodiment of the present invention. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention.
Claims
1. An information processing method, characterized in that: The method is applied to a server and includes: Acquire memory information of an information notification task, wherein the information notification task includes: a client identifier sent to the client, and a notification message sent to the client; Based on the memory information, split the information notification task into at least two sub-information notification tasks; Constructing a number of first blockchain fork nodes corresponding to the number of the sub-information notification tasks; For each of the sub-information notification tasks, storing the sub-information notification task and the client identifier in a target first blockchain fork node; wherein the target first blockchain fork node is any one of the multiple first blockchain fork nodes; Detecting whether each blockchain fork node in a blockchain has an expired information notification task that has been responded to by a client; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block; If it is determined that an expired information notification task is stored in the target blockchain fork node, deleting the expired information notification task in the target blockchain fork node; The target blockchain fork node is any one of the blockchain fork nodes.
2. The method according to claim 1, characterized in that Before detecting whether each blockchain fork node in the blockchain has an expiration information notification task that has been responded to by the client, the method further includes: Acquire an information notification task, wherein the information notification task is a task for notifying a client of information; The detecting whether each blockchain fork node in the blockchain has an expiration information notification task that has been responded to by the client includes: Based on the information notification task, it is detected whether each blockchain fork node in the blockchain has an expired information notification task that has been responded to by the client.
3. The method according to claim 1, characterized in that Storing the client identifier and the notification message in the first blockchain fork node includes: Encrypting the notification message based on the public key of the client to obtain an encrypted notification message; The client identifier and the encrypted notification message are stored in the first blockchain fork node.
4. The method according to claim 3, characterized in that After storing the client identifier and the notification message in the first blockchain fork node, the method further includes: The information notification task is broadcast to each client node of the blockchain network based on the blockchain protocol.
5. The method according to claim 2, characterized in that Before the information notification task is acquired, the method further includes: Acquire attribute information of at least one server and a preset weight of each server; the attribute information includes at least: an Internet Protocol address of the server and identification information of the server; Determining a target server based on the attribute information of each server and the preset weight; The task of obtaining information notification includes: An information notification task to be sent to the client is obtained based on the target server.
6. An information processing method, characterized in that: The method is applied to a client, and includes: Monitoring information notification tasks in a blockchain; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block. The information notification task in the blockchain is a server that, based on the memory information of the information notification task obtained, splits the information notification task into at least two sub-information notification tasks, and constructs a number of first blockchain fork nodes corresponding to the number of the sub-information notification tasks; for each sub-information notification task, stores the sub-information notification task and the client identifier in a target first blockchain fork node; and when detecting that a target blockchain fork node among the blockchain fork nodes in the blockchain has an expired information notification task that has been responded to by the client, deletes the expired information notification task in the target blockchain fork node; and when determining that there is no expired information notification task in the blockchain, writes the information notification task into the established blockchain fork node; wherein the target first blockchain fork node is any one of the multiple first blockchain fork nodes; When it is determined that the information notification task in the blockchain is updated, based on the client identifier in each blockchain fork node, obtaining a notification message corresponding to the client from each blockchain fork node; Based on the notification message, perform an operation corresponding to the notification message to obtain operation result information; The operation result information is stored in the blockchain.
7. The method according to claim 6, characterized in that Before performing an operation corresponding to the notification message based on the notification message and obtaining operation result information, the method further includes: Decrypting the notification message based on the private key of the client; The performing an operation corresponding to the notification message based on the notification message to obtain operation result information includes: Based on the decrypted notification message, an operation corresponding to the decrypted notification message is performed to obtain operation result information.
8. The method according to claim 6 or 7, characterized in that The method further comprises: When it is determined that the expiration information notification task in the target blockchain fork node in the blockchain is deleted, the file corresponding to the expiration information notification task in the client is deleted.
9. An information processing device, characterized in that The device is applied to a server, and includes: An acquisition module, configured to acquire memory information of an information notification task, wherein the information notification task includes: a client identifier sent to the client, and a notification message sent to the client; a splitting module, configured to split the information notification task into at least two sub-information notification tasks based on the memory information; A construction module, configured to construct a number of first blockchain fork nodes corresponding to the number of sub-information notification tasks; a storage module, configured to store, for each of the sub-information notification tasks, the sub-information notification task and the client identifier in a target first blockchain fork node; wherein the target first blockchain fork node is any one of the plurality of first blockchain fork nodes; a detection module, configured to detect whether each blockchain fork node in a blockchain has an expired information notification task that has been responded to by a client; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block; A deletion module is used to delete the expired information notification task in the target blockchain fork node when it is determined that the target blockchain fork node stores an expired information notification task; wherein the target blockchain fork node is any one of the blockchain fork nodes.
10. An information processing device, characterized in that: The device is applied to a client, and includes: A monitoring module, configured to monitor information notification tasks in a blockchain; wherein the blockchain includes an initial block and multiple blockchain fork nodes, each blockchain fork node corresponds to an information notification task, and each blockchain fork node is connected to the initial block. The information notification task in the blockchain is a server that, based on memory information of the information notification task obtained, splits the information notification task into at least two sub-information notification tasks and constructs a number of first blockchain fork nodes corresponding to the number of the sub-information notification tasks; for each sub-information notification task, stores the sub-information notification task and a client identifier in a target first blockchain fork node; and, if it is detected that a target blockchain fork node among the blockchain fork nodes in the blockchain has an expired information notification task that has been responded to by the client, deletes the expired information notification task in the target blockchain fork node; and if it is determined that there is no expired information notification task in the blockchain, writes the information notification task into the established blockchain fork node; wherein the target first blockchain fork node is any one of the multiple first blockchain fork nodes; an acquisition module configured to, upon determining that an information notification task in the blockchain has been updated, acquire a notification message corresponding to the client from each blockchain fork node based on a client identifier in each blockchain fork node; a determination module, configured to execute an operation corresponding to the notification message based on the notification message, and obtain operation result information; A storage module is used to store the operation result information in the blockchain.
11. An electronic device, characterized in that: The electronic device includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the information processing method according to any one of claims 1 to 5, and / or the information processing method according to any one of claims 6 to 8.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the information processing method according to any one of claims 1 to 5 and / or the information processing method according to any one of claims 6 to 8 is implemented.
13. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the information processing method according to any one of claims 1 to 5, and / or the information processing method according to any one of claims 6 to 8.
Citation Information
Patent Citations
Static resource processing method and device, computer equipment and storage medium
CN113326081A
Method and apparatus for managing effectiveness of information processing task
US20200026552A1