CN109410050B - Ore digging time consumption correction method, device and storage medium - Google Patents

Ore digging time consumption correction method, device and storage medium Download PDF

Info

Publication number
CN109410050B
CN109410050B CN201811133671.XA CN201811133671A CN109410050B CN 109410050 B CN109410050 B CN 109410050B CN 201811133671 A CN201811133671 A CN 201811133671A CN 109410050 B CN109410050 B CN 109410050B
Authority
CN
China
Prior art keywords
time length
average
mining
duration
calculating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811133671.XA
Other languages
Chinese (zh)
Other versions
CN109410050A (en
Inventor
吴思进
王志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201811133671.XA priority Critical patent/CN109410050B/en
Publication of CN109410050A publication Critical patent/CN109410050A/en
Application granted granted Critical
Publication of CN109410050B publication Critical patent/CN109410050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention provides a method and a system for correcting the time consumption of ore digging, wherein the method comprises the following steps: calculating a first average time length according to each first time length consumed by excavation of the first right of the mortgage for N times; calculating the average value of the first average duration of each first interest in the block chain network to obtain a second average duration; judging whether the difference value between the second average time length and the first average time length accords with a pre-configured first condition: if yes, calculating the complementary time length according to the difference value and a first formula; and configuring the freezing time of the next ore digging of the first interest according to the complementing time. The method corrects or partially corrects partial cheating of miners or improves the probability of the mining right obtained by the mining qualification with the unit of 1 by using methods such as system bug and the like, and provides better user experience for other miners.

Description

Ore digging time consumption correction method, device and storage medium
Technical Field
The application relates to the technical field of internet finance, in particular to a mining time-consuming correction method, mining time-consuming correction equipment and a storage medium.
Background
In the existing block chain technology, for example, in a block chain network where certain encryption currency is located, nodes of the whole network participate in competition of mining rights together, compared with miners with less rights and interests, miners with more rights and interests can obtain the mining rights more easily, the nodes which successfully grab the mining rights are responsible for mining, and account book information is synchronized to the whole network; as the return of ore excavation, miners in charge of ore excavation obtain a certain amount of certain encrypted currency newly generated by the system as rewards; every time a miner mortises a certain amount of rights and benefits, the mining qualification with the unit of 1 can be obtained, and the probability that the mining qualification with the unit of 1 obtains the mining right is the same, namely if the mining qualification held by the whole network nodes in the block chain network is the same, the probability that the whole network nodes obtain the mining right is considered to be the same.
In the block chain network, if part of miners greatly shorten the time consumed for mining through cheating or a method of utilizing system bug and the like, so that the probability of obtaining the mining right by the mining qualification with the unit of 1 is improved, and the probability of obtaining the mining right by other nodes is indirectly reduced.
Disclosure of Invention
In view of the above-mentioned drawbacks or deficiencies in the prior art, it is desirable to provide a mining time-consuming modification method, apparatus and storage medium that corrects or partially corrects partial mining cheating or improves the probability of obtaining mining rights by using a system bug or the like to improve mining qualification in units of 1.
In a first aspect, the present invention provides a method for correcting mining time consumption, including:
calculating a first average time length according to each first time length consumed by excavation of the first right of the mortgage for N times; if the first time length is smaller than the preconfigured minimum time length, taking the minimum time length as the first time length, and N is a positive integer;
calculating the average value of the first average duration of each first interest in the block chain network to obtain a second average duration;
judging whether the difference value between the second average time length and the first average time length accords with a pre-configured first condition: if yes, calculating the complementary time length according to the difference value and a first formula;
and configuring the freezing time of the next ore excavation of the first interest according to the complementing time, wherein the freezing time is used for configuring the first average time of the next ore excavation of the first interest.
In a second aspect, the present invention provides an excavation time-consuming correction system, including:
the first average duration calculation unit is configured to calculate a first average duration according to each first duration consumed by the N times of excavation of the first equity of the mortgage; if the first time length is smaller than the preconfigured minimum time length, taking the minimum time length as the first time length, and N is a positive integer;
the second average duration calculation unit is configured to calculate the average value of the first average durations of the first rights and interests in the block chain network to obtain a second average duration;
a judging unit configured to judge whether a difference between the second average duration and the first average duration meets a preconfigured first condition: if yes, calculating the complementary time length according to the difference value and a first formula;
and the freezing duration configuration unit is used for configuring the freezing duration of the next ore excavation of the first interest according to the complementing duration, wherein the freezing duration is used for configuring the first average duration of the next ore excavation of the first interest.
In a third aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a method of correcting mining time consumption according to embodiments of the present invention.
In a fourth aspect, the present invention also provides a storage medium storing a computer program for causing a computer to execute the method for correcting a mining elapsed time according to the embodiments of the present invention.
According to the method, the device and the storage medium for correcting the ore excavation time consumption, which are provided by the embodiments of the invention, the first average time length is calculated according to each first time length consumed by the excavation of the first right of the mortgage for N times; if the first time length is smaller than the preconfigured minimum time length, taking the minimum time length as the first time length, and N is a positive integer; calculating the average value of the first average duration of each first interest in the block chain network to obtain a second average duration; judging whether the difference value between the second average time length and the first average time length accords with a pre-configured first condition: if yes, calculating the complementary time length according to the difference value and a first formula; and configuring the freezing time of the next ore excavation according to the complementing time, wherein the freezing time is used for configuring the first average time of the next ore excavation of the first interest, correcting or partially correcting the problem of probability of the ore excavation right obtained by improving the ore excavation qualification with the unit of 1 by methods such as system bug and the like, and providing better user experience for other miners.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic diagram of another mining time consumption correction scenario according to an embodiment of the present invention.
Fig. 2 is a flowchart of another method for correcting mining excavation time according to an embodiment of the present invention.
FIG. 3 is a flow chart of a preferred embodiment of the method shown in FIG. 2.
Fig. 4 is a flowchart of step S15 in a preferred embodiment of the method shown in fig. 2.
Fig. 5 is a schematic structural diagram of a mining-time-consumption correction system according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The invention provides a plurality of solutions for correcting the mining time consumption, in a block chain system applied to the solution, the time length of mining qualification consumption depends on the time point of mining qualification generation and the time point of mining qualification ending, and a first contract is configured with a time monitoring program for monitoring the time point of mining qualification generation and the time point of mining qualification ending; the time point when the first contract issues the mining qualification into the account of the user is the time point when the mining qualification is generated, and the time point when the node obtains the mining right generation block is the time point when the mining qualification is finished.
The mining qualification generation method comprises the following steps: the first contract distributes ore digging qualification with the number corresponding to the plurality of the mortgages for the user according to the plurality of the mortgages of the user through the client and the exchange proportion of the pre-configured equits and the ore digging qualification, and the ore digging qualification with the corresponding number is distributed to the account of the user.
Fig. 1 is a schematic diagram of a mining time consumption correction scenario according to an embodiment of the present invention. As shown in fig. 1, the right a, the right B, the right C, the right D, and the right E are taken as the rights in the block chain network, and the first average time lengths of the right B, the right C, the right D, and the right E are the same; the first average time length of the right interest A is smaller than the second average time length, the difference value between the second average time length and the first average time length meets the preconfigured first condition, and the complementary time length needs to be calculated as an example, so that another ore excavation time consumption correction scheme is explained in detail.
Fig. 2 is a flowchart of a method for correcting mining excavation time according to an embodiment of the present invention. As shown in fig. 2, in this embodiment, the present invention provides another method for correcting mining time consumption, including:
s13: calculating a first average time length according to each first time length consumed by excavation of the first right of the mortgage for N times; if the first time length is smaller than the preconfigured minimum time length, taking the minimum time length as the first time length, and N is a positive integer;
s14: calculating the average value of the first average duration of each first interest in the block chain network to obtain a second average duration;
s15: judging whether the difference value between the second average time length and the first average time length accords with a pre-configured first condition: if yes, calculating the complementary time length according to the difference value and a first formula;
s16: and configuring the freezing time of the next ore excavation of the first interest according to the complementing time, wherein the freezing time is used for configuring the first average time of the next ore excavation of the first interest.
Specifically, taking the scenario shown in fig. 1 as an example, assuming that N is 3, the preconfigured minimum duration is 48 hours, the preconfigured first condition is that a difference between the second average duration and the first average duration is greater than 5 hours, the complementary duration is a difference between the second average duration and the first average duration, and the next several times of ore excavation is next ore excavation and the freezing duration is a duration 1.1 times the complementary duration; the first average time length of the right A is 50 hours, the first average time lengths of the right B, the right C, the right D and the right E are all 60 hours, and the first time lengths of the right B, the right C, the right D and the right E are all larger than the preset minimum time length.
In step S13, the first contract calculates a first average duration according to each first duration consumed by the first equity N mining of the mortgage (for example, the first durations of 3 times of the equity a are respectively 30 hours, 50 hours and 52 hours, the preconfigured minimum duration is 48 hours, and then the first average duration of the equity a is
Figure BDA0001814194460000051
Hours, the first average duration of the equity B, equity C, equity D, equity E is 60 hours);
in step S14, the first contract calculates an average of first average durations of the first benefits in the blockchain network to obtain a second average duration, where the second average duration is
Figure BDA0001814194460000052
Calculating the average value of the first average duration of each first interest in the block chain network to obtain a second average duration, wherein the second average duration is
Figure BDA0001814194460000053
Hours;
in step S15, the first contract determines whether the difference between the second average duration and the first average duration meets a preconfigured first condition: if yes, calculating the complementary time length according to the difference value and a first formula; because the second average time length is 58 hours, the first average time length of the right interest A is 50 hours, and the difference value between the second average time length and the first average time length of the right interest A is 8 hours, the pre-configured first condition is met (the pre-configured first condition is that the difference value between the second average time length and the first average time length is more than 5 hours), and the complementing time length is calculated according to a first formula; the complementing time length is the difference value between the second average time length and the first average time length, so that the complementing time length of the node A is calculated to be 8 hours;
in step S16, the first contract configures a freezing time period for the next ore excavation of the first interest according to the replenishment time period; since the replenishment time period is 8 hours, the next several times of ore excavation is the next time of ore excavation, and the freezing time period is 1.1 times of the replenishment time period, the freezing time period consumed by the next 3 dry times of ore excavation qualification configuring the right a is 8 × 1.1-8.8 hours.
The above example takes the scenario shown in fig. 1, where N is 3, the preconfigured minimum duration is 48 hours, the preconfigured first condition is that a difference between the second average duration and the first average duration is greater than 5 hours, the complementary duration is a difference between the second average duration and the first average duration, and the freezing duration is a duration 1.1 times the complementary duration; the method shown in fig. 1 is exemplarily illustrated in that the first average time duration of the interest a is 50 hours, the first average time durations of the interest B, the interest C, the interest D, and the interest E are all 60 hours, and each of the first time durations of the interest B, the interest C, the interest D, and the interest E is greater than the preconfigured minimum time duration, in further embodiments, the preconfigured minimum time duration may be configured to any different time duration within a reasonable range (e.g., 40 hours, 50 hours, 60 hours, etc.), the preconfigured first condition may be configured to be a ratio of the difference to the first average time duration, a ratio of the difference to the second average time duration, or other manners, the preconfigured-compliant first condition may be configured to be greater than a preconfigured fixed value (e.g., 5 hours) or greater than a floating value (e.g., a time duration derived according to an algorithm), and, the same technical effect can be achieved by configuring the complementary time period as a multiple of the difference (e.g., 1.2 times the difference) or adding a fixed value to the difference.
The above embodiment provides an ore drawing time-consuming correction method for correcting part of cheating by an ore drawing worker or improving the probability of obtaining the ore drawing right by the ore drawing qualification with the unit of 1 by using a method such as system bug.
FIG. 3 is a flow chart of a preferred embodiment of the method shown in FIG. 2. As shown in fig. 3, in a preferred embodiment, step S13 is preceded by:
s11: according to a plurality of rights and interests of a user mortgage through a client and a pre-configured exchange ratio of the rights and interests to mine digging qualifications, allocating mine digging qualifications with the number corresponding to the rights and interests of the mortgage to the user, and distributing the mine digging qualifications with the corresponding number to an account of the user, wherein one mine digging qualification is consumed each time mine digging is performed;
s12: and storing the corresponding relation between the mining qualification and the account into the block chain.
Specifically, assuming that the rights and interests are certain encrypted currency Y, the conversion ratio of the preconfigured rights and interests to the ore digging qualification is 10000 (one encrypted currency Y):1 (one ore digging qualification), the user mortgage the 10000 coins and the encrypted currency Y through the client side to obtain the ore digging qualification, and the corresponding relation between the ore digging qualification and the account is a random number corresponding to the ore digging qualification and a public key address of the account;
in step S11, the first contract allocates 1 mining qualification to the user according to 10000 coins and a certain encryption currency Y which are mortgage by the user through the client and a pre-configured exchange ratio of rights and interests to the mining qualification of 10000:1, and issues the 1 mining qualification to the account of the user;
in step S12, a first contract stores into a blockchain a mapping of mining qualifications to accounts.
In the embodiment, the rights and interests are certain encrypted currency Y, the conversion ratio of the preconfigured rights and interests to the mining qualification is 10000 (a currency and certain encrypted currency Y):1 (a mining qualification), the corresponding relation between the mining qualification and the account is the random number of the mining qualification and the public key address of the account, the embodiment is described, in further embodiments, the rights and interests can be configured into gold, silver and any assets capable of conducting standardized transactions according to actual requirements, the conversion ratio is configured into different amount ratios, the corresponding relation between the mining qualification and the account is configured into parameters such as the random number of the mining qualification and the id of the account, and the like, which can prove the mining qualification and the identity of the account, and the same technical effects can be achieved.
Fig. 4 is a flowchart of step S15 in a preferred embodiment of the method shown in fig. 2. As shown in fig. 4, in a preferred embodiment, step S15 includes:
s151: calculating the difference value between the second average time length and the first average time length;
s153: judging whether the first ratio is larger than a pre-configured first threshold value, if so, calculating the complementary time length according to a first formula; wherein the first ratio is a ratio of the difference to the second average duration.
Specifically, taking the scenario shown in fig. 1 as an example, the second average duration is 58 hours, the first average duration of the benefit a is 50 hours, the first ratio is a ratio of the difference to the second average duration, and the preconfigured first threshold is 10%;
in step S151, the first contract calculates a difference between the second average duration and the first average duration; since the second average time period is 58 hours and the first average time period of the benefit a is 50 hours, the difference is calculated to be 8 hours;
in step S253, the first contract determines whether the first ratio is greater than a preconfigured first threshold, calculates the first ratio as (58-50) ÷ 58 ═ 13.79%, and is greater than the preconfigured first threshold by 10%, and calculates the complementary time period according to a first formula.
In more embodiments, the first ratio may be configured to be a fixed value according to actual requirements, and the same technical effect may be achieved.
In a preferred embodiment, the first ratio is calculated by: :
Figure BDA0001814194460000071
wherein, R is the first ratio, M is the total number of the first nodes in the blockchain network, old1、old2、old3…oldMFor each of said first total durations; the specific calculation method of the first ratio is the same as the step S153 in the distribution shown in fig. 4, and is not described herein again.
In a preferred embodiment, the complementary duration is calculated by:
Figure BDA0001814194460000072
Figure BDA0001814194460000073
wherein, new1For the complement duration, M is the total number of the first nodes in the blockchain network, old1、old2、old3…oldMC is a pre-configured difficulty coefficient for each first total time length; taking the second average time length as 58 hours, the first average time length of the benefit a as 50 hours, the difference between the second average time length and the first average time length meeting the preconfigured first condition, and C as 0.8 as an example, the complementary time length is calculated to be 0.8 × (5850) ═ 6.4 hours.
In a preferred embodiment, step S16 is followed by:
the first contract repeats steps S13 through S16 until:
judging whether the difference value between the second average time length and the first average time length accords with a pre-configured first condition: and no.
Specifically, for example, the freezing time period of the right interest a is 6.4 hours, the second average time period of the next ore excavation of the right interest a is 58 hours, the first average time period of the next ore excavation of the right interest a is 56.4 hours, and the preconfigured first condition is that the difference between the second average time period and the first average time period is greater than 5 hours; and calculating to obtain the difference value between the first average time length of next ore excavation of the right interest A and the first average time length of next ore excavation of the right interest A, which is 1.6 hours and is less than 5 hours of pre-configuration, and ending the method.
Fig. 5 is a schematic structural diagram of a mining-time-consumption correction system according to an embodiment of the present invention. The system shown in fig. 5 may perform any of the methods shown in fig. 2-4, respectively. As shown in fig. 5, the present invention provides an excavation time-consuming correcting system 10, which includes a first average duration calculating unit 101, a second average duration calculating unit 102, a judging unit 103, and a freezing duration configuring unit 104.
The first average duration calculation unit 101 is configured to calculate a first average duration according to each first duration consumed by the N-times excavation of the first equity of the mortgage; if the first time length is smaller than the preconfigured minimum time length, taking the minimum time length as the first time length, and N is a positive integer;
the second average duration calculation unit 102 is configured to calculate an average value of first average durations of the first rights and interests in the block chain network to obtain a second average duration;
the determining unit 103 is configured to determine whether a difference between the second average duration and the first average duration meets a preconfigured first condition: if yes, calculating the complementary time length according to the difference value and a first formula;
the freezing duration configuration unit 104 is configured to configure a freezing duration of a next ore excavation of the first interest according to the replenishment duration, where the freezing duration is used to configure a first average duration of the next ore excavation of the first interest.
In a preferred embodiment, the system further comprises a mining eligibility assignment unit and a corresponding relationship storage relationship unit. The mining qualification allocation unit is configured to allocate mining qualifications with the number corresponding to the plurality of mortgages of the mortgage to the user according to the plurality of equits of the mortgage of the user through the client and the exchange ratio of the preconfigured equity and the mining qualification, and allocate the mining qualifications with the corresponding number to an account of the user, wherein one mining qualification is consumed each time the mine is excavated; the corresponding relation storage relation unit is configured to store the corresponding relation between the mining qualification and the account into the block chain.
In a preferred embodiment, the determining unit 103 further comprises a difference value operator unit and a determining subunit. The difference value calculating subunit is configured to calculate a difference value between the second average duration and the first average duration; the judgment subunit is configured to judge whether the first ratio is greater than a preconfigured first threshold, and if yes, calculate a complementary time length according to the difference and a first formula; wherein the first ratio is a ratio of the difference to the second average duration.
In a preferred embodiment, the first ratio is calculated by:
Figure BDA0001814194460000091
wherein, R is a first ratio, M is a total number of first nodes in the blockchain network, old1、old2、old3…oldMFor each first total duration.
In a preferred embodiment, the complementary duration is calculated by:
Figure BDA0001814194460000092
Figure BDA0001814194460000093
wherein, new1For the duration of the complement, M is the total number of the first nodes in the block chain network, old1、old2、old3…oldMFor each first total length, C is a preconfigured difficulty factor.
In a preferred embodiment, the system further comprises a circulation unit. The circulation unit is configured to circulate any of the methods shown in fig. 2-4 until:
judging whether the difference value between the second average time length and the first average time length accords with a pre-configured first condition: and no.
The above-mentioned mining-time-consumption correction principle of each system shown in fig. 5 can refer to the method shown in fig. 2-4, and will not be described herein again.
Fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 6, as another aspect, the present application also provides an apparatus 600 including one or more Central Processing Units (CPUs) 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the apparatus 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the mining elapsed time correction method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a method of mining time-consuming corrections. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the method for correcting mining time described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (7)

1. A mining elapsed time correction method is characterized in that a first contract is configured for a block chain node, the method is suitable for the block chain node, and the method comprises the following steps:
calculating a first average time length according to each first time length consumed by excavation for N times of the first right of the mortgage through the first contract; if the first time length is less than a preset minimum time length, taking the minimum time length as the first time length, wherein N is a positive integer;
calculating the average value of the first average duration of each first interest in the block chain network through the first contract to obtain a second average duration;
judging whether the difference value of the second average time length and the first average time length meets a preconfigured first condition or not through the first contract: if yes, calculating the complementary time length according to the difference value and a first formula;
configuring the freezing time length of next ore excavation of the first interest according to the complementary time length through the first contract, wherein the freezing time length is used for configuring the first average time length of next ore excavation of the first interest;
wherein the first formula is:
Figure DEST_PATH_IMAGE002
Figure DEST_PATH_IMAGE004
for the complementing time length, M is the total number of each first node in the block chain network,
Figure DEST_PATH_IMAGE006
Figure DEST_PATH_IMAGE008
Figure DEST_PATH_IMAGE010
Figure DEST_PATH_IMAGE012
for each of the first durations, C is a preconfigured difficulty factor.
2. The method of claim 1, wherein calculating the first average duration before the first average duration for each of the first durations consumed by the N consecutive rounds of excavation based on the first equity of the mortgage further comprises:
according to a plurality of first rights and interests of a user mortgage through a client and a pre-configured exchange ratio of the first rights and interests to mining qualifications, allocating the mining qualifications, corresponding to the first rights and interests of the mortgage, to the user, and issuing the mining qualifications, corresponding to the quantities, to an account of the user, wherein one mining qualification is consumed each time mining is performed;
and storing the corresponding relation between the mining qualification and the account into a block chain.
3. The method of claim 1, wherein the determining whether the difference between the second average duration and the first average duration meets a preconfigured first condition: if yes, calculating the complementary time length according to the difference and a first formula comprises:
calculating a difference between the second average duration and the first average duration;
judging whether the first ratio is larger than a pre-configured first threshold value, if so, calculating the complementing time length according to the difference value and the first formula; wherein the first ratio is a ratio of the difference to the second average duration.
4. The method of claim 3, wherein the first ratio is calculated by:
Figure DEST_PATH_IMAGE014
(ii) a Wherein R is the first ratio, M is the total number of first nodes in the block chain network,
Figure 394055DEST_PATH_IMAGE006
Figure 311195DEST_PATH_IMAGE008
Figure 418828DEST_PATH_IMAGE010
Figure 282879DEST_PATH_IMAGE012
for each of the first durations.
5. The method according to any one of claims 1-4, wherein said configuring a freezing time period for a next mine excavation of the first interest according to the replenishment time period further comprises:
cycling the process until:
judging whether the difference value between the second average time length and the first average time length meets a preconfigured first condition or not: and no.
6. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-5.
7. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-5.
CN201811133671.XA 2018-09-27 2018-09-27 Ore digging time consumption correction method, device and storage medium Active CN109410050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811133671.XA CN109410050B (en) 2018-09-27 2018-09-27 Ore digging time consumption correction method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811133671.XA CN109410050B (en) 2018-09-27 2018-09-27 Ore digging time consumption correction method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109410050A CN109410050A (en) 2019-03-01
CN109410050B true CN109410050B (en) 2021-08-06

Family

ID=65465328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811133671.XA Active CN109410050B (en) 2018-09-27 2018-09-27 Ore digging time consumption correction method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109410050B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510348B (en) * 2020-04-08 2021-08-31 杭州复杂美科技有限公司 Abnormal ore excavation monitoring method and device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107078903A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Digging ore deposit method, device and the node device of block chain
CN107945020A (en) * 2017-11-28 2018-04-20 浙江师范大学 A kind of block chain is sustainable to dig ore deposit method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018140913A1 (en) * 2017-01-30 2018-08-02 SALT Lending Holdings, Inc. System and method of creating an asset based automated secure agreement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107078903A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Digging ore deposit method, device and the node device of block chain
CN107945020A (en) * 2017-11-28 2018-04-20 浙江师范大学 A kind of block chain is sustainable to dig ore deposit method and system

Also Published As

Publication number Publication date
CN109410050A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN106056529B (en) Method and equipment for training convolutional neural network for picture recognition
Lewenberg et al. Bitcoin mining pools: A cooperative game theoretic analysis
CN110852882B (en) Packet consensus method, apparatus, device, and medium for blockchain networks
CN105809323A (en) Task allocation method and system
WO2019218778A1 (en) Graph data-based task scheduling method, device, storage medium and apparatus
US9330199B2 (en) Striping of directed graphs and nodes with improved functionality
CN110599323A (en) Resource processing method and processing equipment
CN108335071A (en) Dispense method for allocating tasks, device, electronic equipment and computer storage media
CN106325756B (en) Data storage method, data calculation method and equipment
CN112101994A (en) Member rights management method, member rights management device, computer equipment and readable storage medium
CN111967995A (en) Intelligent contract creating method and device
CN111966757A (en) Method and device for managing storage space of intelligent contract account
CN109410050B (en) Ore digging time consumption correction method, device and storage medium
CN112087518B (en) Consensus method, apparatus, computer system, and medium for blockchains
CN112465371B (en) Resource data distribution method, device and equipment
CN109284989B (en) Ore digging time consumption correction method, device and storage medium
WO2021013179A1 (en) Reserve allocation method and apparatus, and computer device
US11176506B2 (en) Blockchain expense and resource utilization optimization
CN113347249A (en) Operation loading method, device and equipment
CN116432040B (en) Model training method, device and medium based on federal learning and electronic equipment
CN112015577A (en) Calling method and device of intelligent contract
CN111738837A (en) Credit card limit processing method and device
CN111367667A (en) Scheduling device, resource allocation method executed by scheduling device, and distributed processing system
CN115578180A (en) Bank outlet cash resource management method and device
CN109493025B (en) Account generating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant