I'm planning on having a high N-factor at the start, such as 22. This will use 1GB per thread
What do you think of that amount?
I think I found all the relevant code
unsigned char GetNfactor(int64 nTimestamp) {
int l = 0;
if (nTimestamp <= nChainStartTime)
return 4;
int64 s = nTimestamp - nChainStartTime;
while ((s >> 1) > 3) {
l += 1;
s >>= 1;
}
s &= 3;
int n = (l * 170 + s * 25 - 2320) / 100;
if (n < 0) n = 0;
if (n > 255)
printf( "GetNfactor(%lld) - something wrong(n == %d)\n", nTimestamp, n );
unsigned char N = (unsigned char) n;
//printf("GetNfactor: %d -> %d %d : %d / %d\n", nTimestamp - nChainStartTime, l, s, n, min(max(N, minNfactor), maxNfactor));
return min(max(N, minNfactor), maxNfactor);
}
Is the return 4 all I need to change?