fix validation

This commit is contained in:
blackjok3r
2019-02-15 11:12:17 +08:00
parent 791d8dc13b
commit f577aa0033
2 changed files with 3 additions and 4 deletions

View File

@@ -1025,7 +1025,7 @@ int32_t komodo_connectblock(bool fJustCheck, CBlockIndex *pindex,CBlock& block)
return(0);
if ( notarisations.size() == 1 && notarisations[0] == 1 )
return(1);
if ( notarisations.size() > 1 )
if ( notarisations.size() > 1 || (notarisations.size() == 1 && notarisations[0] != 1) )
return(-1);
}
else return(0);