Browse Source

Test

etomic
jl777 7 years ago
parent
commit
36e4d99469
  1. 8
      iguana/exchanges/LP_rpc.c

8
iguana/exchanges/LP_rpc.c

@ -602,17 +602,23 @@ char *LP_sendrawtransaction(char *symbol,char *signedtx)
{ {
cJSON *array,*errobj; char *paramstr,*tmpstr,*retstr=0; int32_t n,alreadyflag = 0; cJSON *retjson; struct iguana_info *coin; cJSON *array,*errobj; char *paramstr,*tmpstr,*retstr=0; int32_t n,alreadyflag = 0; cJSON *retjson; struct iguana_info *coin;
if ( symbol == 0 || symbol[0] == 0 ) if ( symbol == 0 || symbol[0] == 0 )
{
printf("LP_sendrawtransaction null symbol\n");
return(0); return(0);
}
coin = LP_coinfind(symbol); coin = LP_coinfind(symbol);
if ( coin == 0 ) if ( coin == 0 )
{
printf("LP_sendrawtransaction null coin\n");
return(0); return(0);
}
if ( coin->electrum == 0 ) if ( coin->electrum == 0 )
{ {
array = cJSON_CreateArray(); array = cJSON_CreateArray();
jaddistr(array,signedtx); jaddistr(array,signedtx);
paramstr = jprint(array,1); paramstr = jprint(array,1);
retstr = bitcoind_passthru(symbol,coin->serverport,coin->userpass,"sendrawtransaction",paramstr); retstr = bitcoind_passthru(symbol,coin->serverport,coin->userpass,"sendrawtransaction",paramstr);
//printf(">>>>>>>>>>> %s dpow_sendrawtransaction.(%s) -> (%s)\n",coin->symbol,paramstr,retstr); printf(">>>>>>>>>>> %s dpow_sendrawtransaction.(%s) -> (%s)\n",coin->symbol,paramstr,retstr);
free(paramstr); free(paramstr);
} }
else else

Loading…
Cancel
Save