This commit is contained in:
@@ -32,9 +32,9 @@ CAmount AmountFromValue(const UniValue& value);
|
||||
int32_t bitcoin_base58decode(uint8_t *data,char *coinaddr);
|
||||
|
||||
uint32_t NSPV_lastinfo,NSPV_logintime;
|
||||
CKey NSPV_key;
|
||||
char NSPV_wifstr[64],NSPV_pubkeystr[67];
|
||||
std::string NSPV_address;
|
||||
CKey NSPV_key;
|
||||
struct NSPV_inforesp NSPV_inforesult;
|
||||
struct NSPV_utxosresp NSPV_utxosresult;
|
||||
struct NSPV_spentinfo NSPV_spentresult;
|
||||
|
||||
@@ -355,7 +355,7 @@ void komodo_nSPV(CNode *pto) // polling loop from SendMessages
|
||||
uint8_t msg[256]; int32_t i,len=0; uint32_t timestamp = (uint32_t)time(NULL);
|
||||
if ( NSPV_logintime != 0 && timestamp > NSPV_logintime+NSPV_AUTOLOGOUT )
|
||||
{
|
||||
fprintf(stderr,"scrub wif from NSPV memory\n");
|
||||
fprintf(stderr,"scrub wif and privkey from NSPV memory\n");
|
||||
memset(NSPV_wifstr,0,sizeof(NSPV_wifstr));
|
||||
memset(&NSPV_key,0,sizeof(NSPV_key));
|
||||
NSPV_logintime = 0;
|
||||
|
||||
Reference in New Issue
Block a user