Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: supercanada1 on June 05, 2015, 05:50:57 AM



Title: what means PastDrift(int64_t nTime) and FutureDrift(int64_t nTime) in main.h
Post by: supercanada1 on June 05, 2015, 05:50:57 AM
inline int64_t PastDrift(int64_t nTime)   { return nTime - 10 * 60; } // up to 10 minutes from the past
inline int64_t FutureDrift(int64_t nTime) { return nTime + 10 * 60; } // up to 10 minutes from the future
 in main.h

this requires I must keep sync, mining? if I stop for a while it will lose sync?
Thanks

if (GetBlockTime() > FutureDrift((int64_t)vtx[0].nTime))
        return DoS(50, error("CheckBlock() : coinbase timestamp is too early"));


Title: Re: what means PastDrift(int64_t nTime) and FutureDrift(int64_t nTime) in main.h
Post by: dasource on June 05, 2015, 06:23:14 PM
When you submit a block it has to be within those parameters else it will get orphaned.


Title: Re: what means PastDrift(int64_t nTime) and FutureDrift(int64_t nTime) in main.h
Post by: supercanada1 on June 05, 2015, 06:53:13 PM
Thanks. Does that mean if I mined but stop mining for two hours and mine again, this error will come out since the time is not within the range, how can I change it, can I change the data for the future to one month later, or anyway to solve this? Even I am a new miner if somebody else mined and stopped for two hours, I will still get the same problem, how to solve this


Title: Re: what means PastDrift(int64_t nTime) and FutureDrift(int64_t nTime) in main.h
Post by: muddafudda on June 06, 2015, 02:48:43 PM
You can leave a chain for 3 weeks without a block and start mining it straight away. This has no effect on being able to mine blocks in the future or after one has not been mined for days/weeks.