+prints
This commit is contained in:
@@ -200,11 +200,12 @@ int32_t NSPV_sendrawtransaction(struct NSPV_broadcastresp *ptr,uint8_t *data,int
|
|||||||
ptr->retcode = 0;
|
ptr->retcode = 0;
|
||||||
rawdata.resize(n);
|
rawdata.resize(n);
|
||||||
memcpy(&rawdata[0],data,n);
|
memcpy(&rawdata[0],data,n);
|
||||||
|
fprintf(stderr,"sendraw.(%s)\n",HexStr(rawdata));
|
||||||
if ( DecodeHexTx(tx,HexStr(rawdata)) != 0 )
|
if ( DecodeHexTx(tx,HexStr(rawdata)) != 0 )
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
ptr->txid = tx.GetHash();
|
ptr->txid = tx.GetHash();
|
||||||
//fprintf(stderr,"addmempool transaction %s\n",ptr->txid.GetHex().c_str());
|
fprintf(stderr,"addmempool transaction %s\n",ptr->txid.GetHex().c_str());
|
||||||
if ( myAddtomempool(tx) != 0 )
|
if ( myAddtomempool(tx) != 0 )
|
||||||
ptr->retcode = 1;
|
ptr->retcode = 1;
|
||||||
else ptr->retcode = 0;
|
else ptr->retcode = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user