From 99706c3e309af2921f2f4b5ae7ca8b0f1d120031 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 11 Nov 2016 21:23:57 -0300 Subject: [PATCH] test --- crypto777/bitcoind_RPC.c | 2 +- iguana/dpow/dpow_fsm.c | 2 +- iguana/dpow/dpow_rpc.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto777/bitcoind_RPC.c b/crypto777/bitcoind_RPC.c index 658be29d1..27a40206c 100755 --- a/crypto777/bitcoind_RPC.c +++ b/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); diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index f3e79fcbd..2fd710e97 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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; inumnotaries; i++) { int32_t j; for (j=0; j<33; j++) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index fadfde7e9..0181e75ae 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/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 ) {