bool myAddtomempool(CTransaction &tx)

This commit is contained in:
jl777
2018-08-01 04:22:56 -11:00
parent 4d332fc027
commit b46dc9da56
3 changed files with 10 additions and 6 deletions

View File

@@ -1603,6 +1603,14 @@ bool GetAddressUnspent(uint160 addressHash, int type,
return true;
}
bool myAddtomempool(CTransaction &tx)
{
CValidationState state; bool fMissingInputs,fOverrideFees = false;
if ( mempool.exists(tx) == 0 )
return(AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, !fOverrideFees));
else return(false);
}
bool myGetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock)
{
// need a GetTransaction without lock so the validation code for assets can run without deadlock