Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
33679cc169
  1. 2
      iguana/SuperNET.c
  2. 4
      iguana/iguana_payments.c

2
iguana/SuperNET.c

@ -649,7 +649,7 @@ int32_t SuperNET_destination(struct supernet_info *myinfo,uint32_t *destipbitsp,
if ( juint(json,"broadcast") > 0 )
destflag |= SUPERNET_FORWARD;
}
if ( remoteaddr == 0 || remoteaddr[0] == 0 || strcmp(remoteaddr,"127.0.0.1") == 0 )
if ( jobj(json,"request") != 0 || remoteaddr == 0 || remoteaddr[0] == 0 || strcmp(remoteaddr,"127.0.0.1") == 0 )
destflag |= SUPERNET_ISMINE;
return(destflag);
}

4
iguana/iguana_payments.c

@ -435,6 +435,7 @@ char *iguana_rawtxissue(struct supernet_info *myinfo,struct iguana_info *coin,cJ
jaddstr(reqjson,"spendscriptstr",spendscriptstr);
jadd(reqjson,"addresses",addresses);
jaddnum(reqjson,"plaintext",1);
jaddnum(reqjson,"request",1);
OS_randombytes((uint8_t *)&rawtxtag,sizeof(rawtxtag));
jaddnum(reqjson,"rawtxtag",rawtxtag);
valsobj = cJSON_CreateObject();
@ -450,9 +451,6 @@ char *iguana_rawtxissue(struct supernet_info *myinfo,struct iguana_info *coin,cJ
{
if ( (addr= coin->peers.ranked[i]) != 0 && addr->supernet != 0 && addr->usock >= 0 )
{
if ( jobj(reqjson,"destip") != 0 )
jdelete(reqjson,"destip");
jaddstr(reqjson,"destip",addr->ipaddr);
iguana_send_supernet(coin,addr,jprint(reqjson,0),delay);
}
}

Loading…
Cancel
Save