Test
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
// CC signing
|
// CC signing
|
||||||
// make sure to sanity check all vector lengths on receipt
|
// make sure to sanity check all vector lengths on receipt
|
||||||
// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database)
|
// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database)
|
||||||
|
// bug: under load, fullnode was returning all 0 nServices
|
||||||
|
|
||||||
#ifndef KOMODO_NSPV_H
|
#ifndef KOMODO_NSPV_H
|
||||||
#define KOMODO_NSPV_H
|
#define KOMODO_NSPV_H
|
||||||
|
|||||||
@@ -210,15 +210,17 @@ int32_t NSPV_sendrawtransaction(struct NSPV_broadcastresp *ptr,uint8_t *data,int
|
|||||||
{
|
{
|
||||||
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,"try to addmempool transaction %s\n",ptr->txid.GetHex().c_str());
|
||||||
if ( myAddtomempool(tx) != 0 )
|
if ( myAddtomempool(tx) != 0 )
|
||||||
|
{
|
||||||
|
int32_t i;
|
||||||
|
for (i=0; i<n; i++)
|
||||||
|
fprintf(stderr,"%02x",data[i]);
|
||||||
|
fprintf(stderr," relay transaction %s retcode.%d\n",ptr->txid.GetHex().c_str(),ptr->retcode);
|
||||||
ptr->retcode = 1;
|
ptr->retcode = 1;
|
||||||
else ptr->retcode = 0;
|
RelayTransaction(tx);
|
||||||
int32_t i;
|
} else ptr->retcode = -3;
|
||||||
for (i=0; i<n; i++)
|
|
||||||
fprintf(stderr,"%02x",data[i]);
|
|
||||||
fprintf(stderr," relay transaction %s retcode.%d\n",ptr->txid.GetHex().c_str(),ptr->retcode);
|
|
||||||
RelayTransaction(tx);
|
|
||||||
} else ptr->retcode = -1;
|
} else ptr->retcode = -1;
|
||||||
return(sizeof(*ptr));
|
return(sizeof(*ptr));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1843,7 +1843,7 @@ bool StopNode()
|
|||||||
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
|
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
|
||||||
semOutbound->post();
|
semOutbound->post();
|
||||||
|
|
||||||
if (fAddressesInitialized)
|
if (KOMODO_NSPV == 0 && fAddressesInitialized)
|
||||||
{
|
{
|
||||||
DumpAddresses();
|
DumpAddresses();
|
||||||
fAddressesInitialized = false;
|
fAddressesInitialized = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user