Mempool lookup

This commit is contained in:
jl777
2018-08-01 04:26:15 -11:00
parent b46dc9da56
commit cf87a64364

View File

@@ -1605,8 +1605,8 @@ bool GetAddressUnspent(uint160 addressHash, int type,
bool myAddtomempool(CTransaction &tx)
{
CValidationState state; bool fMissingInputs,fOverrideFees = false;
if ( mempool.exists(tx) == 0 )
CValidationState state; CTransaction Ltx; bool fMissingInputs,fOverrideFees = false;
if ( mempool.lookup(tx.GetHash(),Ltx) == 0 )
return(AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, !fOverrideFees));
else return(false);
}