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);
}