Browse Source

test

etomic
jl777 8 years ago
parent
commit
24aa2d0946
  1. 4
      crypto777/bitcoind_RPC.c
  2. 2
      iguana/kmd_lookup.h
  3. 2
      iguana/tests/dexgetsupply

4
crypto777/bitcoind_RPC.c

@ -206,13 +206,13 @@ try_again:
free(s.ptr);
return(0);
}
else if ( numretries >= 2 )
else if ( numretries >= 3 )
{
printf( "curl_easy_perform() failed: %s %s.(%s %s), retries: %d\n",curl_easy_strerror(res),debugstr,url,command,numretries);
//printf("Maximum number of retries exceeded!\n");
free(s.ptr);
return(0);
}
printf( "curl_easy_perform() failed: %s %s.(%s %s), retries: %d\n",curl_easy_strerror(res),debugstr,url,command,numretries);
free(s.ptr);
sleep((1<<numretries));
goto try_again;

2
iguana/kmd_lookup.h

@ -703,7 +703,7 @@ int32_t _kmd_bitcoinscan(struct iguana_info *coin)
}
free_json(blockjson);
}
if ( flag != 0 || num > 1000 )
if ( flag != 0 || num > 500 )
break;
coin->kmd_height = loadheight++;
}

2
iguana/tests/dexgetsupply

@ -1,2 +1,2 @@
#!/bin/bash
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"address\":\"*\",\"symbol\":\"KMD\",\"timeout\":30000}"
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"dex\",\"method\":\"getbalance\",\"address\":\"*\",\"symbol\":\"KMD\",\"timeout\":600000}"

Loading…
Cancel
Save