Fix not being able to mine first 3 notarizations.

This commit is contained in:
blackjok3r
2019-02-14 19:04:28 +08:00
parent b9b3afcbe6
commit 497302dc75
2 changed files with 22 additions and 1 deletions

View File

@@ -393,6 +393,9 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
if (fNotarisation)
{
// Can't make payment until 3 notarizations have happened.
if ( !check_pprevnotarizedht() )
fNotarisation = false;
// check if the notarization found is actually valid.
if ( tx.vout.size() == 2 && tx.vout[1].nValue == 0 )
{