add auto purge of orphans from before notarisation.

This commit is contained in:
blackjok3r
2019-01-24 17:16:42 +08:00
parent ec1abe2be2
commit c3df1b8747
3 changed files with 69 additions and 1 deletions

View File

@@ -707,6 +707,8 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
komodo_stateupdate(height,0,0,0,zero,0,0,0,0,0,0,0,0,0,0,sp->MoM,sp->MoMdepth);
if ( ASSETCHAINS_SYMBOL[0] != 0 )
printf("[%s] ht.%d NOTARIZED.%d %s.%s %sTXID.%s lens.(%d %d) MoM.%s %d\n",ASSETCHAINS_SYMBOL,height,*notarizedheightp,ASSETCHAINS_SYMBOL[0]==0?"KMD":ASSETCHAINS_SYMBOL,srchash.ToString().c_str(),ASSETCHAINS_SYMBOL[0]==0?"BTC":"KMD",desttxid.ToString().c_str(),opretlen,len,sp->MoM.ToString().c_str(),sp->MoMdepth);
if (RemoveOrphanedBlocks(*notarizedheightp))
fprintf(stderr, "Sucessfully removed all known orphaned blocks before height %d\n",*notarizedheightp);
if ( ASSETCHAINS_SYMBOL[0] == 0 )
{
if ( signedfp == 0 )