Author

Topic: what means PastDrift(int64_t nTime) and FutureDrift(int64_t nTime) in main.h (Read 659 times)

legendary
Activity: 1008
Merit: 1022
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.
sr. member
Activity: 798
Merit: 253
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
hero member
Activity: 821
Merit: 1000
When you submit a block it has to be within those parameters else it will get orphaned.
sr. member
Activity: 798
Merit: 253
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"));
Jump to: