This commit is contained in:
@@ -204,13 +204,14 @@ int32_t NSPV_sendrawtransaction(struct NSPV_broadcastresp *ptr,uint8_t *data,int
|
|||||||
//fprintf(stderr,"rawtx.(%s)\n",rawtx.c_str());
|
//fprintf(stderr,"rawtx.(%s)\n",rawtx.c_str());
|
||||||
if ( DecodeHexTx(tx,rawtx) != 0 )
|
if ( DecodeHexTx(tx,rawtx) != 0 )
|
||||||
{
|
{
|
||||||
|
LOCK(cs_main);
|
||||||
ptr->txid = tx.GetHash();
|
ptr->txid = tx.GetHash();
|
||||||
|
fprintf(stderr,"addmempool transaction %s\n",ptr->txid.GetHex().c_str());
|
||||||
if ( myAddtomempool(tx) != 0 )
|
if ( myAddtomempool(tx) != 0 )
|
||||||
{
|
|
||||||
fprintf(stderr,"relay transaction %s\n",ptr->txid.GetHex().c_str());
|
|
||||||
RelayTransaction(tx);
|
|
||||||
ptr->retcode = 1;
|
ptr->retcode = 1;
|
||||||
} else ptr->retcode = 0;
|
else ptr->retcode = 0;
|
||||||
|
fprintf(stderr,"relay transaction %s\n",ptr->txid.GetHex().c_str());
|
||||||
|
RelayTransaction(tx);
|
||||||
} else ptr->retcode = -1;
|
} else ptr->retcode = -1;
|
||||||
return(sizeof(*ptr));
|
return(sizeof(*ptr));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user