limit some prints to -ac_notarypay

This commit is contained in:
blackjok3r
2019-01-30 12:14:51 +08:00
parent abb78c279f
commit 8450004934
2 changed files with 5 additions and 3 deletions

View File

@@ -695,7 +695,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
}
else if ( ASSETCHAINS_SYMBOL[0] == 0 && matched != 0 && notarized != 0 && validated != 0 )
komodo_rwccdata((char *)"KMD",1,&ccdata,0);
else
else if ( ASSETCHAINS_NOTARY_PAY != 0 )
{
fprintf(stderr, "NOT matched NOTARISATION\n");
return (-2);

View File

@@ -3696,9 +3696,11 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
//FlushStateToDisk();
int tmp = komodo_connectblock(pindex,*(CBlock *)&block); // != block-nVersion-7000000;
if ( tmp > 0 )
if ( ASSETCHAINS_NOTARY_PAY != 0 && tmp > 0 )
{
printf("VALID NOTARISATION connect block.%i tx.%i\n NOT VALIDATING HERE YET!",pindex->GetHeight(),tmp);
printf("VALID NOTARISATION connect block.%i tx.%i\n NOT VALIDATING HERE YET!\n",pindex->GetHeight(),tmp);
if ( tmp != 1 )
printf("INVALID NOTARISATION notarisation tx is not in vtx[1].\n";
}
return true;
}