Fix the sieving of BiTwin candidates (thanks to rdebourbon).
The last member of a BiTwin chain was not sieved at all if the target chain length was odd. The chains/day estimate was also inflated on mainnet because of this issue.master
parent
ee99f55c10
commit
09466ac127
|
@ -1045,7 +1045,7 @@ bool CSieveOfEratosthenes::Weave()
|
|||
vfCompositeBiTwin[nWord] |= vfCompositeLayerCC1[nWord] | vfCompositeLayerCC2[nWord];
|
||||
}
|
||||
}
|
||||
else if (nLayerSeq < nBiTwinCC2Layers)
|
||||
else if (nLayerSeq < nBiTwinCC1Layers)
|
||||
{
|
||||
for (unsigned int nWord = nMinWord; nWord < nMaxWord; nWord++)
|
||||
{
|
||||
|
@ -1083,7 +1083,7 @@ bool CSieveOfEratosthenes::Weave()
|
|||
vfExtTWN[nWord] |= vfCompositeLayerCC1[nWord] | vfCompositeLayerCC2[nWord];
|
||||
}
|
||||
}
|
||||
else if (nLayerExtendedSeq < nBiTwinCC2Layers)
|
||||
else if (nLayerExtendedSeq < nBiTwinCC1Layers)
|
||||
{
|
||||
for (unsigned int nWord = nExtMinWord; nWord < nMaxWord; nWord++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue