Fix miner
This commit is contained in:
@@ -1805,6 +1805,7 @@ uint64_t komodo_notarypayamount(int32_t nHeight, int64_t notarycount)
|
|||||||
//fprintf(stderr, "notarizedht.%d prevnotarizedht.%d pprevnotarizedht.%d \n",notarizedht,prevnotarizedht,pprevnotarizedht);
|
//fprintf(stderr, "notarizedht.%d prevnotarizedht.%d pprevnotarizedht.%d \n",notarizedht,prevnotarizedht,pprevnotarizedht);
|
||||||
|
|
||||||
// We cannot pay out if 3 notarisation's have not yet happened!
|
// We cannot pay out if 3 notarisation's have not yet happened!
|
||||||
|
// redundant now... should never happen.
|
||||||
if ( pprevnotarizedht == 0 )
|
if ( pprevnotarizedht == 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr, "need 3 notarizations to happen before notaries can be paid.\n");
|
fprintf(stderr, "need 3 notarizations to happen before notaries can be paid.\n");
|
||||||
|
|||||||
@@ -396,7 +396,12 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
|||||||
{
|
{
|
||||||
// Can't make payment until 3 notarizations have happened.
|
// Can't make payment until 3 notarizations have happened.
|
||||||
if ( !check_pprevnotarizedht() )
|
if ( !check_pprevnotarizedht() )
|
||||||
|
{
|
||||||
fNotarisation = false;
|
fNotarisation = false;
|
||||||
|
fNotarisationBlock = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
// check if the notarization found is actually valid.
|
// check if the notarization found is actually valid.
|
||||||
if ( tx.vout.size() == 2 && tx.vout[1].nValue == 0 )
|
if ( tx.vout.size() == 2 && tx.vout[1].nValue == 0 )
|
||||||
{
|
{
|
||||||
@@ -445,6 +450,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if ( dPriority == 1e16 )
|
else if ( dPriority == 1e16 )
|
||||||
{
|
{
|
||||||
dPriority -= 10;
|
dPriority -= 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user