diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 71c5bd068..1590908f8 100755 --- a/iguana/SuperNET.c +++ b/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); } diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index 51897525b..902175665 100755 --- a/iguana/iguana_payments.c +++ b/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); } }