Tweak orphan handling

This commit is contained in:
jl777
2018-11-11 02:44:10 -11:00
parent 31bcb93378
commit e3113b9cbf
2 changed files with 3 additions and 2 deletions

View File

@@ -357,7 +357,7 @@ void *dicefinish(void *_ptr)
else if ( mytxid_inmempool(ptr->bettxid) != 0 )
ptr->bettxid_ready = (uint32_t)time(NULL);
}
else if ( newblock != 0 && myGetTransaction(ptr->bettxid,betTx,hashBlock) == 0 )
else if ( newblock != 0 && (myGetTransaction(ptr->bettxid,betTx,hashBlock) == 0 || now > ptr->bettxid_ready+600) )
{
fprintf(stderr,"ORPHANED bettxid.%s\n",ptr->bettxid.GetHex().c_str());
dicefinish_delete(ptr);