|
|
@ -277,7 +277,7 @@ HASH_ARRAY_STRING(basilisk,getmessage,hash,vals,hexstr) |
|
|
|
jdelete(vals,"msgid"); |
|
|
|
jaddnum(vals,"msgid",msgid); |
|
|
|
} |
|
|
|
if ( myinfo->NOTARY.RELAYID >= 0 ) |
|
|
|
if ( myinfo->NOTARY.RELAYID >= 0 || myinfo->dexsock >= 0 ) |
|
|
|
{ |
|
|
|
channel = juint(vals,"channel"); |
|
|
|
width = juint(vals,"width"); |
|
|
@ -308,7 +308,7 @@ HASH_ARRAY_STRING(basilisk,sendmessage,hash,vals,hexstr) |
|
|
|
if ( vals != 0 && juint(vals,"fanout") == 0 ) |
|
|
|
jaddnum(vals,"fanout",MAX(8,(int32_t)sqrt(myinfo->NOTARY.NUMRELAYS)+2)); |
|
|
|
if ( data != 0 && datalen != 0 ) |
|
|
|
dex_reqsend(myinfo,space,datalen+BASILISK_KEYSIZE); |
|
|
|
dex_reqsend(myinfo,"DEX",space,datalen+BASILISK_KEYSIZE); |
|
|
|
return(basilisk_standardservice("OUT",myinfo,0,jbits256(vals,"desthash"),vals,hexstr,0)); |
|
|
|
} |
|
|
|
#include "../includes/iguana_apiundefs.h" |
|
|
|