Bitcoin Forum
June 25, 2024, 01:47:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: what means PastDrift(int64_t nTime) and FutureDrift(int64_t nTime) in main.h  (Read 637 times)
supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
June 05, 2015, 05:50:57 AM
 #1

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"));
dasource
Hero Member
*****
Offline Offline

Activity: 821
Merit: 1000


View Profile
June 05, 2015, 06:23:14 PM
 #2

When you submit a block it has to be within those parameters else it will get orphaned.

^ I am with STUPID!
supercanada1 (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 253


View Profile
June 05, 2015, 06:53:13 PM
 #3

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
muddafudda
Legendary
*
Offline Offline

Activity: 1008
Merit: 1022



View Profile
June 06, 2015, 02:48:43 PM
 #4

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!