Add autofill to mempool
This commit is contained in:
@@ -126,6 +126,12 @@ void *dicefinish(void *_ptr)
|
|||||||
if ( DecodeHexTx(tx,res) != 0 )
|
if ( DecodeHexTx(tx,res) != 0 )
|
||||||
{
|
{
|
||||||
txid = tx.GetHash();
|
txid = tx.GetHash();
|
||||||
|
if ( mempool.exists(tx) == 0 )
|
||||||
|
{
|
||||||
|
CValidationState state;
|
||||||
|
bool fMissingInputs,fOverrideFees = false;
|
||||||
|
AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, !fOverrideFees);
|
||||||
|
}
|
||||||
RelayTransaction(tx);
|
RelayTransaction(tx);
|
||||||
fprintf(stderr,"%s\nresult.(%s)\n",res.c_str(),uint256_str(str,txid));
|
fprintf(stderr,"%s\nresult.(%s)\n",res.c_str(),uint256_str(str,txid));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user