|
|
@ -210,13 +210,11 @@ char *bitcoin_hexmsg(struct supernet_info *myinfo,struct category_info *cat,void |
|
|
|
printf("bitcoinprocess.(%s)\n",jprint(json,0)); |
|
|
|
agent = jstr(json,"agent"); |
|
|
|
method = jstr(json,"method"); |
|
|
|
if ( (valsobj= jobj(json,"vals")) != 0 ) |
|
|
|
if ( (valsobj= jobj(json,"vals")) != 0 && strcmp(agent,"iguana") == 0 ) |
|
|
|
{ |
|
|
|
if ( jstr(valsobj,"coin") != 0 && (coin= iguana_coinfind(jstr(valsobj,"coin"))) != 0 ) |
|
|
|
{ |
|
|
|
if ( (coin->RELAYNODE != 0 || coin->VALIDATENODE != 0) && strcmp(agent,"iguana") == 0 ) |
|
|
|
{ |
|
|
|
if ( strcmp(method,"rawtx") == 0 ) |
|
|
|
if ( strcmp(method,"rawtx") == 0 && (coin->RELAYNODE != 0 || coin->VALIDATENODE != 0) ) |
|
|
|
{ |
|
|
|
return(iguana_rawtx(myinfo,coin,json,remoteaddr,jstr(json,"changeaddr"),jobj(json,"addresses"),valsobj,jstr(json,"spendscriptstr"))); |
|
|
|
} |
|
|
@ -227,7 +225,6 @@ char *bitcoin_hexmsg(struct supernet_info *myinfo,struct category_info *cat,void |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
printf("bitcoin_hexmsg.(%s) from %s (%s/%s)\n",ptr,remoteaddr,agent,method); |
|
|
|
return(retstr); |
|
|
|
} |
|
|
|