jl777 8 years ago
parent
commit
99706c3e30
  1. 2
      crypto777/bitcoind_RPC.c
  2. 2
      iguana/dpow/dpow_fsm.c
  3. 4
      iguana/dpow/dpow_rpc.c

2
crypto777/bitcoind_RPC.c

@ -202,7 +202,7 @@ try_again:
free(s.ptr);
return(0);
}
else if ( numretries >= 5 )
else if ( numretries >= 2 )
{
printf("Maximum number of retries exceeded!\n");
free(s.ptr);

2
iguana/dpow/dpow_fsm.c

@ -616,7 +616,7 @@ void dpow_statemachinestart(void *ptr)
bitcoin_address(destaddr,dest->chain->pubtype,dp->minerkey33,33);
if ( kmdheight >= 0 )
{
bp->numnotaries = komodo_notaries(pubkeys,kmdheight);
bp->numnotaries = komodo_notaries(src->symbol,pubkeys,kmdheight);
for (i=0; i<bp->numnotaries; i++)
{
int32_t j; for (j=0; j<33; j++)

4
iguana/dpow/dpow_rpc.c

@ -15,10 +15,10 @@
#define issue_curl(cmdstr) bitcoind_RPC(0,"curl",cmdstr,0,0,0)
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t kmdheight)
int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t kmdheight)
{
int32_t i,num=-1; struct iguana_info *coin; char params[256],*retstr,*pubkeystr; cJSON *retjson,*item,*array;
if ( (coin= iguana_coinfind("KMD")) != 0 )
if ( (coin= iguana_coinfind(symbol)) != 0 )
{
if ( coin->FULLNODE < 0 )
{

Loading…
Cancel
Save