|
@ -21,8 +21,8 @@ uint32_t gecko_earliest_blocktime(int32_t estblocktime,uint32_t prevtimestamp) |
|
|
if ( prevtimestamp == 0 ) |
|
|
if ( prevtimestamp == 0 ) |
|
|
prevtimestamp = now; |
|
|
prevtimestamp = now; |
|
|
timestamp = (prevtimestamp + ((estblocktime << 1) / 3)); |
|
|
timestamp = (prevtimestamp + ((estblocktime << 1) / 3)); |
|
|
if ( timestamp < now ) |
|
|
if ( timestamp <= prevtimestamp ) |
|
|
timestamp = now; |
|
|
timestamp = prevtimestamp + 1; |
|
|
return(timestamp); |
|
|
return(timestamp); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|