Check for orphaned finish taxied

This commit is contained in:
jl777
2018-11-08 19:52:48 -11:00
parent b7a556e838
commit 6d5a5a0195

View File

@@ -350,6 +350,13 @@ void *dicefinish(void *_ptr)
dicefinish_delete(ptr);
continue;
}
else if ( ptr->txid != zeroid && myGetTransaction(ptr->txid,betTx,hashBlock) == 0 )
{
fprintf(stderr,"ORPHANED finish txid.%s\n",ptr->txid.GetHex().c_str());
if ( ptr->rawtx.empty() == 0 )
ptr->rawtx.clear();
ptr->txid = zeroid;
}
if ( ptr->bettxid_ready != 0 && ptr->iswin == iter )
{
if ( newblock != 0 && ptr->txid != zeroid )