A kind of auction time-delay method and system based on block chain
Technical field
The present embodiments relate to delay auction technical fields, and in particular to a kind of auction time-delay method based on block chain
And system.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Application model.For narrow sense, block chain is that data block is combined by one kind in such a way that sequence is connected sequentially in time
A kind of linked data structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography;Broadly,
Block chain technology be verified using block linked data structure algorithm of knowing together with storing data, using distributed node generating and
More new data, utilizes what is be made of automatized script code at the safety for guaranteeing data transmission and access in the way of cryptography
Intelligent contract programs the completely new distributed basis framework and calculation of one kind with operation data.
Auction refers to auction, refers to the form to bid publicly, and special article or property right are transferred highest and answered
The dealing of valence person.It is often middle to increase Automatic Time Lag Function in order to adapt to the various business demands of client in auction.
Existing common auction time-delay method is to extend a few minutes again after the auction time mostly, if still someone's auction in a few minutes
Then extend a few minutes again, until unmanned auction.
But existing auction time-delay method has the following deficiencies:
(1) existing auction delay time, auction delay pattern are all fixed and pre-determined, but in practical auction
In, according to the difference of auction frequency, it is unfavorable for guaranteeing the reasonability of auction using fixed auction delay time or delay pattern
And practicability, it is easy that client is made to have little time to consider or cause the dislike of client;
(2) existing auction is network auction mostly, in auction, is difficult to determine whether the identity of client and client have
Auction ability is easy to make auction process that accident occur, influences going on smoothly for auction.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of auction time-delay method and system based on block chain, this method being capable of root
Delay pattern and adjustment delay time are chosen according to the process of auction, the reasonability and practicability of auction is advantageously ensured that, avoids
Make client have little time to consider or cause the dislike of client, meanwhile, it is capable to more easily determine client identity and client whether
There is auction ability, avoid auction process that accident occurs, influence going on smoothly for auction, can effectively solve existing in the prior art
Problem.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions: a kind of auction based on block chain is prolonged
Shi Fangfa includes the following steps:
S100, auction block chain is established, and distributes an auction node to each client;
S200, determine whether to trigger auction delay by the number of client's auction in the auction time;
S300, in the range time client's auction number distribution determine auction delay by way of;
S400, the single time that auction delay is determined by the frequent degree of client's auction.
Further, in step s 200, auction overall time is T, and delay determines that the time is last t minutes;
The number of client's auction is A in auction time T-t;
One delay is set and determines that number B and a delay determine frequency v;
If A >=B or A/ (T-t) >=v, auction delay is triggered, otherwise, does not trigger auction delay.
Further, in step S300, there are two types of auction delay patterns:
The first auction delay pattern, if there is client bids in t minutes before the End of Auction time, the last end time
Extend s minutes, extends someone's bid again in the time, then continue to extend s minutes, until nobody's bid, completion of an auction;
Second of auction delay pattern was bid before the End of Auction time in t minutes if any client, away from the End of Auction time
It is reset to s minutes, extends someone's bid again in the time, then continue to be reset to s minutes away from the End of Auction time, until no one bids
Until, completion of an auction.
Further, in step S300, a critical field time x, and T-t=mx (m=3,4,5 ...) are set;
In auction time T-t, it is x minutes every in auction number be am;
Before m reaches median, total auction number is P, and after m reaches median, total auction number is Q;
If P >=Q, the first auction delay pattern is used;
If P < Q, second of auction delay pattern is used.
Further, in step S400, in auction time T-t, the time interval of the adjacent auction twice of client is tn
(n=1,2,3 ...), maximum single delay time are S minutes, and the frequent time interval of auction is z;
Obtain tnMedian tk;
If tk> z and tk≤ S, then auction be delayed single time s=[S/tk];
If tk> z and tk> S, then auction be delayed single time s=1;
If tk≤ z, then auction be delayed single time s=S.
Further, in the step s 100, be provided in auction block chain at least one acceptance of the bid node, and get the bid node and
Auction node is attached to a storage account;
When client's auction, corresponding auction node is transferred accounts with auction price to acceptance of the bid node;
If auction success, node of getting the bid sends trade contract to auction node;
If auction fails, transfer amounts original road is returned.
Further, when client's auction can be attached to when corresponding auction node is transferred accounts with auction price to acceptance of the bid node
One group of freezing of funds key, key are voluntarily determined that, when auction success, acceptance of the bid node sends trade contract to auction node by client
When, it is provided with funds the key that thaws by client.
In addition, the present invention also provides a kind of auction delayed time systems based on block chain, comprising:
Auction module, the auction module is for providing the platform of client's auction;
Statistical module, the statistical module are used to count in auction time of auction module, the number of client's auction and
The time of each auction;
Computing module, the computing module are used for the data of counting statistics module statistics;
Auction Time-delayed trigger module, the result determination that the auction Time-delayed trigger module is used to be calculated according to computing module are
The single time of no triggering auction delay and auction delay;
Auction section calculates module, and the auction section calculates the auction valence that module is used to calculate the current auction of auction module, with determination
The client to win.
Further, the auction module is connected with client, and client is connected with detection module, the detection module
For verifying the identity of client.
Further, the client is connected with client node module, and the auction module is connected with acceptance of the bid node module,
And it is connected between acceptance of the bid node module and client node module by interactive module.
The embodiment of the present invention has the advantages that
(1) present invention can choose delay pattern and adjustment delay time according to the process of auction, advantageously ensure that competing
The reasonability and practicability of bat avoid that client is made to have little time to consider or cause the dislike of client;
(2) present invention can more easily determine whether the identity of client and client have auction ability, avoid auction
Cheng Fasheng is unexpected, influences going on smoothly for auction.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art
Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only
It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Structure depicted in this specification, ratio, size etc., only to cooperate the revealed content of specification, for
Those skilled in the art understands and reads, and is not intended to limit the invention enforceable qualifications, therefore does not have technical
Essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the function of the invention that can be generated
Under effect and the purpose that can reach, should all still it fall in the range of disclosed technology contents obtain and can cover.
Fig. 1 is flowage structure schematic diagram of the invention;
Fig. 2 is module connection structure schematic diagram of the invention.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation
Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
As shown in Figure 1, including the following steps: the present invention provides a kind of auction time-delay method based on block chain
Step S100, auction block chain is established, and distributes an auction node to each client, by establishing auction block
Chain, can guarantee the uniqueness of each client identity for participating in auction, to facilitate the true identity of confirmation client.
In the step s 100, at least one acceptance of the bid node, and get the bid node and auction node are provided in auction block chain
It is attached to a storage account.
When client's auction, corresponding auction node is transferred accounts with auction price to acceptance of the bid node, if auction success, in
It marks node and sends trade contract to auction node;If auction fails, transfer amounts original road is returned.
When client's auction can be attached to one group of fund when corresponding auction node is transferred accounts with auction price to acceptance of the bid node
Freeze key, key is voluntarily determined by client, when auction success, when acceptance of the bid node sends trade contract to auction node, by visitor
Family is provided with funds the key that thaws, and setting in this way can not only determine whether client has auction ability, avoid auction process
Accident occurs, influences going on smoothly for auction, additionally it is possible to ensure the interests of client.
Step S200, determine whether to trigger auction delay, existing auction by the number of client's auction in the auction time
In, can all there be delay auction mostly, but according to the difference of each auction process, it is if auction number is few, then absolutely not competing
Necessity of delay is clapped, therefore, in auction, needs to judge whether according to the actual situation to trigger auction delay.
In step s 200, if auction overall time is T, delay determines that the time is last t minutes, in auction time T-t
The number of interior client's auction is A, and delay is arranged and determines that number B and a delay determine frequency v, delay judgement number B with
The specific value of delay judgement frequency v can according to the actual situation or auction demand is adjusted.
If A >=B or A/ (T-t) >=v, i.e., auction number is more or auction frequency is higher, then triggers auction delay, otherwise,
Auction delay is not triggered, can guarantee the reasonability of auction in this way, and auction can be made more flexible.
Step S300, in such a way that the distribution of client's auction number in the range time determines auction delay.
In step S300, there are two types of auction delay patterns: the first auction delay pattern, the t before the End of Auction time
If there is client bids in minute, the last end time extends s minutes, and someone bids again in the extension time, then continues to extend s points
Clock, until nobody's bid, completion of an auction.Such as delay determines that the time is last 3 minutes, single delay time s is 5 points
Clock is bid when regulation 22:00 knot mark in 21:58 someone, and the bid is effective, and the knot mark time postpones to 22:03, if 22:02 has again
People's bid, then tying the mark time postpones again to 22:07, and so on, until completion of an auction.
Second of auction delay pattern was bid before the End of Auction time in t minutes if any client, away from the End of Auction time
It is reset to s minutes, extends someone's bid again in the time, then continue to be reset to s minutes away from the End of Auction time, until no one bids
Until, completion of an auction.Such as delay determines that the time is last 3 minutes, single delay time s is 5 minutes, when regulation 22:00 knot
Mark is bid in 21:58 someone, and the bid is effective, and the knot mark time postpones to 22:03, but tying mark and being shown as also remaining is 5 minutes, if
22:02 someone's bid again, then tying the mark time postpones again to 22:07, but tying mark and still appear as and also remaining is 5 minutes, and so on, directly
To completion of an auction.
Both auction delay patterns seem the same, but there are some nuances, i.e., poor to the psychological sense organ of client
Not, such as some goods to auction auction is very fierce, then more preferable using second of auction delay pattern, can either maintain client's in this way
Auction enthusiasm, and client's high concentration can be made, carefully consider;And some goods to auction auction is very flat, then it is competing using the first
Clap delay pattern it is more preferable, completion of an auction can be made faster in this way, will not influence the enthusiasm of client, and can be avoided client because it is long when
Between wait and irritated.
In step S300, a critical field time x, and T-t=mx (m=3,4,5 ...) are set, in auction time T-
In t, it is x minutes every in auction number be am, for example, with two minutes for critical field, amRefer to the number of every auction in two minutes, separately
Outside, in order to guarantee the accuracy of result, the value of m is unsuitable too small, and at least 3.
Before m reaches median, total auction number is P, and after m reaches median, total auction number is Q.
If P >=Q, i.e. the enthusiasm and frequency of expression client's auction gradually decrease, then use the first auction delay pattern;If
P < Q, i.e. the enthusiasm and frequency of expression client's auction are very high always, then use second of auction delay pattern, can guarantee in this way
The mode of auction delay is more reasonable, and advantageous to auction both sides.
Step S400, the single time of auction delay, existing auction delay are determined by the frequent degree of client's auction
In the process, the single time of auction delay is all fixed in advance, is unfavorable for guaranteeing the reasonability and practicability of auction.
In step S400, in auction time T-t, the time interval of the adjacent auction twice of client is tn(n=1,2,
3 ...), maximum single delay time is S minutes, i.e., during auction, and the maximum single delay time that can allow for is S minutes,
The frequent time interval of auction is z, if the time interval of adjacent auction shows that auction is very frequent, the specific value of S and z less than z
It is adjusted according to the actual situation.
Obtain tnMedian tk, tkThe average degree of the time interval of adjacent auction can be represented, if tk> z and tk≤ S,
Then auction delay single time s=[S/tk], for example, maximum single delay time S is 10 minutes, the frequent time interval z of auction
It is 2 minutes, if tkIt is 5 minutes, then auction delay single time s is 2 minutes, if tkBe 3 minutes, then auction be delayed single time s
It is 3 minutes, i.e., the time interval of adjacent auction twice is fewer, and auction is more frequent, and auction delay single time is longer.
If tk> z and tk> S, then auction be delayed single time s=1, i.e., the time interval of adjacent auction twice is longer, greatly
In maximum single delay time, auction frequency is extremely low, then auction delay single time is shortest 1 minute.
If tk≤ z, then auction be delayed single time s=S, i.e., the time interval of adjacent auction twice is few, auction very frequency
Numerous, auction delay single time is the maximum value that can allow for.
In addition, as shown in Fig. 2, the present invention also provides a kind of auction delayed time system based on block chain, including auction mould
Block, statistical module, computing module, auction Time-delayed trigger module and auction section calculate module.
Auction module is for providing the platform of client's auction;Statistical module was used to count in the auction time of auction module,
The time of the number of client's auction and each auction;Computing module is used for the data of counting statistics module statistics;Auction delay
Trigger module is used to determine whether to trigger according to the result that computing module calculates the single time of auction delay and auction delay;
Auction section calculates the auction valence that module is used to calculate the current auction of auction module, to determine the client to win.
Auction module is connected with client, and client is connected with detection module, and detection module is used to verify the body of client
Part, client is connected with client node module, and auction module is connected with acceptance of the bid node module, and get the bid node module and client's section
It is connected between point module by interactive module, interactive module is used for the interaction of client and auction side, such as fund, Transaction Information
Interaction.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this
On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,
These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.