Blockchain computing power supply method and system

By scheduling blockchain servers to provide computing services and adopting strategies to improve computing power or replace servers when server failures, the problem of unstable blockchain computing power obtained by users is solved and ensures that users obtain stable computing power.

CN114048988BActive Publication Date: 2025-04-04卢亮
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111300459.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2025-04-04
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

The blockchain computing power obtained by users is unstable, and the period for obtaining computing power is extended, mainly because the computing service cannot be restored in time when the blockchain server fails.

Method used

Provide a blockchain computing power supply method and system, and dispatches a blockchain server to provide computing services by receiving user computing power purchase requests. When the first blockchain server stops service, it is determined whether its recovery time is less than the preset time threshold. If yes, the server's computing power is increased to compensate for the interruption; if not, the second blockchain server is scheduled to replace the original server to ensure that the user obtains stable computing power.

Benefits of technology

By improving the server's computing power or scheduling the replacement server, we ensure that the user's total service time and the actual total computing power obtained remain unchanged, and the problem that users cannot obtain computing power for a long time due to server failure is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114048988B_ABST
    Figure CN114048988B_ABST
Patent Text Reader

Abstract

The present invention relates to a blockchain computing power supply method and system, the method comprising: receiving a computing power purchase request sent by a user side terminal; generating purchase result data according to the computing power purchase request; scheduling a first blockchain server to provide computing services for the user according to the purchase result data; when the first blockchain server stops the service, start timing to obtain the target duration; determine whether the first blockchain server restarts the service when the target duration is less than a preset duration threshold, and obtain a preset result; when the preset result is yes, correspondingly increase the computing power of the first blockchain server, so that the total service duration of the user and the actual total computing power obtained remain unchanged; when the preset result is no, schedule a second blockchain server to provide computing services for the user. The present invention enables users to obtain stable computing power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of blockchain computing power supply, and in particular to a blockchain computing power supply method and system. Background Art

[0002] Blockchain computing power refers to the computing power of blockchain servers. Currently, due to the high price of blockchain servers, users often rent blockchain servers to obtain blockchain computing power. Currently, when a blockchain server fails, it cannot provide blockchain computing power to users. Users can only wait until the blockchain server is repaired so that it can continue to provide computing power to users, which makes the computing power obtained by users unstable. Summary of the invention

[0003] In view of this, a blockchain computing power supply method and system are provided to solve the problems existing in related technologies that the computing power obtained by users is unstable and the period for users to obtain computing power is extended.

[0004] The present invention adopts the following technical solution:

[0005] In a first aspect, the present invention provides a blockchain computing capacity provision method, comprising:

[0006] Receiving a computing capacity purchase request sent by a user-side terminal;

[0007] Generate purchase result data according to the computing capacity purchase request;

[0008] Scheduling the first blockchain server to provide computing services for the user according to the purchase result data; the number of the first blockchain servers is determined according to the computing power purchased by the user, and when one blockchain server can meet the computing power requirements of the user, the number of the first blockchain servers is one, otherwise, the number of the first blockchain servers is at least two;

[0009] When the first blockchain server stops serving, start timing to obtain the target duration;

[0010] Determine whether the first blockchain server restarts service when the target duration is less than a preset duration threshold, and obtain a preset result;

[0011] When the preset result is yes, the computing power of the first blockchain server is correspondingly increased so that the total service time of the user and the total computing power actually obtained remain unchanged;

[0012] When the preset result is no, scheduling a second blockchain server to provide computing services for the user; the number of the second blockchain servers is the same as that of the first blockchain servers.

[0013] Preferably, the computing power of the first blockchain server is the same as that of the second blockchain server.

[0014] Preferably, the correspondingly improving the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged includes:

[0015] Determine the duration for which the first blockchain server stops service;

[0016] Determine the computing capacity of the interruption of the first blockchain server according to the duration of the first blockchain server stopping service and the standard computing capacity of the first blockchain server;

[0017] Determine the excess computing time and excess computing capacity of the first blockchain server according to the computing capacity of the interruption of the first blockchain server and the duration of the first blockchain server stopping service;

[0018] Control the first blockchain server to run the excess computing time in a state where the output computing power is the excess computing power, and continue to run in a state where the output computing power is the standard computing power, so that the total service time of the user and the total computing power actually obtained remain unchanged.

[0019] Preferably, the calculation formula of the excess computing capacity is as follows:

[0020] Excess computing capacity = 3*standard computing capacity

[0021] The calculation formula for the excess operation time is as follows:

[0022] Excess computing time = 1 / 2 * the time the first blockchain server stops serving.

[0023] Preferably, after generating the purchase result data according to the computing capacity purchase request, the method further includes:

[0024] Feedback purchase result data to the user-side terminal; the purchase result data includes purchase success notification information.

[0025] Preferably, the step of scheduling the first blockchain server to provide computing services to the user according to the purchase result data includes:

[0026] Determining a first blockchain server among multiple preset blockchain servers;

[0027] Establishing a first connection relationship between the first blockchain server and a preset blockchain computing distribution center agent node;

[0028] Based on the first connection relationship, issuing a proof-of-work task to the first blockchain server to schedule the first blockchain server to provide computing services for the user;

[0029] Correspondingly, the scheduling of the second blockchain server to provide computing services for the user includes:

[0030] Determine a second blockchain server from the remaining preset blockchain servers;

[0031] Establishing a second connection relationship between the second blockchain server and the preset blockchain computing distribution center proxy node;

[0032] Based on the second connection relationship, a proof-of-work task is issued to the second blockchain server to schedule the second blockchain server to provide computing services for the user.

[0033] In a second aspect, the present invention further provides a blockchain computing capacity supply system, comprising:

[0034] A module for interacting with a user terminal, used for receiving a computing capacity purchase request sent by the user terminal;

[0035] A user-side terminal data processing module, configured to generate purchase result data according to the computing capacity purchase request;

[0036] a scheduling module, configured to schedule the first blockchain server to provide computing services for the user according to the purchase result data; the number of the first blockchain servers is determined according to the computing power purchased by the user, and when one blockchain server can meet the computing power requirements of the user, the number of the first blockchain servers is one, otherwise, the number of the first blockchain servers is at least two;

[0037] A timing module, used to start timing when the first blockchain server stops serving, and obtain a target duration;

[0038] A judgment module, used to judge whether the first blockchain server restarts the service when the target duration is less than a preset duration threshold, and obtain a preset result;

[0039] A computing power compensation module, used for, when the preset result is yes, correspondingly increasing the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged;

[0040] The computing capacity drift module is used to schedule a second blockchain server to provide computing services to the user when the preset result is no; the number of the second blockchain servers is the same as that of the first blockchain servers.

[0041] Preferably, the blockchain computing capacity supply system of the present invention further includes: a user-side terminal;

[0042] The user-side terminal is used to send the computing capacity purchase request to the module interacting with the user-side terminal.

[0043] The present invention adopts the above technical scheme, a blockchain computing power supply method, including: receiving a computing power purchase request sent by a user side terminal; generating purchase result data according to the computing power purchase request; scheduling a first blockchain server to provide computing services for the user according to the purchase result data; when the first blockchain server stops service, start timing to obtain the target duration; judge whether the first blockchain server restarts service when the target duration is less than the preset duration threshold, and obtain a preset result; when the preset result is yes, the computing power of the first blockchain server is correspondingly increased so that the total service duration of the user and the actual total computing power obtained remain unchanged; when the preset result is no, the second blockchain server is scheduled to provide computing services for the user. Based on this, when the blockchain server stops service, the present invention increases the output computing power of the blockchain server to compensate for the interrupted computing power when the blockchain server stops service for a short period of time, and when the blockchain server stops service for a long period of time, schedules other blockchain servers to replace the original server to avoid the user being unable to obtain computing power for a long time. Finally, users can obtain stable computing power. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is a flowchart of a blockchain computing capacity provision method provided by an embodiment of the present invention;

[0046] Figure 2 It is a structural diagram of a blockchain computing capacity provisioning system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0048] Figure 1 It is a flowchart of a blockchain computing capacity provision method provided by an embodiment of the present invention.

[0049] like Figure 1 As shown, the blockchain computing capacity supply method of this embodiment includes:

[0050] S101, receiving a computing capacity purchase request sent by a user terminal;

[0051] S102, generating purchase result data according to the computing capacity purchase request;

[0052] S103, scheduling a first blockchain server to provide computing services for the user according to the purchase result data; the number of the first blockchain servers is determined according to the computing power purchased by the user, and when one blockchain server can meet the computing power requirements of the user, the number of the first blockchain servers is one, otherwise, the number of the first blockchain servers is at least two;

[0053] S104. When the first blockchain server stops serving, start timing to obtain a target duration;

[0054] S105. When the target duration is less than a preset duration threshold, determine whether the first blockchain server restarts the service, and obtain a preset result; when the preset result is yes, execute step S106; otherwise, execute step S107;

[0055] S106. Correspondingly increase the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged;

[0056] S107: Scheduling a second blockchain server to provide computing services for the user; the number of the second blockchain servers is the same as that of the first blockchain servers.

[0057] Specifically, when the user purchases more computing power, one blockchain server cannot meet the user's needs. At this time, multiple blockchain servers are defined to provide computing power to the user; when the user purchases less computing power, one blockchain server can meet the user's needs. At this time, one blockchain server is defined to provide computing power to the user.

[0058] The purchase result data includes purchase contract data. When there is a power outage or a failure of the first blockchain server, the first blockchain server stops serving the user. The preset duration threshold can be freely set by the user according to actual needs. When the duration of the first blockchain server stopping service is less than or equal to the preset duration threshold, that is, the first blockchain server only stops service for a short period of time, in this case, a method of increasing the computing power of the first blockchain server and keeping the total service time of the user and the total computing power actually obtained unchanged is adopted; when the duration of the first blockchain server stopping service is greater than the preset duration threshold, that is, the first blockchain server has not resumed service for a long time, in this case, a method of scheduling other blockchain servers to replace the original first blockchain server is adopted. In this way, it is ensured that users can obtain stable computing power, and the purpose of users flexibly adjusting the method of providing computing power according to the failure of the blockchain server is met.

[0059] This embodiment adopts the above technical solution, a blockchain computing power supply method, including: receiving a computing power purchase request sent by a user-side terminal; generating purchase result data according to the computing power purchase request; scheduling a first blockchain server to provide computing services for the user according to the purchase result data; when the first blockchain server stops service, start timing to obtain the target duration; determine whether the first blockchain server restarts service when the target duration is less than the preset duration threshold, and obtain a preset result; when the preset result is yes, the computing power of the first blockchain server is correspondingly increased so that the total service duration of the user and the total computing power actually obtained remain unchanged; when the preset result is no, the second blockchain server is scheduled to provide computing services for the user. Based on this, when the blockchain server stops service, when the blockchain server stops service for a short period of time, the output computing power of the blockchain server is increased to compensate for the interrupted computing power, and when the blockchain server stops service for a long time, other blockchain servers are scheduled to replace the original server to avoid the user being unable to obtain computing power for a long time. Finally, users can obtain stable computing power.

[0060] Preferably, the computing power of the first blockchain server is the same as that of the second blockchain server, so as to further ensure the stability of the computing power obtained by the user.

[0061] Preferably, the correspondingly improving the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged includes:

[0062] Determine the duration for which the first blockchain server stops service;

[0063] Determine the computing capacity of the interruption of the first blockchain server according to the duration of the first blockchain server stopping service and the standard computing capacity of the first blockchain server;

[0064] Determine the excess computing time and excess computing capacity of the first blockchain server according to the computing capacity of the interruption of the first blockchain server and the duration of the first blockchain server stopping service;

[0065] Control the first blockchain server to run the excess computing time in a state where the output computing power is the excess computing power, and continue to run in a state where the output computing power is the standard computing power, so that the total service time of the user and the total computing power actually obtained remain unchanged.

[0066] In a specific example, the duration of the first blockchain server's outage is S, and the standard computing capacity of the first blockchain server is T, then the interrupted computing capacity is S*T. In order to compensate for the interrupted computing capacity in a short time, the excess computing time of the first blockchain server is made 1 / 2*the duration of the first blockchain server's outage, and then the excess computing capacity of the first blockchain server is calculated to be 3*standard computing capacity, that is, the calculation formula of the excess computing capacity is as follows:

[0067] Excess computing capacity = 3*standard computing capacity

[0068] The calculation formula for the excess operation time is as follows:

[0069] Excess computing time = 1 / 2 * the time the first blockchain server stops serving

[0070] Preferably, after generating the purchase result data according to the computing power purchase request, the blockchain computing power supply method of this embodiment further includes:

[0071] Feedback the purchase result data to the user side terminal; the purchase result data includes purchase success notification information. In this way, it is convenient for the user to know the purchase result through the information displayed on the user side terminal.

[0072] Preferably, the step of scheduling the first blockchain server to provide computing services to the user according to the purchase result data includes:

[0073] Determining a first blockchain server among multiple preset blockchain servers;

[0074] Establishing a first connection relationship between the first blockchain server and a preset blockchain computing distribution center agent node;

[0075] Based on the first connection relationship, issuing a proof-of-work task to the first blockchain server to schedule the first blockchain server to provide computing services for the user;

[0076] Correspondingly, the scheduling of the second blockchain server to provide computing services for the user includes:

[0077] Determine a second blockchain server from the remaining preset blockchain servers;

[0078] Establishing a second connection relationship between the second blockchain server and the preset blockchain computing distribution center proxy node;

[0079] Based on the second connection relationship, a proof-of-work task is issued to the second blockchain server to schedule the second blockchain server to provide computing services for the user.

[0080] In detail, the number of multiple preset blockchain servers can be two or more than two. After the purchase result data is determined, the preset scheduling center first determines the first blockchain server among the multiple preset blockchain servers, and then establishes a TCP long connection, i.e., a first connection relationship, between the first blockchain server and the preset blockchain computing distribution center agent node. Then, the blockchain computing distribution center issues a proof-of-work task to the preset blockchain computing distribution center agent node through the first connection relationship, and the preset blockchain computing distribution center agent node distributes the proof-of-work subtask to the first blockchain server according to the proof-of-work task, so as to schedule the first blockchain server to provide computing services to the user. The process of scheduling the second blockchain server to provide computing services to the user is similar.

[0081] Based on a general inventive concept, the present invention also provides a blockchain computing power supply system. Figure 2 Schematic diagram of a blockchain computing power supply system provided by an embodiment of the present invention. The blockchain computing power supply system of this embodiment is used to implement the blockchain computing power supply method of the above embodiment. Figure 2 As shown, the blockchain computing power supply system of this embodiment includes: a user-side terminal interaction module 21, a user-side terminal data processing module 22, a scheduling module 23, a timing module 24, a judgment module 25, a computing power compensation module 26 and a computing power drift module 27.

[0082] Among them, the user-side terminal interaction module 21 is used to receive the computing power purchase request sent by the user-side terminal; the user-side terminal data processing module 22 is used to generate purchase result data according to the computing power purchase request; the scheduling module 23 is used to schedule the first blockchain server to provide computing services for the user according to the purchase result data; the number of the first blockchain servers is determined according to the computing power purchased by the user. When one blockchain server can meet the computing power requirements of the user, the number of the first blockchain servers is one, otherwise, the number of the first blockchain servers is at least two; the timing module 24 is used to start timing when the first blockchain server stops serving and obtain the target duration; the judgment module 25 is used to judge whether the first blockchain server restarts the service when the target duration is less than the preset duration threshold and obtain the preset result; the computing power compensation module 26 is used to correspondingly increase the computing power of the first blockchain server when the preset result is yes, so that the total service time of the user and the actual total computing power obtained remain unchanged; the computing power drift module 27 is used to schedule the second blockchain server to provide computing services for the user when the preset result is no; the number of the second blockchain servers is the same as that of the first blockchain server.

[0083] The computing power of the first blockchain server is the same as that of the second blockchain server.

[0084] Preferably, the computing capacity compensation module 26 is specifically used to implement the following method:

[0085] Determine the duration for which the first blockchain server stops service;

[0086] Determine the computing capacity of the interruption of the first blockchain server according to the duration of the first blockchain server stopping service and the standard computing capacity of the first blockchain server;

[0087] Determine the excess computing time and excess computing capacity of the first blockchain server according to the computing capacity of the interruption of the first blockchain server and the duration of the first blockchain server stopping service;

[0088] Control the first blockchain server to run the excess computing time in a state where the output computing power is the excess computing power, and continue to run in a state where the output computing power is the standard computing power, so that the total service time of the user and the total computing power actually obtained remain unchanged.

[0089] The calculation formula of the excess computing capacity is as follows:

[0090] Excess computing capacity = 3*standard computing capacity

[0091] The calculation formula for the excess operation time is as follows:

[0092] Excess computing time = 1 / 2 * the time the first blockchain server stops serving.

[0093] Preferably, the blockchain computing capacity supply method of this embodiment further includes: a notification module, used to feed back purchase result data to the user-side terminal; the purchase result data includes purchase success notification information.

[0094] Preferably, the scheduling module 23 is specifically used to implement the following method:

[0095] Determining a first blockchain server among multiple preset blockchain servers;

[0096] Establishing a first connection relationship between the first blockchain server and a preset blockchain computing distribution center agent node;

[0097] Based on the first connection relationship, issuing a proof-of-work task to the first blockchain server to schedule the first blockchain server to provide computing services for the user;

[0098] And used to implement the following methods:

[0099] Determine a second blockchain server from the remaining preset blockchain servers;

[0100] Establishing a second connection relationship between the second blockchain server and the preset blockchain computing distribution center proxy node;

[0101] Based on the second connection relationship, a proof-of-work task is issued to the second blockchain server to schedule the second blockchain server to provide computing services for the user.

[0102] Preferably, the blockchain computing capacity provisioning system of this embodiment further includes: a user-side terminal;

[0103] The user-side terminal is used to send the computing capacity purchase request to the module interacting with the user-side terminal.

[0104] It should be noted that the blockchain computing power supply system of this embodiment and the blockchain computing power supply method of the above-mentioned embodiment are based on a general inventive concept, have the same or corresponding execution process and beneficial effects, and will not be repeated here.

[0105] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0106] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0107] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0108] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0109] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0110] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0111] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0112] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0113] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A blockchain computing capacity supply method, characterized in that: include: Receiving a computing capacity purchase request sent by a user-side terminal; Generate purchase result data according to the computing capacity purchase request; Scheduling the first blockchain server to provide computing services for the user according to the purchase result data; the number of the first blockchain servers is determined according to the computing power purchased by the user, and when one blockchain server can meet the computing power requirements of the user, the number of the first blockchain servers is one, otherwise, the number of the first blockchain servers is at least two; When the first blockchain server stops serving, start timing to obtain the target duration; Determine whether the first blockchain server restarts service when the target duration is less than or equal to a preset duration threshold, and obtain a preset result; When the preset result is yes, the computing power of the first blockchain server is correspondingly increased so that the total service time of the user and the total computing power actually obtained remain unchanged; The corresponding increase in the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged, includes: determining the duration of the first blockchain server stopping service; determining the computing power of the first blockchain server being interrupted according to the duration of the first blockchain server stopping service and the standard computing power of the first blockchain server; determining the excess computing time and excess computing power of the first blockchain server according to the computing power of the first blockchain server being interrupted and the duration of the first blockchain server stopping service; controlling the first blockchain server to operate the excess computing time in a state where the output computing power is the excess computing power, and continuing to operate in a state where the output computing power is the standard computing power, so that the total service time of the user and the total computing power actually obtained remain unchanged; When the preset result is no, scheduling a second blockchain server to provide computing services for the user; the number of the second blockchain servers is the same as that of the first blockchain servers.

2. The blockchain computing capacity supply method according to claim 1, characterized in that: The computing power of the first blockchain server is the same as that of the second blockchain server.

3. The blockchain computing capacity supply method according to claim 1, characterized in that: The calculation formula of the excess computing capacity is as follows: Excess computing capacity = 3*standard computing capacity The calculation formula for the excess operation time is as follows: Excess computing time = 1 / 2 * the time the first blockchain server stops serving.

4. The blockchain computing capacity supply method according to claim 1, characterized in that: After generating the purchase result data according to the computing capacity purchase request, the method further includes: Feedback purchase result data to the user-side terminal; the purchase result data includes purchase success notification information.

5. The blockchain computing capacity supply method according to claim 1, characterized in that: The step of scheduling the first blockchain server to provide computing services to the user according to the purchase result data includes: Determining a first blockchain server among multiple preset blockchain servers; Establishing a first connection relationship between the first blockchain server and a preset blockchain computing distribution center agent node; Based on the first connection relationship, issuing a proof-of-work task to the first blockchain server to schedule the first blockchain server to provide computing services for the user; Correspondingly, the scheduling of the second blockchain server to provide computing services for the user includes: Determine a second blockchain server from the remaining preset blockchain servers; Establishing a second connection relationship between the second blockchain server and the preset blockchain computing distribution center proxy node; Based on the second connection relationship, a proof-of-work task is issued to the second blockchain server to schedule the second blockchain server to provide computing services for the user.

6. A blockchain computing capacity supply system, characterized in that: include: A module for interacting with a user terminal, used for receiving a computing capacity purchase request sent by the user terminal; A user-side terminal data processing module, configured to generate purchase result data according to the computing capacity purchase request; a scheduling module, configured to schedule the first blockchain server to provide computing services for the user according to the purchase result data; the number of the first blockchain servers is determined according to the computing power purchased by the user, and when one blockchain server can meet the computing power requirements of the user, the number of the first blockchain servers is one, otherwise, the number of the first blockchain servers is at least two; A timing module, used to start timing when the first blockchain server stops serving, and obtain a target duration; A judgment module, used to judge whether the first blockchain server restarts the service when the target duration is less than or equal to a preset duration threshold, and obtain a preset result; A computing power compensation module, used for, when the preset result is yes, correspondingly increasing the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged; The corresponding increase in the computing power of the first blockchain server so that the total service time of the user and the total computing power actually obtained remain unchanged, includes: determining the duration of the first blockchain server stopping service; determining the computing power of the first blockchain server being interrupted according to the duration of the first blockchain server stopping service and the standard computing power of the first blockchain server; determining the excess computing time and excess computing power of the first blockchain server according to the computing power of the first blockchain server being interrupted and the duration of the first blockchain server stopping service; controlling the first blockchain server to operate the excess computing time in a state where the output computing power is the excess computing power, and continuing to operate in a state where the output computing power is the standard computing power, so that the total service time of the user and the total computing power actually obtained remain unchanged; The computing capacity drift module is used to schedule a second blockchain server to provide computing services to the user when the preset result is no; the number of the second blockchain servers is the same as that of the first blockchain servers.

7. The blockchain computing capacity supply system according to claim 6, characterized in that: Also includes: User side terminal; The user-side terminal is used to send the computing capacity purchase request to the module interacting with the user-side terminal.

Citation Information

Patent Citations

  • Method and device for switching processing of main node in block chain system

    CN110351133A