This commit is contained in:
jl777
2018-04-07 20:48:53 +03:00
parent 85d77224f2
commit dfb57be5ec
3 changed files with 10 additions and 2 deletions

View File

@@ -990,10 +990,17 @@ int32_t komodo_validate_interest(const CTransaction &tx,int32_t txheight,uint32_
int32_t komodo_staked(uint256 *utxotxidp,int32_t *utxovoutp,uint64_t *utxovaluep,uint8_t *utxosig)
{
*utxovaluep = 100000;
char *retstr;
*utxovaluep = 0;
memset(utxotxidp,0,sizeof(*utxotxidp));
memset(utxovoutp,0,sizeof(*utxovoutp));
memset(utxosig,0,72);
if ( (retstr= komodo_issuemethod(KOMODO_USERPASS,"listunspent","[]",BITCOIND_PORT)) != 0 )
{
fprintf(stderr,"listunspent.(%s)\n",retstr);
free(retstr);
*utxovaluep = 100000;
}
return(72);
}

View File

@@ -50,7 +50,7 @@ int32_t KOMODO_LASTMINED,prevKOMODO_LASTMINED,JUMBLR_PAUSE,ASSETCHAINS_CC;
std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES,ASSETCHAINS_OVERRIDE_PUBKEY;
uint8_t NOTARY_PUBKEY33[33],ASSETCHAINS_OVERRIDE_PUBKEY33[33];
char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN];
char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN],ASSETCHAINS_USERPASS[4096];
uint16_t ASSETCHAINS_PORT;
uint32_t ASSETCHAIN_INIT;
uint32_t ASSETCHAINS_MAGIC = 2387029918;

View File

@@ -1422,6 +1422,7 @@ uint16_t komodo_userpass(char *userpass,char *symbol)
{
port = komodo_userpass(username,password,fp);
sprintf(userpass,"%s:%s",username,password);
strcpy(ASSETCHAINS_USERPASS,userpass);
fclose(fp);
return((int32_t)strlen(userpass));
}